Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
73abe700
Commit
73abe700
authored
Jun 21, 2024
by
Rafael J. Wysocki
Browse files
Options
Browse Files
Download
Plain Diff
Merge back thermal control changes related to Intel platforms for v6.11
parents
096597cf
68de0ae4
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
28 additions
and
34 deletions
+28
-34
drivers/thermal/intel/int340x_thermal/int3400_thermal.c
drivers/thermal/intel/int340x_thermal/int3400_thermal.c
+1
-1
drivers/thermal/intel/int340x_thermal/int3403_thermal.c
drivers/thermal/intel/int340x_thermal/int3403_thermal.c
+0
-11
drivers/thermal/intel/intel_pch_thermal.c
drivers/thermal/intel/intel_pch_thermal.c
+5
-0
drivers/thermal/intel/intel_soc_dts_thermal.c
drivers/thermal/intel/intel_soc_dts_thermal.c
+1
-1
drivers/thermal/intel/intel_tcc_cooling.c
drivers/thermal/intel/intel_tcc_cooling.c
+15
-15
include/linux/platform_data/x86/soc.h
include/linux/platform_data/x86/soc.h
+6
-6
No files found.
drivers/thermal/intel/int340x_thermal/int3400_thermal.c
View file @
73abe700
...
...
@@ -571,7 +571,7 @@ static int int3400_thermal_probe(struct platform_device *pdev)
if
(
!
adev
)
return
-
ENODEV
;
priv
=
kzalloc
(
sizeof
(
struct
int3400_thermal_
priv
),
GFP_KERNEL
);
priv
=
kzalloc
(
sizeof
(
*
priv
),
GFP_KERNEL
);
if
(
!
priv
)
return
-
ENOMEM
;
...
...
drivers/thermal/intel/int340x_thermal/int3403_thermal.c
View file @
73abe700
...
...
@@ -25,17 +25,6 @@ struct int3403_sensor {
struct
int34x_thermal_zone
*
int340x_zone
;
};
struct
int3403_performance_state
{
u64
performance
;
u64
power
;
u64
latency
;
u64
linear
;
u64
control
;
u64
raw_performace
;
char
*
raw_unit
;
int
reserved
;
};
struct
int3403_cdev
{
struct
thermal_cooling_device
*
cdev
;
unsigned
long
max_state
;
...
...
drivers/thermal/intel/intel_pch_thermal.c
View file @
73abe700
...
...
@@ -298,6 +298,11 @@ static int intel_pch_thermal_suspend_noirq(struct device *device)
/* Get the PCH current temperature value */
pch_cur_temp
=
GET_PCH_TEMP
(
WPT_TEMP_TSR
&
readw
(
ptd
->
hw_base
+
WPT_TEMP
));
if
(
pch_cur_temp
>=
pch_thr_temp
)
dev_warn
(
&
ptd
->
pdev
->
dev
,
"CPU-PCH current temp [%dC] higher than the threshold temp [%dC], S0ix might fail. Start cooling...
\n
"
,
pch_cur_temp
,
pch_thr_temp
);
/*
* If current PCH temperature is higher than configured PCH threshold
* value, run some delay loop with sleep to let the current temperature
...
...
drivers/thermal/intel/intel_soc_dts_thermal.c
View file @
73abe700
...
...
@@ -36,7 +36,7 @@ static irqreturn_t soc_irq_thread_fn(int irq, void *dev_data)
}
static
const
struct
x86_cpu_id
soc_thermal_ids
[]
=
{
X86_MATCH_
INTEL_FAM6_MODEL
(
ATOM_SILVERMONT
,
BYT_SOC_DTS_APIC_IRQ
),
X86_MATCH_
VFM
(
INTEL_
ATOM_SILVERMONT
,
BYT_SOC_DTS_APIC_IRQ
),
{}
};
MODULE_DEVICE_TABLE
(
x86cpu
,
soc_thermal_ids
);
...
...
drivers/thermal/intel/intel_tcc_cooling.c
View file @
73abe700
...
...
@@ -49,21 +49,21 @@ static const struct thermal_cooling_device_ops tcc_cooling_ops = {
};
static
const
struct
x86_cpu_id
tcc_ids
[]
__initconst
=
{
X86_MATCH_
INTEL_FAM6_MODEL
(
SKYLAKE
,
NULL
),
X86_MATCH_
INTEL_FAM6_MODEL
(
SKYLAKE_L
,
NULL
),
X86_MATCH_
INTEL_FAM6_MODEL
(
KABYLAKE
,
NULL
),
X86_MATCH_
INTEL_FAM6_MODEL
(
KABYLAKE_L
,
NULL
),
X86_MATCH_
INTEL_FAM6_MODEL
(
ICELAKE
,
NULL
),
X86_MATCH_
INTEL_FAM6_MODEL
(
ICELAKE_L
,
NULL
),
X86_MATCH_
INTEL_FAM6_MODEL
(
TIGERLAKE
,
NULL
),
X86_MATCH_
INTEL_FAM6_MODEL
(
TIGERLAKE_L
,
NULL
),
X86_MATCH_
INTEL_FAM6_MODEL
(
COMETLAKE
,
NULL
),
X86_MATCH_
INTEL_FAM6_MODEL
(
ALDERLAKE
,
NULL
),
X86_MATCH_
INTEL_FAM6_MODEL
(
ALDERLAKE_L
,
NULL
),
X86_MATCH_
INTEL_FAM6_MODEL
(
ATOM_GRACEMONT
,
NULL
),
X86_MATCH_
INTEL_FAM6_MODEL
(
RAPTORLAKE
,
NULL
),
X86_MATCH_
INTEL_FAM6_MODEL
(
RAPTORLAKE_P
,
NULL
),
X86_MATCH_
INTEL_FAM6_MODEL
(
RAPTORLAKE_S
,
NULL
),
X86_MATCH_
VFM
(
INTEL_
SKYLAKE
,
NULL
),
X86_MATCH_
VFM
(
INTEL_
SKYLAKE_L
,
NULL
),
X86_MATCH_
VFM
(
INTEL_
KABYLAKE
,
NULL
),
X86_MATCH_
VFM
(
INTEL_
KABYLAKE_L
,
NULL
),
X86_MATCH_
VFM
(
INTEL_
ICELAKE
,
NULL
),
X86_MATCH_
VFM
(
INTEL_
ICELAKE_L
,
NULL
),
X86_MATCH_
VFM
(
INTEL_
TIGERLAKE
,
NULL
),
X86_MATCH_
VFM
(
INTEL_
TIGERLAKE_L
,
NULL
),
X86_MATCH_
VFM
(
INTEL_
COMETLAKE
,
NULL
),
X86_MATCH_
VFM
(
INTEL_
ALDERLAKE
,
NULL
),
X86_MATCH_
VFM
(
INTEL_
ALDERLAKE_L
,
NULL
),
X86_MATCH_
VFM
(
INTEL_
ATOM_GRACEMONT
,
NULL
),
X86_MATCH_
VFM
(
INTEL_
RAPTORLAKE
,
NULL
),
X86_MATCH_
VFM
(
INTEL_
RAPTORLAKE_P
,
NULL
),
X86_MATCH_
VFM
(
INTEL_
RAPTORLAKE_S
,
NULL
),
{}
};
...
...
include/linux/platform_data/x86/soc.h
View file @
73abe700
...
...
@@ -20,7 +20,7 @@
static inline bool soc_intel_is_##soc(void) \
{ \
static const struct x86_cpu_id soc##_cpu_ids[] = { \
X86_MATCH_
INTEL_FAM6_MODEL(type, NULL),
\
X86_MATCH_
VFM(type, NULL),
\
{} \
}; \
const struct x86_cpu_id *id; \
...
...
@@ -31,11 +31,11 @@ static inline bool soc_intel_is_##soc(void) \
return false; \
}
SOC_INTEL_IS_CPU
(
byt
,
ATOM_SILVERMONT
);
SOC_INTEL_IS_CPU
(
cht
,
ATOM_AIRMONT
);
SOC_INTEL_IS_CPU
(
apl
,
ATOM_GOLDMONT
);
SOC_INTEL_IS_CPU
(
glk
,
ATOM_GOLDMONT_PLUS
);
SOC_INTEL_IS_CPU
(
cml
,
KABYLAKE_L
);
SOC_INTEL_IS_CPU
(
byt
,
INTEL_
ATOM_SILVERMONT
);
SOC_INTEL_IS_CPU
(
cht
,
INTEL_
ATOM_AIRMONT
);
SOC_INTEL_IS_CPU
(
apl
,
INTEL_
ATOM_GOLDMONT
);
SOC_INTEL_IS_CPU
(
glk
,
INTEL_
ATOM_GOLDMONT_PLUS
);
SOC_INTEL_IS_CPU
(
cml
,
INTEL_
KABYLAKE_L
);
#undef SOC_INTEL_IS_CPU
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment