mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/3] SRF: Fix offline CPU preventing pc6 entry
@ 2024-10-10 13:39 Patryk Wlazlyn
  2024-10-10 13:39 ` [PATCH 1/3] x86/smp: Move mwait hint computation out of mwait_play_dead Patryk Wlazlyn
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Patryk Wlazlyn @ 2024-10-10 13:39 UTC (permalink / raw)
  To: x86
  Cc: linux-kernel, linux-pm, rafael.j.wysocki, len.brown,
	artem.bityutskiy, dave.hansen, patryk.wlazlyn

The current implementation of the mwait_play_dead() uses undocumented
way of looking up the mwait hint for the deepest cstate and using it in
cpu offline code. This prevents entering pc6 when the CPU gets offlined
on Sierra Forest. The solution is to allow the idle driver to force the
mwait hint.

This problem was first observed on SRF, but since determining the
deepest mwait hint is non-architectural, the hint is forced for all of
the models that intel_idle has custom table for.

Patryk Wlazlyn (3):
  x86/smp: Move mwait hint computation out of mwait_play_dead
  x86/smp: Allow forcing the mwait hint for play dead loop
  intel_idle: Identify the deepest cstate for SRF

 arch/x86/include/asm/smp.h |  3 +++
 arch/x86/kernel/smpboot.c  | 54 ++++++++++++++++++++++++++------------
 drivers/idle/intel_idle.c  | 12 +++++++++
 3 files changed, 52 insertions(+), 17 deletions(-)

-- 
2.46.2


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-10-10 13:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-10 13:39 [PATCH 0/3] SRF: Fix offline CPU preventing pc6 entry Patryk Wlazlyn
2024-10-10 13:39 ` [PATCH 1/3] x86/smp: Move mwait hint computation out of mwait_play_dead Patryk Wlazlyn
2024-10-10 13:39 ` [PATCH 2/3] x86/smp: Allow forcing the mwait hint for play dead loop Patryk Wlazlyn
2024-10-10 13:39 ` [PATCH 3/3] intel_idle: Identify the deepest cstate for cpu offline code Patryk Wlazlyn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®