From: mglocker Date: Thu, 9 May 2024 08:24:09 +0000 (+0000) Subject: Back then I faced intermittent file-system corruptions for which setting X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=d30853d1570affeb90b41a48942756bd5c8d7654;p=openbsd Back then I faced intermittent file-system corruptions for which setting FUA (Force Unit Access) did help. In the meantime it turned out that those file-system corruptions were most likely caused by the slot issues. Now that we fixed the slot management and limited to one slot for now, remove FUA again, which increases the write performance significantly. --- diff --git a/sys/dev/ic/ufshci.c b/sys/dev/ic/ufshci.c index 7360ab623a4..1bc2166c9dd 100644 --- a/sys/dev/ic/ufshci.c +++ b/sys/dev/ic/ufshci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ufshci.c,v 1.18 2024/05/09 08:21:52 mglocker Exp $ */ +/* $OpenBSD: ufshci.c,v 1.19 2024/05/09 08:24:09 mglocker Exp $ */ /* * Copyright (c) 2022 Marcus Glocker @@ -1052,8 +1052,6 @@ ufshci_utr_cmd_io(struct ufshci_softc *sc, struct ufshci_ccb *ccb, ucd->cmd.expected_xfer_len = htobe32(xs->datalen); memcpy(ucd->cmd.cdb, &xs->cmd, sizeof(ucd->cmd.cdb)); - if (dir == SCSI_DATA_OUT) - ucd->cmd.cdb[1] = (1 << 3); /* FUA: Force Unit Access */ /* 7.2.1 Basic Steps when Building a UTP Transfer Request: 2g) */ /* Already done with above memset */