Skip to content

Commit 2b91c4a

Browse files
iklimaszgroeck
authored andcommitted
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: Paul Fertser <[email protected]> Link: https://lore.kernel.org/lkml/[email protected]/ Signed-off-by: Iwona Winiarska <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]>
1 parent e8d018d commit 2b91c4a

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

drivers/hwmon/peci/cputemp.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,12 @@ static const struct cpu_info cpu_hsx = {
537537
.thermal_margin_to_millidegree = &dts_eight_dot_eight_to_millidegree,
538538
};
539539

540+
static const struct cpu_info cpu_skx = {
541+
.reg = &resolved_cores_reg_hsx,
542+
.min_peci_revision = 0x33,
543+
.thermal_margin_to_millidegree = &dts_ten_dot_six_to_millidegree,
544+
};
545+
540546
static const struct cpu_info cpu_icx = {
541547
.reg = &resolved_cores_reg_icx,
542548
.min_peci_revision = 0x40,
@@ -558,7 +564,7 @@ static const struct auxiliary_device_id peci_cputemp_ids[] = {
558564
},
559565
{
560566
.name = "peci_cpu.cputemp.skx",
561-
.driver_data = (kernel_ulong_t)&cpu_hsx,
567+
.driver_data = (kernel_ulong_t)&cpu_skx,
562568
},
563569
{
564570
.name = "peci_cpu.cputemp.icx",

0 commit comments

Comments
 (0)