* [PATCH v7 0/2] arm64: dts: qcom: fix power domain handling on SM8250
@ 2026-06-04 16:22 Dmitry Baryshkov
2026-06-04 16:22 ` [PATCH v7 1/2] arm64: dts: qcom: sm8250: sort out Iris power domains Dmitry Baryshkov
2026-06-04 16:22 ` [PATCH v7 2/2] arm64: dts: qcom: sm8250: correct frequencies in the Iris OPP table Dmitry Baryshkov
0 siblings, 2 replies; 11+ messages in thread
From: Dmitry Baryshkov @ 2026-06-04 16:22 UTC (permalink / raw)
To: Bjorn Andersson, Michael Turquette, Stephen Boyd, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Taniya Das, Jonathan Marek,
Rafael J. Wysocki, Bryan O'Donoghue, Vikash Garodia,
Dikshita Agarwal, Mauro Carvalho Chehab, Stanimir Varbanov,
Abhinav Kumar, Hans Verkuil, Stefan Schmidt, Konrad Dybcio,
Bryan O'Donoghue, Dikshita Agarwal, Ulf Hansson
Cc: linux-arm-msm, linux-clk, devicetree, linux-kernel, linux-pm,
linux-media, Mauro Carvalho Chehab, Konrad Dybcio
As pointed out by Konrad during the review of SM8350 / SC8280XP
patchset, Iris aka Venus description has several flows. It doesn't scale
MMCX, the frequencies in the OPP table are wrong, etc.
Let's correct the Iris/Venus enablement for SM8250 (unfortunately also
stopping it from being overclocked).
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
---
Changes in v7:
- Revert back to the levels in v5, they were correct
- Link to v6: https://patch.msgid.link/20260512-iris-venus-fix-sm8250-v6-0-51856dbef83c@oss.qualcomm.com
Changes in v6:
- Dropped patces, applied to media tree
- Corrected levels for MX rail. Dropped the review tags from the patch
to enforce the review of MX levels.
- Link to v5: https://lore.kernel.org/r/20260209-iris-venus-fix-sm8250-v5-0-0a22365d3585@oss.qualcomm.com
Changes in v5:
- Fixed maxItemx -> maxItems typo
- Link to v4: https://lore.kernel.org/r/20260209-iris-venus-fix-sm8250-v4-0-9662a0471d82@oss.qualcomm.com
Changes in v4:
- Dropped MX voting by videocc: it's almost-always-on (Krzysztof)
- Restored minItems for the venus device, preserving the ABI (Krzysztof)
- Link to v3: https://lore.kernel.org/r/20260204-iris-venus-fix-sm8250-v3-0-70fa68e57f96@oss.qualcomm.com
Changes in v3:
- Dropped applied patch
- Fixed typos in the commit messages (Dikshita, Konrad)
- Corrected MX OPP levels (Dikshita)
- Switched Konrad from Suggested-by to Reported-by (Konrad)
- Link to v2: https://lore.kernel.org/r/20260201-iris-venus-fix-sm8250-v2-0-6f40d2605c89@oss.qualcomm.com
Changes in v2:
- Fixed example in the new sm8250-videocc schema
- Link to v1: https://lore.kernel.org/r/20260131-iris-venus-fix-sm8250-v1-0-b635ee66284c@oss.qualcomm.com
---
Dmitry Baryshkov (2):
arm64: dts: qcom: sm8250: sort out Iris power domains
arm64: dts: qcom: sm8250: correct frequencies in the Iris OPP table
arch/arm64/boot/dts/qcom/sm8250.dtsi | 36 ++++++++++++++++++++++--------------
1 file changed, 22 insertions(+), 14 deletions(-)
---
base-commit: 7da7f07112610a520567421dd2ffcb51beaefbcc
change-id: 20260131-iris-venus-fix-sm8250-f938e29e7497
Best regards,
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 11+ messages in thread* [PATCH v7 1/2] arm64: dts: qcom: sm8250: sort out Iris power domains 2026-06-04 16:22 [PATCH v7 0/2] arm64: dts: qcom: fix power domain handling on SM8250 Dmitry Baryshkov @ 2026-06-04 16:22 ` Dmitry Baryshkov 2026-06-09 6:00 ` Vishnu Reddy 2026-06-10 12:24 ` Konrad Dybcio 2026-06-04 16:22 ` [PATCH v7 2/2] arm64: dts: qcom: sm8250: correct frequencies in the Iris OPP table Dmitry Baryshkov 1 sibling, 2 replies; 11+ messages in thread From: Dmitry Baryshkov @ 2026-06-04 16:22 UTC (permalink / raw) To: Bjorn Andersson, Michael Turquette, Stephen Boyd, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Taniya Das, Jonathan Marek, Rafael J. Wysocki, Bryan O'Donoghue, Vikash Garodia, Dikshita Agarwal, Mauro Carvalho Chehab, Stanimir Varbanov, Abhinav Kumar, Hans Verkuil, Stefan Schmidt, Konrad Dybcio, Bryan O'Donoghue, Dikshita Agarwal, Ulf Hansson Cc: linux-arm-msm, linux-clk, devicetree, linux-kernel, linux-pm, linux-media, Mauro Carvalho Chehab, Konrad Dybcio On SM8250 Iris core requires two power rails to function, MX (for PLLs) and MMCX (for everything else). The commit fa245b3f06cd ("arm64: dts: qcom: sm8250: Add venus DT node") added only MX power rail, but omitted MMCX voltage levels. Add MMCX domain to the Iris device node. Fixes: fa245b3f06cd ("arm64: dts: qcom: sm8250: Add venus DT node") Reported-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index 7076720413ab..6150380795b8 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -4326,8 +4326,12 @@ venus: video-codec@aa00000 { interrupts = <GIC_SPI 174 IRQ_TYPE_LEVEL_HIGH>; power-domains = <&videocc MVS0C_GDSC>, <&videocc MVS0_GDSC>, - <&rpmhpd RPMHPD_MX>; - power-domain-names = "venus", "vcodec0", "mx"; + <&rpmhpd RPMHPD_MX>, + <&rpmhpd RPMHPD_MMCX>; + power-domain-names = "venus", + "vcodec0", + "mx", + "mmcx"; operating-points-v2 = <&venus_opp_table>; clocks = <&gcc GCC_VIDEO_AXI0_CLK>, @@ -4353,22 +4357,26 @@ venus_opp_table: opp-table { opp-720000000 { opp-hz = /bits/ 64 <720000000>; - required-opps = <&rpmhpd_opp_low_svs>; + required-opps = <&rpmhpd_opp_svs>, + <&rpmhpd_opp_low_svs>; }; opp-1014000000 { opp-hz = /bits/ 64 <1014000000>; - required-opps = <&rpmhpd_opp_svs>; + required-opps = <&rpmhpd_opp_svs>, + <&rpmhpd_opp_svs>; }; opp-1098000000 { opp-hz = /bits/ 64 <1098000000>; - required-opps = <&rpmhpd_opp_svs_l1>; + required-opps = <&rpmhpd_opp_svs_l1>, + <&rpmhpd_opp_svs_l1>; }; opp-1332000000 { opp-hz = /bits/ 64 <1332000000>; - required-opps = <&rpmhpd_opp_nom>; + required-opps = <&rpmhpd_opp_svs_l1>, + <&rpmhpd_opp_nom>; }; }; }; -- 2.47.3 ^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [PATCH v7 1/2] arm64: dts: qcom: sm8250: sort out Iris power domains 2026-06-04 16:22 ` [PATCH v7 1/2] arm64: dts: qcom: sm8250: sort out Iris power domains Dmitry Baryshkov @ 2026-06-09 6:00 ` Vishnu Reddy 2026-06-10 12:20 ` Konrad Dybcio 2026-06-10 12:24 ` Konrad Dybcio 1 sibling, 1 reply; 11+ messages in thread From: Vishnu Reddy @ 2026-06-09 6:00 UTC (permalink / raw) To: Dmitry Baryshkov, Bjorn Andersson, Michael Turquette, Stephen Boyd, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Taniya Das, Jonathan Marek, Rafael J. Wysocki, Bryan O'Donoghue, Vikash Garodia, Dikshita Agarwal, Mauro Carvalho Chehab, Stanimir Varbanov, Abhinav Kumar, Hans Verkuil, Stefan Schmidt, Konrad Dybcio, Bryan O'Donoghue, Dikshita Agarwal, Ulf Hansson Cc: linux-arm-msm, linux-clk, devicetree, linux-kernel, linux-pm, linux-media, Mauro Carvalho Chehab, Konrad Dybcio On 6/4/2026 9:52 PM, Dmitry Baryshkov wrote: > On SM8250 Iris core requires two power rails to function, MX (for PLLs) > and MMCX (for everything else). The commit fa245b3f06cd ("arm64: dts: > qcom: sm8250: Add venus DT node") added only MX power rail, but omitted > MMCX voltage levels. > > Add MMCX domain to the Iris device node. > > Fixes: fa245b3f06cd ("arm64: dts: qcom: sm8250: Add venus DT node") > Reported-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> > Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> > --- > arch/arm64/boot/dts/qcom/sm8250.dtsi | 20 ++++++++++++++------ > 1 file changed, 14 insertions(+), 6 deletions(-) > > diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi > index 7076720413ab..6150380795b8 100644 > --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi > +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi > @@ -4326,8 +4326,12 @@ venus: video-codec@aa00000 { > interrupts = <GIC_SPI 174 IRQ_TYPE_LEVEL_HIGH>; > power-domains = <&videocc MVS0C_GDSC>, > <&videocc MVS0_GDSC>, > - <&rpmhpd RPMHPD_MX>; > - power-domain-names = "venus", "vcodec0", "mx"; > + <&rpmhpd RPMHPD_MX>, > + <&rpmhpd RPMHPD_MMCX>; > + power-domain-names = "venus", > + "vcodec0", > + "mx", > + "mmcx"; With this change in place, the backwards compatibility for the incomplete SM8250 ABI which was merged from v5 in this series, which handles the return value of devm_pm_domain_attach_list(), will never be hit right? If so, we can remove that piece of code from the driver. https://lore.kernel.org/all/20260209-iris-venus-fix-sm8250-v5-2-0a22365d3585@oss.qualcomm.com/ > operating-points-v2 = <&venus_opp_table>; > > clocks = <&gcc GCC_VIDEO_AXI0_CLK>, > @@ -4353,22 +4357,26 @@ venus_opp_table: opp-table { > > opp-720000000 { > opp-hz = /bits/ 64 <720000000>; > - required-opps = <&rpmhpd_opp_low_svs>; > + required-opps = <&rpmhpd_opp_svs>, > + <&rpmhpd_opp_low_svs>; > }; > > opp-1014000000 { > opp-hz = /bits/ 64 <1014000000>; > - required-opps = <&rpmhpd_opp_svs>; > + required-opps = <&rpmhpd_opp_svs>, > + <&rpmhpd_opp_svs>; > }; > > opp-1098000000 { > opp-hz = /bits/ 64 <1098000000>; > - required-opps = <&rpmhpd_opp_svs_l1>; > + required-opps = <&rpmhpd_opp_svs_l1>, > + <&rpmhpd_opp_svs_l1>; > }; > > opp-1332000000 { > opp-hz = /bits/ 64 <1332000000>; > - required-opps = <&rpmhpd_opp_nom>; > + required-opps = <&rpmhpd_opp_svs_l1>, > + <&rpmhpd_opp_nom>; > }; > }; > }; > ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH v7 1/2] arm64: dts: qcom: sm8250: sort out Iris power domains 2026-06-09 6:00 ` Vishnu Reddy @ 2026-06-10 12:20 ` Konrad Dybcio 0 siblings, 0 replies; 11+ messages in thread From: Konrad Dybcio @ 2026-06-10 12:20 UTC (permalink / raw) To: Vishnu Reddy, Dmitry Baryshkov, Bjorn Andersson, Michael Turquette, Stephen Boyd, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Taniya Das, Jonathan Marek, Rafael J. Wysocki, Bryan O'Donoghue, Vikash Garodia, Dikshita Agarwal, Mauro Carvalho Chehab, Stanimir Varbanov, Abhinav Kumar, Hans Verkuil, Stefan Schmidt, Konrad Dybcio, Bryan O'Donoghue, Dikshita Agarwal, Ulf Hansson Cc: linux-arm-msm, linux-clk, devicetree, linux-kernel, linux-pm, linux-media, Mauro Carvalho Chehab On 6/9/26 8:00 AM, Vishnu Reddy wrote: > > On 6/4/2026 9:52 PM, Dmitry Baryshkov wrote: >> On SM8250 Iris core requires two power rails to function, MX (for PLLs) >> and MMCX (for everything else). The commit fa245b3f06cd ("arm64: dts: >> qcom: sm8250: Add venus DT node") added only MX power rail, but omitted >> MMCX voltage levels. >> >> Add MMCX domain to the Iris device node. >> >> Fixes: fa245b3f06cd ("arm64: dts: qcom: sm8250: Add venus DT node") >> Reported-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> >> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> >> --- >> arch/arm64/boot/dts/qcom/sm8250.dtsi | 20 ++++++++++++++------ >> 1 file changed, 14 insertions(+), 6 deletions(-) >> >> diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi >> index 7076720413ab..6150380795b8 100644 >> --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi >> +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi >> @@ -4326,8 +4326,12 @@ venus: video-codec@aa00000 { >> interrupts = <GIC_SPI 174 IRQ_TYPE_LEVEL_HIGH>; >> power-domains = <&videocc MVS0C_GDSC>, >> <&videocc MVS0_GDSC>, >> - <&rpmhpd RPMHPD_MX>; >> - power-domain-names = "venus", "vcodec0", "mx"; >> + <&rpmhpd RPMHPD_MX>, >> + <&rpmhpd RPMHPD_MMCX>; >> + power-domain-names = "venus", >> + "vcodec0", >> + "mx", >> + "mmcx"; > > With this change in place, the backwards compatibility for the incomplete > SM8250 ABI which was merged from v5 in this series, which handles the return > value of devm_pm_domain_attach_list(), will never be hit right? If so, we can > remove that piece of code from the driver. The point of backwards compatibility is that we can never assume that the user has updated the DT (because e.g. it may be embedded in the bootloader) Konrad ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH v7 1/2] arm64: dts: qcom: sm8250: sort out Iris power domains 2026-06-04 16:22 ` [PATCH v7 1/2] arm64: dts: qcom: sm8250: sort out Iris power domains Dmitry Baryshkov 2026-06-09 6:00 ` Vishnu Reddy @ 2026-06-10 12:24 ` Konrad Dybcio 2026-06-10 13:34 ` Dmitry Baryshkov 1 sibling, 1 reply; 11+ messages in thread From: Konrad Dybcio @ 2026-06-10 12:24 UTC (permalink / raw) To: Dmitry Baryshkov, Bjorn Andersson, Michael Turquette, Stephen Boyd, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Taniya Das, Jonathan Marek, Rafael J. Wysocki, Bryan O'Donoghue, Vikash Garodia, Dikshita Agarwal, Mauro Carvalho Chehab, Stanimir Varbanov, Abhinav Kumar, Hans Verkuil, Stefan Schmidt, Konrad Dybcio, Bryan O'Donoghue, Dikshita Agarwal, Ulf Hansson Cc: linux-arm-msm, linux-clk, devicetree, linux-kernel, linux-pm, linux-media, Mauro Carvalho Chehab On 6/4/26 6:22 PM, Dmitry Baryshkov wrote: > On SM8250 Iris core requires two power rails to function, MX (for PLLs) > and MMCX (for everything else). The commit fa245b3f06cd ("arm64: dts: > qcom: sm8250: Add venus DT node") added only MX power rail, but omitted > MMCX voltage levels. > > Add MMCX domain to the Iris device node. > > Fixes: fa245b3f06cd ("arm64: dts: qcom: sm8250: Add venus DT node") > Reported-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> > Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> > --- [...] > opp-720000000 { > opp-hz = /bits/ 64 <720000000>; > - required-opps = <&rpmhpd_opp_low_svs>; > + required-opps = <&rpmhpd_opp_svs>, > + <&rpmhpd_opp_low_svs>; So the computer tells me low_svs would be enough for PLL0 to generate 720MHz Is there some transient dependency that bumps this to svs? Your changelog mentions you altered this in v6, but I don't see any related discussion Konrad ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH v7 1/2] arm64: dts: qcom: sm8250: sort out Iris power domains 2026-06-10 12:24 ` Konrad Dybcio @ 2026-06-10 13:34 ` Dmitry Baryshkov 2026-06-10 13:52 ` Konrad Dybcio 0 siblings, 1 reply; 11+ messages in thread From: Dmitry Baryshkov @ 2026-06-10 13:34 UTC (permalink / raw) To: Konrad Dybcio Cc: Bjorn Andersson, Michael Turquette, Stephen Boyd, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Taniya Das, Jonathan Marek, Rafael J. Wysocki, Bryan O'Donoghue, Vikash Garodia, Dikshita Agarwal, Mauro Carvalho Chehab, Stanimir Varbanov, Abhinav Kumar, Hans Verkuil, Stefan Schmidt, Konrad Dybcio, Bryan O'Donoghue, Dikshita Agarwal, Ulf Hansson, linux-arm-msm, linux-clk, devicetree, linux-kernel, linux-pm, linux-media, Mauro Carvalho Chehab On Wed, Jun 10, 2026 at 02:24:24PM +0200, Konrad Dybcio wrote: > On 6/4/26 6:22 PM, Dmitry Baryshkov wrote: > > On SM8250 Iris core requires two power rails to function, MX (for PLLs) > > and MMCX (for everything else). The commit fa245b3f06cd ("arm64: dts: > > qcom: sm8250: Add venus DT node") added only MX power rail, but omitted > > MMCX voltage levels. > > > > Add MMCX domain to the Iris device node. > > > > Fixes: fa245b3f06cd ("arm64: dts: qcom: sm8250: Add venus DT node") > > Reported-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> > > Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> > > --- > > [...] > > > opp-720000000 { > > opp-hz = /bits/ 64 <720000000>; > > - required-opps = <&rpmhpd_opp_low_svs>; > > + required-opps = <&rpmhpd_opp_svs>, > > + <&rpmhpd_opp_low_svs>; > > So the computer tells me low_svs would be enough for PLL0 to generate 720MHz > > Is there some transient dependency that bumps this to svs? > > Your changelog mentions you altered this in v6, but I don't see any related > discussion There are two sources of information. The "clocks plan" and the "pll info". For some reason, the clock plan doesn't reflect actual PLL requirements. See the info on the corresponding PLL type. -- With best wishes Dmitry ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH v7 1/2] arm64: dts: qcom: sm8250: sort out Iris power domains 2026-06-10 13:34 ` Dmitry Baryshkov @ 2026-06-10 13:52 ` Konrad Dybcio 2026-06-12 7:55 ` Dmitry Baryshkov 0 siblings, 1 reply; 11+ messages in thread From: Konrad Dybcio @ 2026-06-10 13:52 UTC (permalink / raw) To: Dmitry Baryshkov Cc: Bjorn Andersson, Michael Turquette, Stephen Boyd, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Taniya Das, Jonathan Marek, Rafael J. Wysocki, Bryan O'Donoghue, Vikash Garodia, Dikshita Agarwal, Mauro Carvalho Chehab, Stanimir Varbanov, Abhinav Kumar, Hans Verkuil, Stefan Schmidt, Konrad Dybcio, Bryan O'Donoghue, Dikshita Agarwal, Ulf Hansson, linux-arm-msm, linux-clk, devicetree, linux-kernel, linux-pm, linux-media, Mauro Carvalho Chehab On 6/10/26 3:34 PM, Dmitry Baryshkov wrote: > On Wed, Jun 10, 2026 at 02:24:24PM +0200, Konrad Dybcio wrote: >> On 6/4/26 6:22 PM, Dmitry Baryshkov wrote: >>> On SM8250 Iris core requires two power rails to function, MX (for PLLs) >>> and MMCX (for everything else). The commit fa245b3f06cd ("arm64: dts: >>> qcom: sm8250: Add venus DT node") added only MX power rail, but omitted >>> MMCX voltage levels. >>> >>> Add MMCX domain to the Iris device node. >>> >>> Fixes: fa245b3f06cd ("arm64: dts: qcom: sm8250: Add venus DT node") >>> Reported-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> >>> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> >>> --- >> >> [...] >> >>> opp-720000000 { >>> opp-hz = /bits/ 64 <720000000>; >>> - required-opps = <&rpmhpd_opp_low_svs>; >>> + required-opps = <&rpmhpd_opp_svs>, >>> + <&rpmhpd_opp_low_svs>; >> >> So the computer tells me low_svs would be enough for PLL0 to generate 720MHz >> >> Is there some transient dependency that bumps this to svs? >> >> Your changelog mentions you altered this in v6, but I don't see any related >> discussion > > There are two sources of information. The "clocks plan" and the "pll > info". For some reason, the clock plan doesn't reflect actual PLL > requirements. See the info on the corresponding PLL type. OK thanks, now I think I asked this already in the past.. still, both point to LOWSVS @ 720 for sm8250 Konrad ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH v7 1/2] arm64: dts: qcom: sm8250: sort out Iris power domains 2026-06-10 13:52 ` Konrad Dybcio @ 2026-06-12 7:55 ` Dmitry Baryshkov 2026-06-16 11:52 ` Konrad Dybcio 0 siblings, 1 reply; 11+ messages in thread From: Dmitry Baryshkov @ 2026-06-12 7:55 UTC (permalink / raw) To: Konrad Dybcio Cc: Bjorn Andersson, Michael Turquette, Stephen Boyd, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Taniya Das, Jonathan Marek, Rafael J. Wysocki, Bryan O'Donoghue, Vikash Garodia, Dikshita Agarwal, Mauro Carvalho Chehab, Stanimir Varbanov, Abhinav Kumar, Hans Verkuil, Stefan Schmidt, Konrad Dybcio, Bryan O'Donoghue, Dikshita Agarwal, Ulf Hansson, linux-arm-msm, linux-clk, devicetree, linux-kernel, linux-pm, linux-media, Mauro Carvalho Chehab On Wed, Jun 10, 2026 at 03:52:09PM +0200, Konrad Dybcio wrote: > On 6/10/26 3:34 PM, Dmitry Baryshkov wrote: > > On Wed, Jun 10, 2026 at 02:24:24PM +0200, Konrad Dybcio wrote: > >> On 6/4/26 6:22 PM, Dmitry Baryshkov wrote: > >>> On SM8250 Iris core requires two power rails to function, MX (for PLLs) > >>> and MMCX (for everything else). The commit fa245b3f06cd ("arm64: dts: > >>> qcom: sm8250: Add venus DT node") added only MX power rail, but omitted > >>> MMCX voltage levels. > >>> > >>> Add MMCX domain to the Iris device node. > >>> > >>> Fixes: fa245b3f06cd ("arm64: dts: qcom: sm8250: Add venus DT node") > >>> Reported-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> > >>> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> > >>> --- > >> > >> [...] > >> > >>> opp-720000000 { > >>> opp-hz = /bits/ 64 <720000000>; > >>> - required-opps = <&rpmhpd_opp_low_svs>; > >>> + required-opps = <&rpmhpd_opp_svs>, > >>> + <&rpmhpd_opp_low_svs>; > >> > >> So the computer tells me low_svs would be enough for PLL0 to generate 720MHz > >> > >> Is there some transient dependency that bumps this to svs? > >> > >> Your changelog mentions you altered this in v6, but I don't see any related > >> discussion > > > > There are two sources of information. The "clocks plan" and the "pll > > info". For some reason, the clock plan doesn't reflect actual PLL > > requirements. See the info on the corresponding PLL type. > > OK thanks, now I think I asked this already in the past.. > > still, both point to LOWSVS @ 720 for sm8250 Not really, PLL type points to 615. I've posted you the screenshots privately (sorry). -- With best wishes Dmitry ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH v7 1/2] arm64: dts: qcom: sm8250: sort out Iris power domains 2026-06-12 7:55 ` Dmitry Baryshkov @ 2026-06-16 11:52 ` Konrad Dybcio 0 siblings, 0 replies; 11+ messages in thread From: Konrad Dybcio @ 2026-06-16 11:52 UTC (permalink / raw) To: Dmitry Baryshkov Cc: Bjorn Andersson, Michael Turquette, Stephen Boyd, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Taniya Das, Jonathan Marek, Rafael J. Wysocki, Bryan O'Donoghue, Vikash Garodia, Dikshita Agarwal, Mauro Carvalho Chehab, Stanimir Varbanov, Abhinav Kumar, Hans Verkuil, Stefan Schmidt, Konrad Dybcio, Bryan O'Donoghue, Dikshita Agarwal, Ulf Hansson, linux-arm-msm, linux-clk, devicetree, linux-kernel, linux-pm, linux-media, Mauro Carvalho Chehab On 6/12/26 9:55 AM, Dmitry Baryshkov wrote: > On Wed, Jun 10, 2026 at 03:52:09PM +0200, Konrad Dybcio wrote: >> On 6/10/26 3:34 PM, Dmitry Baryshkov wrote: >>> On Wed, Jun 10, 2026 at 02:24:24PM +0200, Konrad Dybcio wrote: >>>> On 6/4/26 6:22 PM, Dmitry Baryshkov wrote: >>>>> On SM8250 Iris core requires two power rails to function, MX (for PLLs) >>>>> and MMCX (for everything else). The commit fa245b3f06cd ("arm64: dts: >>>>> qcom: sm8250: Add venus DT node") added only MX power rail, but omitted >>>>> MMCX voltage levels. >>>>> >>>>> Add MMCX domain to the Iris device node. >>>>> >>>>> Fixes: fa245b3f06cd ("arm64: dts: qcom: sm8250: Add venus DT node") >>>>> Reported-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> >>>>> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> >>>>> --- >>>> >>>> [...] >>>> >>>>> opp-720000000 { >>>>> opp-hz = /bits/ 64 <720000000>; >>>>> - required-opps = <&rpmhpd_opp_low_svs>; >>>>> + required-opps = <&rpmhpd_opp_svs>, >>>>> + <&rpmhpd_opp_low_svs>; >>>> >>>> So the computer tells me low_svs would be enough for PLL0 to generate 720MHz >>>> >>>> Is there some transient dependency that bumps this to svs? >>>> >>>> Your changelog mentions you altered this in v6, but I don't see any related >>>> discussion >>> >>> There are two sources of information. The "clocks plan" and the "pll >>> info". For some reason, the clock plan doesn't reflect actual PLL >>> requirements. See the info on the corresponding PLL type. >> >> OK thanks, now I think I asked this already in the past.. >> >> still, both point to LOWSVS @ 720 for sm8250 > > Not really, PLL type points to 615. I've posted you the screenshots > privately (sorry). Alright then Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Konrad ^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH v7 2/2] arm64: dts: qcom: sm8250: correct frequencies in the Iris OPP table 2026-06-04 16:22 [PATCH v7 0/2] arm64: dts: qcom: fix power domain handling on SM8250 Dmitry Baryshkov 2026-06-04 16:22 ` [PATCH v7 1/2] arm64: dts: qcom: sm8250: sort out Iris power domains Dmitry Baryshkov @ 2026-06-04 16:22 ` Dmitry Baryshkov 2026-06-09 5:47 ` Vishnu Reddy 1 sibling, 1 reply; 11+ messages in thread From: Dmitry Baryshkov @ 2026-06-04 16:22 UTC (permalink / raw) To: Bjorn Andersson, Michael Turquette, Stephen Boyd, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Taniya Das, Jonathan Marek, Rafael J. Wysocki, Bryan O'Donoghue, Vikash Garodia, Dikshita Agarwal, Mauro Carvalho Chehab, Stanimir Varbanov, Abhinav Kumar, Hans Verkuil, Stefan Schmidt, Konrad Dybcio, Bryan O'Donoghue, Dikshita Agarwal, Ulf Hansson Cc: linux-arm-msm, linux-clk, devicetree, linux-kernel, linux-pm, linux-media, Mauro Carvalho Chehab, Konrad Dybcio The OPP table for the Iris core is wrong, it copies the VDD table from the downstream kernel, but that table is written for the video_cc_mvs0_clk_src, while the upstream uses video_cc_mvs0_clk for OPP rate setting (which is clk_src divided by 3). Specify correct frequencies in the OPP table. Fixes: fa245b3f06cd ("arm64: dts: qcom: sm8250: Add venus DT node") Reported-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Reviewed-by: Dikshita Agarwal <dikshita.agarwal@oss.qualcomm.com> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index 6150380795b8..f6044bfaef87 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -4355,26 +4355,26 @@ venus: video-codec@aa00000 { venus_opp_table: opp-table { compatible = "operating-points-v2"; - opp-720000000 { - opp-hz = /bits/ 64 <720000000>; + opp-240000000 { + opp-hz = /bits/ 64 <240000000>; required-opps = <&rpmhpd_opp_svs>, <&rpmhpd_opp_low_svs>; }; - opp-1014000000 { - opp-hz = /bits/ 64 <1014000000>; + opp-338000000 { + opp-hz = /bits/ 64 <338000000>; required-opps = <&rpmhpd_opp_svs>, <&rpmhpd_opp_svs>; }; - opp-1098000000 { - opp-hz = /bits/ 64 <1098000000>; + opp-366000000 { + opp-hz = /bits/ 64 <366000000>; required-opps = <&rpmhpd_opp_svs_l1>, <&rpmhpd_opp_svs_l1>; }; - opp-1332000000 { - opp-hz = /bits/ 64 <1332000000>; + opp-444000000 { + opp-hz = /bits/ 64 <444000000>; required-opps = <&rpmhpd_opp_svs_l1>, <&rpmhpd_opp_nom>; }; -- 2.47.3 ^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [PATCH v7 2/2] arm64: dts: qcom: sm8250: correct frequencies in the Iris OPP table 2026-06-04 16:22 ` [PATCH v7 2/2] arm64: dts: qcom: sm8250: correct frequencies in the Iris OPP table Dmitry Baryshkov @ 2026-06-09 5:47 ` Vishnu Reddy 0 siblings, 0 replies; 11+ messages in thread From: Vishnu Reddy @ 2026-06-09 5:47 UTC (permalink / raw) To: Dmitry Baryshkov, Bjorn Andersson, Michael Turquette, Stephen Boyd, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Taniya Das, Jonathan Marek, Rafael J. Wysocki, Bryan O'Donoghue, Vikash Garodia, Dikshita Agarwal, Mauro Carvalho Chehab, Stanimir Varbanov, Abhinav Kumar, Hans Verkuil, Stefan Schmidt, Konrad Dybcio, Bryan O'Donoghue, Dikshita Agarwal, Ulf Hansson Cc: linux-arm-msm, linux-clk, devicetree, linux-kernel, linux-pm, linux-media, Mauro Carvalho Chehab, Konrad Dybcio On 6/4/2026 9:52 PM, Dmitry Baryshkov wrote: > The OPP table for the Iris core is wrong, it copies the VDD table from > the downstream kernel, but that table is written for the > video_cc_mvs0_clk_src, while the upstream uses video_cc_mvs0_clk for OPP > rate setting (which is clk_src divided by 3). Specify correct > frequencies in the OPP table. > > Fixes: fa245b3f06cd ("arm64: dts: qcom: sm8250: Add venus DT node") > Reported-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> > Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> > Reviewed-by: Dikshita Agarwal <dikshita.agarwal@oss.qualcomm.com> > Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> > --- > arch/arm64/boot/dts/qcom/sm8250.dtsi | 16 ++++++++-------- > 1 file changed, 8 insertions(+), 8 deletions(-) > > diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi > index 6150380795b8..f6044bfaef87 100644 > --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi > +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi > @@ -4355,26 +4355,26 @@ venus: video-codec@aa00000 { > venus_opp_table: opp-table { > compatible = "operating-points-v2"; > > - opp-720000000 { > - opp-hz = /bits/ 64 <720000000>; > + opp-240000000 { > + opp-hz = /bits/ 64 <240000000>; > required-opps = <&rpmhpd_opp_svs>, > <&rpmhpd_opp_low_svs>; > }; > > - opp-1014000000 { > - opp-hz = /bits/ 64 <1014000000>; > + opp-338000000 { > + opp-hz = /bits/ 64 <338000000>; > required-opps = <&rpmhpd_opp_svs>, > <&rpmhpd_opp_svs>; > }; > > - opp-1098000000 { > - opp-hz = /bits/ 64 <1098000000>; > + opp-366000000 { > + opp-hz = /bits/ 64 <366000000>; > required-opps = <&rpmhpd_opp_svs_l1>, > <&rpmhpd_opp_svs_l1>; > }; > > - opp-1332000000 { > - opp-hz = /bits/ 64 <1332000000>; > + opp-444000000 { > + opp-hz = /bits/ 64 <444000000>; > required-opps = <&rpmhpd_opp_svs_l1>, > <&rpmhpd_opp_nom>; > }; Reviewed-by: Vishnu Reddy <busanna.reddy@oss.qualcomm.com> ^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2026-06-16 11:52 UTC | newest] Thread overview: 11+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2026-06-04 16:22 [PATCH v7 0/2] arm64: dts: qcom: fix power domain handling on SM8250 Dmitry Baryshkov 2026-06-04 16:22 ` [PATCH v7 1/2] arm64: dts: qcom: sm8250: sort out Iris power domains Dmitry Baryshkov 2026-06-09 6:00 ` Vishnu Reddy 2026-06-10 12:20 ` Konrad Dybcio 2026-06-10 12:24 ` Konrad Dybcio 2026-06-10 13:34 ` Dmitry Baryshkov 2026-06-10 13:52 ` Konrad Dybcio 2026-06-12 7:55 ` Dmitry Baryshkov 2026-06-16 11:52 ` Konrad Dybcio 2026-06-04 16:22 ` [PATCH v7 2/2] arm64: dts: qcom: sm8250: correct frequencies in the Iris OPP table Dmitry Baryshkov 2026-06-09 5:47 ` Vishnu Reddy
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox