]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: dwc: Set 32-bit DMA mask for MSI target address allocation
authorVidya Sagar <vidyas@nvidia.com>
Tue, 17 Nov 2020 16:53:12 +0000 (22:23 +0530)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Thu, 10 Dec 2020 11:47:26 +0000 (11:47 +0000)
commit1c825dbf988ed5ee800061d79d37699e62b66cee
tree918d9903b315a38a93c1358dad19b51b1870cb0a
parent9788ecdfd779e71d33e7c340aed5b5d180a1c7d0
PCI: dwc: Set 32-bit DMA mask for MSI target address allocation

Set DMA mask to 32-bit while allocating the MSI target address so that
the address is usable for both 32-bit and 64-bit MSI capable devices.
Throw a warning if it fails to set the mask to 32-bit to alert that
devices that are only 32-bit MSI capable may not work properly.

Link: https://lore.kernel.org/r/20201117165312.25847-1-vidyas@nvidia.com
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
drivers/pci/controller/dwc/pcie-designware-host.c