]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
clk: qcom: Avoid SMMU/cx gdsc corner cases
authorJeffrey Hugo <jeffrey.l.hugo@gmail.com>
Tue, 17 Dec 2019 17:19:05 +0000 (09:19 -0800)
committerStephen Boyd <sboyd@kernel.org>
Thu, 19 Dec 2019 06:02:27 +0000 (22:02 -0800)
Mark the msm8998 cpu CX gdsc as votable and use the hw control to avoid
corner cases with SMMU per hardware documentation.

Fixes: 3f7df5baa259 ("clk: qcom: Add MSM8998 GPU Clock Controller (GPUCC) driver")
Signed-off-by: Jeffrey Hugo <jeffrey.l.hugo@gmail.com>
Link: https://lkml.kernel.org/r/20191217171905.5619-1-jeffrey.l.hugo@gmail.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/qcom/gpucc-msm8998.c

index e5e2492b20c5e840cb999142c70bb4360edc2035..9b3923af02a142dcf7c821114adee5522a3c542f 100644 (file)
@@ -242,10 +242,12 @@ static struct clk_branch gfx3d_isense_clk = {
 
 static struct gdsc gpu_cx_gdsc = {
        .gdscr = 0x1004,
+       .gds_hw_ctrl = 0x1008,
        .pd = {
                .name = "gpu_cx",
        },
        .pwrsts = PWRSTS_OFF_ON,
+       .flags = VOTABLE,
 };
 
 static struct gdsc gpu_gx_gdsc = {