• P
    cpufreq: amd-pstate: add amd-pstate driver parameter for mode selection · 202e683d
    Perry Yuan 提交于
    When the amd_pstate driver is built-in users still need a method to be
    able enable or disable it depending upon their circumstance.
    Add support for an early parameter to do this.
    
    There is some performance degradation on a number of ASICs in the
    passive mode. This performance issue was originally discovered in
    shared memory systems but it has been proven that certain workloads
    on MSR systems also suffer performance issues.
    Set the amd-pstate driver as disabled by default to temporarily
    mitigate the performance problem.
    
     1) with `amd_pstate=disable`, pstate driver will be disabled to load at
        kernel booting.
    
     2) with `amd_pstate=passive`, pstate driver will be enabled and loaded
        as non-autonomous working mode supported in the low-level power
        management firmware.
    
     3) If neither parameter is specified, the driver will be disabled by
        default to avoid triggering performance regressions in certain ASICs
    Acked-by: NHuang Rui <ray.huang@amd.com>
    Reviewed-by: NGautham R. Shenoy <gautham.shenoy@amd.com>
    Tested-by: NWyes Karny <wyes.karny@amd.com>
    Signed-off-by: NPerry Yuan <Perry.Yuan@amd.com>
    Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
    202e683d
amd-pstate.c 17.5 KB