On 2024/12/16 13:22, Bart Van Assche wrote: > On 12/16/24 12:54 PM, Damien Le Moal wrote: >> Yes. But I am still confused. Where is the problem ? > > Here: > https://lore.kernel.org/linux-block/95ab028e-6cf7-474e-aa33-37ab3bccd078@xxxxxxxxxx/. > In that message another approach is > suggested than what I described in my previous message. > > UFSHCI 3.0 controllers preserve the command order except if these are in > a power-saving mode called auto-hibernation (AH8). When leaving that > mode, commands are submitted in tag order (0..31). The approach > described above provides an elegant solution for the unaligned write > errors that can be caused by command reordering when leaving AH8 mode. > I'm not aware of any other elegant approach to deal with the reordering > that can be caused by leaving the UFSHCI AH8 mode. Sorry, but I do not know enough about UFS to fully understand the issue, or comment/propose a solution. > > Thanks, > > Bart. -- Damien Le Moal Western Digital Research