From 77abaf3c26899691cbefef2742f67d72c29a4363 Mon Sep 17 00:00:00 2001 From: Raghu Ananya Arabolu Date: Thu, 16 Apr 2020 17:25:01 -0700 Subject: [PATCH] msm: kgsl: Increase the SVM and non-SVM address space Increase the SVM and non-SVM address space for 64 bit processes. The SVM address space is increased from 4 GB to 252 GB. The non-SVM address space is increased from 4 GB to 256 GB. Change-Id: I7774cfdf59a2b00dc348d601b834d85059f12a86 Signed-off-by: Raghu Ananya Arabolu --- drivers/gpu/msm/kgsl_iommu.h | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/msm/kgsl_iommu.h b/drivers/gpu/msm/kgsl_iommu.h index 794ca08eafc5..3b068ed2bf63 100644 --- a/drivers/gpu/msm/kgsl_iommu.h +++ b/drivers/gpu/msm/kgsl_iommu.h @@ -27,16 +27,12 @@ #define KGSL_IOMMU_SVM_BASE32 0x300000 #define KGSL_IOMMU_SVM_END32 (0xC0000000 - SZ_16M) -#define KGSL_IOMMU_VA_BASE64 0x500000000ULL -#define KGSL_IOMMU_VA_END64 0x600000000ULL -/* - * Note: currently we only support 36 bit addresses, - * but the CPU supports 39. Eventually this range - * should change to high part of the 39 bit address - * space just like the CPU. - */ -#define KGSL_IOMMU_SVM_BASE64 0x700000000ULL -#define KGSL_IOMMU_SVM_END64 0x800000000ULL +/* The CPU supports 39 bit addresses */ +#define KGSL_IOMMU_SVM_BASE64 0x100000000ULL +#define KGSL_IOMMU_SVM_END64 0x4000000000ULL +#define KGSL_IOMMU_VA_BASE64 0x4000000000ULL +#define KGSL_IOMMU_VA_END64 0x8000000000ULL + #define CP_APERTURE_REG 0 #define CP_SMMU_APERTURE_ID 0x1B