intel_idle: add Cometlake support
PATCH 1/1 intel_idle: add Cometlake support
Since the Cometlake C-State is supported, support for Cometlake should be added to intel_idle. Just use Kabylake C-State table for Cometlake because they share the same table in intel_cstate.
--- drivers/idle/intel_idle.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/idle/intel_idle.c +2 -0
@@ -1418,6 +1418,8 @@ static const struct x86_cpu_id intel_idle_ids[] __initconst = {X86_MATCH_INTEL_FAM6_MODEL (SKYLAKE , &idle_cpu_skl),X86_MATCH_INTEL_FAM6_MODEL (KABYLAKE_L , &idle_cpu_skl),X86_MATCH_INTEL_FAM6_MODEL (KABYLAKE , &idle_cpu_skl), +X86_MATCH_INTEL_FAM6_MODEL (COMETLAKE_L , &idle_cpu_skl), +X86_MATCH_INTEL_FAM6_MODEL (COMETLAKE , &idle_cpu_skl),X86_MATCH_INTEL_FAM6_MODEL (SKYLAKE_X , &idle_cpu_skx),X86_MATCH_INTEL_FAM6_MODEL (ICELAKE_X , &idle_cpu_icx), X86_MATCH_INTEL_FAM6_MODEL(ICELAKE_D, &idle_cpu_icx),
Signature · 1 line
2.43.0
Rafael J. Wysocki
maintainer+Rui and Artem
Quoted 24 lines · Jiang Yihe
Since the Cometlake C-State is supported, support for Cometlake should be added to
intel_idle. Just use Kabylake C-State table for Cometlake because they share the same table inintel_cstate.Signed-off-by Jiang Yihe <[email protected]>--- drivers/idle/intel_idle.c | 2 ++ 1 file changed, 2 insertions(+)drivers/idle/intel_idle.c +2
-1@@ -1418,6 +1418,8 @@ static const struct x86_cpu_id intel_idle_ids[] __initconst = {X86_MATCH_INTEL_FAM6_MODEL (SKYLAKE , &idle_cpu_skl),X86_MATCH_INTEL_FAM6_MODEL (KABYLAKE_L , &idle_cpu_skl),X86_MATCH_INTEL_FAM6_MODEL (KABYLAKE , &idle_cpu_skl), +X86_MATCH_INTEL_FAM6_MODEL (COMETLAKE_L , &idle_cpu_skl), +X86_MATCH_INTEL_FAM6_MODEL (COMETLAKE , &idle_cpu_skl),X86_MATCH_INTEL_FAM6_MODEL (SKYLAKE_X , &idle_cpu_skx),X86_MATCH_INTEL_FAM6_MODEL (ICELAKE_X , &idle_cpu_icx), X86_MATCH_INTEL_FAM6_MODEL(ICELAKE_D, &idle_cpu_icx), --
Hi All,
This proposed patch has been submitted at least once before. (I think more than once, but only found 1) Reference:
https://lore.kernel.org/linux-pm/20200227013411.1.Ica3bb9fa898499d94e0b0a2bfa08ec46c89d84fa@changeid/
I have a Cometlake processor and am not in favor of this patch. Reference at to why not:
https://bugzilla.kernel.org/show_bug.cgi?id=210741
... Doug
Quoted 26 lines · On 2023.11.29 07:19 Rafael wrote:
+Rui and Artem
Quoted 24 lines · Jiang Yihe
Since the Cometlake C-State is supported, support for Cometlake should be added to
intel_idle. Just use Kabylake C-State table for Cometlake because they share the same table inintel_cstate.Signed-off-by Jiang Yihe <[email protected]>--- drivers/idle/intel_idle.c | 2 ++ 1 file changed, 2 insertions(+)drivers/idle/intel_idle.c +2
-1@@ -1418,6 +1418,8 @@ static const struct x86_cpu_id intel_idle_ids[] __initconst = {X86_MATCH_INTEL_FAM6_MODEL (SKYLAKE , &idle_cpu_skl),X86_MATCH_INTEL_FAM6_MODEL (KABYLAKE_L , &idle_cpu_skl),X86_MATCH_INTEL_FAM6_MODEL (KABYLAKE , &idle_cpu_skl), +X86_MATCH_INTEL_FAM6_MODEL (COMETLAKE_L , &idle_cpu_skl), +X86_MATCH_INTEL_FAM6_MODEL (COMETLAKE , &idle_cpu_skl),X86_MATCH_INTEL_FAM6_MODEL (SKYLAKE_X , &idle_cpu_skx),X86_MATCH_INTEL_FAM6_MODEL (ICELAKE_X , &idle_cpu_icx), X86_MATCH_INTEL_FAM6_MODEL(ICELAKE_D, &idle_cpu_icx), --
Artem Bityutskiy
maintainerQuoted 10 lines · Doug Smythies
Hi All,
This proposed patch has been submitted at least once before. (I think more than once, but only found 1) Reference:
https://lore.kernel.org/linux-pm/20200227013411.1.Ica3bb9fa898499d94e0b0a2bfa08ec46c89d84fa@changeid/I have a Cometlake processor and am not in favor of this patch. Reference at to why not:
https://bugzilla.kernel.org/show_bug.cgi?id=210741
CometLake is a platform from 2020, so I'd classified it as "legacy" and would not apply this patch without a plausible justification in form of measurement data.
Comet lake has been used with ACPI C-states for quite a long time, and switching it to intel_idle now may cause unwelcome changes in user workloads.
Artem.