Commit 2b91c4a8 authored by Iwona Winiarska's avatar Iwona Winiarska Committed by Guenter Roeck

hwmon: (peci/cputemp) Fix miscalculated DTS for SKX

For Skylake, DTS temperature of the CPU is reported in S10.6 format
instead of S8.8.
Reported-by: default avatarPaul Fertser <fercerpav@gmail.com>
Link: https://lore.kernel.org/lkml/ZBhHS7v+98NK56is@home.paul.comp/Signed-off-by: default avatarIwona Winiarska <iwona.winiarska@intel.com>
Link: https://lore.kernel.org/r/20230321090410.866766-1-iwona.winiarska@intel.comSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent e8d018dd
...@@ -537,6 +537,12 @@ static const struct cpu_info cpu_hsx = { ...@@ -537,6 +537,12 @@ static const struct cpu_info cpu_hsx = {
.thermal_margin_to_millidegree = &dts_eight_dot_eight_to_millidegree, .thermal_margin_to_millidegree = &dts_eight_dot_eight_to_millidegree,
}; };
static const struct cpu_info cpu_skx = {
.reg = &resolved_cores_reg_hsx,
.min_peci_revision = 0x33,
.thermal_margin_to_millidegree = &dts_ten_dot_six_to_millidegree,
};
static const struct cpu_info cpu_icx = { static const struct cpu_info cpu_icx = {
.reg = &resolved_cores_reg_icx, .reg = &resolved_cores_reg_icx,
.min_peci_revision = 0x40, .min_peci_revision = 0x40,
...@@ -558,7 +564,7 @@ static const struct auxiliary_device_id peci_cputemp_ids[] = { ...@@ -558,7 +564,7 @@ static const struct auxiliary_device_id peci_cputemp_ids[] = {
}, },
{ {
.name = "peci_cpu.cputemp.skx", .name = "peci_cpu.cputemp.skx",
.driver_data = (kernel_ulong_t)&cpu_hsx, .driver_data = (kernel_ulong_t)&cpu_skx,
}, },
{ {
.name = "peci_cpu.cputemp.icx", .name = "peci_cpu.cputemp.icx",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment