]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
drm/msm: Boost the GPU clock on msm8916 for better performance
authorGeorgi Djakov <georgi.djakov@linaro.org>
Thu, 18 Feb 2016 17:22:46 +0000 (19:22 +0200)
committerNicolas Dechesne <nicolas.dechesne@linaro.org>
Thu, 18 Feb 2016 17:40:04 +0000 (18:40 +0100)
This hack should be removed when we have proper msm-bus and
QoS support for the GPU.

Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
drivers/gpu/drm/msm/msm_gpu.c

index 6b02ada6579a737d36f6ad7403ad53519ee7e0f7..42e22846b82844642e0ae6aeaa3e472f66a9ab86 100644 (file)
@@ -627,6 +627,14 @@ int msm_gpu_init(struct drm_device *drm, struct platform_device *pdev,
                        gpu->grp_clks[i] = NULL;
        }
 
+
+       /* HACK: Boost the GPU clock on msm8916 for better performance.
+        * This should be removed when we have proper support for msm_bus
+        * and QoS.
+        */
+       if (gpu->grp_clks[4] && gpu->grp_clks[5])
+               clk_set_rate(gpu->grp_clks[4], INT_MAX);
+
        gpu->ebi1_clk = devm_clk_get(&pdev->dev, "bus_clk");
        DBG("ebi1_clk: %p", gpu->ebi1_clk);
        if (IS_ERR(gpu->ebi1_clk))