Skip to content

Commit db5709e

Browse files
jannaumarcan
authored andcommitted
PCI: apple: Add depends on ARM64_PAGE_SHIFT = 14
The iommu on Apple's M1 and M2 supports only a page size of 16kB and is mandatory for PCIe devices. The PCI controller itself is not affeccted by the CPU page size the page size mismatch devices are renderer useless due to non-working DMA. While the the iommu prints a warning in this scenario it seems a common and hard to debug problem. Signed-off-by: Janne Grunau <j@jannau.net>
1 parent 0ed0bb7 commit db5709e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/pci/controller/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ config PCIE_APPLE
3939
depends on ARCH_APPLE || COMPILE_TEST
4040
depends on OF
4141
depends on PCI_MSI
42+
depends on ARM64_PAGE_SHIFT = 14 || COMPILE_TEST
4243
select PCI_HOST_COMMON
4344
help
4445
Say Y here if you want to enable PCIe controller support on Apple

0 commit comments

Comments
 (0)