* [PATCH] ACPI: Enable CONFIG_ACPI_DEBUG by default
@ 2025-04-15 21:27 Mario Limonciello
2025-05-05 14:58 ` Mario Limonciello
0 siblings, 1 reply; 8+ messages in thread
From: Mario Limonciello @ 2025-04-15 21:27 UTC (permalink / raw)
To: mario.limonciello, rafael; +Cc: linux-acpi
From: Mario Limonciello <mario.limonciello@amd.com>
CONFIG_ACPI_DEBUG can be helpful for getting debug messages on OEM
systems to identify a BIOS bug. It's a relatively small size increase
to turn it on by default (50kb) and that saves asking people to enable
it when an issue comes up because it wasn't in defconfig.
Enable it by default.
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
---
drivers/acpi/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig
index 7f10aa38269d2..cb190686499b9 100644
--- a/drivers/acpi/Kconfig
+++ b/drivers/acpi/Kconfig
@@ -394,6 +394,7 @@ config ACPI_TABLE_OVERRIDE_VIA_BUILTIN_INITRD
config ACPI_DEBUG
bool "Debug Statements"
+ default y
help
The ACPI subsystem can produce debug output. Saying Y enables this
output and increases the kernel size by around 50K.
--
2.43.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH] ACPI: Enable CONFIG_ACPI_DEBUG by default
2025-04-15 21:27 [PATCH] ACPI: Enable CONFIG_ACPI_DEBUG by default Mario Limonciello
@ 2025-05-05 14:58 ` Mario Limonciello
2025-05-05 15:03 ` Rafael J. Wysocki
0 siblings, 1 reply; 8+ messages in thread
From: Mario Limonciello @ 2025-05-05 14:58 UTC (permalink / raw)
To: rafael; +Cc: linux-acpi
On 4/15/2025 4:27 PM, Mario Limonciello wrote:
> From: Mario Limonciello <mario.limonciello@amd.com>
>
> CONFIG_ACPI_DEBUG can be helpful for getting debug messages on OEM
> systems to identify a BIOS bug. It's a relatively small size increase
> to turn it on by default (50kb) and that saves asking people to enable
> it when an issue comes up because it wasn't in defconfig.
>
> Enable it by default.
>
> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Rafael,
Any thoughts on this? Especially in seeing Ingo trying to modernize
more of the defconfig [1]?
[1]
https://lore.kernel.org/lkml/20250505110946.1095363-1-mingo@kernel.org/#t
> ---
> drivers/acpi/Kconfig | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig
> index 7f10aa38269d2..cb190686499b9 100644
> --- a/drivers/acpi/Kconfig
> +++ b/drivers/acpi/Kconfig
> @@ -394,6 +394,7 @@ config ACPI_TABLE_OVERRIDE_VIA_BUILTIN_INITRD
>
> config ACPI_DEBUG
> bool "Debug Statements"
> + default y
> help
> The ACPI subsystem can produce debug output. Saying Y enables this
> output and increases the kernel size by around 50K.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] ACPI: Enable CONFIG_ACPI_DEBUG by default
2025-05-05 14:58 ` Mario Limonciello
@ 2025-05-05 15:03 ` Rafael J. Wysocki
2025-05-05 15:15 ` Mario Limonciello
0 siblings, 1 reply; 8+ messages in thread
From: Rafael J. Wysocki @ 2025-05-05 15:03 UTC (permalink / raw)
To: Mario Limonciello; +Cc: rafael, linux-acpi
On Mon, May 5, 2025 at 4:58 PM Mario Limonciello <superm1@kernel.org> wrote:
>
> On 4/15/2025 4:27 PM, Mario Limonciello wrote:
> > From: Mario Limonciello <mario.limonciello@amd.com>
> >
> > CONFIG_ACPI_DEBUG can be helpful for getting debug messages on OEM
> > systems to identify a BIOS bug. It's a relatively small size increase
> > to turn it on by default (50kb) and that saves asking people to enable
> > it when an issue comes up because it wasn't in defconfig.
> >
> > Enable it by default.
> >
> > Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
>
> Rafael,
>
> Any thoughts on this? Especially in seeing Ingo trying to modernize
> more of the defconfig [1]?
>
> [1]
> https://lore.kernel.org/lkml/20250505110946.1095363-1-mingo@kernel.org/#t
I'm not sure if this is a good idea TBH.
The risk is that people will start reporting issues that have been
there already, but now they become visible due to enabling ACPI_DEBUG
by default.
> > ---
> > drivers/acpi/Kconfig | 1 +
> > 1 file changed, 1 insertion(+)
> >
> > diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig
> > index 7f10aa38269d2..cb190686499b9 100644
> > --- a/drivers/acpi/Kconfig
> > +++ b/drivers/acpi/Kconfig
> > @@ -394,6 +394,7 @@ config ACPI_TABLE_OVERRIDE_VIA_BUILTIN_INITRD
> >
> > config ACPI_DEBUG
> > bool "Debug Statements"
> > + default y
> > help
> > The ACPI subsystem can produce debug output. Saying Y enables this
> > output and increases the kernel size by around 50K.
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] ACPI: Enable CONFIG_ACPI_DEBUG by default
2025-05-05 15:03 ` Rafael J. Wysocki
@ 2025-05-05 15:15 ` Mario Limonciello
2025-05-05 15:27 ` Rafael J. Wysocki
0 siblings, 1 reply; 8+ messages in thread
From: Mario Limonciello @ 2025-05-05 15:15 UTC (permalink / raw)
To: Rafael J. Wysocki, Ingo Molnar; +Cc: linux-acpi
On 5/5/2025 10:03 AM, Rafael J. Wysocki wrote:
> On Mon, May 5, 2025 at 4:58 PM Mario Limonciello <superm1@kernel.org> wrote:
>>
>> On 4/15/2025 4:27 PM, Mario Limonciello wrote:
>>> From: Mario Limonciello <mario.limonciello@amd.com>
>>>
>>> CONFIG_ACPI_DEBUG can be helpful for getting debug messages on OEM
>>> systems to identify a BIOS bug. It's a relatively small size increase
>>> to turn it on by default (50kb) and that saves asking people to enable
>>> it when an issue comes up because it wasn't in defconfig.
>>>
>>> Enable it by default.
>>>
>>> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
>>
>> Rafael,
>>
>> Any thoughts on this? Especially in seeing Ingo trying to modernize
>> more of the defconfig [1]?
>>
>> [1]
>> https://lore.kernel.org/lkml/20250505110946.1095363-1-mingo@kernel.org/#t
>
> I'm not sure if this is a good idea TBH.
>
> The risk is that people will start reporting issues that have been
> there already, but now they become visible due to enabling ACPI_DEBUG
> by default.
As several distros already enable it by default I would have expected
some "noise" like this to have settled down.
Do you have specific messages in mind you think could be turning noisy
from the extra debug statements?
>
>>> ---
>>> drivers/acpi/Kconfig | 1 +
>>> 1 file changed, 1 insertion(+)
>>>
>>> diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig
>>> index 7f10aa38269d2..cb190686499b9 100644
>>> --- a/drivers/acpi/Kconfig
>>> +++ b/drivers/acpi/Kconfig
>>> @@ -394,6 +394,7 @@ config ACPI_TABLE_OVERRIDE_VIA_BUILTIN_INITRD
>>>
>>> config ACPI_DEBUG
>>> bool "Debug Statements"
>>> + default y
>>> help
>>> The ACPI subsystem can produce debug output. Saying Y enables this
>>> output and increases the kernel size by around 50K.
>>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] ACPI: Enable CONFIG_ACPI_DEBUG by default
2025-05-05 15:15 ` Mario Limonciello
@ 2025-05-05 15:27 ` Rafael J. Wysocki
2025-05-05 15:32 ` Mario Limonciello
0 siblings, 1 reply; 8+ messages in thread
From: Rafael J. Wysocki @ 2025-05-05 15:27 UTC (permalink / raw)
To: Mario Limonciello; +Cc: Rafael J. Wysocki, Ingo Molnar, linux-acpi
On Mon, May 5, 2025 at 5:15 PM Mario Limonciello <superm1@kernel.org> wrote:
>
> On 5/5/2025 10:03 AM, Rafael J. Wysocki wrote:
> > On Mon, May 5, 2025 at 4:58 PM Mario Limonciello <superm1@kernel.org> wrote:
> >>
> >> On 4/15/2025 4:27 PM, Mario Limonciello wrote:
> >>> From: Mario Limonciello <mario.limonciello@amd.com>
> >>>
> >>> CONFIG_ACPI_DEBUG can be helpful for getting debug messages on OEM
> >>> systems to identify a BIOS bug. It's a relatively small size increase
> >>> to turn it on by default (50kb) and that saves asking people to enable
> >>> it when an issue comes up because it wasn't in defconfig.
> >>>
> >>> Enable it by default.
> >>>
> >>> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
> >>
> >> Rafael,
> >>
> >> Any thoughts on this? Especially in seeing Ingo trying to modernize
> >> more of the defconfig [1]?
> >>
> >> [1]
> >> https://lore.kernel.org/lkml/20250505110946.1095363-1-mingo@kernel.org/#t
> >
> > I'm not sure if this is a good idea TBH.
> >
> > The risk is that people will start reporting issues that have been
> > there already, but now they become visible due to enabling ACPI_DEBUG
> > by default.
>
> As several distros already enable it by default I would have expected
> some "noise" like this to have settled down.
>
> Do you have specific messages in mind you think could be turning noisy
> from the extra debug statements?
Nothing in particular, mostly messages coming from ACPICA, like the
ones complaining about missing objects that have always been missing
and the firmware is now too old for anyone to really care.
Those messages are only really useful when there is someone willing to
fix the issues that trigger them. Otherwise, they are just noise.
Though if it is enabled by default by distros used by the vast
majority of people, it could be enabled by default in the mainline
too.
Do you know which distros enable it by default?
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] ACPI: Enable CONFIG_ACPI_DEBUG by default
2025-05-05 15:27 ` Rafael J. Wysocki
@ 2025-05-05 15:32 ` Mario Limonciello
2025-05-05 15:55 ` Rafael J. Wysocki
0 siblings, 1 reply; 8+ messages in thread
From: Mario Limonciello @ 2025-05-05 15:32 UTC (permalink / raw)
To: Rafael J. Wysocki; +Cc: Ingo Molnar, linux-acpi
On 5/5/2025 10:27 AM, Rafael J. Wysocki wrote:
> On Mon, May 5, 2025 at 5:15 PM Mario Limonciello <superm1@kernel.org> wrote:
>>
>> On 5/5/2025 10:03 AM, Rafael J. Wysocki wrote:
>>> On Mon, May 5, 2025 at 4:58 PM Mario Limonciello <superm1@kernel.org> wrote:
>>>>
>>>> On 4/15/2025 4:27 PM, Mario Limonciello wrote:
>>>>> From: Mario Limonciello <mario.limonciello@amd.com>
>>>>>
>>>>> CONFIG_ACPI_DEBUG can be helpful for getting debug messages on OEM
>>>>> systems to identify a BIOS bug. It's a relatively small size increase
>>>>> to turn it on by default (50kb) and that saves asking people to enable
>>>>> it when an issue comes up because it wasn't in defconfig.
>>>>>
>>>>> Enable it by default.
>>>>>
>>>>> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
>>>>
>>>> Rafael,
>>>>
>>>> Any thoughts on this? Especially in seeing Ingo trying to modernize
>>>> more of the defconfig [1]?
>>>>
>>>> [1]
>>>> https://lore.kernel.org/lkml/20250505110946.1095363-1-mingo@kernel.org/#t
>>>
>>> I'm not sure if this is a good idea TBH.
>>>
>>> The risk is that people will start reporting issues that have been
>>> there already, but now they become visible due to enabling ACPI_DEBUG
>>> by default.
>>
>> As several distros already enable it by default I would have expected
>> some "noise" like this to have settled down.
>>
>> Do you have specific messages in mind you think could be turning noisy
>> from the extra debug statements?
>
> Nothing in particular, mostly messages coming from ACPICA, like the
> ones complaining about missing objects that have always been missing
> and the firmware is now too old for anyone to really care.
>
> Those messages are only really useful when there is someone willing to
> fix the issues that trigger them. Otherwise, they are just noise.
Ah I see. I suppose we could always have this on by default and if it
becomes untenable from reports flip it back to off.
>
> Though if it is enabled by default by distros used by the vast
> majority of people, it could be enabled by default in the mainline
> too.
>
> Do you know which distros enable it by default?
I know Ubuntu and CachyOS both do today. Fedora did it in some of their
kernels and they're pushing a change to enable it in more of them right now.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] ACPI: Enable CONFIG_ACPI_DEBUG by default
2025-05-05 15:32 ` Mario Limonciello
@ 2025-05-05 15:55 ` Rafael J. Wysocki
2025-05-05 15:59 ` Mario Limonciello
0 siblings, 1 reply; 8+ messages in thread
From: Rafael J. Wysocki @ 2025-05-05 15:55 UTC (permalink / raw)
To: Mario Limonciello; +Cc: Rafael J. Wysocki, Ingo Molnar, linux-acpi
On Mon, May 5, 2025 at 5:32 PM Mario Limonciello <superm1@kernel.org> wrote:
>
> On 5/5/2025 10:27 AM, Rafael J. Wysocki wrote:
> > On Mon, May 5, 2025 at 5:15 PM Mario Limonciello <superm1@kernel.org> wrote:
> >>
> >> On 5/5/2025 10:03 AM, Rafael J. Wysocki wrote:
> >>> On Mon, May 5, 2025 at 4:58 PM Mario Limonciello <superm1@kernel.org> wrote:
> >>>>
> >>>> On 4/15/2025 4:27 PM, Mario Limonciello wrote:
> >>>>> From: Mario Limonciello <mario.limonciello@amd.com>
> >>>>>
> >>>>> CONFIG_ACPI_DEBUG can be helpful for getting debug messages on OEM
> >>>>> systems to identify a BIOS bug. It's a relatively small size increase
> >>>>> to turn it on by default (50kb) and that saves asking people to enable
> >>>>> it when an issue comes up because it wasn't in defconfig.
> >>>>>
> >>>>> Enable it by default.
> >>>>>
> >>>>> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
> >>>>
> >>>> Rafael,
> >>>>
> >>>> Any thoughts on this? Especially in seeing Ingo trying to modernize
> >>>> more of the defconfig [1]?
> >>>>
> >>>> [1]
> >>>> https://lore.kernel.org/lkml/20250505110946.1095363-1-mingo@kernel.org/#t
> >>>
> >>> I'm not sure if this is a good idea TBH.
> >>>
> >>> The risk is that people will start reporting issues that have been
> >>> there already, but now they become visible due to enabling ACPI_DEBUG
> >>> by default.
> >>
> >> As several distros already enable it by default I would have expected
> >> some "noise" like this to have settled down.
> >>
> >> Do you have specific messages in mind you think could be turning noisy
> >> from the extra debug statements?
> >
> > Nothing in particular, mostly messages coming from ACPICA, like the
> > ones complaining about missing objects that have always been missing
> > and the firmware is now too old for anyone to really care.
> >
> > Those messages are only really useful when there is someone willing to
> > fix the issues that trigger them. Otherwise, they are just noise.
>
> Ah I see. I suppose we could always have this on by default and if it
> becomes untenable from reports flip it back to off.
The problem is that we'd only see the impact after the distros picked
up the new default config, which would take some time and then it
might not be practical to disable it again.
I guess enabling it by default could be combined with changing
ACPI_DEBUG_DEFAULT to ACPI_LV_REPAIR, say, but then you'd probably
still need to ask people to make it more verbose to see the
interesting messages.
> >
> > Though if it is enabled by default by distros used by the vast
> > majority of people, it could be enabled by default in the mainline
> > too.
> >
> > Do you know which distros enable it by default?
>
> I know Ubuntu and CachyOS both do today. Fedora did it in some of their
> kernels and they're pushing a change to enable it in more of them right now.
So why don't we let them do it and then decide?
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] ACPI: Enable CONFIG_ACPI_DEBUG by default
2025-05-05 15:55 ` Rafael J. Wysocki
@ 2025-05-05 15:59 ` Mario Limonciello
0 siblings, 0 replies; 8+ messages in thread
From: Mario Limonciello @ 2025-05-05 15:59 UTC (permalink / raw)
To: Rafael J. Wysocki; +Cc: Ingo Molnar, linux-acpi
On 5/5/2025 10:55 AM, Rafael J. Wysocki wrote:
> On Mon, May 5, 2025 at 5:32 PM Mario Limonciello <superm1@kernel.org> wrote:
>>
>> On 5/5/2025 10:27 AM, Rafael J. Wysocki wrote:
>>> On Mon, May 5, 2025 at 5:15 PM Mario Limonciello <superm1@kernel.org> wrote:
>>>>
>>>> On 5/5/2025 10:03 AM, Rafael J. Wysocki wrote:
>>>>> On Mon, May 5, 2025 at 4:58 PM Mario Limonciello <superm1@kernel.org> wrote:
>>>>>>
>>>>>> On 4/15/2025 4:27 PM, Mario Limonciello wrote:
>>>>>>> From: Mario Limonciello <mario.limonciello@amd.com>
>>>>>>>
>>>>>>> CONFIG_ACPI_DEBUG can be helpful for getting debug messages on OEM
>>>>>>> systems to identify a BIOS bug. It's a relatively small size increase
>>>>>>> to turn it on by default (50kb) and that saves asking people to enable
>>>>>>> it when an issue comes up because it wasn't in defconfig.
>>>>>>>
>>>>>>> Enable it by default.
>>>>>>>
>>>>>>> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
>>>>>>
>>>>>> Rafael,
>>>>>>
>>>>>> Any thoughts on this? Especially in seeing Ingo trying to modernize
>>>>>> more of the defconfig [1]?
>>>>>>
>>>>>> [1]
>>>>>> https://lore.kernel.org/lkml/20250505110946.1095363-1-mingo@kernel.org/#t
>>>>>
>>>>> I'm not sure if this is a good idea TBH.
>>>>>
>>>>> The risk is that people will start reporting issues that have been
>>>>> there already, but now they become visible due to enabling ACPI_DEBUG
>>>>> by default.
>>>>
>>>> As several distros already enable it by default I would have expected
>>>> some "noise" like this to have settled down.
>>>>
>>>> Do you have specific messages in mind you think could be turning noisy
>>>> from the extra debug statements?
>>>
>>> Nothing in particular, mostly messages coming from ACPICA, like the
>>> ones complaining about missing objects that have always been missing
>>> and the firmware is now too old for anyone to really care.
>>>
>>> Those messages are only really useful when there is someone willing to
>>> fix the issues that trigger them. Otherwise, they are just noise.
>>
>> Ah I see. I suppose we could always have this on by default and if it
>> becomes untenable from reports flip it back to off.
>
> The problem is that we'd only see the impact after the distros picked
> up the new default config, which would take some time and then it
> might not be practical to disable it again.
Good point.
>
> I guess enabling it by default could be combined with changing
> ACPI_DEBUG_DEFAULT to ACPI_LV_REPAIR, say, but then you'd probably
> still need to ask people to make it more verbose to see the
> interesting messages.
To me having ACPI_DEBUG enabled and ACPI_DEBUG_DEFAULT turned down is
totally fine. I find that the trace_* parameters are totally fine for
what I've used it for so far. IE set appropriate trace values, load
your module and report results.
Or set trace values on the kernel command line and report results for
boot issues.
>
>>>
>>> Though if it is enabled by default by distros used by the vast
>>> majority of people, it could be enabled by default in the mainline
>>> too.
>>>
>>> Do you know which distros enable it by default?
>>
>> I know Ubuntu and CachyOS both do today. Fedora did it in some of their
>> kernels and they're pushing a change to enable it in more of them right now.
>
> So why don't we let them do it and then decide?
Sure, we can revisit next cycle.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2025-05-05 15:59 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-15 21:27 [PATCH] ACPI: Enable CONFIG_ACPI_DEBUG by default Mario Limonciello
2025-05-05 14:58 ` Mario Limonciello
2025-05-05 15:03 ` Rafael J. Wysocki
2025-05-05 15:15 ` Mario Limonciello
2025-05-05 15:27 ` Rafael J. Wysocki
2025-05-05 15:32 ` Mario Limonciello
2025-05-05 15:55 ` Rafael J. Wysocki
2025-05-05 15:59 ` Mario Limonciello
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).