All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ACPI: Only evaluate the Intel _OSC and _PDC on platforms with HWP
@ 2024-06-14 19:32 Mario Limonciello
  2024-06-15 10:38 ` Rafael J. Wysocki
  0 siblings, 1 reply; 4+ messages in thread
From: Mario Limonciello @ 2024-06-14 19:32 UTC (permalink / raw)
  To: Rafael J . Wysocki
  Cc: open list:ACPI, open list, Mario Limonciello,
	PradeepVineshReddy Kodamati, CL Lin

The UUID 4077A616-290C-47BE-9EBD-D87058713953 and _PDC methods are
only used on Intel platforms with HWP support.

Attempting to evaluate them and showing messages on hardware without
HWP is pointless needlessly noisy.

Gate the code on X86_FEATURE_HWP.

Cc: PradeepVineshReddy (Pradeep Vinesh Reddy) Kodamati <PradeepVineshReddy.Kodamati@amd.com>
Suggested-by: CL Lin <clin41@lenovo.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
---
 drivers/acpi/acpi_processor.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/acpi/acpi_processor.c b/drivers/acpi/acpi_processor.c
index 7a0dd35d62c9..84848b5e65d6 100644
--- a/drivers/acpi/acpi_processor.c
+++ b/drivers/acpi/acpi_processor.c
@@ -597,6 +597,8 @@ static bool __init acpi_early_processor_osc(void)
 
 void __init acpi_early_processor_control_setup(void)
 {
+	if (!boot_cpu_has(X86_FEATURE_HWP))
+		return;
 	if (acpi_early_processor_osc()) {
 		pr_info("_OSC evaluated successfully for all CPUs\n");
 	} else {
-- 
2.43.0


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

* Re: [PATCH] ACPI: Only evaluate the Intel _OSC and _PDC on platforms with HWP
  2024-06-14 19:32 [PATCH] ACPI: Only evaluate the Intel _OSC and _PDC on platforms with HWP Mario Limonciello
@ 2024-06-15 10:38 ` Rafael J. Wysocki
  2024-06-18 19:33   ` Mario Limonciello
  0 siblings, 1 reply; 4+ messages in thread
From: Rafael J. Wysocki @ 2024-06-15 10:38 UTC (permalink / raw)
  To: Mario Limonciello
  Cc: Rafael J . Wysocki, open list:ACPI, open list,
	PradeepVineshReddy Kodamati, CL Lin

On Fri, Jun 14, 2024 at 9:33 PM Mario Limonciello
<mario.limonciello@amd.com> wrote:
>
> The UUID 4077A616-290C-47BE-9EBD-D87058713953 and _PDC methods are
> only used on Intel platforms with HWP support.

I beg to differ.  See arch_acpi_set_proc_cap_bits() definition.

> Attempting to evaluate them and showing messages on hardware without
> HWP is pointless needlessly noisy.
>
> Gate the code on X86_FEATURE_HWP.

Not really.

> Cc: PradeepVineshReddy (Pradeep Vinesh Reddy) Kodamati <PradeepVineshReddy.Kodamati@amd.com>
> Suggested-by: CL Lin <clin41@lenovo.com>
> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
> ---
>  drivers/acpi/acpi_processor.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/drivers/acpi/acpi_processor.c b/drivers/acpi/acpi_processor.c
> index 7a0dd35d62c9..84848b5e65d6 100644
> --- a/drivers/acpi/acpi_processor.c
> +++ b/drivers/acpi/acpi_processor.c
> @@ -597,6 +597,8 @@ static bool __init acpi_early_processor_osc(void)
>
>  void __init acpi_early_processor_control_setup(void)
>  {
> +       if (!boot_cpu_has(X86_FEATURE_HWP))
> +               return;
>         if (acpi_early_processor_osc()) {
>                 pr_info("_OSC evaluated successfully for all CPUs\n");
>         } else {
> --
> 2.43.0
>

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

* Re: [PATCH] ACPI: Only evaluate the Intel _OSC and _PDC on platforms with HWP
  2024-06-15 10:38 ` Rafael J. Wysocki
@ 2024-06-18 19:33   ` Mario Limonciello
  2024-06-18 19:46     ` Rafael J. Wysocki
  0 siblings, 1 reply; 4+ messages in thread
From: Mario Limonciello @ 2024-06-18 19:33 UTC (permalink / raw)
  To: Rafael J. Wysocki
  Cc: open list:ACPI, open list, PradeepVineshReddy Kodamati, CL Lin

On 6/15/2024 05:38, Rafael J. Wysocki wrote:
> On Fri, Jun 14, 2024 at 9:33 PM Mario Limonciello
> <mario.limonciello@amd.com> wrote:
>>
>> The UUID 4077A616-290C-47BE-9EBD-D87058713953 and _PDC methods are
>> only used on Intel platforms with HWP support.
> 
> I beg to differ.  See arch_acpi_set_proc_cap_bits() definition.

