• Zhang Rui's avatar
    thermal/drivers/intel: Introduce tcc cooling driver · 2eb87d75
    Zhang Rui authored
    On Intel processors, the core frequency can be reduced below OS request,
    when the current temperature reaches the TCC (Thermal Control Circuit)
    activation temperature.
    
    The default TCC activation temperature is specified by
    MSR_IA32_TEMPERATURE_TARGET. However, it can be adjusted by specifying an
    offset in degrees C, using the TCC Offset bits in the same MSR register.
    
    This patch introduces a cooling devices driver that utilizes the TCC
    Offset feature. The bigger the current cooling state is, the lower the
    effective TCC activation temperature is, so that the processors can be
    throttled earlier before system critical overheats.
    
    Note that, on different platforms, the behavior might be different on
    how fast the setting takes effect, and how much the CPU frequency is
    reduced.
    
    This patch has been tested on a KabyLake mobile platform from me, and also
    on a CometLake platform from Doug.
    Signed-off-by: default avatarZhang Rui <rui.zhang@intel.com>
    Tested by: Doug Smythies <dsmythies@telus.net>
    Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
    Link: https://lore.kernel.org/r/20210412125901.12549-1-rui.zhang@intel.com
    2eb87d75
Makefile 666 Bytes