Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

cpufreq/amd-pstate: add kernel command line to override dynamic epp

Add `amd_dynamic_epp=enable` and `amd_dynamic_epp=disable` to override
the kernel configuration option `CONFIG_X86_AMD_PSTATE_DYNAMIC_EPP`
locally.

Signed-off-by: Mario Limonciello (AMD) <superm1@kernel.org>
Reviewed-by: Gautham R. Shenoy <gautham.shenoy@amd.com>
Signed-off-by: Mario Limonciello (AMD) <superm1@kernel.org>

+25
+7
Documentation/admin-guide/kernel-parameters.txt
··· 493 493 disable 494 494 Disable amd-pstate preferred core. 495 495 496 + amd_dynamic_epp= 497 + [X86] 498 + disable 499 + Disable amd-pstate dynamic EPP. 500 + enable 501 + Enable amd-pstate dynamic EPP. 502 + 496 503 amijoy.map= [HW,JOY] Amiga joystick support 497 504 Map of devices attached to JOY0DAT and JOY1DAT 498 505 Format: <a>,<b>
+7
Documentation/admin-guide/pm/amd-pstate.rst
··· 474 474 always be advertised by the platform. But OS can choose to ignore that via the 475 475 kernel parameter ``amd_prefcore=disable``. 476 476 477 + ``amd_dynamic_epp`` 478 + 479 + When AMD pstate is in auto mode, dynamic EPP will control whether the kernel 480 + autonomously changes the EPP mode. The default is configured by 481 + ``CONFIG_X86_AMD_PSTATE_DYNAMIC_EPP`` but can be explicitly enabled with 482 + ``amd_dynamic_epp=enable`` or disabled with ``amd_dynamic_epp=disable``. 483 + 477 484 User Space Interface in ``sysfs`` - General 478 485 =========================================== 479 486
+11
drivers/cpufreq/amd-pstate.c
··· 2227 2227 return 0; 2228 2228 } 2229 2229 2230 + static int __init amd_dynamic_epp_param(char *str) 2231 + { 2232 + if (!strcmp(str, "disable")) 2233 + dynamic_epp = false; 2234 + if (!strcmp(str, "enable")) 2235 + dynamic_epp = true; 2236 + 2237 + return 0; 2238 + } 2239 + 2230 2240 early_param("amd_pstate", amd_pstate_param); 2231 2241 early_param("amd_prefcore", amd_prefcore_param); 2242 + early_param("amd_dynamic_epp", amd_dynamic_epp_param); 2232 2243 2233 2244 MODULE_AUTHOR("Huang Rui <ray.huang@amd.com>"); 2234 2245 MODULE_DESCRIPTION("AMD Processor P-state Frequency Driver");