DRM/MSM: Support for Adreno 663 GPU
Subsystems (7)
Akhil P Oommen
reviewerv4 cover DRM/MSM: Support for Adreno 663 GPU
This series adds support for Adreno 663 gpu found in SA8775P (Lemans) chipsets. The closest gpu which is currently supported in drm-msm is A660. Following are the major differences with that:
1. gmu/zap firmwares
2. Recommended to disable Level2 swizzling
Verified kmscube/weston/glmark2-es2. This series is rebased on top of v6.17-rc1.
Due to the renaming of the Leman's devicetree files [1], this v4 revision had to wait for quite sometime.
Patch#1 is for Rob Clark, Patch#2 for Srinivas and the rest are for Bjorn to pick up.
[1] https://lore.kernel.org/all/[email protected]/
To: Rob Clark <[email protected]>
To: Sean Paul <[email protected]>
To: Konrad Dybcio <[email protected]>
To: Abhinav Kumar <[email protected]>
To: Dmitry Baryshkov <[email protected]>
To: Marijn Suijten <[email protected]>
To: David Airlie <[email protected]>
To: Simona Vetter <[email protected]>
To: Maarten Lankhorst <[email protected]>
To: Maxime Ripard <[email protected]>
To: Thomas Zimmermann <[email protected]>
To: Rob Herring <[email protected]>
To: Krzysztof Kozlowski <[email protected]>
To: Conor Dooley <[email protected]>
To: Bjorn Andersson <[email protected]>
To: Connor Abbott <[email protected]>
To: Srinivas Kandagatla <[email protected]>
Cc: Gaurav Kohli <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
-Akhil
---
Changes in v4:
- Rebased on top of another series which renames DT files
- Enabled GPU on IoT boards as per the latest definition
- Picked up SKU detection support
- Added GPU passive cooling support
- Link to v3: https://lore.kernel.org/r/[email protected]
Changes in v3:
- Rebased on the latest msm-next tip
- Added R-b tags from Dmitry
- Dropped patch #1 and #2 from v2 revision since they are already
picked up in msm-next
- Link to v2: https://lore.kernel.org/r/[email protected]
Changes in v2:
- Fixed ubwc configuration (dimtry)
- Split out platform dt patch (dimtry)
- Fix formatting in the dt patch (dimtry)
- Updated Opp table to include all levels
- Updated bw IB votes to match downstream
- Rebased on top of msm-next tip
- Link to v1: https://lore.kernel.org/r/[email protected]
---
Akhil P Oommen (4):
drm/msm/adreno: Add speedbins for A663 GPU
dt-bindings: nvmem: qfprom: Add sa8775p compatible
arm64: dts: qcom: lemans-evk: Enable Adreno 663 GPU
arm64: dts: qcom: qcs9100-ride: Enable Adreno 663 GPU
Gaurav Kohli (1):
arm64: dts: qcom: lemans: Add GPU cooling
Puranam V G Tejaswi (1):
arm64: dts: qcom: sa8775p: Add gpu and gmu nodes
.../devicetree/bindings/nvmem/qcom,qfprom.yaml | 1 + arch/arm64/boot/dts/qcom/lemans-evk.dts | 8 + arch/arm64/boot/dts/qcom/lemans-ride-common.dtsi | 8 + arch/arm64/boot/dts/qcom/lemans.dtsi | 183 +++++++++++++++++++-- drivers/gpu/drm/msm/adreno/a6xx_catalog.c | 5 + 5 files changed, 193 insertions(+), 12 deletions(-)
---
base-commit: 062b3e4a1f880f104a8d4b90b767788786aa7b78
change-id: 20240917-a663-gpu-support-b1475c828606
prerequisite-message-id: <[email protected]>
prerequisite-patch-id: 765475c5f1418d986e661a213cfb33ee6ffb9548
prerequisite-patch-id: 03c6d1a5b0ae9095845828fc5cbb701b00f41131
prerequisite-patch-id: f7b8a288cf4ef309b4027f0b617b7435c17d6b1f
prerequisite-patch-id: aacfb31f99b75b2f5bf2f44bbd9abf8db0f66b1d
prerequisite-patch-id: dc442a0932abeb5139daa547a1b1f4282fa9a6fa
prerequisite-patch-id: e8a728d629b4bdd22bc1ef21f3d593e17a8d3b44
prerequisite-patch-id: 067fe8f5151b3fea9cbc37192e559a123abcdb71
prerequisite-patch-id: 62150f33bd304fc34b8fbb4aab953c6c4bb8a566
Best regards,
Signature · 1 line
Akhil P Oommen <[email protected]>
Akhil P Oommen
reviewerPATCH v4 1/6 drm/msm/adreno: Add speedbins for A663 GPU
Add speedbin mappings for A663 GPU.
--- drivers/gpu/drm/msm/adreno/a6xx_catalog.c | 5 +++++ 1 file changed, 5 insertions(+)
drivers/gpu/drm/msm/adreno/a6xx_catalog.c +5 -0
@@ -1024,6 +1024,11 @@ static const struct adreno_info a6xx_gpus[] = { .gmu_cgc_mode = 0x00020200, .prim_fifo_threshold = 0x00300200, }, + .speedbins = ADRENO_SPEEDBINS( + { 0, 0 }, + { 169, 0 }, + { 113, 1 }, + ), }, { .chip_ids = ADRENO_CHIP_IDS(0x06030500), .family = ADRENO_6XX_GEN4,
Signature · 1 line
2.50.1
Re: [PATCH v4 1/6] drm/msm/adreno: Add speedbins for A663 GPU
Quoted 7 lines · Akhil P Oommen
Add speedbin mappings for A663 GPU.
Signed-off-by Akhil P Oommen <[email protected]>--- drivers/gpu/drm/msm/adreno/a6xx_catalog.c | 5 +++++ 1 file changed, 5 insertions(+)
Signature · 2 lines
With best wishes Dmitry
Akhil P Oommen
reviewerPATCH v4 2/6 dt-bindings: nvmem: qfprom: Add sa8775p compatible
In reply to Akhil P OommenDocument compatible string for the QFPROM on Lemans platform.
--- Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml +1 -0
@@ -39,6 +39,7 @@ properties: - qcom,qcs404-qfprom - qcom,qcs615-qfprom - qcom,qcs8300-qfprom + - qcom,sa8775p-qfprom - qcom,sar2130p-qfprom - qcom,sc7180-qfprom - qcom,sc7280-qfprom
Signature · 1 line
2.50.1
Re: [PATCH v4 2/6] dt-bindings: nvmem: qfprom: Add sa8775p compatible
Quoted 6 lines · Akhil P Oommen
Document compatible string for the QFPROM on Lemans platform.
Signed-off-by Akhil P Oommen <[email protected]>--- Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml | 1 + 1 file changed, 1 insertion(+)
Best regards,
Krzysztof
Akhil P Oommen
reviewerPATCH v4 3/6 arm64: dts: qcom: sa8775p: Add gpu and gmu nodes
In reply to Akhil P OommenFrom: Puranam V G Tejaswi <[email protected]>
Add gpu and gmu nodes for sa8775p chipset. As of now all SKUs have the same GPU fmax, so there is no requirement of speed bin support.
--- arch/arm64/boot/dts/qcom/lemans.dtsi | 116 +++++++++++++++++++++++++++++++++++ 1 file changed, 116 insertions(+)
arch/arm64/boot/dts/qcom/lemans.dtsi +116 -0
@@ -1097,6 +1097,18 @@ ipcc: mailbox@408000 { #mbox-cells = <2>; }; + qfprom: efuse@784000 { + compatible = "qcom,sa8775p-qfprom", "qcom,qfprom"; + reg = <0x0 0x00784000 0x0 0x2410>; + #address-cells = <1>; + #size-cells = <1>; + + gpu_speed_bin: gpu_speed_bin@240c { + reg = <0x240c 0x1>; + bits = <0 8>; + }; + }; + gpi_dma2: dma-controller@800000 { compatible = "qcom,sa8775p-gpi-dma", "qcom,sm6350-gpi-dma"; reg = <0x0 0x00800000 0x0 0x60000>;
@@ -4093,6 +4105,110 @@ tcsr: syscon@1fc0000 { reg = <0x0 0x1fc0000 0x0 0x30000>; }; + gpu: gpu@3d00000 { + compatible = "qcom,adreno-663.0", "qcom,adreno"; + reg = <0x0 0x03d00000 0x0 0x40000>, + <0x0 0x03d9e000 0x0 0x1000>, + <0x0 0x03d61000 0x0 0x800>; + reg-names = "kgsl_3d0_reg_memory", + "cx_mem", + "cx_dbgc"; + interrupts = <GIC_SPI 300 IRQ_TYPE_LEVEL_HIGH>; + iommus = <&adreno_smmu 0 0xc00>, + <&adreno_smmu 1 0xc00>; + operating-points-v2 = <&gpu_opp_table>; + qcom,gmu = <&gmu>; + interconnects = <&gem_noc MASTER_GFX3D QCOM_ICC_TAG_ALWAYS + &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>; + interconnect-names = "gfx-mem"; + #cooling-cells = <2>; + + status = "disabled"; + + gpu_zap_shader: zap-shader { + memory-region = <&pil_gpu_mem>; + }; + + gpu_opp_table: opp-table { + compatible = "operating-points-v2"; + + opp-405000000 { + opp-hz = /bits/ 64 <405000000>; + opp-level = <RPMH_REGULATOR_LEVEL_SVS_L1>; + opp-peak-kBps = <5285156>; + opp-supported-hw = <0x3>; + }; + + opp-530000000 { + opp-hz = /bits/ 64 <530000000>; + opp-level = <RPMH_REGULATOR_LEVEL_NOM>; + opp-peak-kBps = <12484375>; + opp-supported-hw = <0x2>; + }; + + opp-676000000 { + opp-hz = /bits/ 64 <676000000>; + opp-level = <RPMH_REGULATOR_LEVEL_NOM>; + opp-peak-kBps = <8171875>; + opp-supported-hw = <0x1>; + }; + + opp-778000000 { + opp-hz = /bits/ 64 <778000000>; + opp-level = <RPMH_REGULATOR_LEVEL_TURBO>; + opp-peak-kBps = <10687500>; + opp-supported-hw = <0x1>; + }; + + opp-800000000 { + opp-hz = /bits/ 64 <800000000>; + opp-level = <RPMH_REGULATOR_LEVEL_TURBO_L1>; + opp-peak-kBps = <12484375>; + opp-supported-hw = <0x1>; + }; + }; + }; + + gmu: gmu@3d6a000 { + compatible = "qcom,adreno-gmu-663.0", "qcom,adreno-gmu"; + reg = <0x0 0x03d6a000 0x0 0x34000>, + <0x0 0x03de0000 0x0 0x10000>, + <0x0 0x0b290000 0x0 0x10000>; + reg-names = "gmu", "rscc", "gmu_pdc"; + interrupts = <GIC_SPI 304 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 305 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "hfi", "gmu"; + clocks = <&gpucc GPU_CC_CX_GMU_CLK>, + <&gpucc GPU_CC_CXO_CLK>, + <&gcc GCC_DDRSS_GPU_AXI_CLK>, + <&gcc GCC_GPU_MEMNOC_GFX_CLK>, + <&gpucc GPU_CC_AHB_CLK>, + <&gpucc GPU_CC_HUB_CX_INT_CLK>, + <&gpucc GPU_CC_HLOS1_VOTE_GPU_SMMU_CLK>; + clock-names = "gmu", + "cxo", + "axi", + "memnoc", + "ahb", + "hub", + "smmu_vote"; + power-domains = <&gpucc GPU_CC_CX_GDSC>, + <&gpucc GPU_CC_GX_GDSC>; + power-domain-names = "cx", + "gx"; + iommus = <&adreno_smmu 5 0xc00>; + operating-points-v2 = <&gmu_opp_table>; + + gmu_opp_table: opp-table { + compatible = "operating-points-v2"; + + opp-200000000 { + opp-hz = /bits/ 64 <200000000>; + opp-level = <RPMH_REGULATOR_LEVEL_MIN_SVS>; + }; + }; + }; + gpucc: clock-controller@3d90000 { compatible = "qcom,sa8775p-gpucc"; reg = <0x0 0x03d90000 0x0 0xa000>;
Signature · 1 line
2.50.1
Akhil P Oommen
reviewerRe: [PATCH v4 3/6] arm64: dts: qcom: sa8775p: Add gpu and gmu nodes
Quoted 9 lines · Akhil P Oommen
From: Puranam V G Tejaswi <[email protected]>
Add gpu and gmu nodes for sa8775p chipset. As of now all SKUs have the same GPU fmax, so there is no requirement of speed bin support.
Signed-off-by Puranam V G Tejaswi <[email protected]>Signed-off-by Akhil P Oommen <[email protected]>Reviewed-by Dmitry Baryshkov <[email protected]>
Dmitry,
FYI, I retained your R-b tag.
-Akhil
Quoted 139 lines
--- arch/arm64/boot/dts/qcom/lemans.dtsi | 116 +++++++++++++++++++++++++++++++++++ 1 file changed, 116 insertions(+)arch/arm64/boot/dts/qcom/lemans.dtsi +116
-0@@ -1097,6 +1097,18 @@ ipcc: mailbox@408000 { #mbox-cells = <2>; }; + qfprom: efuse@784000 { + compatible = "qcom,sa8775p-qfprom", "qcom,qfprom"; + reg = <0x0 0x00784000 0x0 0x2410>; + #address-cells = <1>; + #size-cells = <1>; + + gpu_speed_bin: gpu_speed_bin@240c { + reg = <0x240c 0x1>; + bits = <0 8>; + }; + }; + gpi_dma2: dma-controller@800000 { compatible = "qcom,sa8775p-gpi-dma", "qcom,sm6350-gpi-dma"; reg = <0x0 0x00800000 0x0 0x60000>;@@ -4093,6 +4105,110 @@ tcsr: syscon@1fc0000 { reg = <0x0 0x1fc0000 0x0 0x30000>; }; + gpu: gpu@3d00000 { + compatible = "qcom,adreno-663.0", "qcom,adreno"; + reg = <0x0 0x03d00000 0x0 0x40000>, + <0x0 0x03d9e000 0x0 0x1000>, + <0x0 0x03d61000 0x0 0x800>; + reg-names = "kgsl_3d0_reg_memory", + "cx_mem", + "cx_dbgc"; + interrupts = <GIC_SPI 300 IRQ_TYPE_LEVEL_HIGH>; + iommus = <&adreno_smmu 0 0xc00>, + <&adreno_smmu 1 0xc00>; + operating-points-v2 = <&gpu_opp_table>; + qcom,gmu = <&gmu>; + interconnects = <&gem_noc MASTER_GFX3D QCOM_ICC_TAG_ALWAYS + &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>; + interconnect-names = "gfx-mem"; + #cooling-cells = <2>; + + status = "disabled"; + + gpu_zap_shader: zap-shader { + memory-region = <&pil_gpu_mem>; + }; + + gpu_opp_table: opp-table { + compatible = "operating-points-v2"; + + opp-405000000 { + opp-hz = /bits/ 64 <405000000>; + opp-level = <RPMH_REGULATOR_LEVEL_SVS_L1>; + opp-peak-kBps = <5285156>; + opp-supported-hw = <0x3>; + }; + + opp-530000000 { + opp-hz = /bits/ 64 <530000000>; + opp-level = <RPMH_REGULATOR_LEVEL_NOM>; + opp-peak-kBps = <12484375>; + opp-supported-hw = <0x2>; + }; + + opp-676000000 { + opp-hz = /bits/ 64 <676000000>; + opp-level = <RPMH_REGULATOR_LEVEL_NOM>; + opp-peak-kBps = <8171875>; + opp-supported-hw = <0x1>; + }; + + opp-778000000 { + opp-hz = /bits/ 64 <778000000>; + opp-level = <RPMH_REGULATOR_LEVEL_TURBO>; + opp-peak-kBps = <10687500>; + opp-supported-hw = <0x1>; + }; + + opp-800000000 { + opp-hz = /bits/ 64 <800000000>; + opp-level = <RPMH_REGULATOR_LEVEL_TURBO_L1>; + opp-peak-kBps = <12484375>; + opp-supported-hw = <0x1>; + }; + }; + }; + + gmu: gmu@3d6a000 { + compatible = "qcom,adreno-gmu-663.0", "qcom,adreno-gmu"; + reg = <0x0 0x03d6a000 0x0 0x34000>, + <0x0 0x03de0000 0x0 0x10000>, + <0x0 0x0b290000 0x0 0x10000>; + reg-names = "gmu", "rscc", "gmu_pdc"; + interrupts = <GIC_SPI 304 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 305 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "hfi", "gmu"; + clocks = <&gpucc GPU_CC_CX_GMU_CLK>, + <&gpucc GPU_CC_CXO_CLK>, + <&gcc GCC_DDRSS_GPU_AXI_CLK>, + <&gcc GCC_GPU_MEMNOC_GFX_CLK>, + <&gpucc GPU_CC_AHB_CLK>, + <&gpucc GPU_CC_HUB_CX_INT_CLK>, + <&gpucc GPU_CC_HLOS1_VOTE_GPU_SMMU_CLK>; + clock-names = "gmu", + "cxo", + "axi", + "memnoc", + "ahb", + "hub", + "smmu_vote"; + power-domains = <&gpucc GPU_CC_CX_GDSC>, + <&gpucc GPU_CC_GX_GDSC>; + power-domain-names = "cx", + "gx"; + iommus = <&adreno_smmu 5 0xc00>; + operating-points-v2 = <&gmu_opp_table>; + + gmu_opp_table: opp-table { + compatible = "operating-points-v2"; + + opp-200000000 { + opp-hz = /bits/ 64 <200000000>; + opp-level = <RPMH_REGULATOR_LEVEL_MIN_SVS>; + }; + }; + }; + gpucc: clock-controller@3d90000 { compatible = "qcom,sa8775p-gpucc"; reg = <0x0 0x03d90000 0x0 0xa000>;
Re: [PATCH v4 3/6] arm64: dts: qcom: sa8775p: Add gpu and gmu nodes
Quoted 7 lines · Akhil P Oommen
Quoted 6 lines · Akhil P Oommen
From: Puranam V G Tejaswi <[email protected]>
Add gpu and gmu nodes for sa8775p chipset. As of now all SKUs have the same GPU fmax, so there is no requirement of speed bin support.
Quoted 7 lines
Quoted 3 lines
Signed-off-by Puranam V G Tejaswi <[email protected]>Signed-off-by Akhil P Oommen <[email protected]>Reviewed-by Dmitry Baryshkov <[email protected]>Dmitry,
FYI, I retained your R-b tag.
Sure
Signature · 2 lines
With best wishes Dmitry
Re: [PATCH v4 3/6] arm64: dts: qcom: sa8775p: Add gpu and gmu nodes
In reply to Akhil P OommenQuoted 18 lines · Akhil P Oommen
From: Puranam V G Tejaswi <[email protected]>
Add gpu and gmu nodes for sa8775p chipset. As of now all SKUs have the same GPU fmax, so there is no requirement of speed bin support.
Signed-off-by Puranam V G Tejaswi <[email protected]>Signed-off-by Akhil P Oommen <[email protected]>Reviewed-by Dmitry Baryshkov <[email protected]>--- arch/arm64/boot/dts/qcom/lemans.dtsi | 116 +++++++++++++++++++++++++++++++++++ 1 file changed, 116 insertions(+)arch/arm64/boot/dts/qcom/lemans.dtsi +0
-0
arch/arm64/boot/dts/qcom/lemans.dtsi ipcc: mailbox@408000 { · line 1102
Quoted 6 lines
arch/arm64/boot/dts/qcom/lemans.dtsi +3
-0@@ -1097,6 +1097,18 @@ ipcc: mailbox@408000 { #mbox-cells = <2>; }; + qfprom: efuse@784000 { + compatible = "qcom,sa8775p-qfprom", "qcom,qfprom"; + reg = <0x0 0x00784000 0x0 0x2410>;
len = 0x3000
[...]
arch/arm64/boot/dts/qcom/lemans.dtsi tcsr: syscon@1fc0000 { · line 4174
Quoted 3 lines
arch/arm64/boot/dts/qcom/lemans.dtsi +3
-0+ gmu: gmu@3d6a000 { + compatible = "qcom,adreno-gmu-663.0", "qcom,adreno-gmu"; + reg = <0x0 0x03d6a000 0x0 0x34000>,
This bleeds into GPU_CC, len should be 0x26000
arch/arm64/boot/dts/qcom/lemans.dtsi tcsr: syscon@1fc0000 { · line 4187
Quoted 13 lines
arch/arm64/boot/dts/qcom/lemans.dtsi +13
-0+ <0x0 0x03de0000 0x0 0x10000>, + <0x0 0x0b290000 0x0 0x10000>; + reg-names = "gmu", "rscc", "gmu_pdc"; + interrupts = <GIC_SPI 304 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 305 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "hfi", "gmu"; + clocks = <&gpucc GPU_CC_CX_GMU_CLK>, + <&gpucc GPU_CC_CXO_CLK>, + <&gcc GCC_DDRSS_GPU_AXI_CLK>, + <&gcc GCC_GPU_MEMNOC_GFX_CLK>, + <&gpucc GPU_CC_AHB_CLK>, + <&gpucc GPU_CC_HUB_CX_INT_CLK>, + <&gpucc GPU_CC_HLOS1_VOTE_GPU_SMMU_CLK>;
This clock only belongs in the SMMU node
Quoted 9 lines
arch/arm64/boot/dts/qcom/lemans.dtsi +9
-0+ clock-names = "gmu", + "cxo", + "axi", + "memnoc", + "ahb", + "hub", + "smmu_vote"; + power-domains = <&gpucc GPU_CC_CX_GDSC>, + <&gpucc GPU_CC_GX_GDSC>;
arch/arm64/boot/dts/qcom/lemans.dtsi tcsr: syscon@1fc0000 { · line 4206
Quoted 10 lines
arch/arm64/boot/dts/qcom/lemans.dtsi +10
-0+ power-domain-names = "cx", + "gx"; + iommus = <&adreno_smmu 5 0xc00>; + operating-points-v2 = <&gmu_opp_table>; + + gmu_opp_table: opp-table { + compatible = "operating-points-v2"; + + opp-200000000 { + opp-hz = /bits/ 64 <200000000>;
500 MHz @ RPMH_REGULATOR_LEVEL_SVS, 200 isn't even present in the clock driver
Konrad
Re: [PATCH v4 3/6] arm64: dts: qcom: sa8775p: Add gpu and gmu nodes
Quoted 28 lines · Konrad Dybcio
Quoted 18 lines · Akhil P Oommen
From: Puranam V G Tejaswi <[email protected]>
Add gpu and gmu nodes for sa8775p chipset. As of now all SKUs have the same GPU fmax, so there is no requirement of speed bin support.
Signed-off-by Puranam V G Tejaswi <[email protected]>Signed-off-by Akhil P Oommen <[email protected]>Reviewed-by Dmitry Baryshkov <[email protected]>--- arch/arm64/boot/dts/qcom/lemans.dtsi | 116 +++++++++++++++++++++++++++++++++++ 1 file changed, 116 insertions(+)arch/arm64/boot/dts/qcom/lemans.dtsi +0
-0arch/arm64/boot/dts/qcom/lemans.dtsi ipcc: mailbox@408000 { · line 1102
Quoted 6 lines
arch/arm64/boot/dts/qcom/lemans.dtsi +3
-0@@ -1097,6 +1097,18 @@ ipcc: mailbox@408000 { #mbox-cells = <2>; }; + qfprom: efuse@784000 { + compatible = "qcom,sa8775p-qfprom", "qcom,qfprom"; + reg = <0x0 0x00784000 0x0 0x2410>;len =
0x3000
Quoted 7 lines
[...]
arch/arm64/boot/dts/qcom/lemans.dtsi tcsr: syscon@1fc0000 { · line 4174
Quoted 3 lines
arch/arm64/boot/dts/qcom/lemans.dtsi +3
-0+ gmu: gmu@3d6a000 { + compatible = "qcom,adreno-gmu-663.0", "qcom,adreno-gmu"; + reg = <0x0 0x03d6a000 0x0 0x34000>,This bleeds into
GPU_CC, len should be0x26000
gpucc is in the middle of GMU, see other platforms.
Quoted 40 lines
Quoted 4 lines
arch/arm64/boot/dts/qcom/lemans.dtsi +3
-0+ <0x0 0x03de0000 0x0 0x10000>, + <0x0 0x0b290000 0x0 0x10000>; + reg-names = "gmu", "rscc", "gmu_pdc";arch/arm64/boot/dts/qcom/lemans.dtsi tcsr: syscon@1fc0000 { · line 4187
Quoted 10 lines
arch/arm64/boot/dts/qcom/lemans.dtsi +10
-0+ interrupts = <GIC_SPI 304 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 305 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "hfi", "gmu"; + clocks = <&gpucc GPU_CC_CX_GMU_CLK>, + <&gpucc GPU_CC_CXO_CLK>, + <&gcc GCC_DDRSS_GPU_AXI_CLK>, + <&gcc GCC_GPU_MEMNOC_GFX_CLK>, + <&gpucc GPU_CC_AHB_CLK>, + <&gpucc GPU_CC_HUB_CX_INT_CLK>, + <&gpucc GPU_CC_HLOS1_VOTE_GPU_SMMU_CLK>;This clock only belongs in the SMMU node
Quoted 9 lines
arch/arm64/boot/dts/qcom/lemans.dtsi +9
-0+ clock-names = "gmu", + "cxo", + "axi", + "memnoc", + "ahb", + "hub", + "smmu_vote"; + power-domains = <&gpucc GPU_CC_CX_GDSC>, + <&gpucc GPU_CC_GX_GDSC>;arch/arm64/boot/dts/qcom/lemans.dtsi tcsr: syscon@1fc0000 { · line 4206
Quoted 10 lines
arch/arm64/boot/dts/qcom/lemans.dtsi +10
-0+ power-domain-names = "cx", + "gx"; + iommus = <&adreno_smmu 5 0xc00>; + operating-points-v2 = <&gmu_opp_table>; + + gmu_opp_table: opp-table { + compatible = "operating-points-v2"; + + opp-200000000 { + opp-hz = /bits/ 64 <200000000>;500 MHz @
RPMH_REGULATOR_LEVEL_SVS, 200 isn't even present in the clock driverKonrad
Signature · 2 lines
With best wishes Dmitry
Re: [PATCH v4 3/6] arm64: dts: qcom: sa8775p: Add gpu and gmu nodes
Quoted 31 lines · Dmitry Baryshkov
Quoted 30 lines · Konrad Dybcio
Quoted 18 lines · Akhil P Oommen
From: Puranam V G Tejaswi <[email protected]>
Add gpu and gmu nodes for sa8775p chipset. As of now all SKUs have the same GPU fmax, so there is no requirement of speed bin support.
Signed-off-by Puranam V G Tejaswi <[email protected]>Signed-off-by Akhil P Oommen <[email protected]>Reviewed-by Dmitry Baryshkov <[email protected]>--- arch/arm64/boot/dts/qcom/lemans.dtsi | 116 +++++++++++++++++++++++++++++++++++ 1 file changed, 116 insertions(+)arch/arm64/boot/dts/qcom/lemans.dtsi +0
-0arch/arm64/boot/dts/qcom/lemans.dtsi ipcc: mailbox@408000 { · line 1102
Quoted 6 lines
arch/arm64/boot/dts/qcom/lemans.dtsi +3
-0@@ -1097,6 +1097,18 @@ ipcc: mailbox@408000 { #mbox-cells = <2>; }; + qfprom: efuse@784000 { + compatible = "qcom,sa8775p-qfprom", "qcom,qfprom"; + reg = <0x0 0x00784000 0x0 0x2410>;len =
0x3000[...]
Quoted 7 lines
Quoted 5 lines
arch/arm64/boot/dts/qcom/lemans.dtsi tcsr: syscon@1fc0000 { · line 4174
Quoted 3 lines
arch/arm64/boot/dts/qcom/lemans.dtsi +3
-0+ gmu: gmu@3d6a000 { + compatible = "qcom,adreno-gmu-663.0", "qcom,adreno-gmu"; + reg = <0x0 0x03d6a000 0x0 0x34000>,This bleeds into
GPU_CC, len should be0x26000gpucc is in the middle of GMU, see other platforms.
This is not the case here
Konrad
Re: [PATCH v4 3/6] arm64: dts: qcom: sa8775p: Add gpu and gmu nodes
Quoted 38 lines · Konrad Dybcio
Quoted 37 lines · Dmitry Baryshkov
Quoted 35 lines · Konrad Dybcio
Quoted 18 lines · Akhil P Oommen
From: Puranam V G Tejaswi <[email protected]>
Add gpu and gmu nodes for sa8775p chipset. As of now all SKUs have the same GPU fmax, so there is no requirement of speed bin support.
Signed-off-by Puranam V G Tejaswi <[email protected]>Signed-off-by Akhil P Oommen <[email protected]>Reviewed-by Dmitry Baryshkov <[email protected]>--- arch/arm64/boot/dts/qcom/lemans.dtsi | 116 +++++++++++++++++++++++++++++++++++ 1 file changed, 116 insertions(+)arch/arm64/boot/dts/qcom/lemans.dtsi +0
-0arch/arm64/boot/dts/qcom/lemans.dtsi ipcc: mailbox@408000 { · line 1102
Quoted 6 lines
arch/arm64/boot/dts/qcom/lemans.dtsi +3
-0@@ -1097,6 +1097,18 @@ ipcc: mailbox@408000 { #mbox-cells = <2>; }; + qfprom: efuse@784000 { + compatible = "qcom,sa8775p-qfprom", "qcom,qfprom"; + reg = <0x0 0x00784000 0x0 0x2410>;len =
0x3000[...]
arch/arm64/boot/dts/qcom/lemans.dtsi tcsr: syscon@1fc0000 { · line 4174
Quoted 3 lines
arch/arm64/boot/dts/qcom/lemans.dtsi +3
-0+ gmu: gmu@3d6a000 { + compatible = "qcom,adreno-gmu-663.0", "qcom,adreno-gmu"; + reg = <0x0 0x03d6a000 0x0 0x34000>,This bleeds into
GPU_CC, len should be0x26000
Quoted 3 lines
Quoted 1 line
gpucc is in the middle of GMU, see other platforms.
This is not the case here
Why? I think GPU CC is a part of the GMU by design: GMU accesses GPU CC registers directly from the firmware.
Signature · 2 lines
With best wishes Dmitry
Re: [PATCH v4 3/6] arm64: dts: qcom: sa8775p: Add gpu and gmu nodes
Quoted 39 lines · Dmitry Baryshkov
Quoted 38 lines · Konrad Dybcio
Quoted 37 lines · Dmitry Baryshkov
Quoted 35 lines · Konrad Dybcio
Quoted 18 lines · Akhil P Oommen
From: Puranam V G Tejaswi <[email protected]>
Add gpu and gmu nodes for sa8775p chipset. As of now all SKUs have the same GPU fmax, so there is no requirement of speed bin support.
Signed-off-by Puranam V G Tejaswi <[email protected]>Signed-off-by Akhil P Oommen <[email protected]>Reviewed-by Dmitry Baryshkov <[email protected]>--- arch/arm64/boot/dts/qcom/lemans.dtsi | 116 +++++++++++++++++++++++++++++++++++ 1 file changed, 116 insertions(+)arch/arm64/boot/dts/qcom/lemans.dtsi +0
-0arch/arm64/boot/dts/qcom/lemans.dtsi ipcc: mailbox@408000 { · line 1102
Quoted 6 lines
arch/arm64/boot/dts/qcom/lemans.dtsi +3
-0@@ -1097,6 +1097,18 @@ ipcc: mailbox@408000 { #mbox-cells = <2>; }; + qfprom: efuse@784000 { + compatible = "qcom,sa8775p-qfprom", "qcom,qfprom"; + reg = <0x0 0x00784000 0x0 0x2410>;len =
0x3000[...]
arch/arm64/boot/dts/qcom/lemans.dtsi tcsr: syscon@1fc0000 { · line 4174
Quoted 3 lines
arch/arm64/boot/dts/qcom/lemans.dtsi +3
-0+ gmu: gmu@3d6a000 { + compatible = "qcom,adreno-gmu-663.0", "qcom,adreno-gmu"; + reg = <0x0 0x03d6a000 0x0 0x34000>,This bleeds into
GPU_CC, len should be0x26000
Quoted 6 lines
Quoted 3 lines
Quoted 1 line
gpucc is in the middle of GMU, see other platforms.
This is not the case here
Why? I think GPU CC is a part of the GMU by design: GMU accesses GPU CC registers directly from the firmware.
Correct, however this is only a similarly sounding argument - the DT describes the hardware from the main Arm cluster POV. The GMU Cortex-M core has its own address map etc.
Konrad
Akhil P Oommen
reviewerRe: [PATCH v4 3/6] arm64: dts: qcom: sa8775p: Add gpu and gmu nodes
Quoted 42 lines · Konrad Dybcio
Quoted 41 lines · Dmitry Baryshkov
Quoted 40 lines · Konrad Dybcio
Quoted 38 lines · Dmitry Baryshkov
Quoted 28 lines · Konrad Dybcio
Quoted 18 lines · Akhil P Oommen
From: Puranam V G Tejaswi <[email protected]>
Add gpu and gmu nodes for sa8775p chipset. As of now all SKUs have the same GPU fmax, so there is no requirement of speed bin support.
Signed-off-by Puranam V G Tejaswi <[email protected]>Signed-off-by Akhil P Oommen <[email protected]>Reviewed-by Dmitry Baryshkov <[email protected]>--- arch/arm64/boot/dts/qcom/lemans.dtsi | 116 +++++++++++++++++++++++++++++++++++ 1 file changed, 116 insertions(+)arch/arm64/boot/dts/qcom/lemans.dtsi +0
-0arch/arm64/boot/dts/qcom/lemans.dtsi ipcc: mailbox@408000 { · line 1102
Quoted 6 lines
arch/arm64/boot/dts/qcom/lemans.dtsi +3
-0@@ -1097,6 +1097,18 @@ ipcc: mailbox@408000 { #mbox-cells = <2>; }; + qfprom: efuse@784000 { + compatible = "qcom,sa8775p-qfprom", "qcom,qfprom"; + reg = <0x0 0x00784000 0x0 0x2410>;len =
0x3000Quoted 7 lines
[...]
arch/arm64/boot/dts/qcom/lemans.dtsi tcsr: syscon@1fc0000 { · line 4174
Quoted 3 lines
arch/arm64/boot/dts/qcom/lemans.dtsi +3
-0+ gmu: gmu@3d6a000 { + compatible = "qcom,adreno-gmu-663.0", "qcom,adreno-gmu"; + reg = <0x0 0x03d6a000 0x0 0x34000>,This bleeds into
GPU_CC, len should be0x26000gpucc is in the middle of GMU, see other platforms.
Quoted 8 lines
Quoted 4 lines
Quoted 1 line
This is not the case here
Why? I think GPU CC is a part of the GMU by design: GMU accesses GPU CC registers directly from the firmware.
Correct, however this is only a similarly sounding argument - the DT describes the hardware from the main Arm cluster POV. The GMU Cortex-M core has its own address map etc.
We have been keeping GPUCC region in the GMU's reg range in all chipsets for the purpose of coredump.
Can we leave this as is until we have a mechanism to dump these into gpu coredump (via gpucc driver??)? I recall you proposed something similar sometime back.
-Akhil
Quoted 2 lines
Konrad
Re: [PATCH v4 3/6] arm64: dts: qcom: sa8775p: Add gpu and gmu nodes
Quoted 44 lines · Akhil P Oommen
Quoted 42 lines · Konrad Dybcio
Quoted 41 lines · Dmitry Baryshkov
Quoted 40 lines · Konrad Dybcio
Quoted 38 lines · Dmitry Baryshkov
Quoted 28 lines · Konrad Dybcio
Quoted 18 lines · Akhil P Oommen
From: Puranam V G Tejaswi <[email protected]>
Add gpu and gmu nodes for sa8775p chipset. As of now all SKUs have the same GPU fmax, so there is no requirement of speed bin support.
Signed-off-by Puranam V G Tejaswi <[email protected]>Signed-off-by Akhil P Oommen <[email protected]>Reviewed-by Dmitry Baryshkov <[email protected]>--- arch/arm64/boot/dts/qcom/lemans.dtsi | 116 +++++++++++++++++++++++++++++++++++ 1 file changed, 116 insertions(+)arch/arm64/boot/dts/qcom/lemans.dtsi +0
-0arch/arm64/boot/dts/qcom/lemans.dtsi ipcc: mailbox@408000 { · line 1102
Quoted 6 lines
arch/arm64/boot/dts/qcom/lemans.dtsi +3
-0@@ -1097,6 +1097,18 @@ ipcc: mailbox@408000 { #mbox-cells = <2>; }; + qfprom: efuse@784000 { + compatible = "qcom,sa8775p-qfprom", "qcom,qfprom"; + reg = <0x0 0x00784000 0x0 0x2410>;len =
0x3000Quoted 7 lines
[...]
arch/arm64/boot/dts/qcom/lemans.dtsi
Quoted 3 lines
arch/arm64/boot/dts/qcom/lemans.dtsi +3
-0+ gmu: gmu@3d6a000 { + compatible = "qcom,adreno-gmu-663.0", "qcom,adreno-gmu"; + reg = <0x0 0x03d6a000 0x0 0x34000>,This bleeds into
GPU_CC, len should be0x26000gpucc is in the middle of GMU, see other platforms.
Quoted 8 lines
Quoted 8 lines
Quoted 4 lines
Quoted 1 line
This is not the case here
Why? I think GPU CC is a part of the GMU by design: GMU accesses GPU CC registers directly from the firmware.
Correct, however this is only a similarly sounding argument - the DT describes the hardware from the main Arm cluster POV. The GMU Cortex-M core has its own address map etc.
but the firmware is part of how the hardware appears to the main arm cluster
Quoted 6 lines
We have been keeping GPUCC region in the GMU's reg range in all chipsets for the purpose of coredump.
Can we leave this as is until we have a mechanism to dump these into gpu coredump (via gpucc driver??)? I recall you proposed something similar sometime back.
IMO we should keep this in the GMU range.. if in the future we have some other mechanism to dump gpucc state, then for future platforms we can start using that (ie. new dt but old kernel should be a thing we at least pretend to try to keep working), but for current/past platforms we should stick with keeping this in the GMU's range
BR,
-R
Quoted 5 lines
-Akhil
Quoted 2 lines
Konrad
Re: [PATCH v4 3/6] arm64: dts: qcom: sa8775p: Add gpu and gmu nodes
Quoted 63 lines · Rob Clark
Quoted 44 lines · Akhil P Oommen
Quoted 42 lines · Konrad Dybcio
Quoted 41 lines · Dmitry Baryshkov
Quoted 40 lines · Konrad Dybcio
Quoted 38 lines · Dmitry Baryshkov
Quoted 28 lines · Konrad Dybcio
Quoted 18 lines · Akhil P Oommen
From: Puranam V G Tejaswi <[email protected]>
Add gpu and gmu nodes for sa8775p chipset. As of now all SKUs have the same GPU fmax, so there is no requirement of speed bin support.
Signed-off-by Puranam V G Tejaswi <[email protected]>Signed-off-by Akhil P Oommen <[email protected]>Reviewed-by Dmitry Baryshkov <[email protected]>--- arch/arm64/boot/dts/qcom/lemans.dtsi | 116 +++++++++++++++++++++++++++++++++++ 1 file changed, 116 insertions(+)arch/arm64/boot/dts/qcom/lemans.dtsi +0
-0arch/arm64/boot/dts/qcom/lemans.dtsi ipcc: mailbox@408000 { · line 1102
Quoted 6 lines
arch/arm64/boot/dts/qcom/lemans.dtsi +3
-0@@ -1097,6 +1097,18 @@ ipcc: mailbox@408000 { #mbox-cells = <2>; }; + qfprom: efuse@784000 { + compatible = "qcom,sa8775p-qfprom", "qcom,qfprom"; + reg = <0x0 0x00784000 0x0 0x2410>;len =
0x3000Quoted 7 lines
[...]
arch/arm64/boot/dts/qcom/lemans.dtsi
Quoted 3 lines
arch/arm64/boot/dts/qcom/lemans.dtsi +3
-0+ gmu: gmu@3d6a000 { + compatible = "qcom,adreno-gmu-663.0", "qcom,adreno-gmu"; + reg = <0x0 0x03d6a000 0x0 0x34000>,This bleeds into
GPU_CC, len should be0x26000gpucc is in the middle of GMU, see other platforms.
Quoted 8 lines
Quoted 8 lines
Quoted 4 lines
Quoted 1 line
This is not the case here
Why? I think GPU CC is a part of the GMU by design: GMU accesses GPU CC registers directly from the firmware.
Correct, however this is only a similarly sounding argument - the DT describes the hardware from the main Arm cluster POV. The GMU Cortex-M core has its own address map etc.
but the firmware is part of how the hardware appears to the main arm cluster
Quoted 6 lines
We have been keeping GPUCC region in the GMU's reg range in all chipsets for the purpose of coredump.
Can we leave this as is until we have a mechanism to dump these into gpu coredump (via gpucc driver??)? I recall you proposed something similar sometime back.
Quoted 5 lines
IMO we should keep this in the GMU range.. if in the future we have some other mechanism to dump gpucc state, then for future platforms we can start using that (ie. new dt but old kernel should be a thing we at least pretend to try to keep working), but for current/past platforms we should stick with keeping this in the GMU's range
Eh, right, sorry, we discussed this with I think x1e, let's keep it as-is until more infra is in place
Konrad
Akhil P Oommen
reviewerRe: [PATCH v4 3/6] arm64: dts: qcom: sa8775p: Add gpu and gmu nodes
In reply to Konrad DybcioQuoted 22 lines · Konrad Dybcio
Quoted 21 lines · Akhil P Oommen
From: Puranam V G Tejaswi <[email protected]>
Add gpu and gmu nodes for sa8775p chipset. As of now all SKUs have the same GPU fmax, so there is no requirement of speed bin support.
Signed-off-by Puranam V G Tejaswi <[email protected]>Signed-off-by Akhil P Oommen <[email protected]>Reviewed-by Dmitry Baryshkov <[email protected]>--- arch/arm64/boot/dts/qcom/lemans.dtsi | 116 +++++++++++++++++++++++++++++++++++ 1 file changed, 116 insertions(+)arch/arm64/boot/dts/qcom/lemans.dtsi +0
-0@@ -1097,6 +1097,18 @@ ipcc: mailbox@408000 { #mbox-cells = <2>; };
Quoted 5 lines
arch/arm64/boot/dts/qcom/lemans.dtsi ipcc: mailbox@408000 { · line 1102
Quoted 3 lines
arch/arm64/boot/dts/qcom/lemans.dtsi +3
-0+ qfprom: efuse@784000 { + compatible = "qcom,sa8775p-qfprom", "qcom,qfprom"; + reg = <0x0 0x00784000 0x0 0x2410>;len =
0x3000
My bad. I missed these additional comments in this thread. Will extend this range to keep it 4K aligned.
Quoted 9 lines
[...]
arch/arm64/boot/dts/qcom/lemans.dtsi tcsr: syscon@1fc0000 { · line 4174
Quoted 3 lines
arch/arm64/boot/dts/qcom/lemans.dtsi +3
-0+ gmu: gmu@3d6a000 { + compatible = "qcom,adreno-gmu-663.0", "qcom,adreno-gmu"; + reg = <0x0 0x03d6a000 0x0 0x34000>,This bleeds into
GPU_CC, len should be0x26000
Quoted 15 lines
arch/arm64/boot/dts/qcom/lemans.dtsi tcsr: syscon@1fc0000 { · line 4187
Quoted 13 lines
arch/arm64/boot/dts/qcom/lemans.dtsi +13
-0+ <0x0 0x03de0000 0x0 0x10000>, + <0x0 0x0b290000 0x0 0x10000>; + reg-names = "gmu", "rscc", "gmu_pdc"; + interrupts = <GIC_SPI 304 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 305 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "hfi", "gmu"; + clocks = <&gpucc GPU_CC_CX_GMU_CLK>, + <&gpucc GPU_CC_CXO_CLK>, + <&gcc GCC_DDRSS_GPU_AXI_CLK>, + <&gcc GCC_GPU_MEMNOC_GFX_CLK>, + <&gpucc GPU_CC_AHB_CLK>, + <&gpucc GPU_CC_HUB_CX_INT_CLK>, + <&gpucc GPU_CC_HLOS1_VOTE_GPU_SMMU_CLK>;This clock only belongs in the SMMU node
Not really. This is recommended for A663 GPU like other A660 based GPUs. I know it is not intuitive. Similarly, we used to vote GMU clk for GPU SMMU earlier.
Quoted 14 lines
Quoted 14 lines
arch/arm64/boot/dts/qcom/lemans.dtsi +13
-0+ clock-names = "gmu", + "cxo", + "axi", + "memnoc", + "ahb", + "hub", + "smmu_vote"; + power-domains = <&gpucc GPU_CC_CX_GDSC>, + <&gpucc GPU_CC_GX_GDSC>; + power-domain-names = "cx", + "gx"; + iommus = <&adreno_smmu 5 0xc00>; + operating-points-v2 = <&gmu_opp_table>;
Quoted 9 lines
arch/arm64/boot/dts/qcom/lemans.dtsi tcsr: syscon@1fc0000 { · line 4206
Quoted 6 lines
arch/arm64/boot/dts/qcom/lemans.dtsi +6
-0+ + gmu_opp_table: opp-table { + compatible = "operating-points-v2"; + + opp-200000000 { + opp-hz = /bits/ 64 <200000000>;500 MHz @
RPMH_REGULATOR_LEVEL_SVS, 200 isn't even present in the clock driver
Ack. I guess this is fine. Hopefully GMU won't explode. :)
-Akhil
Quoted 1 line
Konrad
Akhil P Oommen
reviewerPATCH v4 4/6 arm64: dts: qcom: lemans: Add GPU cooling
In reply to Akhil P OommenFrom: Gaurav Kohli <[email protected]>
Unlike the CPU, the GPU does not throttle its speed automatically when it reaches high temperatures.
Set up GPU cooling by throttling the GPU speed
when reaching 105°C.
--- arch/arm64/boot/dts/qcom/lemans.dtsi | 67 +++++++++++++++++++++++++++++------- 1 file changed, 55 insertions(+), 12 deletions(-)
arch/arm64/boot/dts/qcom/lemans.dtsi +55 -12
@@ -20,6 +20,7 @@ #include <dt-bindings/power/qcom,rpmhpd.h> #include <dt-bindings/power/qcom-rpmpd.h> #include <dt-bindings/soc/qcom,rpmh-rsc.h> +#include <dt-bindings/thermal/thermal.h> / { interrupt-parent = <&intc>;
@@ -6816,13 +6817,20 @@ trip-point1 { }; }; - gpuss-0-thermal { + gpuss0_thermal: gpuss-0-thermal { polling-delay-passive = <10>; thermal-sensors = <&tsens0 5>; + cooling-maps { + map0 { + trip = <&gpuss0_alert0>; + cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + trips { - trip-point0 { + gpuss0_alert0: trip-point0 { temperature = <105000>; hysteresis = <5000>; type = "passive";
@@ -6836,13 +6844,20 @@ trip-point1 { }; }; - gpuss-1-thermal { + gpuss1_thermal: gpuss-1-thermal { polling-delay-passive = <10>; thermal-sensors = <&tsens0 6>; + cooling-maps { + map0 { + trip = <&gpuss1_alert0>; + cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + trips { - trip-point0 { + gpuss1_alert0: trip-point0 { temperature = <105000>; hysteresis = <5000>; type = "passive";
@@ -6856,13 +6871,20 @@ trip-point1 { }; }; - gpuss-2-thermal { + gpuss2_thermal: gpuss-2-thermal { polling-delay-passive = <10>; thermal-sensors = <&tsens0 7>; + cooling-maps { + map0 { + trip = <&gpuss2_alert0>; + cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + trips { - trip-point0 { + gpuss2_alert0: trip-point0 { temperature = <105000>; hysteresis = <5000>; type = "passive";
@@ -7046,13 +7068,20 @@ trip-point1 { }; }; - gpuss-3-thermal { + gpuss3_thermal: gpuss-3-thermal { polling-delay-passive = <10>; thermal-sensors = <&tsens1 5>; + cooling-maps { + map0 { + trip = <&gpuss3_alert0>; + cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + trips { - trip-point0 { + gpuss3_alert0: trip-point0 { temperature = <105000>; hysteresis = <5000>; type = "passive";
@@ -7066,13 +7095,20 @@ trip-point1 { }; }; - gpuss-4-thermal { + gpuss4_thermal: gpuss-4-thermal { polling-delay-passive = <10>; thermal-sensors = <&tsens1 6>; + cooling-maps { + map0 { + trip = <&gpuss4_alert0>; + cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + trips { - trip-point0 { + gpuss4_alert0: trip-point0 { temperature = <105000>; hysteresis = <5000>; type = "passive";
@@ -7086,13 +7122,20 @@ trip-point1 { }; }; - gpuss-5-thermal { + gpuss5_thermal: gpuss-5-thermal { polling-delay-passive = <10>; thermal-sensors = <&tsens1 7>; + cooling-maps { + map0 { + trip = <&gpuss5_alert0>; + cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + trips { - trip-point0 { + gpuss5_alert0: trip-point0 { temperature = <105000>; hysteresis = <5000>; type = "passive";
Signature · 1 line
2.50.1
Re: [PATCH v4 4/6] arm64: dts: qcom: lemans: Add GPU cooling
Quoted 27 lines · Akhil P Oommen
From: Gaurav Kohli <[email protected]>
Unlike the CPU, the GPU does not throttle its speed automatically when it reaches high temperatures.
Set up GPU cooling by throttling the GPU speed
when reaching 105°C.Signed-off-by Gaurav Kohli <[email protected]>Signed-off-by Akhil P Oommen <[email protected]>--- arch/arm64/boot/dts/qcom/lemans.dtsi | 67 +++++++++++++++++++++++++++++------- 1 file changed, 55 insertions(+), 12 deletions(-)arch/arm64/boot/dts/qcom/lemans.dtsi +1
-0@@ -20,6 +20,7 @@ #include <dt-bindings/power/qcom,rpmhpd.h> #include <dt-bindings/power/qcom-rpmpd.h> #include <dt-bindings/soc/qcom,rpmh-rsc.h> +#include <dt-bindings/thermal/thermal.h> / { interrupt-parent = <&intc>;
arch/arm64/boot/dts/qcom/lemans.dtsi trip-point1 { · line 6820
Quoted 5 lines
arch/arm64/boot/dts/qcom/lemans.dtsi +1
-1@@ -6816,13 +6817,20 @@ trip-point1 { }; }; - gpuss-0-thermal { + gpuss0_thermal: gpuss-0-thermal {
You don't need labels for the thermal zones, just the trip points below
Konrad
Re: [PATCH v4 4/6] arm64: dts: qcom: lemans: Add GPU cooling
Quoted 31 lines · Konrad Dybcio
Quoted 30 lines · Akhil P Oommen
From: Gaurav Kohli <[email protected]>
Unlike the CPU, the GPU does not throttle its speed automatically when it reaches high temperatures.
Set up GPU cooling by throttling the GPU speed
when reaching 105°C.Signed-off-by Gaurav Kohli <[email protected]>Signed-off-by Akhil P Oommen <[email protected]>--- arch/arm64/boot/dts/qcom/lemans.dtsi | 67 +++++++++++++++++++++++++++++------- 1 file changed, 55 insertions(+), 12 deletions(-)arch/arm64/boot/dts/qcom/lemans.dtsi +1
-0@@ -20,6 +20,7 @@ #include <dt-bindings/power/qcom,rpmhpd.h> #include <dt-bindings/power/qcom-rpmpd.h> #include <dt-bindings/soc/qcom,rpmh-rsc.h> +#include <dt-bindings/thermal/thermal.h> / { interrupt-parent = <&intc>;@@ -6816,13 +6817,20 @@ trip-point1 { }; };
Quoted 4 lines
arch/arm64/boot/dts/qcom/lemans.dtsi trip-point1 { · line 6820
Quoted 2 lines
arch/arm64/boot/dts/qcom/lemans.dtsi +1
-1- gpuss-0-thermal { + gpuss0_thermal: gpuss-0-thermal {You don't need labels for the thermal zones, just the trip points below
Sure, will update.
Quoted 3 lines
Konrad
Akhil P Oommen
reviewerPATCH v4 5/6 arm64: dts: qcom: lemans-evk: Enable Adreno 663 GPU
In reply to Akhil P OommenEnable GPU for lemans-evk platform and provide path for zap shader.
--- arch/arm64/boot/dts/qcom/lemans-evk.dts | 8 ++++++++ 1 file changed, 8 insertions(+)
arch/arm64/boot/dts/qcom/lemans-evk.dts +8 -0
@@ -253,6 +253,14 @@ vreg_l8e: ldo8 { }; }; +&gpu { + status = "okay"; +}; + +&gpu_zap_shader { + firmware-name = "qcom/sa8775p/a663_zap.mbn"; +}; + &qupv3_id_1 { status = "okay"; };
Signature · 1 line
2.50.1
Re: [PATCH v4 5/6] arm64: dts: qcom: lemans-evk: Enable Adreno 663 GPU
Quoted 8 lines · Akhil P Oommen
Enable GPU for lemans-evk platform and provide path for zap shader.
Signed-off-by Akhil P Oommen <[email protected]>--- arch/arm64/boot/dts/qcom/lemans-evk.dts | 8 ++++++++ 1 file changed, 8 insertions(+)
Signature · 2 lines
With best wishes Dmitry
Akhil P Oommen
reviewerPATCH v4 6/6 arm64: dts: qcom: qcs9100-ride: Enable Adreno 663 GPU
In reply to Akhil P OommenEnable GPU on both qcs9100-ride platforms and provide the path for zap shader.
--- arch/arm64/boot/dts/qcom/lemans-ride-common.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+)
arch/arm64/boot/dts/qcom/lemans-ride-common.dtsi +8 -0
@@ -436,6 +436,14 @@ vreg_l8e: ldo8 { }; }; +&gpu { + status = "okay"; +}; + +&gpu_zap_shader { + firmware-name = "qcom/sa8775p/a663_zap.mbn"; +}; + &i2c11 { clock-frequency = <400000>; status = "okay";
Signature · 1 line
2.50.1
Re: [PATCH v4 6/6] arm64: dts: qcom: qcs9100-ride: Enable Adreno 663 GPU
Quoted 8 lines · Akhil P Oommen
Enable GPU on both qcs9100-ride platforms and provide the path for zap shader.
Signed-off-by Akhil P Oommen <[email protected]>--- arch/arm64/boot/dts/qcom/lemans-ride-common.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+)
Signature · 2 lines
With best wishes Dmitry