* Re: [PATCH v13 10/12] s390: Rename TIF_SINGLE_STEP to TIF_SINGLESTEP
[not found] ` <20260313094738.3985794-11-ruanjinjie@huawei.com>
@ 2026-03-13 10:09 ` Heiko Carstens
0 siblings, 0 replies; 3+ messages in thread
From: Heiko Carstens @ 2026-03-13 10:09 UTC (permalink / raw)
To: Jinjie Ruan
Cc: mark.rutland, schuster.simon, andreas, kees, catalin.marinas,
dave.hansen, ldv, song, linux-kselftest, hpa, agordeev, shuah,
jremus, linux-arch, linux-s390, gor, will, deller, x86, mingo,
linux-arm-kernel, borntraeger, kmal, tglx, thuth, ryan.roberts,
arnd, anshuman.khandual, linux-kernel, kevin.brodsky, charlie,
pengcan, broonie, bp, richard.weiyang, dvyukov, jgross, wad,
yeoreum.yun, oleg, luto, svens, liqiang01, mathieu.desnoyers,
akpm, reddybalavignesh9979, macro
On Fri, Mar 13, 2026 at 05:47:36PM +0800, Jinjie Ruan wrote:
> Rename TIF_SINGLE_STEP to TIF_SINGLESTEP to align with the naming
> convention used by arm64, x86, and other architectures.
>
> By aligning the name, TIF_SINGLESTEP can be consolidated into the generic
> TIF bits definitions, reducing architectural divergence and simplifying
> cross-architecture entry/exit logic.
>
> No functional changes intended.
>
> Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
> ---
> arch/s390/include/asm/thread_info.h | 4 ++--
> arch/s390/kernel/process.c | 2 +-
> arch/s390/kernel/ptrace.c | 20 ++++++++++----------
> arch/s390/kernel/signal.c | 6 +++---
> 4 files changed, 16 insertions(+), 16 deletions(-)
Acked-by: Heiko Carstens <hca@linux.ibm.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v13 11/12] arm64: Use generic TIF bits for common thread flags
[not found] ` <20260313094738.3985794-12-ruanjinjie@huawei.com>
@ 2026-03-13 10:10 ` Heiko Carstens
2026-03-16 8:30 ` Jinjie Ruan
0 siblings, 1 reply; 3+ messages in thread
From: Heiko Carstens @ 2026-03-13 10:10 UTC (permalink / raw)
To: Jinjie Ruan
Cc: mark.rutland, schuster.simon, andreas, kees, catalin.marinas,
dave.hansen, ldv, song, linux-kselftest, hpa, agordeev, shuah,
jremus, linux-arch, linux-s390, gor, will, deller, x86, mingo,
linux-arm-kernel, borntraeger, kmal, tglx, thuth, ryan.roberts,
arnd, anshuman.khandual, linux-kernel, kevin.brodsky, charlie,
pengcan, broonie, bp, richard.weiyang, dvyukov, jgross, wad,
yeoreum.yun, oleg, luto, svens, liqiang01, mathieu.desnoyers,
akpm, reddybalavignesh9979, macro
On Fri, Mar 13, 2026 at 05:47:37PM +0800, Jinjie Ruan wrote:
> Use the generic TIF bits defined in <asm-generic/thread_info_tif.h> for
> standard thread flags (TIF_SIGPENDING, TIF_NEED_RESCHED, TIF_NOTIFY_RESUME,
> TIF_RESTORE_SIGMASK, TIF_SINGLESTEP, etc.) instead of defining
> them locally.
>
> Arm64-specific bits (TIF_FOREIGN_FPSTATE, TIF_MTE_ASYNC_FAULT, TIF_SVE,
> TIF_SSBD, etc.) are renumbered to start at bit 16 to avoid conflicts.
>
> This enables RSEQ optimizations which require CONFIG_HAVE_GENERIC_TIF_BITS
> combined with the generic entry infrastructure (already used by arm64).
>
> Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
> ---
> arch/arm64/Kconfig | 1 +
> arch/arm64/include/asm/thread_info.h | 62 ++++++++++++---------------
> arch/s390/include/asm/thread_info.h | 7 ++-
Acked-by: Heiko Carstens <hca@linux.ibm.com> # s390
> arch/x86/include/asm/thread_info.h | 6 +--
> include/asm-generic/thread_info_tif.h | 5 +++
> 5 files changed, 38 insertions(+), 43 deletions(-)
FWIW, I guess you want to do the same for loongarch was well?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v13 11/12] arm64: Use generic TIF bits for common thread flags
2026-03-13 10:10 ` [PATCH v13 11/12] arm64: Use generic TIF bits for common thread flags Heiko Carstens
@ 2026-03-16 8:30 ` Jinjie Ruan
0 siblings, 0 replies; 3+ messages in thread
From: Jinjie Ruan @ 2026-03-16 8:30 UTC (permalink / raw)
To: Heiko Carstens
Cc: mark.rutland, schuster.simon, andreas, kees, catalin.marinas,
dave.hansen, ldv, song, linux-kselftest, hpa, agordeev, shuah,
jremus, linux-arch, linux-s390, gor, will, deller, x86, mingo,
linux-arm-kernel, borntraeger, kmal, tglx, thuth, ryan.roberts,
arnd, anshuman.khandual, linux-kernel, kevin.brodsky, charlie,
pengcan, broonie, bp, richard.weiyang, dvyukov, jgross, wad,
yeoreum.yun, oleg, luto, svens, liqiang01, mathieu.desnoyers,
akpm, reddybalavignesh9979, macro
On 2026/3/13 18:10, Heiko Carstens wrote:
> On Fri, Mar 13, 2026 at 05:47:37PM +0800, Jinjie Ruan wrote:
>> Use the generic TIF bits defined in <asm-generic/thread_info_tif.h> for
>> standard thread flags (TIF_SIGPENDING, TIF_NEED_RESCHED, TIF_NOTIFY_RESUME,
>> TIF_RESTORE_SIGMASK, TIF_SINGLESTEP, etc.) instead of defining
>> them locally.
>>
>> Arm64-specific bits (TIF_FOREIGN_FPSTATE, TIF_MTE_ASYNC_FAULT, TIF_SVE,
>> TIF_SSBD, etc.) are renumbered to start at bit 16 to avoid conflicts.
>>
>> This enables RSEQ optimizations which require CONFIG_HAVE_GENERIC_TIF_BITS
>> combined with the generic entry infrastructure (already used by arm64).
>>
>> Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
>> ---
>> arch/arm64/Kconfig | 1 +
>> arch/arm64/include/asm/thread_info.h | 62 ++++++++++++---------------
>> arch/s390/include/asm/thread_info.h | 7 ++-
>
> Acked-by: Heiko Carstens <hca@linux.ibm.com> # s390
>
>> arch/x86/include/asm/thread_info.h | 6 +--
>> include/asm-generic/thread_info_tif.h | 5 +++
>> 5 files changed, 38 insertions(+), 43 deletions(-)
>
> FWIW, I guess you want to do the same for loongarch was well?
Good point. I will include the LoongArch changes in the next version of
this patchset.
Thanks!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-03-16 8:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20260313094738.3985794-1-ruanjinjie@huawei.com>
[not found] ` <20260313094738.3985794-11-ruanjinjie@huawei.com>
2026-03-13 10:09 ` [PATCH v13 10/12] s390: Rename TIF_SINGLE_STEP to TIF_SINGLESTEP Heiko Carstens
[not found] ` <20260313094738.3985794-12-ruanjinjie@huawei.com>
2026-03-13 10:10 ` [PATCH v13 11/12] arm64: Use generic TIF bits for common thread flags Heiko Carstens
2026-03-16 8:30 ` Jinjie Ruan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox