summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2022-06-15 00:15:58 +0300
committerBorislav Petkov <bp@suse.de>2022-06-27 11:33:59 +0300
commitbf5835bcdb9635c97f85120dba9bfa21e111130f (patch)
treec5d11e696c13f6a27b6fe1703f293b6e6b6655d6 /tools
parent6ad0ad2bf8a67e27d1f9d006a1dabb0e1c360cc3 (diff)
downloadlinux-bf5835bcdb9635c97f85120dba9bfa21e111130f.tar.xz
intel_idle: Disable IBRS during long idle
Having IBRS enabled while the SMT sibling is idle unnecessarily slows down the running sibling. OTOH, disabling IBRS around idle takes two MSR writes, which will increase the idle latency. Therefore, only disable IBRS around deeper idle states. Shallow idle states are bounded by the tick in duration, since NOHZ is not allowed for them by virtue of their short target residency. Only do this for mwait-driven idle, since that keeps interrupts disabled across idle, which makes disabling IBRS vs IRQ-entry a non-issue. Note: C6 is a random threshold, most importantly C1 probably shouldn't disable IBRS, benchmarking needed. Suggested-by: Tim Chen <tim.c.chen@linux.intel.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Signed-off-by: Borislav Petkov <bp@suse.de> Reviewed-by: Josh Poimboeuf <jpoimboe@kernel.org> Signed-off-by: Borislav Petkov <bp@suse.de>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions