Skip to content

RFC Add processor to the ignore PSD override list

Punit Agrawal linux-pm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 22 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4cpufreq: acpi-cpufreq: Re-factor overriding ACPI PSDdrivers/cpufreq/acpi-cpufreq.c+15 -22 replies
2/4cpufreq: acpi-cpufreq: Add processor to the ignore PSD override listdrivers/cpufreq/acpi-cpufreq.c+7 -212 replies
3/4x86/cpu: amd: Define processor familiesarch/x86/include/asm/amd-family.h arch/x86/include/asm/cpu_device_id.h+20 -03 replies
4/4cpufreq: acpi-cpufreq: Use identifiers for AMD processor familydrivers/cpufreq/acpi-cpufreq.c+3 -32 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/4] Add processor to the ignore PSD override list

Hi,

While looking into Giovanni's patches to enable frequency invariance on AMD systems[0], I noticed an issue with initialising frequency domain information on a recent AMD APU.

Patch 1 refactors the test to ignore firmware provided frequency domain into a separate function.

Patch 2 adds said APU (Family: 0x17, Model: 0x60, Stepping: 0x01) to the list of CPUs for which the PSD override is ignored. I am not quite happy with having to special case a particular CPU but also couldn't find any documentation to help identify the CPUs that don't need the override.

Patch 3 and 4 are somewhat independent and a first step towards improving the situation with regards to the use of raw identifiers for AMD processors throughout the kernel.

All feedback welcome.

Thanks,
Punit

[0] https://lore.kernel.org/linux-acpi/[email protected]/

Punit Agrawal (4):
cpufreq: acpi-cpufreq: Re-factor overriding ACPI PSD
cpufreq: acpi-cpufreq: Add processor to the ignore PSD override list x86/cpu: amd: Define processor families
cpufreq: acpi-cpufreq: Use identifiers for AMD processor family

 arch/x86/include/asm/amd-family.h    | 18 ++++++++++++++++++
 arch/x86/include/asm/cpu_device_id.h |  2 ++
 drivers/cpufreq/acpi-cpufreq.c       | 24 +++++++++++++++++++++---
 3 files changed, 41 insertions(+), 3 deletions(-)
 create mode 100644 arch/x86/include/asm/amd-family.h
Signature · 1 line
2.29.2