|
@@ -18,6 +18,7 @@
|
|
|
#include <linux/kernel.h>
|
|
|
#include <linux/of_fdt.h>
|
|
|
#include <asm/machdep.h>
|
|
|
+#include <asm/pgtable.h>
|
|
|
#include <asm/time.h>
|
|
|
#include <asm/udbg.h>
|
|
|
#include <asm/mpic.h>
|
|
@@ -44,6 +45,15 @@ static void __init qemu_e500_setup_arch(void)
|
|
|
|
|
|
fsl_pci_assign_primary();
|
|
|
swiotlb_detect_4g();
|
|
|
+#if defined(CONFIG_FSL_PCI) && defined(CONFIG_ZONE_DMA32)
|
|
|
+ /*
|
|
|
+ * Inbound windows don't cover the full lower 4 GiB
|
|
|
+ * due to conflicts with PCICSRBAR and outbound windows,
|
|
|
+ * so limit the DMA32 zone to 2 GiB, to allow consistent
|
|
|
+ * allocations to succeed.
|
|
|
+ */
|
|
|
+ limit_zone_pfn(ZONE_DMA32, 1UL << (31 - PAGE_SHIFT));
|
|
|
+#endif
|
|
|
mpc85xx_smp_init();
|
|
|
}
|
|
|
|