[PATCH v1] scsi: Enable FUA bit and remove per-write SYNC_CACHE operations
Tom Rini
trini at konsulko.com
Fri Jan 16 16:57:35 CET 2026
On Mon, Jan 05, 2026 at 10:55:26AM +0530, Balaji Selvanathan wrote:
> Enable the Force Unit Access (FUA) bit in SCSI WRITE10 commands to
> ensure writes bypass the device's volatile cache and go directly to
> non-volatile storage. This provides write-through behavior without
> requiring explicit cache flushes after each write operation.
>
> Remove the SYNC_CACHE command that was being issued after every
> scsi_write() call, as it is redundant when FUA is enabled and was
> causing system hangs during large sparse image flashing operations.
>
> Signed-off-by: Aswin Murugan <aswin.murugan at oss.qualcomm.com>
> Signed-off-by: Balaji Selvanathan <balaji.selvanathan at oss.qualcomm.com>
This introduces failure to build on xilinx_zynqmp_virt and others:
drivers/scsi/scsi.c:85:13: error: 'scsi_setup_sync_cache' defined but not used [-Werror=unused-function]
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20260116/4e509607/attachment.sig>
More information about the U-Boot
mailing list