Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3556597pxb; Sun, 7 Feb 2021 13:59:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJwOhU3DYQgVXoYEtLOvizkBWzXEIxO26etKudCrA6hBo84oBe+I8lHQmAfHscZY8aNyvKFO X-Received: by 2002:a17:906:3885:: with SMTP id q5mr14121115ejd.105.1612735191114; Sun, 07 Feb 2021 13:59:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612735191; cv=none; d=google.com; s=arc-20160816; b=VZyUlkwqZgsstqaAOYSI1ig8x95THf0rmz2gJmYtv9Ub0pPIXi/tAoD5i6Z/bIxUz2 eqqXTGSKvaAnsTs6nisgI8YNGEMfdAFic1OBS0PoEeXbZ/KICOtjAWTGQVXDTa9tGSlm Z3dt3OGmzWUdTdtsz/IUKgCh/Zr2CUB2tpXBAd1N55dRjaIpPMu3WUhOAo94BQ8YQvL0 VAOorBxwRNCa9SnnjxG3BjWKdDhFS1ydos/LgjpeRF7w7kTqHV5xjH0z4U5BCG50LcOp exBNR0WI01xfdHaHX+b90gpyYK6Loy6wXKzZuRB7tNXIDhY1GNs3tyi/2rNIF481VZbi s/kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=koGUNKjOO72KH37WXFEoNbNPM25AMkiI5phXZJ3j7A4=; b=k1ps1WgElYuQsT3dVyTFLI9OCSte0r2xVxSHmA2fh988okmgpZkuxKLHZF57tQdSl2 zhmL10XNBp0zL4YkWPPvzI/Ft4t7r/uvzFpHeUmVrgCftqvsKr1pTzg/eK9cTiXWx7aD Hl2YoDFWGwt7T/Dq2oejFtrCG2HW75/d/xDAblkQ5VOPZw9eIJtnso/OZO8O8UNeACEG nf8c/wdWuFQpiN9q5P8Czx0kOGv7WSz1akarOZ+2i6KMJwmUY8QituhR/v6VFxfcMNJp D4mXL850pQLEwTcTAxQQOunrSt6gZswO3SPf2U7Do0JOJ7Noi1kws0ewL6XDdwyr9qVz Pgnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aiqhgWBz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f16si10270814ejz.257.2021.02.07.13.59.11; Sun, 07 Feb 2021 13:59:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aiqhgWBz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229621AbhBGVwH (ORCPT + 99 others); Sun, 7 Feb 2021 16:52:07 -0500 Received: from mail.kernel.org ([198.145.29.99]:51504 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229611AbhBGVwG (ORCPT ); Sun, 7 Feb 2021 16:52:06 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5A4BC64E49; Sun, 7 Feb 2021 21:51:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1612734685; bh=P4hDyuNTuefulj1FdkzvYzEyjfTpJGAPCBgeIztJKCM=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=aiqhgWBzXV4AzmQQ3FOIpJ+8g22/cdhbfgt1J5rc7iv8CNDMRsCNdIqJRBxuy++pF vSSeAM9wvJXq06Lww0xXRz1OLXhX1d59B76C8CcYQE/A8LT/GkDc7YlnUeYuyyArp9 JNonboHjp/shpuCLJEFFcApxk/KOYx9m/eOm6biB7qgn5L9hMxMclfByBeRuLj9oms 8zgWmgGkApMFjwpVPd7aZVjxqkhdul+WojsaSgdVwq4Anx2uZj79jxc8DMEIDQstXy g/Z9l8JumCrd3vhC+XaZbjK6hu5J5lspVB0tIM2OLMyS54aUxsyYEmUWPjnkDN10/3 aG0/H10rqpiDg== Received: by mail-oi1-f170.google.com with SMTP id i3so2870678oif.1; Sun, 07 Feb 2021 13:51:25 -0800 (PST) X-Gm-Message-State: AOAM531trnum047DwCEETmPw/qWzSiQd1LMHdivFwvoQMv/8uqG2NThR R/9IjVqYj0QtN/8LGsxf1RbJ6I+prTzOdbW3DVE= X-Received: by 2002:aca:2117:: with SMTP id 23mr318015oiz.4.1612734684591; Sun, 07 Feb 2021 13:51:24 -0800 (PST) MIME-Version: 1.0 References: <1612685884-19514-1-git-send-email-wangzhou1@hisilicon.com> <1612685884-19514-2-git-send-email-wangzhou1@hisilicon.com> In-Reply-To: <1612685884-19514-2-git-send-email-wangzhou1@hisilicon.com> From: Arnd Bergmann Date: Sun, 7 Feb 2021 22:51:08 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC PATCH v3 1/2] mempinfd: Add new syscall to provide memory pin To: Zhou Wang Cc: "linux-kernel@vger.kernel.org" , "open list:IOMMU DRIVERS" , Linux-MM , Linux ARM , Linux API , Andrew Morton , Alexander Viro , gregkh , Barry Song , Jason Gunthorpe , kevin.tian@intel.com, Jean-Philippe Brucker , Eric Auger , "Liguozhu (Kenneth)" , Zhangfei Gao , Sihang Chen Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Feb 7, 2021 at 9:18 AM Zhou Wang wrote: > diff --git a/arch/arm64/include/asm/unistd32.h b/arch/arm64/include/asm/unistd32.h > index cccfbbe..3f49529 100644 > --- a/arch/arm64/include/asm/unistd32.h > +++ b/arch/arm64/include/asm/unistd32.h > @@ -891,6 +891,8 @@ __SYSCALL(__NR_faccessat2, sys_faccessat2) > __SYSCALL(__NR_process_madvise, sys_process_madvise) > #define __NR_epoll_pwait2 441 > __SYSCALL(__NR_epoll_pwait2, compat_sys_epoll_pwait2) > +#define __NR_mempinfd 442 > +__SYSCALL(__NR_mempinfd, sys_mempinfd) This adds a compat syscall for 32-bit tasks running on arm64 without adding the same for the native arch/arm syscall table. Those two need to always stay synchronized. In fact, new system call should ideally get assigned on all architectures at the same time, with the same number (or +110 on arch/alpha). Arnd