* [PATCH] arm64: dts: mediatek: mt8186: Fix supported-hw mask for GPU OPPs
@ 2024-07-25 7:22 AngeloGioacchino Del Regno
2024-08-28 8:11 ` Alper Nebi Yasak
2024-09-02 16:07 ` Matthias Brugger
0 siblings, 2 replies; 4+ messages in thread
From: AngeloGioacchino Del Regno @ 2024-07-25 7:22 UTC (permalink / raw)
To: linux-mediatek
Cc: robh, krzk+dt, conor+dt, matthias.bgg, angelogioacchino.delregno,
wenst, devicetree, linux-kernel, linux-arm-kernel, kernel
The speedbin eFuse reads a value 'x' from 0 to 7 and, in order to
make that compatible with opp-supported-hw, it gets post processed
as BIT(x).
Change all of the 0x30 supported-hw to 0x20 to avoid getting
duplicate OPPs for speedbin 4, and also change all of the 0x8 to
0xcf because speedbins different from 4 and 5 do support 900MHz,
950MHz, 1000MHz with the higher voltage of 850mV, 900mV, 950mV
respectively.
Fixes: f38ea593ad0d ("arm64: dts: mediatek: mt8186: Wire up GPU voltage/frequency scaling")
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
---
arch/arm64/boot/dts/mediatek/mt8186.dtsi | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/arch/arm64/boot/dts/mediatek/mt8186.dtsi b/arch/arm64/boot/dts/mediatek/mt8186.dtsi
index 4763ed5dc86c..d63a9defe73e 100644
--- a/arch/arm64/boot/dts/mediatek/mt8186.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt8186.dtsi
@@ -731,7 +731,7 @@ opp-850000000 {
opp-900000000-3 {
opp-hz = /bits/ 64 <900000000>;
opp-microvolt = <850000>;
- opp-supported-hw = <0x8>;
+ opp-supported-hw = <0xcf>;
};
opp-900000000-4 {
@@ -743,13 +743,13 @@ opp-900000000-4 {
opp-900000000-5 {
opp-hz = /bits/ 64 <900000000>;
opp-microvolt = <825000>;
- opp-supported-hw = <0x30>;
+ opp-supported-hw = <0x20>;
};
opp-950000000-3 {
opp-hz = /bits/ 64 <950000000>;
opp-microvolt = <900000>;
- opp-supported-hw = <0x8>;
+ opp-supported-hw = <0xcf>;
};
opp-950000000-4 {
@@ -761,13 +761,13 @@ opp-950000000-4 {
opp-950000000-5 {
opp-hz = /bits/ 64 <950000000>;
opp-microvolt = <850000>;
- opp-supported-hw = <0x30>;
+ opp-supported-hw = <0x20>;
};
opp-1000000000-3 {
opp-hz = /bits/ 64 <1000000000>;
opp-microvolt = <950000>;
- opp-supported-hw = <0x8>;
+ opp-supported-hw = <0xcf>;
};
opp-1000000000-4 {
@@ -779,7 +779,7 @@ opp-1000000000-4 {
opp-1000000000-5 {
opp-hz = /bits/ 64 <1000000000>;
opp-microvolt = <875000>;
- opp-supported-hw = <0x30>;
+ opp-supported-hw = <0x20>;
};
};
--
2.45.2
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] arm64: dts: mediatek: mt8186: Fix supported-hw mask for GPU OPPs
2024-07-25 7:22 [PATCH] arm64: dts: mediatek: mt8186: Fix supported-hw mask for GPU OPPs AngeloGioacchino Del Regno
@ 2024-08-28 8:11 ` Alper Nebi Yasak
2024-09-02 16:07 ` Matthias Brugger
1 sibling, 0 replies; 4+ messages in thread
From: Alper Nebi Yasak @ 2024-08-28 8:11 UTC (permalink / raw)
To: AngeloGioacchino Del Regno, linux-mediatek
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Chen-Yu Tsai,
Matthias Brugger, devicetree, linux-kernel, linux-arm-kernel,
kernel
Hi,
On 2024-07-25 10:22 +03:00, AngeloGioacchino Del Regno wrote:
> The speedbin eFuse reads a value 'x' from 0 to 7 and, in order to
> make that compatible with opp-supported-hw, it gets post processed
> as BIT(x).
>
> Change all of the 0x30 supported-hw to 0x20 to avoid getting
> duplicate OPPs for speedbin 4, and also change all of the 0x8 to
> 0xcf because speedbins different from 4 and 5 do support 900MHz,
> 950MHz, 1000MHz with the higher voltage of 850mV, 900mV, 950mV
> respectively.
>
> Fixes: f38ea593ad0d ("arm64: dts: mediatek: mt8186: Wire up GPU voltage/frequency scaling")
> Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
> ---
Tested-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>
Appears to work on my magneton, I can see "Mali-G52 r1 (Panfrost)" as
the OpenGL renderer in various programs after this patch.
> arch/arm64/boot/dts/mediatek/mt8186.dtsi | 12 ++++++------
> 1 file changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/arch/arm64/boot/dts/mediatek/mt8186.dtsi b/arch/arm64/boot/dts/mediatek/mt8186.dtsi
> index 4763ed5dc86c..d63a9defe73e 100644
> --- a/arch/arm64/boot/dts/mediatek/mt8186.dtsi
> +++ b/arch/arm64/boot/dts/mediatek/mt8186.dtsi
> @@ -731,7 +731,7 @@ opp-850000000 {
> opp-900000000-3 {
> opp-hz = /bits/ 64 <900000000>;
> opp-microvolt = <850000>;
> - opp-supported-hw = <0x8>;
> + opp-supported-hw = <0xcf>;
> };
>
> opp-900000000-4 {
> @@ -743,13 +743,13 @@ opp-900000000-4 {
> opp-900000000-5 {
> opp-hz = /bits/ 64 <900000000>;
> opp-microvolt = <825000>;
> - opp-supported-hw = <0x30>;
> + opp-supported-hw = <0x20>;
> };
>
> opp-950000000-3 {
> opp-hz = /bits/ 64 <950000000>;
> opp-microvolt = <900000>;
> - opp-supported-hw = <0x8>;
> + opp-supported-hw = <0xcf>;
> };
>
> opp-950000000-4 {
> @@ -761,13 +761,13 @@ opp-950000000-4 {
> opp-950000000-5 {
> opp-hz = /bits/ 64 <950000000>;
> opp-microvolt = <850000>;
> - opp-supported-hw = <0x30>;
> + opp-supported-hw = <0x20>;
> };
>
> opp-1000000000-3 {
> opp-hz = /bits/ 64 <1000000000>;
> opp-microvolt = <950000>;
> - opp-supported-hw = <0x8>;
> + opp-supported-hw = <0xcf>;
> };
>
> opp-1000000000-4 {
> @@ -779,7 +779,7 @@ opp-1000000000-4 {
> opp-1000000000-5 {
> opp-hz = /bits/ 64 <1000000000>;
> opp-microvolt = <875000>;
> - opp-supported-hw = <0x30>;
> + opp-supported-hw = <0x20>;
> };
> };
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] arm64: dts: mediatek: mt8186: Fix supported-hw mask for GPU OPPs
2024-07-25 7:22 [PATCH] arm64: dts: mediatek: mt8186: Fix supported-hw mask for GPU OPPs AngeloGioacchino Del Regno
2024-08-28 8:11 ` Alper Nebi Yasak
@ 2024-09-02 16:07 ` Matthias Brugger
2024-09-06 8:09 ` AngeloGioacchino Del Regno
1 sibling, 1 reply; 4+ messages in thread
From: Matthias Brugger @ 2024-09-02 16:07 UTC (permalink / raw)
To: AngeloGioacchino Del Regno, linux-mediatek
Cc: robh, krzk+dt, conor+dt, wenst, devicetree, linux-kernel,
linux-arm-kernel, kernel
On 25/07/2024 09:22, AngeloGioacchino Del Regno wrote:
> The speedbin eFuse reads a value 'x' from 0 to 7 and, in order to
> make that compatible with opp-supported-hw, it gets post processed
> as BIT(x).
>
> Change all of the 0x30 supported-hw to 0x20 to avoid getting
> duplicate OPPs for speedbin 4, and also change all of the 0x8 to
> 0xcf because speedbins different from 4 and 5 do support 900MHz,
> 950MHz, 1000MHz with the higher voltage of 850mV, 900mV, 950mV
> respectively.
>
> Fixes: f38ea593ad0d ("arm64: dts: mediatek: mt8186: Wire up GPU voltage/frequency scaling")
> Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Patch got applied and is queued for v6.12 (v6.11-next/dts64 branch).
Somehow no email was send to inform about this.
Angelo, not sure if it's worth investigating what happened.
Regards,
Matthias
> ---
> arch/arm64/boot/dts/mediatek/mt8186.dtsi | 12 ++++++------
> 1 file changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/arch/arm64/boot/dts/mediatek/mt8186.dtsi b/arch/arm64/boot/dts/mediatek/mt8186.dtsi
> index 4763ed5dc86c..d63a9defe73e 100644
> --- a/arch/arm64/boot/dts/mediatek/mt8186.dtsi
> +++ b/arch/arm64/boot/dts/mediatek/mt8186.dtsi
> @@ -731,7 +731,7 @@ opp-850000000 {
> opp-900000000-3 {
> opp-hz = /bits/ 64 <900000000>;
> opp-microvolt = <850000>;
> - opp-supported-hw = <0x8>;
> + opp-supported-hw = <0xcf>;
> };
>
> opp-900000000-4 {
> @@ -743,13 +743,13 @@ opp-900000000-4 {
> opp-900000000-5 {
> opp-hz = /bits/ 64 <900000000>;
> opp-microvolt = <825000>;
> - opp-supported-hw = <0x30>;
> + opp-supported-hw = <0x20>;
> };
>
> opp-950000000-3 {
> opp-hz = /bits/ 64 <950000000>;
> opp-microvolt = <900000>;
> - opp-supported-hw = <0x8>;
> + opp-supported-hw = <0xcf>;
> };
>
> opp-950000000-4 {
> @@ -761,13 +761,13 @@ opp-950000000-4 {
> opp-950000000-5 {
> opp-hz = /bits/ 64 <950000000>;
> opp-microvolt = <850000>;
> - opp-supported-hw = <0x30>;
> + opp-supported-hw = <0x20>;
> };
>
> opp-1000000000-3 {
> opp-hz = /bits/ 64 <1000000000>;
> opp-microvolt = <950000>;
> - opp-supported-hw = <0x8>;
> + opp-supported-hw = <0xcf>;
> };
>
> opp-1000000000-4 {
> @@ -779,7 +779,7 @@ opp-1000000000-4 {
> opp-1000000000-5 {
> opp-hz = /bits/ 64 <1000000000>;
> opp-microvolt = <875000>;
> - opp-supported-hw = <0x30>;
> + opp-supported-hw = <0x20>;
> };
> };
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] arm64: dts: mediatek: mt8186: Fix supported-hw mask for GPU OPPs
2024-09-02 16:07 ` Matthias Brugger
@ 2024-09-06 8:09 ` AngeloGioacchino Del Regno
0 siblings, 0 replies; 4+ messages in thread
From: AngeloGioacchino Del Regno @ 2024-09-06 8:09 UTC (permalink / raw)
To: Matthias Brugger, linux-mediatek
Cc: robh, krzk+dt, conor+dt, wenst, devicetree, linux-kernel,
linux-arm-kernel, kernel
Il 02/09/24 18:07, Matthias Brugger ha scritto:
>
>
> On 25/07/2024 09:22, AngeloGioacchino Del Regno wrote:
>> The speedbin eFuse reads a value 'x' from 0 to 7 and, in order to
>> make that compatible with opp-supported-hw, it gets post processed
>> as BIT(x).
>>
>> Change all of the 0x30 supported-hw to 0x20 to avoid getting
>> duplicate OPPs for speedbin 4, and also change all of the 0x8 to
>> 0xcf because speedbins different from 4 and 5 do support 900MHz,
>> 950MHz, 1000MHz with the higher voltage of 850mV, 900mV, 950mV
>> respectively.
>>
>> Fixes: f38ea593ad0d ("arm64: dts: mediatek: mt8186: Wire up GPU voltage/frequency
>> scaling")
>> Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
>
> Patch got applied and is queued for v6.12 (v6.11-next/dts64 branch).
> Somehow no email was send to inform about this.
>
> Angelo, not sure if it's worth investigating what happened.
>
Thanks for that, yes I checked and I know what went wrong - shouldn't happen
anymore :-)
Cheers!
Angelo
> Regards,
> Matthias
>
>> ---
>> arch/arm64/boot/dts/mediatek/mt8186.dtsi | 12 ++++++------
>> 1 file changed, 6 insertions(+), 6 deletions(-)
>>
>> diff --git a/arch/arm64/boot/dts/mediatek/mt8186.dtsi
>> b/arch/arm64/boot/dts/mediatek/mt8186.dtsi
>> index 4763ed5dc86c..d63a9defe73e 100644
>> --- a/arch/arm64/boot/dts/mediatek/mt8186.dtsi
>> +++ b/arch/arm64/boot/dts/mediatek/mt8186.dtsi
>> @@ -731,7 +731,7 @@ opp-850000000 {
>> opp-900000000-3 {
>> opp-hz = /bits/ 64 <900000000>;
>> opp-microvolt = <850000>;
>> - opp-supported-hw = <0x8>;
>> + opp-supported-hw = <0xcf>;
>> };
>> opp-900000000-4 {
>> @@ -743,13 +743,13 @@ opp-900000000-4 {
>> opp-900000000-5 {
>> opp-hz = /bits/ 64 <900000000>;
>> opp-microvolt = <825000>;
>> - opp-supported-hw = <0x30>;
>> + opp-supported-hw = <0x20>;
>> };
>> opp-950000000-3 {
>> opp-hz = /bits/ 64 <950000000>;
>> opp-microvolt = <900000>;
>> - opp-supported-hw = <0x8>;
>> + opp-supported-hw = <0xcf>;
>> };
>> opp-950000000-4 {
>> @@ -761,13 +761,13 @@ opp-950000000-4 {
>> opp-950000000-5 {
>> opp-hz = /bits/ 64 <950000000>;
>> opp-microvolt = <850000>;
>> - opp-supported-hw = <0x30>;
>> + opp-supported-hw = <0x20>;
>> };
>> opp-1000000000-3 {
>> opp-hz = /bits/ 64 <1000000000>;
>> opp-microvolt = <950000>;
>> - opp-supported-hw = <0x8>;
>> + opp-supported-hw = <0xcf>;
>> };
>> opp-1000000000-4 {
>> @@ -779,7 +779,7 @@ opp-1000000000-4 {
>> opp-1000000000-5 {
>> opp-hz = /bits/ 64 <1000000000>;
>> opp-microvolt = <875000>;
>> - opp-supported-hw = <0x30>;
>> + opp-supported-hw = <0x20>;
>> };
>> };
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-09-06 8:09 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-25 7:22 [PATCH] arm64: dts: mediatek: mt8186: Fix supported-hw mask for GPU OPPs AngeloGioacchino Del Regno
2024-08-28 8:11 ` Alper Nebi Yasak
2024-09-02 16:07 ` Matthias Brugger
2024-09-06 8:09 ` AngeloGioacchino Del Regno
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®