mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/4] ACPI: CPPC: Fixes to limit actions to online CPUs
@ 2025-11-05 14:38 Gautham R. Shenoy
  2025-11-05 14:38 ` [PATCH 1/4] ACPI: CPPC: Detect preferred core availability on " Gautham R. Shenoy
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: Gautham R. Shenoy @ 2025-11-05 14:38 UTC (permalink / raw)
  To: Rafael J . Wysocki, Len Brown, Mario Limonciello, Yunhui Cui,
	Jeremy Linton, Viresh Kumar, Ionela Voinescu
  Cc: linux-acpi, linux-kernel, Christopher Harris, linux-pm,
	Gautham R. Shenoy

Hello,

Christopher Harris reported a regression between v6.10 to v6.11 that
the amd-pstate driver failed to load even when the commandline had
"amd_pstate=passive"
(https://lore.kernel.org/lkml/CAM+eXpdDT7KjLV0AxEwOLkSJ2QtrsvGvjA2cCHvt1d0k2_C4Cw@mail.gmail.com/)

On debugging the issue it was observed that when the commandline
contains "nosmt=force", the CPPC code fails when performing certain
checks such as checking for the presence of preferred cores and
validity of the _CPC object since it iterates through all "present"
CPUs while the object state was populated only for "online" CPUs.

This patchset contains fixes to address this issue.

The first two patches in the series address the issue reported by
Chris.

Patches 3 and 4 harden the code in a couple of more functions which
iterated through the present CPUs when it is more apt to restrict the
operations to online CPUs



Gautham R. Shenoy (4):
  ACPI: CPPC: Detect preferred core availability on online CPUs
  ACPI: CPPC: Check _CPC validity for only the online CPUs
  ACPI: CPPC: Perform fast check switch only for online CPUs
  ACPI: CPPC: Limit perf ctrs in PCC check only to online CPUs

 arch/x86/kernel/acpi/cppc.c | 2 +-
 drivers/acpi/cppc_acpi.c    | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

-- 
2.34.1


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

end of thread, other threads:[~2025-11-07  4:43 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-05 14:38 [PATCH 0/4] ACPI: CPPC: Fixes to limit actions to online CPUs Gautham R. Shenoy
2025-11-05 14:38 ` [PATCH 1/4] ACPI: CPPC: Detect preferred core availability on " Gautham R. Shenoy
2025-11-05 14:38 ` [PATCH 2/4] ACPI: CPPC: Check _CPC validity for only the " Gautham R. Shenoy
2025-11-05 14:38 ` [PATCH 3/4] ACPI: CPPC: Perform fast check switch only for " Gautham R. Shenoy
2025-11-05 14:38 ` [PATCH 4/4] ACPI: CPPC: Limit perf ctrs in PCC check only to " Gautham R. Shenoy
2025-11-05 16:00 ` [PATCH 0/4] ACPI: CPPC: Fixes to limit actions " Mario Limonciello (AMD) (kernel.org)
2025-11-07  4:42   ` Gautham R. Shenoy
2025-11-05 21:13 ` Chris H

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

all inboxes | Powered by JetHome®