[U-Boot] [PATCH] nvme: flush dcache on both r/w, and the prp list

Tom Rini trini at konsulko.com
Fri Nov 1 13:31:05 UTC 2019


On Wed, Oct 16, 2019 at 11:22:50PM +0200, Patrick Wildt wrote:

> It's possible that the data cache for the buffer still holds data
> to be flushed to memory, since the buffer was probably used as stack
> before.  Thus we need to make sure to flush it also on reads, since
> it's possible that the cache is automatically flused to memory after
> the NVMe DMA transfer happened, thus overwriting the NVMe transfer's
> data.  Also add a missing dcache flush for the prp list.
> 
> Signed-off-by: Patrick Wildt <patrick at blueri.se>
> Reviewed-by: Bin Meng <bmeng.cn at gmail.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20191101/b4c1c2fa/attachment.sig>


More information about the U-Boot mailing list