* [PATCH v6 1/3] dt-bindings: display: msm: mdss-common: describe additional block resets
2026-12-02 9:09 [PATCH v6 0/3] drm/msm/mdss: reset all block resets described in DT Qianhui Xu
@ 2026-12-02 9:09 ` Qianhui Xu
2026-12-02 9:22 ` sashiko-bot
2026-12-02 9:09 ` [PATCH v6 2/3] drm/msm/mdss: reset all block resets described in DT Qianhui Xu
2026-12-02 9:09 ` [PATCH v6 3/3] arm64: dts: qcom: sm8750: describe the second MDSS block reset Qianhui Xu
2 siblings, 1 reply; 6+ messages in thread
From: Qianhui Xu @ 2026-12-02 9:09 UTC (permalink / raw)
To: linux-arm-msm, dri-devel
Cc: devicetree, linux-kernel, Konrad Dybcio, Dmitry Baryshkov,
Abel Vesa, Bjorn Andersson
Some platforms provide more than one reset for the MDSS hardware block.
On SM8750 the display clock controller exposes a second one,
DISP_CC_MDSS_CORE_INT2_BCR, which belongs to the second MDSS core domain
that dispcc describes with its own GDSC (mdss_int2_gdsc) and its own
clock family (disp_cc_mdss_mdp1_clk, disp_cc_mdss_ahb1_clk, ...).
Allow the resets property to list one or two resets, keeping the MDSS
core reset as the first entry so that existing device trees describing
a single reset remain valid.
Signed-off-by: Qianhui Xu <xiaqinghuan@mail.ustc.edu.cn>
---
.../devicetree/bindings/display/msm/mdss-common.yaml | 4 +++-
.../devicetree/bindings/display/msm/qcom,sm8750-mdss.yaml | 3 ++-
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/Documentation/devicetree/bindings/display/msm/mdss-common.yaml b/Documentation/devicetree/bindings/display/msm/mdss-common.yaml
index c6305a6e03346..51ef4cc74e818 100644
--- a/Documentation/devicetree/bindings/display/msm/mdss-common.yaml
+++ b/Documentation/devicetree/bindings/display/msm/mdss-common.yaml
@@ -84,8 +84,10 @@ properties:
- const: cpu-cfg
resets:
+ minItems: 1
items:
- - description: MDSS_CORE reset
+ - description: MDSS core reset
+ - description: MDSS core INT2 interrupt controller reset
memory-region:
maxItems: 1
diff --git a/Documentation/devicetree/bindings/display/msm/qcom,sm8750-mdss.yaml b/Documentation/devicetree/bindings/display/msm/qcom,sm8750-mdss.yaml
index 46dc0d28da29a..729de45ec8622 100644
--- a/Documentation/devicetree/bindings/display/msm/qcom,sm8750-mdss.yaml
+++ b/Documentation/devicetree/bindings/display/msm/qcom,sm8750-mdss.yaml
@@ -101,7 +101,8 @@ examples:
interconnect-names = "mdp0-mem",
"cpu-cfg";
- resets = <&disp_cc_mdss_core_bcr>;
+ resets = <&disp_cc_mdss_core_bcr>,
+ <&disp_cc_mdss_core_int2_bcr>;
power-domains = <&mdss_gdsc>;
--
2.53.0
^ permalink raw reply related [flat|nested] 6+ messages in thread* Re: [PATCH v6 1/3] dt-bindings: display: msm: mdss-common: describe additional block resets
2026-12-02 9:09 ` [PATCH v6 1/3] dt-bindings: display: msm: mdss-common: describe additional block resets Qianhui Xu
@ 2026-12-02 9:22 ` sashiko-bot
0 siblings, 0 replies; 6+ messages in thread
From: sashiko-bot @ 2026-12-02 9:22 UTC (permalink / raw)
To: Qianhui Xu, dri-devel; +Cc: devicetree, robh, conor+dt
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] dt-bindings: display: msm: misdescribed MDSS_CORE_INT2 reset in
mdss-common
--
commit c267506a213b04f1a6f8cf4d3153a4fc5c38aee1
Author: Qianhui Xu <xiaqinghuan@mail.ustc.edu.cn>
dt-bindings: display: msm: mdss-common: describe additional block resets
This commit updates the MDSS common Device Tree binding to allow a second
reset entry for the MDSS_CORE_INT2 domain and adds the second reset to the
SM8750 MDSS example.
> diff --git a/Documentation/devicetree/bindings/display/msm/mdss-common.yaml b/Documentation/devicetree/bindings/display/msm/mdss-common.yaml
> index c6305a6e03346..51ef4cc74e818 100644
> --- a/Documentation/devicetree/bindings/display/msm/mdss-common.yaml
> +++ b/Documentation/devicetree/bindings/display/msm/mdss-common.yaml
> @@ -84,8 +84,10 @@ properties:
> - const: cpu-cfg
>
> resets:
> + minItems: 1
> items:
> - - description: MDSS_CORE reset
> + - description: MDSS core reset
> + - description: MDSS core INT2 interrupt controller reset
[Severity: Low]
Should the second reset item be described as the second MDSS core domain
reset rather than an interrupt controller reset?
As noted in the commit message and defined in
drivers/clk/qcom/dispcc-sm8750.c, DISP_CC_MDSS_CORE_INT2_BCR resets the
second internal MDSS core domain (paired with mdss_int2_gdsc and the
disp_cc_mdss_mdp1_clk / disp_cc_mdss_ahb1_clk clock branches), not an
interrupt controller.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261202090933.3989092-1-xiaqinghuan@mail.ustc.edu.cn?part=1
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH v6 2/3] drm/msm/mdss: reset all block resets described in DT
2026-12-02 9:09 [PATCH v6 0/3] drm/msm/mdss: reset all block resets described in DT Qianhui Xu
2026-12-02 9:09 ` [PATCH v6 1/3] dt-bindings: display: msm: mdss-common: describe additional block resets Qianhui Xu
@ 2026-12-02 9:09 ` Qianhui Xu
2026-12-02 9:09 ` [PATCH v6 3/3] arm64: dts: qcom: sm8750: describe the second MDSS block reset Qianhui Xu
2 siblings, 0 replies; 6+ messages in thread
From: Qianhui Xu @ 2026-12-02 9:09 UTC (permalink / raw)
To: linux-arm-msm, dri-devel
Cc: devicetree, linux-kernel, Konrad Dybcio, Dmitry Baryshkov,
Abel Vesa, Bjorn Andersson
msm_mdss_reset() acquires only the first reset listed in the MDSS
device node. Platforms can describe more than one MDSS block reset: on
SM8750 the second one, DISP_CC_MDSS_CORE_INT2_BCR, belongs to the second
MDSS core domain that dispcc describes with its own GDSC
(mdss_int2_gdsc) and its own clock family (disp_cc_mdss_mdp1_clk,
disp_cc_mdss_ahb1_clk, ...), and it is left out of reset when the
bootloader hands over with the display block still running.
Switch to the reset control array API so that every reset listed in the
device node is asserted and released as one group. Devices without a
reset in DT are unaffected, and for devices describing a single reset
the assert/deassert sequence is unchanged.
Signed-off-by: Qianhui Xu <xiaqinghuan@mail.ustc.edu.cn>
---
drivers/gpu/drm/msm/msm_mdss.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/msm/msm_mdss.c b/drivers/gpu/drm/msm/msm_mdss.c
index 9087c4b290dba..84b8b4bc9b119 100644
--- a/drivers/gpu/drm/msm/msm_mdss.c
+++ b/drivers/gpu/drm/msm/msm_mdss.c
@@ -310,7 +310,8 @@ static int msm_mdss_reset(struct device *dev)
{
struct reset_control *reset;
- reset = reset_control_get_optional_exclusive(dev, NULL);
+ reset = devm_reset_control_array_get(dev,
+ RESET_CONTROL_OPTIONAL_EXCLUSIVE);
if (!reset) {
/* Optional reset not specified */
return 0;
@@ -327,8 +328,6 @@ static int msm_mdss_reset(struct device *dev)
msleep(20);
reset_control_deassert(reset);
- reset_control_put(reset);
-
return 0;
}
--
2.53.0
^ permalink raw reply related [flat|nested] 6+ messages in thread* [PATCH v6 3/3] arm64: dts: qcom: sm8750: describe the second MDSS block reset
2026-12-02 9:09 [PATCH v6 0/3] drm/msm/mdss: reset all block resets described in DT Qianhui Xu
2026-12-02 9:09 ` [PATCH v6 1/3] dt-bindings: display: msm: mdss-common: describe additional block resets Qianhui Xu
2026-12-02 9:09 ` [PATCH v6 2/3] drm/msm/mdss: reset all block resets described in DT Qianhui Xu
@ 2026-12-02 9:09 ` Qianhui Xu
2026-12-02 9:15 ` sashiko-bot
2 siblings, 1 reply; 6+ messages in thread
From: Qianhui Xu @ 2026-12-02 9:09 UTC (permalink / raw)
To: linux-arm-msm, dri-devel
Cc: devicetree, linux-kernel, Konrad Dybcio, Dmitry Baryshkov,
Abel Vesa, Bjorn Andersson
The SM8750 display clock controller provides two block resets for the
MDSS core area: DISP_CC_MDSS_CORE_BCR and DISP_CC_MDSS_CORE_INT2_BCR,
at 0x8000 and 0xa000. The second one belongs to a domain that dispcc
describes with its own GDSC (mdss_int2_gdsc) and its own clock family
(disp_cc_mdss_mdp1_clk, disp_cc_mdss_ahb1_clk, ...).
Bootloaders hand over with the display hardware still running, so the
MDSS reset should return the whole group to a known state before any
display hardware is programmed. Describe both resets so that the
array-API change in the previous patch asserts and releases the group
together.
On this board, resetting only DISP_CC_MDSS_CORE_BCR leaves the display
intermittently broken at cold boot (command DMA timeouts followed by a
panel init failure, 5 of 9 cold PORs), while asserting the group gave
15 clean boots out of 15. That measurement used the three-reset shape
that also included RSCC; it has not been repeated for this two-reset
shape, and the second reset has not been isolated as a single variable.
What is observable is that resetting the group correlates with a working
display at cold boot.
Reviewed-by: Abel Vesa <abel.vesa@oss.qualcomm.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Signed-off-by: Qianhui Xu <xiaqinghuan@mail.ustc.edu.cn>
---
arch/arm64/boot/dts/qcom/sm8750.dtsi | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/qcom/sm8750.dtsi b/arch/arm64/boot/dts/qcom/sm8750.dtsi
index dd738d13df..e8e2832f91 100644
--- a/arch/arm64/boot/dts/qcom/sm8750.dtsi
+++ b/arch/arm64/boot/dts/qcom/sm8750.dtsi
@@ -3071,7 +3071,8 @@ mdss: display-subsystem@ae00000 {
<&gcc GCC_DISP_HF_AXI_CLK>,
<&dispcc DISP_CC_MDSS_MDP_CLK>;
- resets = <&dispcc DISP_CC_MDSS_CORE_BCR>;
+ resets = <&dispcc DISP_CC_MDSS_CORE_BCR>,
+ <&dispcc DISP_CC_MDSS_CORE_INT2_BCR>;
interconnects = <&mmss_noc MASTER_MDP QCOM_ICC_TAG_ALWAYS
&mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>,
--
2.53.0
^ permalink raw reply related [flat|nested] 6+ messages in thread* Re: [PATCH v6 3/3] arm64: dts: qcom: sm8750: describe the second MDSS block reset
2026-12-02 9:09 ` [PATCH v6 3/3] arm64: dts: qcom: sm8750: describe the second MDSS block reset Qianhui Xu
@ 2026-12-02 9:15 ` sashiko-bot
0 siblings, 0 replies; 6+ messages in thread
From: sashiko-bot @ 2026-12-02 9:15 UTC (permalink / raw)
To: Qianhui Xu, dri-devel; +Cc: devicetree, robh, conor+dt
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] arm64: dts: qcom: sm8750: unattached INT2 domain reset on
mdss
--
commit e0caa1c51535fff8fee3740ec6b317a62be81c40
Author: Qianhui Xu <xiaqinghuan@mail.ustc.edu.cn>
arm64: dts: qcom: sm8750: describe the second MDSS block reset
This commit adds DISP_CC_MDSS_CORE_INT2_BCR as a second reset entry on the
SM8750 mdss node.
> diff --git a/arch/arm64/boot/dts/qcom/sm8750.dtsi b/arch/arm64/boot/dts/qcom/sm8750.dtsi
> index cf947acc57602..0f3e649787315 100644
> --- a/arch/arm64/boot/dts/qcom/sm8750.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sm8750.dtsi
> @@ -3359,7 +3359,8 @@ mdss: display-subsystem@ae00000 {
> <&gcc GCC_DISP_HF_AXI_CLK>,
> <&dispcc DISP_CC_MDSS_MDP_CLK>;
>
> - resets = <&dispcc DISP_CC_MDSS_CORE_BCR>;
> + resets = <&dispcc DISP_CC_MDSS_CORE_BCR>,
> + <&dispcc DISP_CC_MDSS_CORE_INT2_BCR>;
[Severity: Medium]
Should the mdss node assert DISP_CC_MDSS_CORE_INT2_BCR when neither mdss
nor mdss_mdp attaches MDSS_INT2_GDSC or any of the secondary *1_clk
branches?
In drivers/clk/qcom/dispcc-sm8750.c, DISP_CC_MDSS_CORE_INT2_BCR at 0xa000
is the block reset for the secondary 0xa000..0xb000 MDSS_CORE_INT2 clock
and power domain (governed by MDSS_INT2_GDSC at 0xb000 and
disp_cc_mdss_mdp1_clk, disp_cc_mdss_mdp_lut1_clk, disp_cc_mdss_vsync1_clk,
and disp_cc_mdss_ahb1_clk), while mdss only attaches MDSS_GDSC and the
primary 0x8000..0x9000 clocks. During mdss_probe() -> msm_mdss_init() ->
msm_mdss_reset(), this asserts and deasserts the reset of a separate,
unattached power and clock domain.
In addition, commit "dt-bindings: display: msm: mdss-common: describe
additional block resets" in this series documents the second reset entry in
Documentation/devicetree/bindings/display/msm/mdss-common.yaml as "MDSS
core INT2 interrupt controller reset", which contradicts the domain
description in this commit message.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261202090933.3989092-1-xiaqinghuan@mail.ustc.edu.cn?part=3
^ permalink raw reply [flat|nested] 6+ messages in thread