• Wyes Karny's avatar
    cpufreq: amd-pstate: Add guided autonomous mode · 2dd6d0eb
    Wyes Karny authored
    From ACPI spec below 3 modes for CPPC can be defined:
    
     1. Non autonomous: OS scaling governor specifies operating frequency/
        performance level through `Desired Performance` register and platform
        follows that.
    
     2. Guided autonomous: OS scaling governor specifies min and max
        frequencies/ performance levels through `Minimum Performance` and
        `Maximum Performance` register, and platform can autonomously select an
        operating frequency in this range.
    
     3. Fully autonomous: OS only hints (via EPP) to platform for the required
        energy performance preference for the workload and platform autonomously
        scales the frequency.
    
    Currently (1) is supported by amd_pstate as passive mode, and (3) is
    implemented by EPP support. This change is to support (2).
    
    In guided autonomous mode the min_perf is based on the input from the
    scaling governor. For example, in case of schedutil this value depends
    on the current utilization. And max_perf is set to max capacity.
    
    To activate guided auto mode ``amd_pstate=guided`` command line
    parameter has to be passed in the kernel.
    Acked-by: default avatarHuang Rui <ray.huang@amd.com>
    Reviewed-by: default avatarMario Limonciello <mario.limonciello@amd.com>
    Tested-by: default avatarOleksandr Natalenko <oleksandr@natalenko.name>
    Signed-off-by: default avatarWyes Karny <wyes.karny@amd.com>
    Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
    2dd6d0eb
kernel-parameters.txt 251 KB