From: Demeter Barna <[email protected]> The SM8350 GPU never asks for DDR bandwidth. On A660 the GMU gets a DDR table with only an "off" entry, so the driver leaves the vote to the OPP core, and the OPP core votes only when the GPU has an interconnect path and its OPPs carry a bandwidth. sm8350.dtsi has neither.
Add the GPU's path to DDR and give each OPP the peak bandwidth that Qualcomm's GPU tables for this SoC vote at that frequency on LPDDR5, as kodiak.dtsi does for its A635. Signed-off-by: Demeter Barna <[email protected]> --- arch/arm64/boot/dts/qcom/sm8350.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8350.dtsi b/arch/arm64/boot/dts/qcom/sm8350.dtsi index 55b32050c..903b2968c 100644 --- a/arch/arm64/boot/dts/qcom/sm8350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8350.dtsi @@ -2050,6 +2050,10 @@ gpu: gpu@3d00000 { iommus = <&adreno_smmu 0 0x400>, <&adreno_smmu 1 0x400>; + interconnects = <&gem_noc MASTER_GFX3D QCOM_ICC_TAG_ALWAYS + &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>; + interconnect-names = "gfx-mem"; + operating-points-v2 = <&gpu_opp_table>; qcom,gmu = <&gmu>; @@ -2068,51 +2072,61 @@ gpu_opp_table: opp-table { opp-840000000 { opp-hz = /bits/ 64 <840000000>; opp-level = <RPMH_REGULATOR_LEVEL_TURBO_L1>; + opp-peak-kBps = <12484375>; }; opp-778000000 { opp-hz = /bits/ 64 <778000000>; opp-level = <RPMH_REGULATOR_LEVEL_TURBO>; + opp-peak-kBps = <12484375>; }; opp-738000000 { opp-hz = /bits/ 64 <738000000>; opp-level = <RPMH_REGULATOR_LEVEL_NOM_L1>; + opp-peak-kBps = <12484375>; }; opp-676000000 { opp-hz = /bits/ 64 <676000000>; opp-level = <RPMH_REGULATOR_LEVEL_NOM>; + opp-peak-kBps = <10687500>; }; opp-608000000 { opp-hz = /bits/ 64 <608000000>; opp-level = <RPMH_REGULATOR_LEVEL_SVS_L2>; + opp-peak-kBps = <6074218>; }; opp-540000000 { opp-hz = /bits/ 64 <540000000>; opp-level = <RPMH_REGULATOR_LEVEL_SVS_L1>; + opp-peak-kBps = <6074218>; }; opp-491000000 { opp-hz = /bits/ 64 <491000000>; opp-level = <RPMH_REGULATOR_LEVEL_SVS_L0>; + opp-peak-kBps = <6074218>; }; opp-443000000 { opp-hz = /bits/ 64 <443000000>; opp-level = <RPMH_REGULATOR_LEVEL_SVS>; + opp-peak-kBps = <6074218>; }; opp-379000000 { opp-hz = /bits/ 64 <379000000>; opp-level = <80 /* RPMH_REGULATOR_LEVEL_LOW_SVS_L1 */>; + opp-peak-kBps = <3972656>; }; opp-315000000 { opp-hz = /bits/ 64 <315000000>; opp-level = <RPMH_REGULATOR_LEVEL_LOW_SVS>; + opp-peak-kBps = <1761718>; }; }; }; -- 2.53.0
