* [PATCH v2] clk: qcom: dispcc-sdm845: Enable parents for pixel clocks
@ 2026-01-07 11:44 Petr Hodina via B4 Relay
2026-01-07 11:52 ` David Heidelberg
` (4 more replies)
0 siblings, 5 replies; 7+ messages in thread
From: Petr Hodina via B4 Relay @ 2026-01-07 11:44 UTC (permalink / raw)
To: Konrad Dybcio, Rob Clark, Dmitry Baryshkov, Abhinav Kumar,
Jessica Zhang, Sean Paul, Marijn Suijten, David Airlie,
Simona Vetter, Bjorn Andersson, Michael Turquette, Stephen Boyd,
Petr Hodina, David Heidelberg, Taniya Das
Cc: linux-arm-msm, dri-devel, freedreno, linux-kernel, linux-clk,
phone-devel
From: Petr Hodina <petr.hodina@protonmail.com>
Add CLK_OPS_PARENT_ENABLE to MDSS pixel clock sources to ensure parent
clocks are enabled during clock operations, preventing potential
stability issues during display configuration.
Fixes: 81351776c9fb ("clk: qcom: Add display clock controller driver for SDM845")
Signed-off-by: Petr Hodina <petr.hodina@protonmail.com>
---
We are currently running the latest linux-next snapshots (next-202511*
and next-202512*) and have encountered random freezes and crashes on the
Pixel 3, as well as crash dumps on the OnePlus 6 and 6T.
This commit fixes the stability issue. I've checked other SDM dispcc
files and they also contain this configuration.
For safety I also set the configuration for `disp_cc_mdss_pclk1_clk_src`
though it should be sufficient only for `disp_cc_mdss_pclk0_clk_src`.
Kind regards,
Petr
---
Changes in v2:
- Remove commits from v1 and introduce proper fix.
- Link to v1: https://lore.kernel.org/r/20251213-stability-discussion-v1-0-b25df8453526@ixit.cz
---
drivers/clk/qcom/dispcc-sdm845.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/clk/qcom/dispcc-sdm845.c b/drivers/clk/qcom/dispcc-sdm845.c
index 2f9e9665d7e9..78e43f6d7502 100644
--- a/drivers/clk/qcom/dispcc-sdm845.c
+++ b/drivers/clk/qcom/dispcc-sdm845.c
@@ -280,7 +280,7 @@ static struct clk_rcg2 disp_cc_mdss_pclk0_clk_src = {
.name = "disp_cc_mdss_pclk0_clk_src",
.parent_data = disp_cc_parent_data_4,
.num_parents = ARRAY_SIZE(disp_cc_parent_data_4),
- .flags = CLK_SET_RATE_PARENT,
+ .flags = CLK_SET_RATE_PARENT | CLK_OPS_PARENT_ENABLE,
.ops = &clk_pixel_ops,
},
};
@@ -295,7 +295,7 @@ static struct clk_rcg2 disp_cc_mdss_pclk1_clk_src = {
.name = "disp_cc_mdss_pclk1_clk_src",
.parent_data = disp_cc_parent_data_4,
.num_parents = ARRAY_SIZE(disp_cc_parent_data_4),
- .flags = CLK_SET_RATE_PARENT,
+ .flags = CLK_SET_RATE_PARENT | CLK_OPS_PARENT_ENABLE,
.ops = &clk_pixel_ops,
},
};
---
base-commit: f96074c6d01d8a5e9e2fccd0bba5f2ed654c1f2d
change-id: 20251212-stability-discussion-d16f6ac51209
Best regards,
--
Petr Hodina <petr.hodina@protonmail.com>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2] clk: qcom: dispcc-sdm845: Enable parents for pixel clocks
2026-01-07 11:44 [PATCH v2] clk: qcom: dispcc-sdm845: Enable parents for pixel clocks Petr Hodina via B4 Relay
@ 2026-01-07 11:52 ` David Heidelberg
2026-01-07 12:11 ` Dmitry Baryshkov
` (3 subsequent siblings)
4 siblings, 0 replies; 7+ messages in thread
From: David Heidelberg @ 2026-01-07 11:52 UTC (permalink / raw)
To: petr.hodina, Konrad Dybcio, Rob Clark, Dmitry Baryshkov,
Abhinav Kumar, Jessica Zhang, Sean Paul, Marijn Suijten,
David Airlie, Simona Vetter, Bjorn Andersson, Michael Turquette,
Stephen Boyd, Taniya Das
Cc: linux-arm-msm, dri-devel, freedreno, linux-kernel, linux-clk,
phone-devel
On 07/01/2026 12:44, Petr Hodina via B4 Relay wrote:
> From: Petr Hodina <petr.hodina@protonmail.com>
>
> Add CLK_OPS_PARENT_ENABLE to MDSS pixel clock sources to ensure parent
> clocks are enabled during clock operations, preventing potential
> stability issues during display configuration.
>
> Fixes: 81351776c9fb ("clk: qcom: Add display clock controller driver for SDM845")
> Signed-off-by: Petr Hodina <petr.hodina@protonmail.com>
> ---
> We are currently running the latest linux-next snapshots (next-202511*
> and next-202512*) and have encountered random freezes and crashes on the
> Pixel 3, as well as crash dumps on the OnePlus 6 and 6T.
>
> This commit fixes the stability issue. I've checked other SDM dispcc
> files and they also contain this configuration.
>
> For safety I also set the configuration for `disp_cc_mdss_pclk1_clk_src`
> though it should be sufficient only for `disp_cc_mdss_pclk0_clk_src`.
>
> Kind regards,
> Petr
> ---
> Changes in v2:
> - Remove commits from v1 and introduce proper fix.
> - Link to v1: https://lore.kernel.org/r/20251213-stability-discussion-v1-0-b25df8453526@ixit.cz
> ---
> drivers/clk/qcom/dispcc-sdm845.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
Reviewed-by: David Heidelberg <david@ixit.cz>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2] clk: qcom: dispcc-sdm845: Enable parents for pixel clocks
2026-01-07 11:44 [PATCH v2] clk: qcom: dispcc-sdm845: Enable parents for pixel clocks Petr Hodina via B4 Relay
2026-01-07 11:52 ` David Heidelberg
@ 2026-01-07 12:11 ` Dmitry Baryshkov
2026-01-07 16:26 ` Taniya Das
` (2 subsequent siblings)
4 siblings, 0 replies; 7+ messages in thread
From: Dmitry Baryshkov @ 2026-01-07 12:11 UTC (permalink / raw)
To: petr.hodina
Cc: Konrad Dybcio, Rob Clark, Dmitry Baryshkov, Abhinav Kumar,
Jessica Zhang, Sean Paul, Marijn Suijten, David Airlie,
Simona Vetter, Bjorn Andersson, Michael Turquette, Stephen Boyd,
David Heidelberg, Taniya Das, linux-arm-msm, dri-devel,
freedreno, linux-kernel, linux-clk, phone-devel
On Wed, Jan 07, 2026 at 12:44:43PM +0100, Petr Hodina via B4 Relay wrote:
> From: Petr Hodina <petr.hodina@protonmail.com>
>
> Add CLK_OPS_PARENT_ENABLE to MDSS pixel clock sources to ensure parent
> clocks are enabled during clock operations, preventing potential
> stability issues during display configuration.
>
> Fixes: 81351776c9fb ("clk: qcom: Add display clock controller driver for SDM845")
> Signed-off-by: Petr Hodina <petr.hodina@protonmail.com>
> ---
> We are currently running the latest linux-next snapshots (next-202511*
> and next-202512*) and have encountered random freezes and crashes on the
> Pixel 3, as well as crash dumps on the OnePlus 6 and 6T.
>
> This commit fixes the stability issue. I've checked other SDM dispcc
> files and they also contain this configuration.
>
> For safety I also set the configuration for `disp_cc_mdss_pclk1_clk_src`
> though it should be sufficient only for `disp_cc_mdss_pclk0_clk_src`.
>
> Kind regards,
> Petr
> ---
> Changes in v2:
> - Remove commits from v1 and introduce proper fix.
> - Link to v1: https://lore.kernel.org/r/20251213-stability-discussion-v1-0-b25df8453526@ixit.cz
> ---
> drivers/clk/qcom/dispcc-sdm845.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2] clk: qcom: dispcc-sdm845: Enable parents for pixel clocks
2026-01-07 11:44 [PATCH v2] clk: qcom: dispcc-sdm845: Enable parents for pixel clocks Petr Hodina via B4 Relay
2026-01-07 11:52 ` David Heidelberg
2026-01-07 12:11 ` Dmitry Baryshkov
@ 2026-01-07 16:26 ` Taniya Das
2026-01-07 18:38 ` Bjorn Andersson
2026-01-08 23:00 ` Val Packett
4 siblings, 0 replies; 7+ messages in thread
From: Taniya Das @ 2026-01-07 16:26 UTC (permalink / raw)
To: petr.hodina, Konrad Dybcio, Rob Clark, Dmitry Baryshkov,
Abhinav Kumar, Jessica Zhang, Sean Paul, Marijn Suijten,
David Airlie, Simona Vetter, Bjorn Andersson, Michael Turquette,
Stephen Boyd, David Heidelberg, Taniya Das
Cc: linux-arm-msm, dri-devel, freedreno, linux-kernel, linux-clk,
phone-devel
On 1/7/2026 5:14 PM, Petr Hodina via B4 Relay wrote:
> From: Petr Hodina <petr.hodina@protonmail.com>
>
> Add CLK_OPS_PARENT_ENABLE to MDSS pixel clock sources to ensure parent
> clocks are enabled during clock operations, preventing potential
> stability issues during display configuration.
>
> Fixes: 81351776c9fb ("clk: qcom: Add display clock controller driver for SDM845")
> Signed-off-by: Petr Hodina <petr.hodina@protonmail.com>
> ---
> We are currently running the latest linux-next snapshots (next-202511*
> and next-202512*) and have encountered random freezes and crashes on the
> Pixel 3, as well as crash dumps on the OnePlus 6 and 6T.
>
Are there any changes between next-202511* and next-202512* on the
display PLL side which is causing a side effect on the pixel clock(pclk)?
> This commit fixes the stability issue. I've checked other SDM dispcc
> files and they also contain this configuration.
>
> For safety I also set the configuration for `disp_cc_mdss_pclk1_clk_src`
> though it should be sufficient only for `disp_cc_mdss_pclk0_clk_src`.
>
> Kind regards,
> Petr
> ---
> Changes in v2:
> - Remove commits from v1 and introduce proper fix.
> - Link to v1: https://lore.kernel.org/r/20251213-stability-discussion-v1-0-b25df8453526@ixit.cz
> ---
> drivers/clk/qcom/dispcc-sdm845.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/clk/qcom/dispcc-sdm845.c b/drivers/clk/qcom/dispcc-sdm845.c
> index 2f9e9665d7e9..78e43f6d7502 100644
> --- a/drivers/clk/qcom/dispcc-sdm845.c
> +++ b/drivers/clk/qcom/dispcc-sdm845.c
> @@ -280,7 +280,7 @@ static struct clk_rcg2 disp_cc_mdss_pclk0_clk_src = {
> .name = "disp_cc_mdss_pclk0_clk_src",
> .parent_data = disp_cc_parent_data_4,
> .num_parents = ARRAY_SIZE(disp_cc_parent_data_4),
> - .flags = CLK_SET_RATE_PARENT,
> + .flags = CLK_SET_RATE_PARENT | CLK_OPS_PARENT_ENABLE,
> .ops = &clk_pixel_ops,
> },
> };
> @@ -295,7 +295,7 @@ static struct clk_rcg2 disp_cc_mdss_pclk1_clk_src = {
> .name = "disp_cc_mdss_pclk1_clk_src",
> .parent_data = disp_cc_parent_data_4,
> .num_parents = ARRAY_SIZE(disp_cc_parent_data_4),
> - .flags = CLK_SET_RATE_PARENT,
> + .flags = CLK_SET_RATE_PARENT | CLK_OPS_PARENT_ENABLE,
> .ops = &clk_pixel_ops,
> },
> };
>
> ---
> base-commit: f96074c6d01d8a5e9e2fccd0bba5f2ed654c1f2d
> change-id: 20251212-stability-discussion-d16f6ac51209
>
> Best regards,
--
Thanks,
Taniya Das
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2] clk: qcom: dispcc-sdm845: Enable parents for pixel clocks
2026-01-07 11:44 [PATCH v2] clk: qcom: dispcc-sdm845: Enable parents for pixel clocks Petr Hodina via B4 Relay
` (2 preceding siblings ...)
2026-01-07 16:26 ` Taniya Das
@ 2026-01-07 18:38 ` Bjorn Andersson
2026-01-08 23:00 ` Val Packett
4 siblings, 0 replies; 7+ messages in thread
From: Bjorn Andersson @ 2026-01-07 18:38 UTC (permalink / raw)
To: Konrad Dybcio, Rob Clark, Dmitry Baryshkov, Abhinav Kumar,
Jessica Zhang, Sean Paul, Marijn Suijten, David Airlie,
Simona Vetter, Michael Turquette, Stephen Boyd, David Heidelberg,
Taniya Das, Petr Hodina
Cc: linux-arm-msm, dri-devel, freedreno, linux-kernel, linux-clk,
phone-devel
On Wed, 07 Jan 2026 12:44:43 +0100, Petr Hodina wrote:
> Add CLK_OPS_PARENT_ENABLE to MDSS pixel clock sources to ensure parent
> clocks are enabled during clock operations, preventing potential
> stability issues during display configuration.
>
>
Applied, thanks!
[1/1] clk: qcom: dispcc-sdm845: Enable parents for pixel clocks
commit: 17f1ae4148fa50f43b3afbd4fdd7b500928c9605
Best regards,
--
Bjorn Andersson <andersson@kernel.org>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2] clk: qcom: dispcc-sdm845: Enable parents for pixel clocks
2026-01-07 11:44 [PATCH v2] clk: qcom: dispcc-sdm845: Enable parents for pixel clocks Petr Hodina via B4 Relay
` (3 preceding siblings ...)
2026-01-07 18:38 ` Bjorn Andersson
@ 2026-01-08 23:00 ` Val Packett
2026-01-13 14:50 ` Konrad Dybcio
4 siblings, 1 reply; 7+ messages in thread
From: Val Packett @ 2026-01-08 23:00 UTC (permalink / raw)
To: petr.hodina, Konrad Dybcio, Rob Clark, Dmitry Baryshkov,
Abhinav Kumar, Jessica Zhang, Sean Paul, Marijn Suijten,
David Airlie, Simona Vetter, Bjorn Andersson, Michael Turquette,
Stephen Boyd, David Heidelberg, Taniya Das
Cc: linux-arm-msm, dri-devel, freedreno, linux-kernel, linux-clk,
phone-devel
On 1/7/26 8:44 AM, Petr Hodina via B4 Relay wrote:
> From: Petr Hodina <petr.hodina@protonmail.com>
>
> Add CLK_OPS_PARENT_ENABLE to MDSS pixel clock sources to ensure parent
> clocks are enabled during clock operations, preventing potential
> stability issues during display configuration.
>
> Fixes: 81351776c9fb ("clk: qcom: Add display clock controller driver for SDM845")
> Signed-off-by: Petr Hodina <petr.hodina@protonmail.com>
> ---
> We are currently running the latest linux-next snapshots (next-202511*
> and next-202512*) and have encountered random freezes and crashes on the
> Pixel 3, as well as crash dumps on the OnePlus 6 and 6T.
>
> This commit fixes the stability issue. I've checked other SDM dispcc
> files and they also contain this configuration.
Hm, we don't have this flag set in dispcc-x1e80100.c either!
The only random freeze we have on that platform seems related to PCIe
ASPM with NVMe drives, but during display configuration.. *extremely*
rarely, but the eDP display output can get stuck on a blue screen. Many
run with clk_ignore_unused for the early uefi framebuffer though.
~val
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2] clk: qcom: dispcc-sdm845: Enable parents for pixel clocks
2026-01-08 23:00 ` Val Packett
@ 2026-01-13 14:50 ` Konrad Dybcio
0 siblings, 0 replies; 7+ messages in thread
From: Konrad Dybcio @ 2026-01-13 14:50 UTC (permalink / raw)
To: Val Packett, petr.hodina, Rob Clark, Dmitry Baryshkov,
Abhinav Kumar, Jessica Zhang, Sean Paul, Marijn Suijten,
David Airlie, Simona Vetter, Bjorn Andersson, Michael Turquette,
Stephen Boyd, David Heidelberg, Taniya Das
Cc: linux-arm-msm, dri-devel, freedreno, linux-kernel, linux-clk,
phone-devel
On 1/9/26 12:00 AM, Val Packett wrote:
>
> On 1/7/26 8:44 AM, Petr Hodina via B4 Relay wrote:
>> From: Petr Hodina <petr.hodina@protonmail.com>
>>
>> Add CLK_OPS_PARENT_ENABLE to MDSS pixel clock sources to ensure parent
>> clocks are enabled during clock operations, preventing potential
>> stability issues during display configuration.
>>
>> Fixes: 81351776c9fb ("clk: qcom: Add display clock controller driver for SDM845")
>> Signed-off-by: Petr Hodina <petr.hodina@protonmail.com>
>> ---
>> We are currently running the latest linux-next snapshots (next-202511*
>> and next-202512*) and have encountered random freezes and crashes on the
>> Pixel 3, as well as crash dumps on the OnePlus 6 and 6T.
>>
>> This commit fixes the stability issue. I've checked other SDM dispcc
>> files and they also contain this configuration.
>
> Hm, we don't have this flag set in dispcc-x1e80100.c either!
>
> The only random freeze we have on that platform seems related to PCIe ASPM with NVMe drives, but during display configuration.. *extremely* rarely, but the eDP display output can get stuck on a blue screen. Many run with clk_ignore_unused for the early uefi framebuffer though.
Your device doesn't have a DSI-attached display
The Linux clock controller representation of the DSI PHY implements
an actually meaningful set of operations that (un)gate the clock
Both DP and eDP PHYs just provide funny fixed clocks to make the clock
tree resonable and filter allowed rates
Konrad
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2026-01-13 14:50 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-01-07 11:44 [PATCH v2] clk: qcom: dispcc-sdm845: Enable parents for pixel clocks Petr Hodina via B4 Relay
2026-01-07 11:52 ` David Heidelberg
2026-01-07 12:11 ` Dmitry Baryshkov
2026-01-07 16:26 ` Taniya Das
2026-01-07 18:38 ` Bjorn Andersson
2026-01-08 23:00 ` Val Packett
2026-01-13 14:50 ` Konrad Dybcio
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®