Update the amd-pstate driver to set the initial scaling frequency policy

lower bound to be lowest non-linear frequency. This will have a slight
 power consumption impact but should lead to increased efficiency.
 
 Also amd-pstate is enabled by default on servers starting with newer
 AMD Epyc processors.
 
 Align more codepaths between shared memory and MSR designs.
 
 Add various code cleanups to rename functions and remove redundant calls.
 -----BEGIN PGP SIGNATURE-----
 
 iQJOBAABCgA4FiEECwtuSU6dXvs5GA2aLRkspiR3AnYFAmcg6D8aHG1hcmlvLmxp
 bW9uY2llbGxvQGFtZC5jb20ACgkQLRkspiR3AnYzKg//QeOoaUb1PHiRfLFw10n3
 HD3VeLvqOp7X5ZV3jVZh1QUs7VMg8hrBTKTx1Kk5l6GucEocToZuhfV20Ed4Jllr
 JOR7uPJ0GByMJsDOKxHL9aD8Z7MEk1nL8MqZ8lQeL9ENFThLPblg2yLmPQZoF5+6
 DoP8VKK/D7brydjlGMw0Z2HmVlJBiGN4z85ND0VzML8kkv18Q497FnY4s4HLJb4d
 TIDi8OC7BxSmG2+QDvVLs6MA7PBI/NRYcqB3hCJqcCsV2XOls5eWdRhQ/pH7bElN
 2r0gSFAVzHBypKVIGGFLwAMp3g4QmE6TR9qhecOwJQNrPLYMtXRKjCvB8Kshtupd
 uU9cvaAwZUWJJ79UqksvlGSVM+ZdKqpjjWwryM3RiTxje3WpwQedEyGfdbq8UiBZ
 4QMx4RQT8PVQAko8AFgcZpIKEOSsc3GA7rc/wAgJ1GrGnli7YTlKu50UJeUs5izW
 WVpdTokXxspz4LiC0UZ08MybUOKvj5Z3G+XtvuD3rhI9LGvWoBo2XxpLp+Hpn5HL
 /yyZnwRiHrnT02G/f9LQzyW9/xAItQku/vF7xrb0+X5ksTVTTxcUIKyFlblN/WJy
 tA/jxT0ulLR/Nhh03svnFiBdcHhJ8mnli+f/9oDKq7kc6i+fhpjtFwgiJkhRU0m+
 8TPBQzF7dAHZQS4R/EssuYE=
 =Z28c
 -----END PGP SIGNATURE-----

Merge tag 'amd-pstate-v6.13-2024-10-29' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/superm1/linux

Merge amd-pstate driver updates for 6.13 from Mario Limonciello:

"Update the amd-pstate driver to set the initial scaling frequency policy
 lower bound to be lowest non-linear frequency. This will have a slight
 power consumption impact but should lead to increased efficiency.

 Also amd-pstate is enabled by default on servers starting with newer
 AMD Epyc processors.

 Align more codepaths between shared memory and MSR designs.

 Add various code cleanups to rename functions and remove redundant calls."

* tag 'amd-pstate-v6.13-2024-10-29' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/superm1/linux:
  cpufreq/amd-pstate: Move registration after static function call update
  cpufreq/amd-pstate: Push adjust_perf vfunc init into cpu_init
  cpufreq/amd-pstate: Align offline flow of shared memory and MSR based systems
  cpufreq/amd-pstate: Call cppc_set_epp_perf in the reenable function
  cpufreq/amd-pstate: Do not attempt to clear MSR_AMD_CPPC_ENABLE
  cpufreq/amd-pstate: Rename functions that enable CPPC
  cpufreq/amd-pstate-ut: Add fix for min freq unit test
  amd-pstate: Switch to amd-pstate by default on some Server platforms
  amd-pstate: Set min_perf to nominal_perf for active mode performance gov
  cpufreq/amd-pstate: Remove the redundant amd_pstate_set_driver() call
  cpufreq/amd-pstate: Remove the switch case in amd_pstate_init()
  cpufreq/amd-pstate: Call amd_pstate_set_driver() in amd_pstate_register_driver()
  cpufreq/amd-pstate: Call amd_pstate_register() in amd_pstate_init()
  cpufreq/amd-pstate: Set the initial min_freq to lowest_nonlinear_freq
  cpufreq/amd-pstate: Remove the redundant verify() function
  cpufreq/amd-pstate: Drop needless EPP initialization
  cpufreq/amd-pstate: Use amd_pstate_update_min_max_limit() for EPP limits
  cpufreq/amd-pstate: Don't update CPPC request in amd_pstate_cpu_boost_update()
  cpufreq/amd-pstate: Fix non kerneldoc comment
  cpufreq/amd-pstate: Rename MSR and shared memory specific functions
This commit is contained in:
Rafael J. Wysocki 2024-10-29 15:46:33 +01:00
commit d90adb5a70
2 changed files with 97 additions and 138 deletions