ARM: shmobile: Select CONFIG_ZONE_DMA when CONFIG_ARM_LPAE is enabled
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Thu, 23 Oct 2014 14:38:31 +0000 (17:38 +0300)
committerSimon Horman <horms+renesas@verge.net.au>
Fri, 5 Dec 2014 08:33:35 +0000 (17:33 +0900)
commit3f4c311c14de9fe38fc8a7534cf6512952a263c7
tree066e2166f7aa4504e0463b4da34c423ce4e88fda
parentd71d954bc0f5725a9267a77daf7b03247ff05f70
ARM: shmobile: Select CONFIG_ZONE_DMA when CONFIG_ARM_LPAE is enabled

Most IP cores on ARM Renesas platforms can only address 32 bits of
physical memory for DMA. Without CONFIG_ZONE_DMA enabled and with the
recent CMA highmem allocation support, the default CMA zone is reserved
above the 4GiB limit when LPAE is enabled, resulting in various driver
failures.

Fix the problem by selecting CONFIG_ZONE_DMA. Other options to
investigate in the future would be to either enable IOMMU support or use
custom CMA reservations for peripherals not supporting LPAE.

While not a strict dependency, the "[PATCH 0/4] Low/high memory CMA
reservation fixes" series is also required to fix a different but related CMA
allocation problem.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
(cherry picked from commit 3794705aeb318c431c07072f04380c78cc5a84ac)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-shmobile/Kconfig