
17 Oct
2019
17 Oct
'19
11:28 a.m.
On Thu, Oct 17, 2019 at 5:22 AM Patrick Wildt patrick@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@blueri.se
drivers/nvme/nvme.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
Reviewed-by: Bin Meng bmeng.cn@gmail.com