Skip to content

Commit c7906f5

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 31a5ec7 commit c7906f5

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
@@ -326,6 +326,7 @@ config PCIE_APPLE
326326
depends on ARCH_APPLE || COMPILE_TEST
327327
depends on OF
328328
depends on PCI_MSI
329+
depends on ARM64_PAGE_SHIFT = 14 || COMPILE_TEST
329330
select PCI_HOST_COMMON
330331
help
331332
Say Y here if you want to enable PCIe controller support on Apple

0 commit comments

Comments
 (0)