]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
arm64: dts: qcom: sc7280: don't enable GPU on unsupported devices
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Sat, 7 Sep 2024 12:51:25 +0000 (15:51 +0300)
committerBjorn Andersson <andersson@kernel.org>
Tue, 1 Oct 2024 02:51:10 +0000 (21:51 -0500)
On SC7280 and derivative platforms GPU by default requires a signed
binary, a660_zap.mbn. Disable GPU by default and enable it only when
the binary is actually available (QCM6490-IDP, RB3gen2). ChromeOS
devices do not use TrustZone, so GPU can be enabled by default in
sc7280-chrome-common.dtsi. FairPhone5 and SHIFTphone8 DTS already
enable GPU (even though it wasn't required beforehand).

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Konrad Dybcio <konradybcio@kernel.org>
Link: https://lore.kernel.org/r/20240907-rb3g2-fixes-v1-2-eb9da98e9f80@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/qcm6490-idp.dts
arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts
arch/arm64/boot/dts/qcom/sc7280-chrome-common.dtsi
arch/arm64/boot/dts/qcom/sc7280.dtsi

index 84c45419cb8d13e32744350132f381a400d1ee7c..c4cfafb3ec1549d4273ba094d300362a4c30eb58 100644 (file)
        };
 };
 
+&gpu {
+       status = "okay";
+};
+
+&gpu_zap_shader {
+       firmware-name = "qcom/qcm6490/a660_zap.mbn";
+};
+
 &mdss {
        status = "okay";
 };
index 5d0167fbc70982d058f4c02d172a67eda3a3721b..00b755779608169ebb70b98713925ed3c0b30604 100644 (file)
        status = "okay";
 };
 
+&gpu {
+       status = "okay";
+};
+
+&gpu_zap_shader {
+       firmware-name = "qcom/qcs6490/a660_zap.mbn";
+};
+
 &i2c0 {
        clock-frequency = <400000>;
        status = "okay";
index cecb3e89f7f7b24a4ce2a00419bb808a4afca44d..eb5e32035d937c412847626d2f2b1814ba258a8d 100644 (file)
        domain-idle-states = <&CLUSTER_SLEEP_0>;
 };
 
+&gpu {
+       status = "okay";
+};
+
 &lpass_aon {
        status = "okay";
 };
index 3d8410683402fd4c03c5c2951721938fff20fc77..fbdc9c19242c77b05bfcdbc71d1b30a3ebb58093 100644 (file)
                        nvmem-cells = <&gpu_speed_bin>;
                        nvmem-cell-names = "speed_bin";
 
+                       status = "disabled";
+
                        gpu_zap_shader: zap-shader {
                                memory-region = <&gpu_zap_mem>;
                        };