nvme: add 48-bit DMA address quirk for Amazon NVMe controllers
authorFilippo Sironi <sironi@amazon.de>
Wed, 10 Feb 2021 00:39:42 +0000 (01:39 +0100)
committerChristoph Hellwig <hch@lst.de>
Wed, 10 Feb 2021 15:38:06 +0000 (16:38 +0100)
commit4bdf260362b3be529d170b04662638fd6dc52241
treeef13356d80908908c74f3090fec7f65d01d3d29d
parented7770f6628691c13c9423bce7eee7cff2399c12
nvme: add 48-bit DMA address quirk for Amazon NVMe controllers

Some Amazon NVMe controllers do not follow the NVMe specification
and are limited to 48-bit DMA addresses.  Add a quirk to force
bounce buffering if needed and limit the IOVA allocation for these
devices.

This affects all current Amazon NVMe controllers that expose EBS
volumes (0x0061, 0x0065, 0x8061) and local instance storage
(0xcd00, 0xcd01, 0xcd02).

Signed-off-by: Filippo Sironi <sironi@amazon.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/nvme.h
drivers/nvme/host/pci.c