* [PATCH v3] arm64: dts: mediatek: Add cpufreq nodes for MT8192
@ 2023-03-17 6:19 Allen-KH Cheng
2023-03-17 9:20 ` AngeloGioacchino Del Regno
2023-03-17 19:54 ` Nícolas F. R. A. Prado
0 siblings, 2 replies; 5+ messages in thread
From: Allen-KH Cheng @ 2023-03-17 6:19 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Matthias Brugger
Cc: Project_Global_Chrome_Upstream_Group, angelogioacchino.delregno,
devicetree, linux-arm-kernel, linux-kernel, linux-mediatek,
Allen-KH Cheng
Add the cpufreq nodes for MT8192 SoC.
Signed-off-by: Allen-KH Cheng <allen-kh.cheng@mediatek.com>
---
Change from v2:
Fix wrong performance-domains
[Allen-KH Cheng <allen-kh.cheng@mediatek.com>]
---
---
arch/arm64/boot/dts/mediatek/mt8192.dtsi | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/arch/arm64/boot/dts/mediatek/mt8192.dtsi b/arch/arm64/boot/dts/mediatek/mt8192.dtsi
index 87b91c8feaf9..ba49f37933d6 100644
--- a/arch/arm64/boot/dts/mediatek/mt8192.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt8192.dtsi
@@ -70,6 +70,7 @@
d-cache-line-size = <64>;
d-cache-sets = <128>;
next-level-cache = <&l2_0>;
+ performance-domains = <&performance 0>;
capacity-dmips-mhz = <530>;
};
@@ -87,6 +88,7 @@
d-cache-line-size = <64>;
d-cache-sets = <128>;
next-level-cache = <&l2_0>;
+ performance-domains = <&performance 0>;
capacity-dmips-mhz = <530>;
};
@@ -104,6 +106,7 @@
d-cache-line-size = <64>;
d-cache-sets = <128>;
next-level-cache = <&l2_0>;
+ performance-domains = <&performance 0>;
capacity-dmips-mhz = <530>;
};
@@ -121,6 +124,7 @@
d-cache-line-size = <64>;
d-cache-sets = <128>;
next-level-cache = <&l2_0>;
+ performance-domains = <&performance 0>;
capacity-dmips-mhz = <530>;
};
@@ -138,6 +142,7 @@
d-cache-line-size = <64>;
d-cache-sets = <256>;
next-level-cache = <&l2_1>;
+ performance-domains = <&performance 1>;
capacity-dmips-mhz = <1024>;
};
@@ -155,6 +160,7 @@
d-cache-line-size = <64>;
d-cache-sets = <256>;
next-level-cache = <&l2_1>;
+ performance-domains = <&performance 1>;
capacity-dmips-mhz = <1024>;
};
@@ -172,6 +178,7 @@
d-cache-line-size = <64>;
d-cache-sets = <256>;
next-level-cache = <&l2_1>;
+ performance-domains = <&performance 1>;
capacity-dmips-mhz = <1024>;
};
@@ -189,6 +196,7 @@
d-cache-line-size = <64>;
d-cache-sets = <256>;
next-level-cache = <&l2_1>;
+ performance-domains = <&performance 1>;
capacity-dmips-mhz = <1024>;
};
@@ -318,6 +326,12 @@
compatible = "simple-bus";
ranges;
+ performance: performance-controller@11bc10 {
+ compatible = "mediatek,cpufreq-hw";
+ reg = <0 0x0011bc10 0 0x120>, <0 0x0011bd30 0 0x120>;
+ #performance-domain-cells = <1>;
+ };
+
gic: interrupt-controller@c000000 {
compatible = "arm,gic-v3";
#interrupt-cells = <4>;
--
2.18.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v3] arm64: dts: mediatek: Add cpufreq nodes for MT8192
2023-03-17 6:19 [PATCH v3] arm64: dts: mediatek: Add cpufreq nodes for MT8192 Allen-KH Cheng
@ 2023-03-17 9:20 ` AngeloGioacchino Del Regno
2023-03-17 19:54 ` Nícolas F. R. A. Prado
1 sibling, 0 replies; 5+ messages in thread
From: AngeloGioacchino Del Regno @ 2023-03-17 9:20 UTC (permalink / raw)
To: Allen-KH Cheng, Rob Herring, Krzysztof Kozlowski, Matthias Brugger
Cc: Project_Global_Chrome_Upstream_Group, devicetree,
linux-arm-kernel, linux-kernel, linux-mediatek
Il 17/03/23 07:19, Allen-KH Cheng ha scritto:
> Add the cpufreq nodes for MT8192 SoC.
>
> Signed-off-by: Allen-KH Cheng <allen-kh.cheng@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
On Asurada-Spherion Chromebook:
Tested-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v3] arm64: dts: mediatek: Add cpufreq nodes for MT8192
2023-03-17 6:19 [PATCH v3] arm64: dts: mediatek: Add cpufreq nodes for MT8192 Allen-KH Cheng
2023-03-17 9:20 ` AngeloGioacchino Del Regno
@ 2023-03-17 19:54 ` Nícolas F. R. A. Prado
2023-05-30 7:29 ` Chen-Yu Tsai
1 sibling, 1 reply; 5+ messages in thread
From: Nícolas F. R. A. Prado @ 2023-03-17 19:54 UTC (permalink / raw)
To: Allen-KH Cheng
Cc: Rob Herring, Krzysztof Kozlowski, Matthias Brugger,
Project_Global_Chrome_Upstream_Group, angelogioacchino.delregno,
devicetree, linux-arm-kernel, linux-kernel, linux-mediatek
On Fri, Mar 17, 2023 at 02:19:44PM +0800, Allen-KH Cheng wrote:
> Add the cpufreq nodes for MT8192 SoC.
>
> Signed-off-by: Allen-KH Cheng <allen-kh.cheng@mediatek.com>
Reviewed-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
Tested-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
Tested on Asurada Spherion Chromebook as well. In particular, verified that
applying this commit makes suspend/resume work. Before, it would hang during
resume:
Enabling non-boot CPUs ...
Detected VIPT I-cache on CPU1
GICv3: CPU1: found redistributor 100 region 0:0x000000000c060000
CPU1: Booted secondary processor 0x0000000100 [0x412fd050]
But with this commit applied the machine is able to proceed bringing up the
secondary processors and complete resume.
Thanks,
Nícolas
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v3] arm64: dts: mediatek: Add cpufreq nodes for MT8192
2023-03-17 19:54 ` Nícolas F. R. A. Prado
@ 2023-05-30 7:29 ` Chen-Yu Tsai
2023-05-31 7:24 ` Matthias Brugger
0 siblings, 1 reply; 5+ messages in thread
From: Chen-Yu Tsai @ 2023-05-30 7:29 UTC (permalink / raw)
To: Matthias Brugger
Cc: Allen-KH Cheng, Nícolas F. R. A. Prado, Rob Herring,
Krzysztof Kozlowski, Project_Global_Chrome_Upstream_Group,
angelogioacchino.delregno, devicetree, linux-arm-kernel,
linux-kernel, linux-mediatek
On Sat, Mar 18, 2023 at 3:55 AM Nícolas F. R. A. Prado
<nfraprado@collabora.com> wrote:
>
> On Fri, Mar 17, 2023 at 02:19:44PM +0800, Allen-KH Cheng wrote:
> > Add the cpufreq nodes for MT8192 SoC.
> >
> > Signed-off-by: Allen-KH Cheng <allen-kh.cheng@mediatek.com>
>
> Reviewed-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
> Tested-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
>
> Tested on Asurada Spherion Chromebook as well. In particular, verified that
> applying this commit makes suspend/resume work. Before, it would hang during
> resume:
>
> Enabling non-boot CPUs ...
> Detected VIPT I-cache on CPU1
> GICv3: CPU1: found redistributor 100 region 0:0x000000000c060000
> CPU1: Booted secondary processor 0x0000000100 [0x412fd050]
>
> But with this commit applied the machine is able to proceed bringing up the
> secondary processors and complete resume.
Ping on this patch.
Tested-by: Chen-Yu Tsai <wenst@chromium.org>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v3] arm64: dts: mediatek: Add cpufreq nodes for MT8192
2023-05-30 7:29 ` Chen-Yu Tsai
@ 2023-05-31 7:24 ` Matthias Brugger
0 siblings, 0 replies; 5+ messages in thread
From: Matthias Brugger @ 2023-05-31 7:24 UTC (permalink / raw)
To: Chen-Yu Tsai
Cc: Allen-KH Cheng, Nícolas F. R. A. Prado, Rob Herring,
Krzysztof Kozlowski, Project_Global_Chrome_Upstream_Group,
angelogioacchino.delregno, devicetree, linux-arm-kernel,
linux-kernel, linux-mediatek
On 30/05/2023 09:29, Chen-Yu Tsai wrote:
> On Sat, Mar 18, 2023 at 3:55 AM Nícolas F. R. A. Prado
> <nfraprado@collabora.com> wrote:
>>
>> On Fri, Mar 17, 2023 at 02:19:44PM +0800, Allen-KH Cheng wrote:
>>> Add the cpufreq nodes for MT8192 SoC.
>>>
>>> Signed-off-by: Allen-KH Cheng <allen-kh.cheng@mediatek.com>
>>
>> Reviewed-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
>> Tested-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
>>
>> Tested on Asurada Spherion Chromebook as well. In particular, verified that
>> applying this commit makes suspend/resume work. Before, it would hang during
>> resume:
>>
>> Enabling non-boot CPUs ...
>> Detected VIPT I-cache on CPU1
>> GICv3: CPU1: found redistributor 100 region 0:0x000000000c060000
>> CPU1: Booted secondary processor 0x0000000100 [0x412fd050]
>>
>> But with this commit applied the machine is able to proceed bringing up the
>> secondary processors and complete resume.
>
> Ping on this patch.
>
> Tested-by: Chen-Yu Tsai <wenst@chromium.org>
Applied now, thanks for the ping.
Regards,
Matthias
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-05-31 7:25 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-17 6:19 [PATCH v3] arm64: dts: mediatek: Add cpufreq nodes for MT8192 Allen-KH Cheng
2023-03-17 9:20 ` AngeloGioacchino Del Regno
2023-03-17 19:54 ` Nícolas F. R. A. Prado
2023-05-30 7:29 ` Chen-Yu Tsai
2023-05-31 7:24 ` Matthias Brugger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).