]> git.dujemihanovic.xyz Git - u-boot.git/commit
nvme: Apply cache operations on the DMA buffers
authorBin Meng <bmeng.cn@gmail.com>
Tue, 22 Aug 2017 15:15:14 +0000 (08:15 -0700)
committerTom Rini <trini@konsulko.com>
Mon, 28 Aug 2017 11:17:13 +0000 (07:17 -0400)
commit704e040a51d2456a6c56e79363279b230d37cef7
treef07e9f4b860fb395195354820cdc6bdc4af60b57
parent625a483cea6442da5d435830357c10ecc459f9c6
nvme: Apply cache operations on the DMA buffers

So far cache operations are only applied on the submission queue and
completion queue, but they are missing in other places like identify
and block read/write routines.

In order to correctly operate on the caches, the DMA buffer passed
to identify routine must be allocated properly on the stack with the
existing macro ALLOC_CACHE_ALIGN_BUFFER().

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
drivers/nvme/nvme.c
drivers/nvme/nvme_show.c