All of lore.kernel.org
 help / color / mirror / Atom feed
* Missing mali regulator in Amlogic dts
@ 2022-03-08 18:24 ` Heiner Kallweit
  0 siblings, 0 replies; 8+ messages in thread
From: Heiner Kallweit @ 2022-03-08 18:24 UTC (permalink / raw)
  To: Martin Blumenstingl
  Cc: open list:ARM/Amlogic Meson..., linux-arm-kernel, Christian Hewitt

I get following error on a  S905W-based system.
lima d00c0000.gpu: dev_pm_opp_set_regulators: no regulator (mali) found: -19

I see mali-supply in the DTS of few other vendors, but in no Amlogic DTS.
Is it missing, or are Amlogic SoCs different here?
In the latter case supposedly drivers/gpu/drm/lima/lima_devfreq.c would
have to be changed to check for the optional regulator and not call
devm_pm_opp_set_regulators() if it's missing.

_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Missing mali regulator in Amlogic dts
@ 2022-03-08 18:24 ` Heiner Kallweit
  0 siblings, 0 replies; 8+ messages in thread
From: Heiner Kallweit @ 2022-03-08 18:24 UTC (permalink / raw)
  To: Martin Blumenstingl
  Cc: open list:ARM/Amlogic Meson..., linux-arm-kernel, Christian Hewitt

I get following error on a  S905W-based system.
lima d00c0000.gpu: dev_pm_opp_set_regulators: no regulator (mali) found: -19

I see mali-supply in the DTS of few other vendors, but in no Amlogic DTS.
Is it missing, or are Amlogic SoCs different here?
In the latter case supposedly drivers/gpu/drm/lima/lima_devfreq.c would
have to be changed to check for the optional regulator and not call
devm_pm_opp_set_regulators() if it's missing.

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Missing mali regulator in Amlogic dts
  2022-03-08 18:24 ` Heiner Kallweit
@ 2022-03-08 19:29   ` Martin Blumenstingl
  -1 siblings, 0 replies; 8+ messages in thread
From: Martin Blumenstingl @ 2022-03-08 19:29 UTC (permalink / raw)
  To: Heiner Kallweit
  Cc: open list:ARM/Amlogic Meson..., linux-arm-kernel, Christian Hewitt

Hi Heiner,

On Tue, Mar 8, 2022 at 7:24 PM Heiner Kallweit <hkallweit1@gmail.com> wrote:
>
> I get following error on a  S905W-based system.
> lima d00c0000.gpu: dev_pm_opp_set_regulators: no regulator (mali) found: -19
This warning is harmless (see below)

> I see mali-supply in the DTS of few other vendors, but in no Amlogic DTS.
> Is it missing, or are Amlogic SoCs different here?
As far as I understand, on GXBB and GXL SoCs the VDDEE regulator is
managed by the firmware (which is unfortunately closed-source).
IIRC on the hardware side VDDEE is just another PWM regulator, just
like with the 32-bit SoCs or with G12A (and later) SoCs.

> In the latter case supposedly drivers/gpu/drm/lima/lima_devfreq.c would
> have to be changed to check for the optional regulator and not call
> devm_pm_opp_set_regulators() if it's missing.
I think I just copied the logic from panfrost
(drivers/gpu/drm/panfrost/panfrost_devfreq.c) to lima.
So GXM boards (using panfrost) will probably report a similar warning.
That said, I don't know enough to judge whether your approach makes sense.


Best regards,
Martin

_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Missing mali regulator in Amlogic dts
@ 2022-03-08 19:29   ` Martin Blumenstingl
  0 siblings, 0 replies; 8+ messages in thread
From: Martin Blumenstingl @ 2022-03-08 19:29 UTC (permalink / raw)
  To: Heiner Kallweit
  Cc: open list:ARM/Amlogic Meson..., linux-arm-kernel, Christian Hewitt

Hi Heiner,

On Tue, Mar 8, 2022 at 7:24 PM Heiner Kallweit <hkallweit1@gmail.com> wrote:
>
> I get following error on a  S905W-based system.
> lima d00c0000.gpu: dev_pm_opp_set_regulators: no regulator (mali) found: -19
This warning is harmless (see below)

> I see mali-supply in the DTS of few other vendors, but in no Amlogic DTS.
> Is it missing, or are Amlogic SoCs different here?
As far as I understand, on GXBB and GXL SoCs the VDDEE regulator is
managed by the firmware (which is unfortunately closed-source).
IIRC on the hardware side VDDEE is just another PWM regulator, just
like with the 32-bit SoCs or with G12A (and later) SoCs.

> In the latter case supposedly drivers/gpu/drm/lima/lima_devfreq.c would
> have to be changed to check for the optional regulator and not call
> devm_pm_opp_set_regulators() if it's missing.
I think I just copied the logic from panfrost
(drivers/gpu/drm/panfrost/panfrost_devfreq.c) to lima.
So GXM boards (using panfrost) will probably report a similar warning.
That said, I don't know enough to judge whether your approach makes sense.


Best regards,
Martin

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Missing mali regulator in Amlogic dts
  2022-03-08 19:29   ` Martin Blumenstingl
