Received: by 10.192.165.156 with SMTP id m28csp2339230imm; Thu, 12 Apr 2018 12:35:27 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+K7OZGhHm9N91v/ZvV/+ASjjRWGeRXui9vMBjW6QWw1WXcNC3UdgxoJX0k1Ubj+rX5D1/k X-Received: by 10.99.111.140 with SMTP id k134mr1699339pgc.11.1523561727910; Thu, 12 Apr 2018 12:35:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523561727; cv=none; d=google.com; s=arc-20160816; b=DCR/E93rj9vBLdLarVeIc6nk4ZcbsYhaQP8w8qWrYiv7rIYNFo23O9ArsNg8wa+glD tc3j8CQdYw8ZHn5D32NwhxXd6/NNIHFgncISAax/uPhMmc664qJQRbUq6YFt6CtsIetG YCn5xJY53ACQcqzEVUymrh2qg6pPfE/Z1FOEmX82XVb4j1+tu/fHkw8ifwq/02RlUurg 28mF9vZoXI9uq1SEKCGtXy8klxaVAICS9NV1vrothC43puaIJ3JMHWpVPgfug7niByoq Fx9ex9XteEfXNGb50db9s4c+nyuZ16xWP+3zt+j/9W+hyX+7HrV9kum80GUQVj7W63Sb j8xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=dRci3XSCak4hKxGrsOfeP+z7zAhc3GHXPYq8mcRTII4=; b=WC6zuDmjR0+M0Eth8+ic7EHCf13FW3KmFc9hx/8JovvL97MxHL7PEor/oNBlQBI0hU 0QMclM/e1g29ZFOQU7WAcQkB66lYk4tVlSrV34ea904hu37QvBQLfrUf67FOE6LJIiuo aTQwsew2fCScIhCHUl+KtnMcYWF4xZDmZXkx0jB2BRwwI4NDXq9d4cuV2j4c8tIf9X1y S0l/EFecj92eAsGv/6ecZfzkZAFITSgLLJAl6Yh64myvmhzQcIgAOuoTbmeNxrssv3Oi JNO3FoG8zZ00I+E+oPGLg3I+jefYoO1QZnpUnedAlOgYuOMP6qR6iJVpRSAD4G/UpF4o gIBg== ARC-Authentication-Results: i=1; mx.google.com; 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 t13si2740449pgr.63.2018.04.12.12.35.13; Thu, 12 Apr 2018 12:35:27 -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; 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 S1753831AbeDLTdl (ORCPT + 99 others); Thu, 12 Apr 2018 15:33:41 -0400 Received: from mail.efficios.com ([167.114.142.138]:45538 "EHLO mail.efficios.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752952AbeDLT2W (ORCPT ); Thu, 12 Apr 2018 15:28:22 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.efficios.com (Postfix) with ESMTP id 5B6781B06A8; Thu, 12 Apr 2018 15:28:21 -0400 (EDT) Received: from mail.efficios.com ([127.0.0.1]) by localhost (mail02.efficios.com [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id e3dq2TG-qK0e; Thu, 12 Apr 2018 15:28:21 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.efficios.com (Postfix) with ESMTP id 06AD61B069A; Thu, 12 Apr 2018 15:28:21 -0400 (EDT) X-Virus-Scanned: amavisd-new at efficios.com Received: from mail.efficios.com ([127.0.0.1]) by localhost (mail02.efficios.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 66i6nnn8BwnX; Thu, 12 Apr 2018 15:28:20 -0400 (EDT) Received: from thinkos.internal.efficios.com (192-222-157-41.qc.cable.ebox.net [192.222.157.41]) by mail.efficios.com (Postfix) with ESMTPSA id 9E4D51B068B; Thu, 12 Apr 2018 15:28:20 -0400 (EDT) From: Mathieu Desnoyers To: Peter Zijlstra , "Paul E . McKenney" , Boqun Feng , Andy Lutomirski , Dave Watson Cc: 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 , Mathieu Desnoyers Subject: [RFC PATCH for 4.18 04/23] arm: Wire up restartable sequences system call Date: Thu, 12 Apr 2018 15:27:41 -0400 Message-Id: <20180412192800.15708-5-mathieu.desnoyers@efficios.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180412192800.15708-1-mathieu.desnoyers@efficios.com> References: <20180412192800.15708-1-mathieu.desnoyers@efficios.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Wire up the rseq system call on 32-bit ARM. This provides an ABI improving the speed of a user-space getcpu operation on ARM by skipping the getcpu system call on the fast path, as well as improving the speed of user-space operations on per-cpu data compared to using load-linked/store-conditional. TODO: wire up rseq_syscall() on return from system call. It is used with CONFIG_DEBUG_RSEQ=y to ensure system calls are not issued within rseq critical section Signed-off-by: Mathieu Desnoyers CC: Russell King CC: Catalin Marinas CC: Will Deacon CC: Thomas Gleixner CC: Paul Turner CC: Andrew Hunter CC: Peter Zijlstra CC: Andy Lutomirski CC: Andi Kleen CC: Dave Watson CC: Chris Lameter CC: Ingo Molnar CC: Ben Maurer CC: Steven Rostedt CC: "Paul E. McKenney" CC: Josh Triplett CC: Linus Torvalds CC: Andrew Morton CC: Boqun Feng CC: linux-api@vger.kernel.org --- arch/arm/tools/syscall.tbl | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/tools/syscall.tbl b/arch/arm/tools/syscall.tbl index 0bb0e9c6376c..fbc74b5fa3ed 100644 --- a/arch/arm/tools/syscall.tbl +++ b/arch/arm/tools/syscall.tbl @@ -412,3 +412,4 @@ 395 common pkey_alloc sys_pkey_alloc 396 common pkey_free sys_pkey_free 397 common statx sys_statx +398 common rseq sys_rseq -- 2.11.0