devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arm64: dts: qcom: sc8280xp: make dispcc cast minimal vote on MMCX
@ 2024-02-26 21:11 Dmitry Baryshkov
  2024-02-26 21:52 ` Konrad Dybcio
  2024-02-27  1:51 ` Bjorn Andersson
  0 siblings, 2 replies; 4+ messages in thread
From: Dmitry Baryshkov @ 2024-02-26 21:11 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley
  Cc: linux-arm-msm, devicetree, Johan Hovold

Add required-opps property to the display clock controller. This makes
it cast minimal vote on the MMCX lane to prevents resets caused by the
DisplayPort / panel probing.

Fixes: 57d6ef683a15 ("arm64: dts: qcom: sc8280xp: Define some of the display blocks")
Cc: Johan Hovold <johan+linaro@kernel.org>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
---
 arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi
index febf28356ff8..ec85c81f65cd 100644
--- a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi
+++ b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi
@@ -3938,6 +3938,7 @@ dispcc0: clock-controller@af00000 {
 				 <0>,
 				 <0>;
 			power-domains = <&rpmhpd SC8280XP_MMCX>;
+			required-opps = <&rpmhpd_opp_low_svs>;
 
 			#clock-cells = <1>;
 			#power-domain-cells = <1>;
@@ -5034,6 +5035,7 @@ dispcc1: clock-controller@22100000 {
 				 <0>,
 				 <0>;
 			power-domains = <&rpmhpd SC8280XP_MMCX>;
+			required-opps = <&rpmhpd_opp_low_svs>;
 
 			#clock-cells = <1>;
 			#power-domain-cells = <1>;
-- 
2.39.2


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] arm64: dts: qcom: sc8280xp: make dispcc cast minimal vote on MMCX
  2024-02-26 21:11 [PATCH] arm64: dts: qcom: sc8280xp: make dispcc cast minimal vote on MMCX Dmitry Baryshkov
@ 2024-02-26 21:52 ` Konrad Dybcio
  2024-02-27  1:51 ` Bjorn Andersson
  1 sibling, 0 replies; 4+ messages in thread
From: Konrad Dybcio @ 2024-02-26 21:52 UTC (permalink / raw)
  To: Dmitry Baryshkov, Bjorn Andersson, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley
  Cc: linux-arm-msm, devicetree, Johan Hovold



On 2/26/24 22:11, Dmitry Baryshkov wrote:
> Add required-opps property to the display clock controller. This makes
> it cast minimal vote on the MMCX lane to prevents resets caused by the
> DisplayPort / panel probing.
> 
> Fixes: 57d6ef683a15 ("arm64: dts: qcom: sc8280xp: Define some of the display blocks")
> Cc: Johan Hovold <johan+linaro@kernel.org>
> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
> ---

Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>

Konrad

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] arm64: dts: qcom: sc8280xp: make dispcc cast minimal vote on MMCX
  2024-02-26 21:11 [PATCH] arm64: dts: qcom: sc8280xp: make dispcc cast minimal vote on MMCX Dmitry Baryshkov
  2024-02-26 21:52 ` Konrad Dybcio
@ 2024-02-27  1:51 ` Bjorn Andersson
  2024-02-27  9:55   ` Johan Hovold
  1 sibling, 1 reply; 4+ messages in thread
From: Bjorn Andersson @ 2024-02-27  1:51 UTC (permalink / raw)
  To: Dmitry Baryshkov
  Cc: Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	linux-arm-msm, devicetree, Johan Hovold

On Mon, Feb 26, 2024 at 11:11:23PM +0200, Dmitry Baryshkov wrote:
> Add required-opps property to the display clock controller. This makes
> it cast minimal vote on the MMCX lane to prevents resets caused by the
> DisplayPort / panel probing.
> 

Interesting wording, this is exactly what e3e56c050ab6 ("soc: qcom:
rpmhpd: Make power_on actually enable the domain") was supposed to do
(cast minimal enabled vote).

And sure enough, there's a bug in my patch:
https://lore.kernel.org/linux-arm-msm/20240226-rpmhpd-enable-corner-fix-v1-1-68c004cec48c@quicinc.com/T/#u

Regards,
Bjorn

> Fixes: 57d6ef683a15 ("arm64: dts: qcom: sc8280xp: Define some of the display blocks")
> Cc: Johan Hovold <johan+linaro@kernel.org>
> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
> ---
>  arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi
> index febf28356ff8..ec85c81f65cd 100644
> --- a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi
> @@ -3938,6 +3938,7 @@ dispcc0: clock-controller@af00000 {
>  				 <0>,
>  				 <0>;
>  			power-domains = <&rpmhpd SC8280XP_MMCX>;
> +			required-opps = <&rpmhpd_opp_low_svs>;
>  
>  			#clock-cells = <1>;
>  			#power-domain-cells = <1>;
> @@ -5034,6 +5035,7 @@ dispcc1: clock-controller@22100000 {
>  				 <0>,
>  				 <0>;
>  			power-domains = <&rpmhpd SC8280XP_MMCX>;
> +			required-opps = <&rpmhpd_opp_low_svs>;
>  
>  			#clock-cells = <1>;
>  			#power-domain-cells = <1>;
> -- 
> 2.39.2
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] arm64: dts: qcom: sc8280xp: make dispcc cast minimal vote on MMCX
  2024-02-27  1:51 ` Bjorn Andersson
@ 2024-02-27  9:55   ` Johan Hovold
  0 siblings, 0 replies; 4+ messages in thread
From: Johan Hovold @ 2024-02-27  9:55 UTC (permalink / raw)
  To: Bjorn Andersson
  Cc: Dmitry Baryshkov, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, linux-arm-msm, devicetree, Johan Hovold

On Mon, Feb 26, 2024 at 07:51:05PM -0600, Bjorn Andersson wrote:
> On Mon, Feb 26, 2024 at 11:11:23PM +0200, Dmitry Baryshkov wrote:
> > Add required-opps property to the display clock controller. This makes
> > it cast minimal vote on the MMCX lane to prevents resets caused by the
> > DisplayPort / panel probing.
> > 
> 
> Interesting wording, this is exactly what e3e56c050ab6 ("soc: qcom:
> rpmhpd: Make power_on actually enable the domain") was supposed to do
> (cast minimal enabled vote).
> 
> And sure enough, there's a bug in my patch:
> https://lore.kernel.org/linux-arm-msm/20240226-rpmhpd-enable-corner-fix-v1-1-68c004cec48c@quicinc.com/T/#u

I've confirmed that Bjorn's patch fixes the hard resets I've seen at
boot.

I assume this patch should be discarded (and eventually also all the
related DT workarounds we have for this).

Johan

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-02-27  9:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-26 21:11 [PATCH] arm64: dts: qcom: sc8280xp: make dispcc cast minimal vote on MMCX Dmitry Baryshkov
2024-02-26 21:52 ` Konrad Dybcio
2024-02-27  1:51 ` Bjorn Andersson
2024-02-27  9:55   ` Johan Hovold

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).