From: Patryk Wlazlyn <patryk.wlazlyn@linux.intel.com>
To: x86@kernel.org
Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org,
rafael.j.wysocki@intel.com, len.brown@intel.com,
artem.bityutskiy@linux.intel.com, dave.hansen@linux.intel.com,
patryk.wlazlyn@linux.intel.com
Subject: [PATCH 0/3] SRF: Fix offline CPU preventing pc6 entry
Date: Thu, 10 Oct 2024 15:39:52 +0200 [thread overview]
Message-ID: <20241010133955.7749-1-patryk.wlazlyn@linux.intel.com> (raw)
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
next reply other threads:[~2024-10-10 13:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-10 13:39 Patryk Wlazlyn [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241010133955.7749-1-patryk.wlazlyn@linux.intel.com \
--to=patryk.wlazlyn@linux.intel.com \
--cc=artem.bityutskiy@linux.intel.com \
--cc=dave.hansen@linux.intel.com \
--cc=len.brown@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=rafael.j.wysocki@intel.com \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®