@@ -12,6 +12,7 @@
#include <linux/sysdev.h>
#include <linux/of.h>
#include <linux/of_irq.h>
+#include <linux/dma-mapping.h>
#include <asm/mach/map.h>
#include <asm/mach/irq.h>
@@ -188,6 +189,12 @@ void __init exynos4_map_io(void)
iotable_init(exynos_iodesc, ARRAY_SIZE(exynos_iodesc));
iotable_init(exynos4_iodesc, ARRAY_SIZE(exynos4_iodesc));
+ /*
+ * Default allocation size for ARM = 2MB
+ * Memory required for FB = (~ 2.4 MB) 4MB
+ */
+ init_consistent_dma_size(SZ_2M + SZ_4M);
+
if (soc_is_exynos4210() && samsung_rev() == EXYNOS4210_REV_0)
iotable_init(exynos4_iodesc0, ARRAY_SIZE(exynos4_iodesc0));
else
Some of the boards under mach-exynos initialize frame-buffers for which the memory requirement is more than 2MB, hence the default dma pool allocation size of 2MB is not sufficient. The consistent dma size is hence increased to successfully allocate memory for those boards. Signed-off-by: Tushar Behera <tushar.behera@linaro.org> --- arch/arm/mach-exynos/cpu.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-)