public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] platform/x86: asus-armoury: downgrade missing power limits warning to debug
@ 2026-05-03 17:57 Armandas Kvietkus
  2026-05-03 21:23 ` Denis Benato
  2026-05-03 22:14 ` Denis Benato
  0 siblings, 2 replies; 5+ messages in thread
From: Armandas Kvietkus @ 2026-05-03 17:57 UTC (permalink / raw)
  To: luke, denis.benato
  Cc: hansg, ilpo.jarvinen, platform-driver-x86, linux-kernel,
	Armandas Kvietkus, fxzxaxon

When a system is not found in the power_limits DMI table,
init_rog_tunables() emits a pr_warn() and returns. This is
expected behaviour for hardware that does not support ROG
power limit tunables, not an error condition.

Downgrade to pr_debug() to avoid spurious boot noise on
unsupported systems while preserving the message for debugging.

Reported-by: fxzxaxon@outlook.com
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=221441
Signed-off-by: Armandas Kvietkus <armundunelis@gmail.com>
---
 drivers/platform/x86/asus-armoury.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/platform/x86/asus-armoury.c b/drivers/platform/x86/asus-armoury.c
index 5b0987ccc..c8e9ff89f 100644
--- a/drivers/platform/x86/asus-armoury.c
+++ b/drivers/platform/x86/asus-armoury.c
@@ -991,7 +991,7 @@ static void init_rog_tunables(void)
 	/* Match the system against the power_limits table */
 	dmi_id = dmi_first_match(power_limits);
 	if (!dmi_id) {
-		pr_warn("No matching power limits found for this system\n");
+		pr_debug("No matching power limits found for this system\n");
 		return;
 	}
 
-- 
2.54.0


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

* Re: [PATCH] platform/x86: asus-armoury: downgrade missing power limits warning to debug
  2026-05-03 17:57 [PATCH] platform/x86: asus-armoury: downgrade missing power limits warning to debug Armandas Kvietkus
@ 2026-05-03 21:23 ` Denis Benato
  2026-05-03 22:14 ` Denis Benato
  1 sibling, 0 replies; 5+ messages in thread
From: Denis Benato @ 2026-05-03 21:23 UTC (permalink / raw)
  To: Armandas Kvietkus, luke
  Cc: hansg, ilpo.jarvinen, platform-driver-x86, linux-kernel, fxzxaxon


On 5/3/26 19:57, Armandas Kvietkus wrote:
> When a system is not found in the power_limits DMI table,
> init_rog_tunables() emits a pr_warn() and returns. This is
> expected behaviour for hardware that does not support ROG
> power limit tunables, not an error condition.
>
> Downgrade to pr_debug() to avoid spurious boot noise on
> unsupported systems while preserving the message for debugging.
>
> Reported-by: fxzxaxon@outlook.com
> Closes: https://bugzilla.kernel.org/show_bug.cgi?id=221441
> Signed-off-by: Armandas Kvietkus <armundunelis@gmail.com>
> ---
>  drivers/platform/x86/asus-armoury.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/platform/x86/asus-armoury.c b/drivers/platform/x86/asus-armoury.c
> index 5b0987ccc..c8e9ff89f 100644
> --- a/drivers/platform/x86/asus-armoury.c
> +++ b/drivers/platform/x86/asus-armoury.c
> @@ -991,7 +991,7 @@ static void init_rog_tunables(void)
>  	/* Match the system against the power_limits table */
>  	dmi_id = dmi_first_match(power_limits);
>  	if (!dmi_id) {
> -		pr_warn("No matching power limits found for this system\n");
> +		pr_debug("No matching power limits found for this system\n");
I don't agree with this: most distro suppress debug and this warning is very handy to understand what's wrong when people report "missing sliders".
>  		return;
>  	}
>  

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

