aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Herring <rob.herring@calxeda.com>2013-08-01 16:50:55 -0400
committerRob Herring <rob.herring@calxeda.com>2013-08-17 20:43:56 -0400
commita6a398341d5d073a717858b4488a7abe5f242cf2 (patch)
tree726d05f0b8373c6fbde3fd13ac06b1df5500e214
parent364230b9952143eb2062dc071e919fb751540ae8 (diff)
ARM: highbank: enable DMA zone for LPAE
Some devices are restricted to 32-bit DMA. Thus the platform dma_zone_size needs to be set. Otherwise dma-mapping code is complaining, e.g. calxedaxgmac fff50000.ethernet: coherent DMA mask 0xffffffff is smaller than system GFP_DMA mask 0xffffffffffffffff Signed-off-by: Andreas Herrmann <andreas.herrmann@calxeda.com> Signed-off-by: Rob Herring <rob.herring@calxeda.com>
-rw-r--r--arch/arm/mach-highbank/Kconfig1
-rw-r--r--arch/arm/mach-highbank/highbank.c3
2 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-highbank/Kconfig b/arch/arm/mach-highbank/Kconfig
index cd9fcb1cd7ab..efe49610ec4c 100644
--- a/arch/arm/mach-highbank/Kconfig
+++ b/arch/arm/mach-highbank/Kconfig
@@ -18,3 +18,4 @@ config ARCH_HIGHBANK
18 select PL320_MBOX 18 select PL320_MBOX
19 select SPARSE_IRQ 19 select SPARSE_IRQ
20 select USE_OF 20 select USE_OF
21 select ZONE_DMA if ARM_LPAE
diff --git a/arch/arm/mach-highbank/highbank.c b/arch/arm/mach-highbank/highbank.c
index 88815795fe26..0749b42f33c9 100644
--- a/arch/arm/mach-highbank/highbank.c
+++ b/arch/arm/mach-highbank/highbank.c
@@ -176,6 +176,9 @@ static const char *highbank_match[] __initconst = {
176}; 176};
177 177
178DT_MACHINE_START(HIGHBANK, "Highbank") 178DT_MACHINE_START(HIGHBANK, "Highbank")
179#if defined(CONFIG_ZONE_DMA) && defined(CONFIG_ARM_LPAE)
180 .dma_zone_size = (4ULL * SZ_1G),
181#endif
179 .smp = smp_ops(highbank_smp_ops), 182 .smp = smp_ops(highbank_smp_ops),
180 .init_irq = highbank_init_irq, 183 .init_irq = highbank_init_irq,
181 .init_time = highbank_timer_init, 184 .init_time = highbank_timer_init,