From 2e8144f7398d8a7cfb3b9bd1c8073acba2b88307 Mon Sep 17 00:00:00 2001 From: Paul Kocialkowski Date: Tue, 25 Apr 2017 00:59:46 +0200 Subject: ARM: tegra: Select appropriate DMA options for LPAE This automatically selects options for zone DMA and 64 bit DMA addresses when LPAE is enabled on ARM Tegra platforms. These options are required for proper operation with LPAE enabled. The ZONE_DMA option is required to ensure that drivers that allocate DMA memory get buffers from the first 4 GiB. This is necessary because a lot of the controllers only support addressing 32 bits. As for ARCH_DMA_ADDR_T_64BIT, there are situations where devices that do support addresses of more than 32 bits (such as the display controller or the GPU) can run without translating addresses through an IOMMU on a device with more than 4 GiB of system memory. Note that both of these options are stop-gap solutions required only until the IOMMU can be properly integrated with the DMA mapping API and drivers use that properly and consistently. Signed-off-by: Paul Kocialkowski [treding@nvidia.com: specify rationale for options] Signed-off-by: Thierry Reding (backported from commit 6aa26c5d66595494e810c791602d87a572c78808) --- arch/arm/mach-tegra/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-tegra/Kconfig b/arch/arm/mach-tegra/Kconfig index ac1d33bd97fb..8385f1f30aca 100644 --- a/arch/arm/mach-tegra/Kconfig +++ b/arch/arm/mach-tegra/Kconfig @@ -107,6 +107,8 @@ config ARCH_TEGRA_12x_SOC select TEGRA_ISOMGR select TEGRA_ISOMGR_SYSFS select PROC_DEVICETREE + select ZONE_DMA if ARM_LPAE + select ARCH_DMA_ADDR_T_64BIT if ARM_LPAE help Support for NVIDIA Tegra 12x family of SoCs, based upon the ARM Cortex-A15MP CPU -- cgit v1.2.3