From 9d836f929d0f2f63260b4d4d0c2525e8943f37c7 Mon Sep 17 00:00:00 2001 From: Charan Teja Kalla Date: Tue, 23 Feb 2021 10:40:00 +0530 Subject: [PATCH] ARM: dts: msm: Enable qcom,power-always-on for GPU SMMUs on GKI targets When unmapping memory, the SMMU driver must access the GPU SMMU's register space, so it must vote for power resources to access the TLB invalidation registers. When the GPU is in slumber, there aren't votes for the GPU SMMU's power resources, so the SMMU driver constantly ends up enabling/disabling the power resources, which takes a considerable amount of time. When paired with the suboptimal IOMMU page table management code, this leads to performance issues where the time taken to unmap memory is large. Thus, for all targets that support GKI, add the qcom,power-always-on property for the GPU SMMUs of these targets, to remove the latency incurred by having to enable/disable power resources in the GKI configuration. Change-Id: I403c9864705c50f7ce8b1118c3c75902708e647b --- qcom/msm-arm-smmu-yupik.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/msm-arm-smmu-yupik.dtsi b/qcom/msm-arm-smmu-yupik.dtsi index 833995eda61c..de5f1e65b6f5 100644 --- a/qcom/msm-arm-smmu-yupik.dtsi +++ b/qcom/msm-arm-smmu-yupik.dtsi @@ -15,6 +15,7 @@ #address-cells = <1>; ranges; dma-coherent; + qcom,power-always-on; qcom,regulator-names = "vdd"; vdd-supply = <&gpu_cx_gdsc>; clocks = <&gcc GCC_GPU_MEMNOC_GFX_CLK>,