]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
intel_idle: Customize IceLake server support
authorChen Yu <yu.c.chen@intel.com>
Fri, 10 Jul 2020 04:12:01 +0000 (12:12 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 30 Jul 2020 15:36:10 +0000 (17:36 +0200)
commita472ad2bcea479ba068880125d7273fc95c14b70
tree35cdcc5664fb2551b80496ad9b9ec445deb845da
parentefe9711214e6138a5a2a46ca4068bfce50c03444
intel_idle: Customize IceLake server support

On ICX platform, the C1E auto-promotion is enabled by default.
As a result, the CPU might fall into C1E more offen than previous
platforms. Besides, the C1E is not exposed to sysfs on ICX, which
is inconsistent with previous server platforms.

So disable C1E auto-promotion and expose C1E as a separate idle
state, so the C1E and C6 can be disabled via sysfs when necessary.

Beside C1 and C1E, the exit latency of C6 was measured
by a dedicated tool. However the exit latency(41us) exposed
by _CST is much smaller than the one we measured(128us). This
is probably due to the _CST uses the exit latency when woken
up from PC0+C6, rather than PC6+C6 when C6 was measured. Choose
the latter as we need the longest latency in theory.

Reported-by: kernel test robot <lkp@intel.com>
Tested-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Acked-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Reviewed-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Chen Yu <yu.c.chen@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/idle/intel_idle.c