Searched hist:c5dc95c88fe616561061288fa322810fb19040a9 (Results 1 – 1 of 1) sorted by relevance
| /rk3399_rockchip-uboot/drivers/nvme/ |
| H A D | nvme.c | c5dc95c88fe616561061288fa322810fb19040a9 Wed Oct 16 21:22:50 UTC 2019 Patrick Wildt <patrick@blueri.se> UPSTREAM: nvme: flush dcache on both r/w, and the prp list
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.
Change-Id: I40572099e5583e3b155b8b248079b76c8bbd1e5c Signed-off-by: Patrick Wildt <patrick@blueri.se> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Signed-off-by: Jon Lin <jon.lin@rock-chips.com> (cherry picked from commit 8c403402ca691c967516481b6bc2c879d683a73d)
|