summaryrefslogtreecommitdiff
path: root/kernel/debug/debug_core.h
diff options
context:
space:
mode:
authorSumit Gupta <sumitg@nvidia.com>2026-11-10 15:42:46 +0530
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2026-11-10 15:56:03 +0100
commit7cca01c39cc89f6ef39079484d26b6d99287a610 (patch)
tree2b6813ff6a1ac970dae5f83ae9cc58d7119b292d /kernel/debug/debug_core.h
parent75120f31aed010c326b28d7c80d22314df34d9a8 (diff)
cpufreq: CPPC: Set CPPC Enable register in cpu_init()
As per ACPI 6.x s8.4.6.1.4 (CPPC Enable Register): "If supported by the platform, OSPM writes a one to this register to enable CPPC on this processor. If not implemented, OSPM assumes the platform always has CPPC enabled." The driver never writes this register. CPPC therefore stays disabled on platforms such as NVIDIA GB10 that wait for OSPM to enable it. Call cppc_set_enable() in cppc_cpufreq_cpu_init(). Fail init if enabling CPPC fails. If init fails after CPPC is enabled, disable it again. The register is optional, so -EOPNOTSUPP is not an error. Fixes: 5477fb3bd1e8 ("ACPI / CPPC: Add a CPUFreq driver for use with CPPC") Cc: All applicable <stable@vger.kernel.org> # ab482f1bac6b "ACPI: CPPC: Refactor register value get and set ABIs" Signed-off-by: Sumit Gupta <sumitg@nvidia.com> Reviewed-by: Christian Loehle <christian.loehle@arm.com> [ rjw: Subject tweak ] Link: https://patch.msgid.link/20261110101246.3665797-1-sumitg@nvidia.com Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'kernel/debug/debug_core.h')
0 files changed, 0 insertions, 0 deletions