[PATCH for-4.13] nvme-pci: use dma memory for the host memory buffer descriptors
Keith Busch
keith.busch at intel.com
Tue Aug 29 15:00:12 PDT 2017
On Mon, Aug 28, 2017 at 10:47:18AM +0200, Christoph Hellwig wrote:
> The NVMe 1.3 specification says in section 5.21.1.13:
>
> "After a successful completion of a Set Features enabling the host memory
> buffer, the host shall not write to the associated host memory region,
> buffer size, or descriptor list until the host memory buffer has been
> disabled."
>
> While this doesn't state that the descriptor list must remain accessible
> to the device it certainly implies it must remaing readable by the device.
>
> So switch to a dma coherent allocation for the descriptor list just to be
> safe - it's not like the cost for it matters compared to the actual
> memory buffers.
>
> Signed-off-by: Christoph Hellwig <hch at lst.de>
Looks good to me.
Reviewed-by: Keith Busch <keith.busch at intel.com>
More information about the Linux-nvme
mailing list