forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'pm-6.10-rc3' of git://git.kernel.org/pub/scm/linux/kernel/…
…git/rafael/linux-pm Pull power management fixes from Rafael Wysocki: "These fix the intel_pstate and amd-pstate cpufreq drivers and the cpupower utility. Specifics: - Fix a recently introduced unchecked HWP MSR access in the intel_pstate driver (Srinivas Pandruvada) - Add missing conversion from MHz to KHz to amd_pstate_set_boost() to address sysfs inteface inconsistency and fix P-state frequency reporting on AMD Family 1Ah CPUs in the cpupower utility (Dhananjay Ugwekar) - Get rid of an excess global header file used by the amd-pstate cpufreq driver (Arnd Bergmann)" * tag 'pm-6.10-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: cpufreq: intel_pstate: Fix unchecked HWP MSR access cpufreq: amd-pstate: Fix the inconsistency in max frequency units cpufreq: amd-pstate: remove global header file tools/power/cpupower: Fix Pstate frequency reporting on AMD Family 1Ah CPUs
- Loading branch information
Showing
6 changed files
with
61 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1107,7 +1107,6 @@ L: [email protected] | |
S: Supported | ||
F: Documentation/admin-guide/pm/amd-pstate.rst | ||
F: drivers/cpufreq/amd-pstate* | ||
F: include/linux/amd-pstate.h | ||
F: tools/power/x86/amd_pstate_tracer/amd_pstate_trace.py | ||
|
||
AMD PTDMA DRIVER | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
/* SPDX-License-Identifier: GPL-2.0-only */ | ||
/* | ||
* linux/include/linux/amd-pstate.h | ||
* | ||
* Copyright (C) 2022 Advanced Micro Devices, Inc. | ||
* | ||
* Author: Meng Li <[email protected]> | ||
|
@@ -12,11 +10,6 @@ | |
|
||
#include <linux/pm_qos.h> | ||
|
||
#define AMD_CPPC_EPP_PERFORMANCE 0x00 | ||
#define AMD_CPPC_EPP_BALANCE_PERFORMANCE 0x80 | ||
#define AMD_CPPC_EPP_BALANCE_POWERSAVE 0xBF | ||
#define AMD_CPPC_EPP_POWERSAVE 0xFF | ||
|
||
/********************************************************************* | ||
* AMD P-state INTERFACE * | ||
*********************************************************************/ | ||
|
@@ -108,30 +101,4 @@ struct amd_cpudata { | |
bool suspended; | ||
}; | ||
|
||
/* | ||
* enum amd_pstate_mode - driver working mode of amd pstate | ||
*/ | ||
enum amd_pstate_mode { | ||
AMD_PSTATE_UNDEFINED = 0, | ||
AMD_PSTATE_DISABLE, | ||
AMD_PSTATE_PASSIVE, | ||
AMD_PSTATE_ACTIVE, | ||
AMD_PSTATE_GUIDED, | ||
AMD_PSTATE_MAX, | ||
}; | ||
|
||
static const char * const amd_pstate_mode_string[] = { | ||
[AMD_PSTATE_UNDEFINED] = "undefined", | ||
[AMD_PSTATE_DISABLE] = "disable", | ||
[AMD_PSTATE_PASSIVE] = "passive", | ||
[AMD_PSTATE_ACTIVE] = "active", | ||
[AMD_PSTATE_GUIDED] = "guided", | ||
NULL, | ||
}; | ||
|
||
struct quirk_entry { | ||
u32 nominal_freq; | ||
u32 lowest_freq; | ||
}; | ||
|
||
#endif /* _LINUX_AMD_PSTATE_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters