mbox series

[0/3] hwmon (coretemp): Add support for dynamic tjmax/ttarget

Message ID 20221108075051.5139-1-rui.zhang@intel.com (mailing list archive)
Headers show
Series hwmon (coretemp): Add support for dynamic tjmax/ttarget | expand

Message

Zhang Rui Nov. 8, 2022, 7:50 a.m. UTC
Tjmax value retrieved from MSR_IA32_TEMPERATURE_TARGET can be changed at
runtime when the Intel SST-PP (Intel Speed Select Technology - Performance
Profile) level is changed. As a result, the ttarget temperature also changes.

Enhance the coretemp driver to always use updated tjmax when it can be
retrieved from MSR_IA32_TEMPERATURE_TARGET.

When tjmax can not be retrieved from MSR_IA32_TEMPERATURE_TARGET, stick with
previous behavior and always use static value. Plus that ttarget is not
available in this case.

The same dynaimic tjmax enhancement, for driver/thermal drivers can be found
at https://patchwork.kernel.org/project/linux-pm/list/?series=693050

thanks,
rui