From: K Prateek Nayak <kprateek.nayak@amd.com>
To: "Russell King (Oracle)" <linux@armlinux.org.uk>
Cc: Juri Lelli <juri.lelli@redhat.com>, Rich Felker <dalias@libc.org>,
Andreas Larsson <andreas@gaisler.com>,
Peter Zijlstra <peterz@infradead.org>,
Dave Hansen <dave.hansen@linux.intel.com>,
x86@kernel.org,
"James E.J. Bottomley" <James.Bottomley@hansenpartnership.com>,
linux-openrisc@vger.kernel.org, Guo Ren <guoren@kernel.org>,
linux-csky@vger.kernel.org, David Vernet <void@manifault.com>,
"H. Peter Anvin" <hpa@zytor.com>,
sparclinux@vger.kernel.org, Thomas Gleixner <tglx@linutronix.de>,
Kees Cook <keescook@chromium.org>,
Jonas Bonn <jonas@southpole.se>,
Valentin Schneider <vschneid@redhat.com>,
Vincent Guittot <vincent.guittot@linaro.org>,
Yoshinori Sato <ysato@users.sourceforge.jp>,
linux-sh@vger.kernel.org, Helge Deller <deller@gmx.de>,
"Rafael J. Wysocki" <rafael@kernel.org>,
Christophe Leroy <christophe.leroy@csgroup.eu>,
Tony Battersby <tonyb@cybernetics.com>,
Ingo Molnar <mingo@redhat.com>, Mel Gorman <mgorman@suse.de>,
"Naveen N. Rao" <naveen.n.rao@linux.ibm.com>,
Matt Turner <mattst88@gmail.com>,
Benjamin Gray <bgray@linux.ibm.com>,
Andrew Donnellan <ajd@linux.ibm.com>,
"Paul E. McKenney" <paulmck@kernel.org>,
Rik van Riel <riel@surriel.com>, Brian Gerst <brgerst@gmail.com>,
Frederic Weisbecker <frederic@kernel.org>,
Xin Li <xin3.li@intel.com>,
Richard Henderson <richard.henderson@linaro.org>,
linuxppc-dev@lists.ozlabs.org,
Nicholas Piggin <npiggin@gmail.com>,
Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>,
Ivan Kokshaysky <ink@jurassic.park.msu.ru>,
Steven Rostedt <rostedt@goodmis.org>,
John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>,
Bjorn Helgaas <bhelgaas@google.com>,
Stafford Horne <shorne@gmail.com>,
Dietmar Eggemann <dietmar.eggemann@arm.com>,
linux-arm-kernel@lists.infradead.org,
Ben Segall <bsegall@google.com>, Michal Simek <monstr@monstr.eu>,
Daniel Lezcano <daniel.lezcano@linaro.org>,
linux-parisc@vger.kernel.org,
Tim Chen <tim.c.chen@linux.intel.com>,
linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org,
Julia Lawall <julia.lawall@inria.fr>,
Dinh Nguyen <dinguyen@kernel.org>,
Leonardo Bras <leobras@redhat.com>,
"Gautham R. Shenoy" <gautham.shenoy@amd.com>,
linux-alpha@vger.kernel.org, Imran Khan <imran.f.khan@oracle.com>,
Borislav Petkov <bp@alien8.de>,
Rick Edgecombe <rick.p.edgecombe@intel.com>,
Daniel Bristot de Oliveira <bristot@redhat.com>,
"David S. Miller" <davem@davemloft.net>
Subject: Re: [PATCH v2 00/14] Introducing TIF_NOTIFY_IPI flag
Date: Mon, 17 Jun 2024 10:05:36 +0530 [thread overview]
Message-ID: <4f872eec-f302-5ac4-e914-bcc3ce65950c@amd.com> (raw)
In-Reply-To: <Zm2kouKx/NSSrr6x@shell.armlinux.org.uk>
Hello Russell,
On 6/15/2024 7:56 PM, Russell King (Oracle) wrote:
> On Thu, Jun 13, 2024 at 06:15:59PM +0000, K Prateek Nayak wrote:
>> o Dropping the ARM results since I never got my hands on the ARM64
>> system I used in my last testing. If I do manage to get my hands on it
>> again, I'll rerun the experiments and share the results on the thread.
>> To test the case where TIF_NOTIFY_IPI is not enabled for a particular
>> architecture, I applied the series only until Patch 3 and tested the
>> same on my x86 machine with a WARN_ON_ONCE() in do_idle() to check if
>> tif_notify_ipi() ever return true and then repeated the same with
>> Patch 4 applied.
>
> Confused. ARM (32-bit) or ARM64? You patch 32-bit ARM, but you don't
> touch 64-bit Arm. "ARM" on its own in the context above to me suggests
> 32-bit, since you refer to ARM64 later.
>
In my first RFC posting, I had shared the results for ipistorm on an
ARM64 server [1]. Vincent and Linus Walleij brought to my attention that
ARM32 and ARM64 do not share the thread info flags and I probably saw a
one-off behavior during my testing. Since then, it has been slightly
challenging to get my hands on that machine again in a stable condition
to see if there was any scenario that I might have missed but I tried a
bunch of things on my x86 machine to confirm that an arch that does not
define the TIF_NOTIFY_IPI would not hit these changes.
Rest assured, Patch 5 is for ARM32 machines that currently define
TIF_POLLING_NRFLAG
[1] https://lore.kernel.org/lkml/20240220171457.703-6-kprateek.nayak@amd.com/
--
Thanks and Regards,
Prateek
prev parent reply other threads:[~2024-06-17 23:40 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-13 18:15 [PATCH v2 00/14] Introducing TIF_NOTIFY_IPI flag K Prateek Nayak
2024-06-13 18:16 ` [PATCH v2 01/14] thread_info: Add helpers to test and clear TIF_NOTIFY_IPI K Prateek Nayak
2024-06-13 18:16 ` [PATCH v2 02/14] sched: Define a need_resched_or_ipi() helper and use it treewide K Prateek Nayak
2024-06-13 18:16 ` [PATCH v2 03/14] sched/core: Use TIF_NOTIFY_IPI to notify an idle CPU in TIF_POLLING mode of pending IPI K Prateek Nayak
2024-06-13 18:16 ` [PATCH v2 08/14] powerpc/thread_info: Introduce TIF_NOTIFY_IPI flag K Prateek Nayak
2024-06-14 9:28 ` [PATCH v2 00/14] Introducing " Peter Zijlstra
2024-06-14 10:48 ` Vincent Guittot
2024-06-14 16:31 ` Chen Yu
2024-06-17 8:33 ` K Prateek Nayak
2024-06-18 7:49 ` Chen Yu
2024-06-18 18:33 ` K Prateek Nayak
2024-06-20 7:30 ` Chen Yu
2024-06-15 1:28 ` Peter Zijlstra
2024-06-15 1:45 ` Peter Zijlstra
2024-06-16 14:57 ` Vincent Guittot
2024-06-17 5:52 ` K Prateek Nayak
2024-06-15 1:42 ` Peter Zijlstra
2024-06-15 14:26 ` Russell King (Oracle)
2024-06-17 4:35 ` K Prateek Nayak [this message]
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=4f872eec-f302-5ac4-e914-bcc3ce65950c@amd.com \
--to=kprateek.nayak@amd.com \
--cc=James.Bottomley@hansenpartnership.com \
--cc=ajd@linux.ibm.com \
--cc=andreas@gaisler.com \
--cc=bgray@linux.ibm.com \
--cc=bhelgaas@google.com \
--cc=bp@alien8.de \
--cc=brgerst@gmail.com \
--cc=bristot@redhat.com \
--cc=bsegall@google.com \
--cc=christophe.leroy@csgroup.eu \
--cc=dalias@libc.org \
--cc=daniel.lezcano@linaro.org \
--cc=dave.hansen@linux.intel.com \
--cc=davem@davemloft.net \
--cc=deller@gmx.de \
--cc=dietmar.eggemann@arm.com \
--cc=dinguyen@kernel.org \
--cc=frederic@kernel.org \
--cc=gautham.shenoy@amd.com \
--cc=glaubitz@physik.fu-berlin.de \
--cc=guoren@kernel.org \
--cc=hpa@zytor.com \
--cc=imran.f.khan@oracle.com \
--cc=ink@jurassic.park.msu.ru \
--cc=jonas@southpole.se \
--cc=julia.lawall@inria.fr \
--cc=juri.lelli@redhat.com \
--cc=keescook@chromium.org \
--cc=leobras@redhat.com \
--cc=linux-alpha@vger.kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-csky@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-openrisc@vger.kernel.org \
--cc=linux-parisc@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux-sh@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=mattst88@gmail.com \
--cc=mgorman@suse.de \
--cc=mingo@redhat.com \
--cc=monstr@monstr.eu \
--cc=naveen.n.rao@linux.ibm.com \
--cc=npiggin@gmail.com \
--cc=paulmck@kernel.org \
--cc=peterz@infradead.org \
--cc=rafael@kernel.org \
--cc=richard.henderson@linaro.org \
--cc=rick.p.edgecombe@intel.com \
--cc=riel@surriel.com \
--cc=rostedt@goodmis.org \
--cc=shorne@gmail.com \
--cc=sparclinux@vger.kernel.org \
--cc=stefan.kristiansson@saunalahti.fi \
--cc=tglx@linutronix.de \
--cc=tim.c.chen@linux.intel.com \
--cc=tonyb@cybernetics.com \
--cc=vincent.guittot@linaro.org \
--cc=void@manifault.com \
--cc=vschneid@redhat.com \
--cc=x86@kernel.org \
--cc=xin3.li@intel.com \
--cc=ysato@users.sourceforge.jp \
/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;
as well as URLs for NNTP newsgroup(s).