[PATCH v1] scsi: Enable FUA bit and remove per-write SYNC_CACHE operations

Casey Connolly casey.connolly at linaro.org
Fri Jan 16 18:49:30 CET 2026


On 1/16/26 16:57, Tom Rini wrote:
> 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]

Balaji,

The patch introducing explicit SYNC_CACHE made quite a few more changes, 
I would recommend including a full revert of that in your patch (and 
properly referencing the commit in question!).

Kind regards,
- Casey

> 



More information about the U-Boot mailing list