Two things are missing for the SM8350 GPU in mainline. First, the GPU never votes for DDR bandwidth (patch 1). This fix stands alone and can be taken on its own.
Second, the GPU speed bins are not read, so every part runs up to 840 MHz: parts validated only up to 738 MHz run above their rating, and parts that support 900 MHz never get it (patches 2-5). The frequencies, voltage levels and bandwidths all come from Qualcomm's GPU tables for SM8350. Patch 5 needs patch 3: without the keepout regions, reading the nvmem file resets the SoC. Patch 4 alone changes nothing until patch 5 adds the speed bin cell, and patch 5 without patch 4 keeps every part at speed bin 0 (up to 840 MHz, as today). The keepout regions in patch 3 were measured on one device (Razer Edge 5G), one 32-bit word at a time; the 0x128-0x147 one matches SC7180 and SC7280. If Qualcomm has the documented ranges, I'm happy to use them instead. Signed-off-by: Demeter Barna <[email protected]> --- Demeter Barna (5): arm64: dts: qcom: sm8350: Vote the GPU memory bandwidth dt-bindings: nvmem: qfprom: Add SM8350 compatible nvmem: qfprom: Add the SM8350 keepout regions drm/msm/adreno: Add speedbins for A660 GPU arm64: dts: qcom: sm8350: Add the GPU speed bins .../devicetree/bindings/nvmem/qcom,qfprom.yaml | 1 + arch/arm64/boot/dts/qcom/sm8350.dtsi | 47 +++++++++++++++++++++- drivers/gpu/drm/msm/adreno/a6xx_catalog.c | 8 ++++ drivers/nvmem/qfprom.c | 13 ++++++ 4 files changed, 68 insertions(+), 1 deletion(-) --- base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4 change-id: 20261105-b4-sm8350-gpu-ca91cfa9aa2f Best regards, -- Demeter Barna <[email protected]>
