From 9a0121f39d83258997403081f8c4ba45747ddf81 Mon Sep 17 00:00:00 2001 From: Raghu Ananya Arabolu Date: Thu, 6 Aug 2020 14:53:03 -0700 Subject: [PATCH] msm: kgsl: Add clocks to access KGSL SMMU register space Add gpu_cc_cx_gmu, gpu_cc_hub_aon & gpu_cc_hub_cx_int clock to the list of clocks to vote for in order to access the KGSL SMMU register space. Change-Id: I84ff20b1c05c9045c3b271cd85ea98957fc4a6ce Signed-off-by: Raghu Ananya Arabolu --- drivers/gpu/msm/kgsl_iommu.c | 5 ++++- drivers/gpu/msm/kgsl_iommu.h | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/msm/kgsl_iommu.c b/drivers/gpu/msm/kgsl_iommu.c index aa12bafebc0a..dce23b81698e 100644 --- a/drivers/gpu/msm/kgsl_iommu.c +++ b/drivers/gpu/msm/kgsl_iommu.c @@ -2488,7 +2488,10 @@ static const char * const kgsl_iommu_clocks[] = { "gcc_gpu_memnoc_gfx", "gcc_gpu_snoc_dvm_gfx", "gpu_cc_ahb", - "gpu_cc_hlos1_vote_gpu_smmu_clk", + "gpu_cc_cx_gmu", + "gpu_cc_hlos1_vote_gpu_smmu", + "gpu_cc_hub_aon", + "gpu_cc_hub_cx_int", }; static struct kgsl_mmu_ops kgsl_iommu_ops; diff --git a/drivers/gpu/msm/kgsl_iommu.h b/drivers/gpu/msm/kgsl_iommu.h index 3b068ed2bf63..ab4a2b703453 100644 --- a/drivers/gpu/msm/kgsl_iommu.h +++ b/drivers/gpu/msm/kgsl_iommu.h @@ -60,7 +60,7 @@ #define KGSL_IOMMU_FSR_SS_SHIFT 30 /* Max number of iommu clks per IOMMU unit */ -#define KGSL_IOMMU_MAX_CLKS 5 +#define KGSL_IOMMU_MAX_CLKS 7 /* offset at which a nop command is placed in setstate */ #define KGSL_IOMMU_SETSTATE_NOP_OFFSET 1024