Re: [PATCH 03/10] clk: qcom: gpucc-msm8998: set the droop detector bit in the right register
From: Konrad Dybcio
Date: Tue Oct 20 2026 - 02:32:46 EST
On 10/19/26 3:41 PM, Dmitry Baryshkov wrote:
> The probe means to power down the GPU droop detector to cut the leakage
> between the graphics and CX rails, but it sets bit 0 of the GFX3D branch
> register instead of GPUCC_GPU_DD_WRAP_CTRL. That force-enables the GFX3D
> clock and leaves the droop detector alone.
>
> Write the bit to GPUCC_GPU_DD_WRAP_CTRL, as the vendor driver does.
>
> Fixes: 3f7df5baa259 ("clk: qcom: Add MSM8998 GPU Clock Controller (GPUCC) driver")
> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxxxxxxxx>
> ---
> drivers/clk/qcom/gpucc-msm8998.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/clk/qcom/gpucc-msm8998.c b/drivers/clk/qcom/gpucc-msm8998.c
> index 066793e47f79..8da10027f1f2 100644
> --- a/drivers/clk/qcom/gpucc-msm8998.c
> +++ b/drivers/clk/qcom/gpucc-msm8998.c
> @@ -330,7 +330,7 @@ static int gpucc_msm8998_probe(struct platform_device *pdev)
> /* force periph logic on to avoid perf counter corruption */
> regmap_write_bits(regmap, gfx3d_clk.clkr.enable_reg, BIT(13), BIT(13));
> /* tweak droop detector (GPUCC_GPU_DD_WRAP_CTRL) to reduce leakage */
> - regmap_write_bits(regmap, gfx3d_clk.clkr.enable_reg, BIT(0), BIT(0));
> + regmap_write_bits(regmap, 0x430, BIT(0), BIT(0));
regmap_set_bits(), would also be nice if this was moved to the new
driver_data. with or without that:
Reviewed-by: Konrad Dybcio <konrad.dybcio@xxxxxxxxxxxxxxxx>
Konrad