Ah I see; thanks for sharing.  I agree with you.

> 
>> Attempting to evaluate them and showing messages on hardware without
>> HWP is pointless needlessly noisy.
>>
>> Gate the code on X86_FEATURE_HWP.
> 
> Not really.

I guess this really started getting noisy in 6.6 (9527264).

Would you be open to downgrading to debug instead?

> 
>> Cc: PradeepVineshReddy (Pradeep Vinesh Reddy) Kodamati <PradeepVineshReddy.Kodamati@amd.com>
>> Suggested-by: CL Lin <clin41@lenovo.com>
>> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
>> ---
>>   drivers/acpi/acpi_processor.c | 2 ++
>>   1 file changed, 2 insertions(+)
>>
>> diff --git a/drivers/acpi/acpi_processor.c b/drivers/acpi/acpi_processor.c
>> index 7a0dd35d62c9..84848b5e65d6 100644
>> --- a/drivers/acpi/acpi_processor.c
>> +++ b/drivers/acpi/acpi_processor.c
>> @@ -597,6 +597,8 @@ static bool __init acpi_early_processor_osc(void)
>>
>>   void __init acpi_early_processor_control_setup(void)
>>   {
>> +       if (!boot_cpu_has(X86_FEATURE_HWP))
>> +               return;
>>          if (acpi_early_processor_osc()) {
>>                  pr_info("_OSC evaluated successfully for all CPUs\n");
>>          } else {
>> --
>> 2.43.0
>>


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

* Re: [PATCH] ACPI: Only evaluate the Intel _OSC and _PDC on platforms with HWP
  2024-06-18 19:33   ` Mario Limonciello
@ 2024-06-18 19:46     ` Rafael J. Wysocki
  0 siblings, 0 replies; 4+ messages in thread
From: Rafael J. Wysocki @ 2024-06-18 19:46 UTC (permalink / raw)
  To: Mario Limonciello
  Cc: Rafael J. Wysocki, open list:ACPI, open list,
	PradeepVineshReddy Kodamati, CL Lin

On Tue, Jun 18, 2024 at 9:33 PM Mario Limonciello
<mario.limonciello@amd.com> wrote:
>
> On 6/15/2024 05:38, Rafael J. Wysocki wrote:
> > On Fri, Jun 14, 2024 at 9:33 PM Mario Limonciello
> > <mario.limonciello@amd.com> wrote:
> >>
> >> The UUID 4077A616-290C-47BE-9EBD-D87058713953 and _PDC methods are
> >> only used on Intel platforms with HWP support.
> >
> > I beg to differ.  See arch_acpi_set_proc_cap_bits() definition.
>
> Ah I see; thanks for sharing.  I agree with you.
>
> >
> >> Attempting to evaluate them and showing messages on hardware without
> >> HWP is pointless needlessly noisy.
> >>
> >> Gate the code on X86_FEATURE_HWP.
> >
> > Not really.
>
> I guess this really started getting noisy in 6.6 (9527264).
>
> Would you be open to downgrading to debug instead?

That would be fine, thanks!


> >
> >> Cc: PradeepVineshReddy (Pradeep Vinesh Reddy) Kodamati <PradeepVineshReddy.Kodamati@amd.com>
> >> Suggested-by: CL Lin <clin41@lenovo.com>
> >> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
> >> ---
> >>   drivers/acpi/acpi_processor.c | 2 ++
> >>   1 file changed, 2 insertions(+)
> >>
> >> diff --git a/drivers/acpi/acpi_processor.c b/drivers/acpi/acpi_processor.c
> >> index 7a0dd35d62c9..84848b5e65d6 100644
> >> --- a/drivers/acpi/acpi_processor.c
> >> +++ b/drivers/acpi/acpi_processor.c
> >> @@ -597,6 +597,8 @@ static bool __init acpi_early_processor_osc(void)
> >>
> >>   void __init acpi_early_processor_control_setup(void)
> >>   {
> >> +       if (!boot_cpu_has(X86_FEATURE_HWP))
> >> +               return;
> >>          if (acpi_early_processor_osc()) {
> >>                  pr_info("_OSC evaluated successfully for all CPUs\n");
> >>          } else {
> >> --
> >> 2.43.0
> >>
>

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

end of thread, other threads:[~2024-06-18 19:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-14 19:32 [PATCH] ACPI: Only evaluate the Intel _OSC and _PDC on platforms with HWP Mario Limonciello
2024-06-15 10:38 ` Rafael J. Wysocki
2024-06-18 19:33   ` Mario Limonciello
2024-06-18 19:46     ` Rafael J. Wysocki

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.