openrisc: add support for TIF_NOTIFY_SIGNAL
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH 1/1 openrisc: add support for TIF_NOTIFY_SIGNAL
Quoted 1 line · Jens Axboe
Adding folks from
MAINTAINERS, as the list appears closed.
Thanks, I didn't realize the list was broken, I will ask the admins about it.
Quoted 14 lines · Jens Axboe
Quoted 12 lines
Gentle nudge on this one.
Quoted 9 lines · Jens Axboe
Wire up
TIF_NOTIFY_SIGNALhandling for openrisc.Cc openrisc at lists.librecores.orgSigned-off-by Jens Axboe <[email protected]>---
5.11 has support queued up for
TIF_NOTIFY_SIGNAL, see this posting for details:
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
https://lore.kernel.org/io-uring/20201026203230.386348-1-axboe at kernel.dk/
As part of that work, I'm adding
TIF_NOTIFY_SIGNALsupport to all archs, as that will enable a set of cleanups once all of them support it. I'm happy carrying this patch if need be, or it can be funelled through the arch tree. Let me know.
Please carry it, you can maintain the dependencies easier.
Quoted 24 lines
Quoted 24 lines
Quoted 24 lines
arch/openrisc/include/asm/thread_info.h | 2 ++ arch/openrisc/kernel/signal.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-)arch/openrisc/include/asm/thread_info.h +2
-0@@ -98,6 +98,7 @@ register struct thread_info *current_thread_info_reg asm("r10");#define TIF_SINGLESTEP 4/* restore singlestep on return to user * mode */ +#define TIF_NOTIFY_SIGNAL 5/* signal notifications exist */ #define TIF_SYSCALL_TRACEPOINT 8/* for ftrace syscall instrumentation */ #define TIF_RESTORE_SIGMASK 9#define TIF_POLLING_NRFLAG 16/* true if poll_idle() is polling * TIF_NEED_RESCHED @@ -109,6 +110,7 @@ register struct thread_info *current_thread_info_reg asm("r10");#define _TIF_SIGPENDING (1<<TIF_SIGPENDING)#define _TIF_NEED_RESCHED (1<<TIF_NEED_RESCHED)#define _TIF_SINGLESTEP (1<<TIF_SINGLESTEP) +#define _TIF_NOTIFY_SIGNAL (1<<TIF_NOTIFY_SIGNAL)#define _TIF_POLLING_NRFLAG (1<<TIF_POLLING_NRFLAG)
Quoted 20 lines
Quoted 16 lines
Quoted 14 lines
arch/openrisc/kernel/signal.c +1
-1@@ -299,7 +299,7 @@ do_work_pending(struct pt_regs *regs, unsigned int thread_flags, int syscall)if (unlikely (!user_mode (regs)))return 0 ;local_irq_enable (); -if (thread_flags & _TIF_SIGPENDING) { +if (thread_flags & (_TIF_SIGPENDING|_TIF_NOTIFY_SIGNAL)) {int restart =do_signal (regs, syscall);if (unlikely (restart)) {/* Signature · 1 line
Jens Axboe
This looks fine to me.