From: Patryk Wlazlyn <patryk.wlazlyn@linux.intel.com>
To: "Rafael J. Wysocki" <rafael@kernel.org>
Cc: x86@kernel.org, linux-kernel@vger.kernel.org,
linux-pm@vger.kernel.org, rafael.j.wysocki@intel.com,
peterz@infradead.org, dave.hansen@linux.intel.com,
gautham.shenoy@amd.com, tglx@linutronix.de, len.brown@intel.com,
artem.bityutskiy@linux.intel.com
Subject: Re: [PATCH v7 1/4] x86/smp: Allow calling mwait_play_dead with an arbitrary hint
Date: Tue, 17 Dec 2024 21:09:27 +0100 [thread overview]
Message-ID: <2320a952-334d-4d52-a15a-669a5670df7d@linux.intel.com> (raw)
In-Reply-To: <CAJZ5v0jhK51+pkf=Amr=qXWzK3e1xC_tdt0iqQXxVfeE4pcFJQ@mail.gmail.com>
> And honestly I'm wondering why adding a parameter to mwait_play_dead()
> is better than introducing mwait_play_dead_with_hint(), in analogy
> with the existing mwait_idle_with_hints()?
>
> The latter option would allow you to avoid introducing a function that
> is deleted in the same patch series (in patch 4).
We need to be able to call part of the old mwait_play_dead() code,
but without the hint calculation.
mwait_idle_with_hints() doesn't have the "kexec hack" logic.
We also need to leave the old code working and on top of that introduce
the acpi_idle and intel_idle patches that use the new API.
Now the old code is there and the new one. The only thing left is remove
the old code. I did it that way because of the comments earlier indicating
that I should not be breaking code in between.
Let me know if I answered your question or if I misunderstood something
now or earlier.
I'll apply your changelog suggestions when we agree on the implementation.
next prev parent reply other threads:[~2024-12-17 20:09 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-29 18:22 [PATCH v7 0/4] SRF: Fix offline CPU preventing pc6 entry Patryk Wlazlyn
2024-11-29 18:22 ` [PATCH v7 1/4] x86/smp: Allow calling mwait_play_dead with an arbitrary hint Patryk Wlazlyn
2024-12-03 4:37 ` Gautham R. Shenoy
2024-12-10 19:51 ` Rafael J. Wysocki
2024-12-17 20:09 ` Patryk Wlazlyn [this message]
2024-12-17 20:45 ` Rafael J. Wysocki
2025-01-02 9:50 ` Patryk Wlazlyn
2024-11-29 18:22 ` [PATCH v7 2/4] ACPI: processor_idle: Add FFH state handling Patryk Wlazlyn
2024-12-03 4:39 ` Gautham R. Shenoy
2024-12-10 20:15 ` Rafael J. Wysocki
2024-11-29 18:22 ` [PATCH v7 3/4] intel_idle: Provide the default enter_dead() handler Patryk Wlazlyn
2024-11-29 18:22 ` [PATCH v7 4/4] x86/smp native_play_dead: Prefer cpuidle_play_dead() over mwait_play_dead() Patryk Wlazlyn
2024-12-03 4:48 ` Gautham R. Shenoy
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=2320a952-334d-4d52-a15a-669a5670df7d@linux.intel.com \
--to=patryk.wlazlyn@linux.intel.com \
--cc=artem.bityutskiy@linux.intel.com \
--cc=dave.hansen@linux.intel.com \
--cc=gautham.shenoy@amd.com \
--cc=len.brown@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=peterz@infradead.org \
--cc=rafael.j.wysocki@intel.com \
--cc=rafael@kernel.org \
--cc=tglx@linutronix.de \
--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