* Re: [PATCH] platform/x86: asus-armoury: downgrade missing power limits warning to debug
  2026-05-03 17:57 [PATCH] platform/x86: asus-armoury: downgrade missing power limits warning to debug Armandas Kvietkus
  2026-05-03 21:23 ` Denis Benato
@ 2026-05-03 22:14 ` Denis Benato
  2026-05-06 11:26   ` Ilpo Järvinen
  1 sibling, 1 reply; 5+ messages in thread
From: Denis Benato @ 2026-05-03 22:14 UTC (permalink / raw)
  To: Armandas Kvietkus, luke
  Cc: hansg, ilpo.jarvinen, platform-driver-x86, linux-kernel, fxzxaxon


On 5/3/26 19:57, Armandas Kvietkus wrote:
> When a system is not found in the power_limits DMI table,
> init_rog_tunables() emits a pr_warn() and returns. This is
> expected behaviour for hardware that does not support ROG
> power limit tunables, not an error condition.
>
> Downgrade to pr_debug() to avoid spurious boot noise on
> unsupported systems while preserving the message for debugging.
>
> Reported-by: fxzxaxon@outlook.com
> Closes: https://bugzilla.kernel.org/show_bug.cgi?id=221441
> Signed-off-by: Armandas Kvietkus <armundunelis@gmail.com>
> ---
>  drivers/platform/x86/asus-armoury.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/platform/x86/asus-armoury.c b/drivers/platform/x86/asus-armoury.c
> index 5b0987ccc..c8e9ff89f 100644
> --- a/drivers/platform/x86/asus-armoury.c
> +++ b/drivers/platform/x86/asus-armoury.c
> @@ -991,7 +991,7 @@ static void init_rog_tunables(void)
>  	/* Match the system against the power_limits table */
>  	dmi_id = dmi_first_match(power_limits);
>  	if (!dmi_id) {
> -		pr_warn("No matching power limits found for this system\n");
> +		pr_debug("No matching power limits found for this system\n");
Maybe this is right to get downgraded, but still no debug: I think info is better,
but I would like to hear from Luke what this is about.

Denis
>  		return;
>  	}
>  

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

* Re: [PATCH] platform/x86: asus-armoury: downgrade missing power limits warning to debug
  2026-05-03 22:14 ` Denis Benato
@ 2026-05-06 11:26   ` Ilpo Järvinen
  2026-05-06 21:44     ` Denis Benato
  0 siblings, 1 reply; 5+ messages in thread
From: Ilpo Järvinen @ 2026-05-06 11:26 UTC (permalink / raw)
  To: Denis Benato
  Cc: Armandas Kvietkus, luke, Hans de Goede, platform-driver-x86, LKML,
	fxzxaxon

