linux-stable/Documentation/admin-guide/pm
Waiman Long aa1567a7e6 intel_idle: Add ibrs_off module parameter to force-disable IBRS
Commit bf5835bcdb ("intel_idle: Disable IBRS during long idle")
disables IBRS when the cstate is 6 or lower. However, there are
some use cases where a customer may want to use max_cstate=1 to
lower latency. Such use cases will suffer from the performance
degradation caused by the enabling of IBRS in the sibling idle thread.
Add a "ibrs_off" module parameter to force disable IBRS and the
CPUIDLE_FLAG_IRQ_ENABLE flag if set.

In the case of a Skylake server with max_cstate=1, this new ibrs_off
option will likely increase the IRQ response latency as IRQ will now
be disabled.

When running SPECjbb2015 with cstates set to C1 on a Skylake system.

First test when the kernel is booted with: "intel_idle.ibrs_off":

  max-jOPS = 117828, critical-jOPS = 66047

Then retest when the kernel is booted without the "intel_idle.ibrs_off"
added:

  max-jOPS = 116408, critical-jOPS = 58958

That means booting with "intel_idle.ibrs_off" improves performance by:

  max-jOPS:      +1.2%, which could be considered noise range.
  critical-jOPS: +12%,  which is definitely a solid improvement.

The admin-guide/pm/intel_idle.rst file is updated to add a description
about the new "ibrs_off" module parameter.

Signed-off-by: Waiman Long <longman@redhat.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: https://lore.kernel.org/r/20230727184600.26768-5-longman@redhat.com
2023-10-07 11:33:28 +02:00
..
amd-pstate.rst Documentation: cpufreq: amd-pstate: Update amd_pstate status sysfs for guided 2023-03-17 19:06:23 +01:00
cpufreq.rst docs: remove some replace macros like |struct foo| 2020-10-15 07:49:40 +02:00
cpufreq_drivers.rst Documentation: cpufreq: Move legacy driver documentation 2020-03-02 11:31:06 +01:00
cpuidle.rst x86: Handle idle=nomwait cmdline properly for x86_idle 2022-06-08 12:58:58 -07:00
index.rst Documentation: PM: Add SPDX license tags to multiple files 2019-04-08 12:57:47 +02:00
intel-speed-select.rst Documentation: admin-guide: PM: Add Out of Band mode 2022-05-25 15:48:26 +02:00
intel_epb.rst admin-guide: pm: intel_epb: Add SPDX license tag and copyright notice 2019-04-08 12:59:09 +02:00
intel_idle.rst intel_idle: Add ibrs_off module parameter to force-disable IBRS 2023-10-07 11:33:28 +02:00
intel_pstate.rst docs: ftrace: always use canonical ftrace path 2023-01-31 14:02:30 -07:00
intel_uncore_frequency_scaling.rst platform/x86/intel-uncore-freq: Support for cluster level controls 2023-05-09 11:54:42 +02:00
sleep-states.rst Documentation: admin-guide: PM: Update sleep states documentation 2020-02-03 11:58:26 +01:00
strategies.rst Documentation: PM: Unify copyright notices 2019-04-08 12:57:47 +02:00
suspend-flows.rst Documentation: PM: sleep: Document system-wide suspend code flows 2020-04-03 11:41:01 +02:00
system-wide.rst Documentation: PM: sleep: Document system-wide suspend code flows 2020-04-03 11:41:01 +02:00
working-state.rst Documentation: admin-guide: pm: Document uncore frequency scaling 2022-03-01 16:46:53 +01:00