@ 2022-03-08 20:34     ` Robin Murphy
  -1 siblings, 0 replies; 8+ messages in thread
From: Robin Murphy @ 2022-03-08 20:34 UTC (permalink / raw)
  To: Martin Blumenstingl, Heiner Kallweit
  Cc: open list:ARM/Amlogic Meson..., linux-arm-kernel, Christian Hewitt

On 2022-03-08 19:29, Martin Blumenstingl wrote:
> Hi Heiner,
> 
> On Tue, Mar 8, 2022 at 7:24 PM Heiner Kallweit <hkallweit1@gmail.com> wrote:
>>
>> I get following error on a  S905W-based system.
>> lima d00c0000.gpu: dev_pm_opp_set_regulators: no regulator (mali) found: -19
> This warning is harmless (see below)
> 
>> I see mali-supply in the DTS of few other vendors, but in no Amlogic DTS.
>> Is it missing, or are Amlogic SoCs different here?
> As far as I understand, on GXBB and GXL SoCs the VDDEE regulator is
> managed by the firmware (which is unfortunately closed-source).
> IIRC on the hardware side VDDEE is just another PWM regulator, just
> like with the 32-bit SoCs or with G12A (and later) SoCs.
> 
>> In the latter case supposedly drivers/gpu/drm/lima/lima_devfreq.c would
>> have to be changed to check for the optional regulator and not call
>> devm_pm_opp_set_regulators() if it's missing.
> I think I just copied the logic from panfrost
> (drivers/gpu/drm/panfrost/panfrost_devfreq.c) to lima.
> So GXM boards (using panfrost) will probably report a similar warning.
> That said, I don't know enough to judge whether your approach makes sense.

As a quality-of-life thing, it might make the most sense to refactor the 
API a bit so that it can offer a dedicated helper for setting optional 
regulators - possibly specifically a single optional regulator, since 
it's not necessarily clear how optionality should scale to a set of 
multiple items.

FWIW I do indeed see the same thing with panfrost, on an Arm Juno board 
where OPPs are completely abstracted behind the arm_scmi DVFS "clock".

Robin.

_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Missing mali regulator in Amlogic dts
@ 2022-03-08 20:34     ` Robin Murphy
  0 siblings, 0 replies; 8+ messages in thread
From: Robin Murphy @ 2022-03-08 20:34 UTC (permalink / raw)
  To: Martin Blumenstingl, Heiner Kallweit
  Cc: open list:ARM/Amlogic Meson..., linux-arm-kernel, Christian Hewitt

On 2022-03-08 19:29, Martin Blumenstingl wrote:
> Hi Heiner,
> 
> On Tue, Mar 8, 2022 at 7:24 PM Heiner Kallweit <hkallweit1@gmail.com> wrote:
>>
>> I get following error on a  S905W-based system.
>> lima d00c0000.gpu: dev_pm_opp_set_regulators: no regulator (mali) found: -19
> This warning is harmless (see below)
> 
>> I see mali-supply in the DTS of few other vendors, but in no Amlogic DTS.
>> Is it missing, or are Amlogic SoCs different here?
> As far as I understand, on GXBB and GXL SoCs the VDDEE regulator is
> managed by the firmware (which is unfortunately closed-source).
> IIRC on the hardware side VDDEE is just another PWM regulator, just
> like with the 32-bit SoCs or with G12A (and later) SoCs.
> 
>> In the latter case supposedly drivers/gpu/drm/lima/lima_devfreq.c would
>> have to be changed to check for the optional regulator and not call
>> devm_pm_opp_set_regulators() if it's missing.
> I think I just copied the logic from panfrost
> (drivers/gpu/drm/panfrost/panfrost_devfreq.c) to lima.
> So GXM boards (using panfrost) will probably report a similar warning.
> That said, I don't know enough to judge whether your approach makes sense.

As a quality-of-life thing, it might make the most sense to refactor the 
API a bit so that it can offer a dedicated helper for setting optional 
regulators - possibly specifically a single optional regulator, since 
it's not necessarily clear how optionality should scale to a set of 
multiple items.

FWIW I do indeed see the same thing with panfrost, on an Arm Juno board 
where OPPs are completely abstracted behind the arm_scmi DVFS "clock".

Robin.

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Missing mali regulator in Amlogic dts
  2022-03-08 20:34     ` Robin Murphy
@ 2022-03-09  5:51       ` Christian Hewitt
  -1 siblings, 0 replies; 8+ messages in thread
From: Christian Hewitt @ 2022-03-09  5:51 UTC (permalink / raw)
  To: Robin Murphy
  Cc: Martin Blumenstingl, Heiner Kallweit,
	open list:ARM/Amlogic Meson...,
	linux-arm-kernel


> On 9 Mar 2022, at 12:34 am, Robin Murphy <robin.murphy@arm.com> wrote:
> 
> On 2022-03-08 19:29, Martin Blumenstingl wrote:
>> Hi Heiner,
>> On Tue, Mar 8, 2022 at 7:24 PM Heiner Kallweit <hkallweit1@gmail.com> wrote:
>>> 
>>> I get following error on a  S905W-based system.
>>> lima d00c0000.gpu: dev_pm_opp_set_regulators: no regulator (mali) found: -19
>> This warning is harmless (see below)
>>> I see mali-supply in the DTS of few other vendors, but in no Amlogic DTS.
>>> Is it missing, or are Amlogic SoCs different here?
>> As far as I understand, on GXBB and GXL SoCs the VDDEE regulator is
>> managed by the firmware (which is unfortunately closed-source).
>> IIRC on the hardware side VDDEE is just another PWM regulator, just
>> like with the 32-bit SoCs or with G12A (and later) SoCs.
>>> In the latter case supposedly drivers/gpu/drm/lima/lima_devfreq.c would
>>> have to be changed to check for the optional regulator and not call
>>> devm_pm_opp_set_regulators() if it's missing.
>> I think I just copied the logic from panfrost
>> (drivers/gpu/drm/panfrost/panfrost_devfreq.c) to lima.
>> So GXM boards (using panfrost) will probably report a similar warning.
>> That said, I don't know enough to judge whether your approach makes sense.
> 
> As a quality-of-life thing, it might make the most sense to refactor the API a bit so that it can offer a dedicated helper for setting optional regulators - possibly specifically a single optional regulator, since it's not necessarily clear how optionality should scale to a set of multiple items.

I see occasional (not frequent, but persistent) “error” reports from users with some kind of display related problem, and they look through the boot log and see this and point fingers. It’s harmless, but not showing this on Amlogic devices (all of them show this via lima or panfrost) would be another micro-step towards less distro support effort.

Christian
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Missing mali regulator in Amlogic dts
@ 2022-03-09  5:51       ` Christian Hewitt
  0 siblings, 0 replies; 8+ messages in thread
From: Christian Hewitt @ 2022-03-09  5:51 UTC (permalink / raw)
  To: Robin Murphy
  Cc: Martin Blumenstingl, Heiner Kallweit,
	open list:ARM/Amlogic Meson...,
	linux-arm-kernel


> On 9 Mar 2022, at 12:34 am, Robin Murphy <robin.murphy@arm.com> wrote:
> 
> On 2022-03-08 19:29, Martin Blumenstingl wrote:
>> Hi Heiner,
>> On Tue, Mar 8, 2022 at 7:24 PM Heiner Kallweit <hkallweit1@gmail.com> wrote:
>>> 
>>> I get following error on a  S905W-based system.
>>> lima d00c0000.gpu: dev_pm_opp_set_regulators: no regulator (mali) found: -19
>> This warning is harmless (see below)
>>> I see mali-supply in the DTS of few other vendors, but in no Amlogic DTS.
>>> Is it missing, or are Amlogic SoCs different here?
>> As far as I understand, on GXBB and GXL SoCs the VDDEE regulator is
>> managed by the firmware (which is unfortunately closed-source).
>> IIRC on the hardware side VDDEE is just another PWM regulator, just
>> like with the 32-bit SoCs or with G12A (and later) SoCs.
>>> In the latter case supposedly drivers/gpu/drm/lima/lima_devfreq.c would
>>> have to be changed to check for the optional regulator and not call
>>> devm_pm_opp_set_regulators() if it's missing.
>> I think I just copied the logic from panfrost
>> (drivers/gpu/drm/panfrost/panfrost_devfreq.c) to lima.
>> So GXM boards (using panfrost) will probably report a similar warning.
>> That said, I don't know enough to judge whether your approach makes sense.
> 
> As a quality-of-life thing, it might make the most sense to refactor the API a bit so that it can offer a dedicated helper for setting optional regulators - possibly specifically a single optional regulator, since it's not necessarily clear how optionality should scale to a set of multiple items.

I see occasional (not frequent, but persistent) “error” reports from users with some kind of display related problem, and they look through the boot log and see this and point fingers. It’s harmless, but not showing this on Amlogic devices (all of them show this via lima or panfrost) would be another micro-step towards less distro support effort.

Christian
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-03-09  5:52 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-08 18:24 Missing mali regulator in Amlogic dts Heiner Kallweit
2022-03-08 18:24 ` Heiner Kallweit
2022-03-08 19:29 ` Martin Blumenstingl
2022-03-08 19:29   ` Martin Blumenstingl
2022-03-08 20:34   ` Robin Murphy
2022-03-08 20:34     ` Robin Murphy
2022-03-09  5:51     ` Christian Hewitt
2022-03-09  5:51       ` Christian Hewitt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.