On Mon, 4 May 2026, Denis Benato wrote:
> On 5/3/26 19:57, Armandas Kvietkus wrote:
> > When a system is not found in the power_limits DMI table,
> > init_rog_tunables() emits a pr_warn() and returns. This is
> > expected behaviour for hardware that does not support ROG
> > power limit tunables, not an error condition.
> >
> > Downgrade to pr_debug() to avoid spurious boot noise on
> > unsupported systems while preserving the message for debugging.
> >
> > Reported-by: fxzxaxon@outlook.com
> > Closes: https://bugzilla.kernel.org/show_bug.cgi?id=221441
> > Signed-off-by: Armandas Kvietkus <armundunelis@gmail.com>
> > ---
> >  drivers/platform/x86/asus-armoury.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/platform/x86/asus-armoury.c b/drivers/platform/x86/asus-armoury.c
> > index 5b0987ccc..c8e9ff89f 100644
> > --- a/drivers/platform/x86/asus-armoury.c
> > +++ b/drivers/platform/x86/asus-armoury.c
> > @@ -991,7 +991,7 @@ static void init_rog_tunables(void)
> >  	/* Match the system against the power_limits table */
> >  	dmi_id = dmi_first_match(power_limits);
> >  	if (!dmi_id) {
> > -		pr_warn("No matching power limits found for this system\n");
> > +		pr_debug("No matching power limits found for this system\n");
>
> Maybe this is right to get downgraded, but still no debug: I think info is better,
> but I would like to hear from Luke what this is about.

Hi Denis,

When kernel is built with CONFIG_DYNAMIC_DEBUG=y, all debug messages 
will appear if kernel's cmdline enables it:

dyndbg="file drivers/platform/x86/asus-armoury.c +p"

(wildcards too could be used where helpful and semicolon as a separator 
if, in rare cases, more than one filter should be necessary).

So all we need is to ask the reporter to boot with dyndbg enabled for the 
relevant file(s), no recompiling the kernel required.


I suspect most distros do have dynamic debugging capability in their 
kernel configs so it shouldn't be a problem when they don't by default 
show these messages (at least the two major ones I just checked have it).


-- 
 i.


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

* Re: [PATCH] platform/x86: asus-armoury: downgrade missing power limits warning to debug
  2026-05-06 11:26   ` Ilpo Järvinen
@ 2026-05-06 21:44     ` Denis Benato
  0 siblings, 0 replies; 5+ messages in thread
From: Denis Benato @ 2026-05-06 21:44 UTC (permalink / raw)
  To: Ilpo Järvinen
  Cc: Armandas Kvietkus, luke, Hans de Goede, platform-driver-x86, LKML,
	fxzxaxon


On 5/6/26 13:26, Ilpo Järvinen wrote:
> On Mon, 4 May 2026, Denis Benato wrote:
>> On 5/3/26 19:57, Armandas Kvietkus wrote:
>>> When a system is not found in the power_limits DMI table,
>>> init_rog_tunables() emits a pr_warn() and returns. This is
>>> expected behaviour for hardware that does not support ROG
>>> power limit tunables, not an error condition.
>>>
>>> Downgrade to pr_debug() to avoid spurious boot noise on
>>> unsupported systems while preserving the message for debugging.
>>>
>>> Reported-by: fxzxaxon@outlook.com
>>> Closes: https://bugzilla.kernel.org/show_bug.cgi?id=221441
>>> Signed-off-by: Armandas Kvietkus <armundunelis@gmail.com>
>>> ---
>>>  drivers/platform/x86/asus-armoury.c | 2 +-
>>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git a/drivers/platform/x86/asus-armoury.c b/drivers/platform/x86/asus-armoury.c
>>> index 5b0987ccc..c8e9ff89f 100644
>>> --- a/drivers/platform/x86/asus-armoury.c
>>> +++ b/drivers/platform/x86/asus-armoury.c
>>> @@ -991,7 +991,7 @@ static void init_rog_tunables(void)
>>>  	/* Match the system against the power_limits table */
>>>  	dmi_id = dmi_first_match(power_limits);
>>>  	if (!dmi_id) {
>>> -		pr_warn("No matching power limits found for this system\n");
>>> +		pr_debug("No matching power limits found for this system\n");
>> Maybe this is right to get downgraded, but still no debug: I think info is better,
>> but I would like to hear from Luke what this is about.
> Hi Denis,
>
> When kernel is built with CONFIG_DYNAMIC_DEBUG=y, all debug messages 
> will appear if kernel's cmdline enables it:
>
> dyndbg="file drivers/platform/x86/asus-armoury.c +p"
>
> (wildcards too could be used where helpful and semicolon as a separator 
> if, in rare cases, more than one filter should be necessary).
>
> So all we need is to ask the reporter to boot with dyndbg enabled for the 
> relevant file(s), no recompiling the kernel required.
>
>
> I suspect most distros do have dynamic debugging capability in their 
> kernel configs so it shouldn't be a problem when they don't by default 
> show these messages (at least the two major ones I just checked have it).
>
Hi!

My position is that the experience of most users is:
they boot linux, install asusctl, notice that not only is less fancy than the windows counterpart,
but it also lacks TDP sliders so they enter in discord and ask "why can't I control my TDP".

As of now one just answers "dmesg | grep asus" and the warning appears, while if this becomes a debug
the process becomes more involved, for both parts, as most people know dmesg, but a person randomly
hanging in the discord doesn't usually know how to enable dynamic debugging, or how to reconfigure
a bootloader. I surely don't know how to configure every bootloader under the sun for every major distro.

My point of view is that said warning guided someone straight to me, so it reached its objective effectively,
why changing something that works?

The only reason I can think of is people who run with panic on warning, but since I have yet to see an asus
laptop that doesn't make linux spam a bunch of acpi errors and warnings such a kernel (as of now) is
unbootable on these machines.

Perhaps you have a stronger motivation and can point me to it?

My current opinion is that instead of demoting it from a warning I should perhaps phrase it better
as Mario suggests.

Denis

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

end of thread, other threads:[~2026-05-06 21:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-03 17:57 [PATCH] platform/x86: asus-armoury: downgrade missing power limits warning to debug Armandas Kvietkus
2026-05-03 21:23 ` Denis Benato
2026-05-03 22:14 ` Denis Benato
2026-05-06 11:26   ` Ilpo Järvinen
2026-05-06 21:44     ` Denis Benato

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox