Skip to content

Commit 73abe70

Browse files
committed
Merge back thermal control changes related to Intel platforms for v6.11
2 parents 096597c + 68de0ae commit 73abe70

File tree

6 files changed

+28
-34
lines changed

6 files changed

+28
-34
lines changed

drivers/thermal/intel/int340x_thermal/int3400_thermal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ static int int3400_thermal_probe(struct platform_device *pdev)
571571
if (!adev)
572572
return -ENODEV;
573573

574-
priv = kzalloc(sizeof(struct int3400_thermal_priv), GFP_KERNEL);
574+
priv = kzalloc(sizeof(*priv), GFP_KERNEL);
575575
if (!priv)
576576
return -ENOMEM;
577577

drivers/thermal/intel/int340x_thermal/int3403_thermal.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,6 @@ struct int3403_sensor {
2525
struct int34x_thermal_zone *int340x_zone;
2626
};
2727

28-
struct int3403_performance_state {
29-
u64 performance;
30-
u64 power;
31-
u64 latency;
32-
u64 linear;
33-
u64 control;
34-
u64 raw_performace;
35-
char *raw_unit;
36-
int reserved;
37-
};
38-
3928
struct int3403_cdev {
4029
struct thermal_cooling_device *cdev;
4130
unsigned long max_state;

drivers/thermal/intel/intel_pch_thermal.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,11 @@ static int intel_pch_thermal_suspend_noirq(struct device *device)
298298
/* Get the PCH current temperature value */
299299
pch_cur_temp = GET_PCH_TEMP(WPT_TEMP_TSR & readw(ptd->hw_base + WPT_TEMP));
300300

301+
if (pch_cur_temp >= pch_thr_temp)
302+
dev_warn(&ptd->pdev->dev,
303+
"CPU-PCH current temp [%dC] higher than the threshold temp [%dC], S0ix might fail. Start cooling...\n",
304+
pch_cur_temp, pch_thr_temp);
305+
301306
/*
302307
* If current PCH temperature is higher than configured PCH threshold
303308
* value, run some delay loop with sleep to let the current temperature

drivers/thermal/intel/intel_soc_dts_thermal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ static irqreturn_t soc_irq_thread_fn(int irq, void *dev_data)
3636
}
3737

3838
static const struct x86_cpu_id soc_thermal_ids[] = {
39-
X86_MATCH_INTEL_FAM6_MODEL(ATOM_SILVERMONT, BYT_SOC_DTS_APIC_IRQ),
39+
X86_MATCH_VFM(INTEL_ATOM_SILVERMONT, BYT_SOC_DTS_APIC_IRQ),
4040
{}
4141
};
4242
MODULE_DEVICE_TABLE(x86cpu, soc_thermal_ids);

drivers/thermal/intel/intel_tcc_cooling.c

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -49,21 +49,21 @@ static const struct thermal_cooling_device_ops tcc_cooling_ops = {
4949
};
5050

5151
static const struct x86_cpu_id tcc_ids[] __initconst = {
52-
X86_MATCH_INTEL_FAM6_MODEL(SKYLAKE, NULL),
53-
X86_MATCH_INTEL_FAM6_MODEL(SKYLAKE_L, NULL),
54-
X86_MATCH_INTEL_FAM6_MODEL(KABYLAKE, NULL),
55-
X86_MATCH_INTEL_FAM6_MODEL(KABYLAKE_L, NULL),
56-
X86_MATCH_INTEL_FAM6_MODEL(ICELAKE, NULL),
57-
X86_MATCH_INTEL_FAM6_MODEL(ICELAKE_L, NULL),
58-
X86_MATCH_INTEL_FAM6_MODEL(TIGERLAKE, NULL),
59-
X86_MATCH_INTEL_FAM6_MODEL(TIGERLAKE_L, NULL),
60-
X86_MATCH_INTEL_FAM6_MODEL(COMETLAKE, NULL),
61-
X86_MATCH_INTEL_FAM6_MODEL(ALDERLAKE, NULL),
62-
X86_MATCH_INTEL_FAM6_MODEL(ALDERLAKE_L, NULL),
63-
X86_MATCH_INTEL_FAM6_MODEL(ATOM_GRACEMONT, NULL),
64-
X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE, NULL),
65-
X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE_P, NULL),
66-
X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE_S, NULL),
52+
X86_MATCH_VFM(INTEL_SKYLAKE, NULL),
53+
X86_MATCH_VFM(INTEL_SKYLAKE_L, NULL),
54+
X86_MATCH_VFM(INTEL_KABYLAKE, NULL),
55+
X86_MATCH_VFM(INTEL_KABYLAKE_L, NULL),
56+
X86_MATCH_VFM(INTEL_ICELAKE, NULL),
57+
X86_MATCH_VFM(INTEL_ICELAKE_L, NULL),
58+
X86_MATCH_VFM(INTEL_TIGERLAKE, NULL),
59+
X86_MATCH_VFM(INTEL_TIGERLAKE_L, NULL),
60+
X86_MATCH_VFM(INTEL_COMETLAKE, NULL),
61+
X86_MATCH_VFM(INTEL_ALDERLAKE, NULL),
62+
X86_MATCH_VFM(INTEL_ALDERLAKE_L, NULL),
63+
X86_MATCH_VFM(INTEL_ATOM_GRACEMONT, NULL),
64+
X86_MATCH_VFM(INTEL_RAPTORLAKE, NULL),
65+
X86_MATCH_VFM(INTEL_RAPTORLAKE_P, NULL),
66+
X86_MATCH_VFM(INTEL_RAPTORLAKE_S, NULL),
6767
{}
6868
};
6969

include/linux/platform_data/x86/soc.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
static inline bool soc_intel_is_##soc(void) \
2121
{ \
2222
static const struct x86_cpu_id soc##_cpu_ids[] = { \
23-
X86_MATCH_INTEL_FAM6_MODEL(type, NULL), \
23+
X86_MATCH_VFM(type, NULL), \
2424
{} \
2525
}; \
2626
const struct x86_cpu_id *id; \
@@ -31,11 +31,11 @@ static inline bool soc_intel_is_##soc(void) \
3131
return false; \
3232
}
3333

34-
SOC_INTEL_IS_CPU(byt, ATOM_SILVERMONT);
35-
SOC_INTEL_IS_CPU(cht, ATOM_AIRMONT);
36-
SOC_INTEL_IS_CPU(apl, ATOM_GOLDMONT);
37-
SOC_INTEL_IS_CPU(glk, ATOM_GOLDMONT_PLUS);
38-
SOC_INTEL_IS_CPU(cml, KABYLAKE_L);
34+
SOC_INTEL_IS_CPU(byt, INTEL_ATOM_SILVERMONT);
35+
SOC_INTEL_IS_CPU(cht, INTEL_ATOM_AIRMONT);
36+
SOC_INTEL_IS_CPU(apl, INTEL_ATOM_GOLDMONT);
37+
SOC_INTEL_IS_CPU(glk, INTEL_ATOM_GOLDMONT_PLUS);
38+
SOC_INTEL_IS_CPU(cml, INTEL_KABYLAKE_L);
3939

4040
#undef SOC_INTEL_IS_CPU
4141

0 commit comments

Comments
 (0)