• Srinivas Pandruvada's avatar
    cpufreq: intel_pstate: Process HWP Guaranteed change notification · d0e936ad
    Srinivas Pandruvada authored
    It is possible that HWP guaranteed ratio is changed in response to
    change in power and thermal limits. For example when Intel Speed Select
    performance profile is changed or there is change in TDP, hardware can
    send notifications. It is possible that the guaranteed ratio is
    increased. This creates an issue when turbo is disabled, as the old
    limits set in MSR_HWP_REQUEST are still lower and hardware will clip
    to older limits.
    
    This change enables HWP interrupt and process HWP interrupts. When
    guaranteed is changed, calls cpufreq_update_policy() so that driver
    callbacks are called to update to new HWP limits. This callback
    is called from a delayed workqueue of 10ms to avoid frequent updates.
    Signed-off-by: default avatarSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
    Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
    d0e936ad
intel_pstate.c 86.3 KB