Message ID | 20240329141311.27158-1-andre.przywara@arm.com (mailing list archive) |
---|---|
Headers | show |
Series | cpufreq: sun50i: Add Allwinner H616 support | expand |
On 29-03-24, 14:13, Andre Przywara wrote: > This series adds cpufreq support to the Allwinner H616 SoC. > v4 allows compilation outside of arm/arm64, by making the SMCCC call > optional, the rest of the changes are added tags and cosmetic fixes. > This is based on Martin's original series from about half a year ago[1]. > Thanks for the comments on the list! > See below for a changelog. Is it okay to merge all the changes via the cpufreq tree ?
On Thu, 4 Apr 2024, at 7:40 PM, Viresh Kumar wrote:
> Is it okay to merge all the changes via the cpufreq tree ?
I have tested this series with an H700-based board, and have at least one speed-bin (1.032GHz) is not supported although the governor attempts to enable it based on the opp-supported-hw bitmask, and I am unable to reach the 1.5GHz bin at 1.16v (or higher) despite it working on the vendor BSP (kernel panic at boot if enabled), so this may need some slight rework.
I have reached out to Andre on IRC to debug.
Ryan
On Thu, 04 Apr 2024 20:44:02 +1300 "Ryan Walklin" <ryan@testtoast.com> wrote: Hi Ryan, > On Thu, 4 Apr 2024, at 7:40 PM, Viresh Kumar wrote: > > Is it okay to merge all the changes via the cpufreq tree ? > > I have tested this series with an H700-based board, and have at least one speed-bin (1.032GHz) is not supported although the governor attempts to enable it based on the opp-supported-hw bitmask, and I am unable to reach the 1.5GHz bin at 1.16v (or higher) despite it working on the vendor BSP (kernel panic at boot if enabled), so this may need some slight rework. Thanks for the report! So can you try to merge the 1.032 GHz OPP into the 1.008 GHz one? That would be beneficial anyways since this is the default frequency that U-Boot sets up. Should be: opp-1008000000 { .... opp-microvolt-speed5 = <900000>; opp-supported-hw = <0x3f>; .... As for the 1.5 GHz speed bin: We could leave that out for now if it causes trouble. But can you first state how you got the OPPs? I copied them from some table you dumped once on IRC, but it would be good to double check what the actual values are that the BSP kernel runs with. The values in the vendor DT are highly inconsistent, besides we don't know for sure which speed bin index the BSP is using and how this maps to our method. Cheers, Andre > I have reached out to Andre on IRC to debug. > > Ryan
On Thu, 04 Apr 2024 20:44:02 +1300 "Ryan Walklin" <ryan@testtoast.com> wrote: Hi Viresh, Ryan, > On Thu, 4 Apr 2024, at 7:40 PM, Viresh Kumar wrote: > > Is it okay to merge all the changes via the cpufreq tree ? > > I have tested this series with an H700-based board, and have at least one speed-bin (1.032GHz) is not supported although the governor attempts to enable it based on the opp-supported-hw bitmask, and I am unable to reach the 1.5GHz bin at 1.16v (or higher) despite it working on the vendor BSP (kernel panic at boot if enabled), so this may need some slight rework. > > I have reached out to Andre on IRC to debug. So those test results look odd, especially since it seems to work on the BSP. I don't want to jeopardise this series over the oddity on this variant, so I am dropping the H700 specific speed bin for now. Not directly matching any known SoC variant now, it will fall back to bin 0, which gives us some safe values. We lose the highest OPP (1.5 GHz), but this was exactly the problematic one in the testing, so it's not a great loss. Once we have worked out what's really going on there, we can easily add a well tested OPP set later, to get the 1.5 GHz back. Will send a v5 shortly. Cheers, Andre