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

Bin Meng bmeng.cn at gmail.com
Thu Oct 17 09:28:47 UTC 2019

On Thu, Oct 17, 2019 at 5:22 AM Patrick Wildt <patrick at blueri.se> 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>
> ---
>  drivers/nvme/nvme.c | 8 +++++---
>  1 file changed, 5 insertions(+), 3 deletions(-)

Reviewed-by: Bin Meng <bmeng.cn at gmail.com>

More information about the U-Boot mailing list