Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2202119imm; Wed, 16 May 2018 09:20:35 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrE4xvdByf2kqV1tLuuGXc5uXdMfSxtD3YGGJJOAjeqy3UfEix7xDm9JxDFWPfoIJw91dP9 X-Received: by 2002:a17:902:1566:: with SMTP id b35-v6mr1575312plh.107.1526487635453; Wed, 16 May 2018 09:20:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526487635; cv=none; d=google.com; s=arc-20160816; b=Ss6cEUO+SPYFZ01v/lWmWckzX0JrDeuLXTv4D1Dogt3ub3J17Srlpz+YDqjguMcjdP rK4bq9bzFg1ON2ko8Gd1FaIl8tvOsdHtoZySZzDNKLLWo3fal42FBn6cL15tkDvzO7kT gQvQSfmsPiy/UmDZ+QQZaWGV2cp7UQTX/cvlAAXpY7/UoFMkUGDjkFUZ/Rnmq6YMvQhN o7S76FsuLBY7ccRQscUYQZkfYnKRzo85I0ZK/HPahV85jWbULSGbEVzO9DpPEHz6+2Qv Iqohk7H1qiEdGLBADFPejHMY9IuV3oqMAaFLB63LHgXdtKmsQ1boDvJtXsN0X/NJqIWY E4JA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=y9y/tuuCFiIHQjfpS4rvMbAczpNs9AQMVI2srLxeXpE=; b=KcJA1hQcePIy0mJ55AVegOR2JXNtXx32v9b4oQZ4xU8HDRVPeKXAlxIGbmBYpIVMQD 6RC9KkcYzPDzvqBra5BbkkYGnOLVq9+rqPO7lPZh1jG8j59p6gUBo0qDSqfCwArw/DDa 6yYb9iA7p47H/jZjbnik+Q/xk+3qR4q4/D5QrL51KAr9jXo2iXWP/X9njrBJer80O6+u TJnbLAEP//ryMpaIIbnzt9xw3r7JcReS8aDh+eFkqcD/R0XDPWIL9zDC/pBihr3/W4bA ICNCu3CEDgLjylwsBe250kymWdeI2AhTM1gGpRrSOrYuA7h52qrwXZmu4lZMuE/My/gA R+YA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=D1y6hv5G; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n3-v6si2824511plp.550.2018.05.16.09.20.20; Wed, 16 May 2018 09:20:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=D1y6hv5G; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752386AbeEPQT0 (ORCPT + 99 others); Wed, 16 May 2018 12:19:26 -0400 Received: from merlin.infradead.org ([205.233.59.134]:45362 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752139AbeEPQTY (ORCPT ); Wed, 16 May 2018 12:19:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=y9y/tuuCFiIHQjfpS4rvMbAczpNs9AQMVI2srLxeXpE=; b=D1y6hv5GJ8JkkflEqUJpti+Lz J9RYHCNakBlifQrzsEo1a3KWwstzasqa6EhfNQnqXNNyAy2lYWchvF2FYEFwZt3/6rpg7eDIxV0qA lOxE9yMOSkHkwWpuDULPnkUB+OnsPlA+rBrEshXxOlUVxlN/fWrNKpz+CIsQqLfY6pYUBqiI6tVlp iU8ugy5gnfZZt7amRyWrZpa8gY7Dcx82pvi3L+eMHnCoOur4tZfZXgm2zRTRbx87iyFQCvqHfYSXL d6qnejacGYcXGDmFdFBeYvdgbs0KcJLeBxfqmMzvySp5RIc/KBjfvX2zV7iRFsgajnqO1Wuxo/OI0 FVz7uhnZg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fIz8Q-0000Ps-O7; Wed, 16 May 2018 16:18:38 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 755AA2029F1C0; Wed, 16 May 2018 18:18:37 +0200 (CEST) Date: Wed, 16 May 2018 18:18:37 +0200 From: Peter Zijlstra To: Mathieu Desnoyers Cc: "Paul E . McKenney" , Boqun Feng , Andy Lutomirski , Dave Watson , linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, Paul Turner , Andrew Morton , Russell King , Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , Andrew Hunter , Andi Kleen , Chris Lameter , Ben Maurer , Steven Rostedt , Josh Triplett , Linus Torvalds , Catalin Marinas , Will Deacon , Michael Kerrisk , Joel Fernandes , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH 07/14] powerpc: Add support for restartable sequences Message-ID: <20180516161837.GI12198@hirez.programming.kicks-ass.net> References: <20180430224433.17407-1-mathieu.desnoyers@efficios.com> <20180430224433.17407-8-mathieu.desnoyers@efficios.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180430224433.17407-8-mathieu.desnoyers@efficios.com> User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 30, 2018 at 06:44:26PM -0400, Mathieu Desnoyers wrote: > diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig > index c32a181a7cbb..ed21a777e8c6 100644 > --- a/arch/powerpc/Kconfig > +++ b/arch/powerpc/Kconfig > @@ -223,6 +223,7 @@ config PPC > select HAVE_SYSCALL_TRACEPOINTS > select HAVE_VIRT_CPU_ACCOUNTING > select HAVE_IRQ_TIME_ACCOUNTING > + select HAVE_RSEQ > select IRQ_DOMAIN > select IRQ_FORCED_THREADING > select MODULES_USE_ELF_RELA > diff --git a/arch/powerpc/kernel/signal.c b/arch/powerpc/kernel/signal.c > index 61db86ecd318..d3bb3aaaf5ac 100644 > --- a/arch/powerpc/kernel/signal.c > +++ b/arch/powerpc/kernel/signal.c > @@ -133,6 +133,8 @@ static void do_signal(struct task_struct *tsk) > /* Re-enable the breakpoints for the signal stack */ > thread_change_pc(tsk, tsk->thread.regs); > > + rseq_signal_deliver(tsk->thread.regs); > + > if (is32) { > if (ksig.ka.sa.sa_flags & SA_SIGINFO) > ret = handle_rt_signal32(&ksig, oldset, tsk); > @@ -164,6 +166,7 @@ void do_notify_resume(struct pt_regs *regs, unsigned long thread_info_flags) > if (thread_info_flags & _TIF_NOTIFY_RESUME) { > clear_thread_flag(TIF_NOTIFY_RESUME); > tracehook_notify_resume(regs); > + rseq_handle_notify_resume(regs); > } > > user_enter(); Again no rseq_syscall().