WSL2-Linux-Kernel/drivers/nvme/host
Christoph Hellwig 8969f1f829 nvme-pci: Use PCI bus address for data/queues in CMB
Currently, NVMe PCI host driver is programming CMB dma address as
I/O SQs addresses. This results in failures on systems where 1:1
outbound mapping is not used (example Broadcom iProc SOCs) because
CMB BAR will be progammed with PCI bus address but NVMe PCI EP will
try to access CMB using dma address.

To have CMB working on systems without 1:1 outbound mapping, we
program PCI bus address for I/O SQs instead of dma address. This
approach will work on systems with/without 1:1 outbound mapping.

Based on a report and previous patch from Abhishek Shah.

Fixes: 8ffaadf7 ("NVMe: Use CMB for the IO SQes if available")
Cc: stable@vger.kernel.org
Reported-by: Abhishek Shah <abhishek.shah@broadcom.com>
Tested-by: Abhishek Shah <abhishek.shah@broadcom.com>
Reviewed-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
2017-10-04 11:42:53 +02:00
..
Kconfig nvme: Remove SCSI translations 2017-06-28 08:14:13 -06:00
Makefile nvme: Makefile: remove dead build rule 2017-06-29 09:43:23 -06:00
core.c nvme: fix visibility of "uuid" ns attribute 2017-10-01 09:58:04 +02:00
fabrics.c nvme-fabrics: Allow 0 as KATO value 2017-09-25 08:56:05 -06:00
fabrics.h nvme: read the subsystem NQN from Identify Controller 2017-06-28 08:14:13 -06:00
fc.c nvme-fc: use transport-specific sgl format 2017-09-25 08:56:05 -06:00
lightnvm.c nvme: fix lightnvm check 2017-09-11 12:29:36 -04:00
nvme.h nvme-pci: implement the HMB entry number and size limitations 2017-09-11 12:29:40 -04:00
pci.c nvme-pci: Use PCI bus address for data/queues in CMB 2017-10-04 11:42:53 +02:00
rdma.c nvme-rdma: don't fully stop the controller in error recovery 2017-09-25 12:42:11 -06:00