feat(cpufreq): drive SDM660 APCS Agera PLLs directly and fix big.LITTLE DT mapping
Offline project checks / check (push) Waiting to run
Offline project checks / check (push) Waiting to run
This commit is contained in:
+214
-776
File diff suppressed because it is too large
Load Diff
+39
@@ -0,0 +1,39 @@
|
||||
From: Platina Linux contributors
|
||||
Subject: [PATCH] arm64: dts: qcom: platina: fix big.LITTLE cluster mapping and NOM OPPs
|
||||
|
||||
In sdm630.dtsi/sdm660.dtsi, cpu0..cpu3 (reg 0x100..0x103) are the Gold A73
|
||||
performance cluster (capacity 1024) and cpu4..cpu7 (reg 0x0..0x3) are the
|
||||
Silver A53 power cluster (capacity 640). Remap their clocks/OPPs to match
|
||||
<&cpu_osm 1> (perfcl) and <&cpu_osm 0> (pwrcl) respectively, and prune OPPs
|
||||
above the CPRh NOM ceiling (1401.6 MHz Silver / 1747.2 MHz Gold).
|
||||
|
||||
--- a/arch/arm64/boot/dts/qcom/sdm660-xiaomi-platina.dts
|
||||
+++ b/arch/arm64/boot/dts/qcom/sdm660-xiaomi-platina.dts
|
||||
@@ -1234,3 +1234,27 @@
|
||||
&ipa {
|
||||
status = "okay";
|
||||
};
|
||||
+
|
||||
+/* Fix big.LITTLE cluster mapping (cpu0..3 = Gold perfcl, cpu4..7 = Silver pwrcl)
|
||||
+ * and cap OPPs to the 868/872 mV NOM ceiling.
|
||||
+ */
|
||||
+&cpu0_opp_table {
|
||||
+ /delete-node/ opp-1536000000;
|
||||
+ /delete-node/ opp-1747200000;
|
||||
+ /delete-node/ opp-1843200000;
|
||||
+};
|
||||
+
|
||||
+&cpu4_opp_table {
|
||||
+ /delete-node/ opp-1958400000;
|
||||
+ /delete-node/ opp-2150400000;
|
||||
+ /delete-node/ opp-2208000000;
|
||||
+};
|
||||
+
|
||||
+&cpu0 { clocks = <&cpu_osm 1>; operating-points-v2 = <&cpu4_opp_table>; };
|
||||
+&cpu1 { clocks = <&cpu_osm 1>; operating-points-v2 = <&cpu4_opp_table>; };
|
||||
+&cpu2 { clocks = <&cpu_osm 1>; operating-points-v2 = <&cpu4_opp_table>; };
|
||||
+&cpu3 { clocks = <&cpu_osm 1>; operating-points-v2 = <&cpu4_opp_table>; };
|
||||
+&cpu4 { clocks = <&cpu_osm 0>; operating-points-v2 = <&cpu0_opp_table>; };
|
||||
+&cpu5 { clocks = <&cpu_osm 0>; operating-points-v2 = <&cpu0_opp_table>; };
|
||||
+&cpu6 { clocks = <&cpu_osm 0>; operating-points-v2 = <&cpu0_opp_table>; };
|
||||
+&cpu7 { clocks = <&cpu_osm 0>; operating-points-v2 = <&cpu0_opp_table>; };
|
||||
@@ -3,7 +3,7 @@ maintainer="Alexey Minnekhanov <alexeymin@minlexx.ru>"
|
||||
_flavor="postmarketos-qcom-sdm660"
|
||||
pkgname=linux-$_flavor
|
||||
pkgver=7.2.12
|
||||
pkgrel=26
|
||||
pkgrel=27
|
||||
pkgdesc="Close to mainline linux kernel for Qualcomm Snapdragon 660 SoC"
|
||||
arch="aarch64"
|
||||
url="https://kernel.org/"
|
||||
@@ -82,6 +82,7 @@ source="
|
||||
0043-net-ipa-add-support-for-ipa-v2.6-and-sdm660.patch
|
||||
0044-net-ipa-implement-sdm660-v2-6l-bam-transport.patch
|
||||
0045-arm64-dts-sdm630-fix-anoc2-context-irq-polarity.patch
|
||||
0046-arm64-dts-platina-fix-cpu-cluster-mapping-and-nom-opps.patch
|
||||
"
|
||||
|
||||
_carch="arm64"
|
||||
@@ -145,7 +146,7 @@ f7a8b7272ccb70b6a3a0049006ec608960fd876bf43ebf2c5880c92d1e55e7953a31dff37a2b2197
|
||||
e8a8b9382cdb3543b9ed73d309bfc37d41be96852b92ba46beed78b880186e71e3d73a151acb9893f8f13764e9265bf5a50865b2c2329feeb064039b70721091 0011-ath10k-wcn3990-chanlist-qcacld.patch
|
||||
a60a9faec11342f4ac0388b612edbbbe132269d2fd68bbbd2709fa0af068f1c9d27b57d5ebf0c6fc99792609eee0d715572ec160e41698bf0ae11a5c5cab7cf1 0012-ath10k-wcn3990-scan-trailing-tlvs.patch
|
||||
ae81f328100b9a6f756c68f5fcda2618ea866349c2ce291703f5f817b42d3a0954c772ed6f063d8132f522837e3eaa2978c61564cd19536f4442eb381e636680 0014-ath10k-wcn3990-no-scan-chan-stat.patch
|
||||
f8a47c452ec42a4c9278bd7e40e83ecea1d18c6eb76099e8e5526788275e2afac24bc2b415c22e1e41a3fda14ce07dc968e3e7e95b91122226a1fb098b027305 0015-clk-qcom-sdm660-cpu-osm-driver.patch
|
||||
883f2c3bbd707d61ba830fb8b1d7d85cf2fd6d1362cbfe14d4c85835fab7d28d7c2bd962a7cd509dfbd5f91d4b415b8478c50eb3b191a9ef562c9962681341a8 0015-clk-qcom-sdm660-cpu-osm-driver.patch
|
||||
36aef2306a6bb302e69891bf6619cfdfa81bc2e09cd2e4a2a15371f39af5755cf1045e061a1561d7375d8cfd8659dd2d81cab0296c62d90f7b256894fa28ea14 0016-arm64-dts-sdm660-platina-osm-cpufreq.patch
|
||||
71cd673724dda58e0af4c50d428d3739114eb32640da84823c84ffb8342ab1106f361cc5c780d58827bbc854285f06acdce17ffa486d3a4d14b786c1c415e318 0017-clk-qcom-sdm660-cprh-driver.patch
|
||||
110ad7640090163637a29fa61d5901b7424a2516be9f3131094fbecdb0ce69d705b3584a49ce27ae1d7c3319eefac974912e78fa65ede2baadd4135f724fc20b 0018-platina-audio.patch
|
||||
@@ -183,4 +184,5 @@ eb3b89ac99648776f193ee3c9d96d257f7d2e6ba5200a526e63c97e7dc4982e4b2985f15481aa431
|
||||
e2980a3b86521f452d042399812b8b5dd03af1193143313833e3608a8079763d4cc5c8d6c8530203db062c3df5ce40800e63567026239e6b19cdf6be07e3b199 0043-net-ipa-add-support-for-ipa-v2.6-and-sdm660.patch
|
||||
62f5ec3c6838fbdb3f10d6cda5dc28854bd30347b19fbf6784b51748bdb9496c4f7a21b5ae7c3f483029d2edaa5e85cf1b544f028793261dc2f881c1811daa90 0044-net-ipa-implement-sdm660-v2-6l-bam-transport.patch
|
||||
71e2ab4d994394bd2055948b536605709b9eb4775321fbd321cbdbf62d29687573c4c17485b174d153f7383a2ebf574c68b04ed98844f61a5e225b611a3a8b12 0045-arm64-dts-sdm630-fix-anoc2-context-irq-polarity.patch
|
||||
e29c9988ef9ea35e749c75aa73efd2622fa82b9c16350149d311e971f71855931045986171a607a0e03ca87bb2fa03c37ac3d0f8bf01e876b670374744a61cb4 0046-arm64-dts-platina-fix-cpu-cluster-mapping-and-nom-opps.patch
|
||||
"
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
"candidate": {
|
||||
"ports": "ports/candidate",
|
||||
"kernel": "7.2.12",
|
||||
"kernel_package": "7.2.12-r26",
|
||||
"kernel_package": "7.2.12-r27",
|
||||
"device_package": "5-r34",
|
||||
"firmware_package": "2-r5"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user