All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mario Limonciello <superm1@kernel.org>
To: "Rafael J. Wysocki" <rafael@kernel.org>
Cc: Ingo Molnar <mingo@kernel.org>, linux-acpi@vger.kernel.org
Subject: Re: [PATCH] ACPI: Enable CONFIG_ACPI_DEBUG by default
Date: Mon, 5 May 2025 10:59:34 -0500	[thread overview]
Message-ID: <ee7b40ab-3949-426a-bbcf-e6038208e1ff@kernel.org> (raw)
In-Reply-To: <CAJZ5v0iXK+Tqu0wyRU5fkHe5JpAqM5L30dDyr+J6d348tPo1Mw@mail.gmail.com>

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.

      reply	other threads:[~2025-05-05 15:59 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ee7b40ab-3949-426a-bbcf-e6038208e1ff@kernel.org \
    --to=superm1@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=mingo@kernel.org \
    --cc=rafael@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.