From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 22988C433DB for ; Sun, 7 Feb 2021 21:51:31 +0000 (UTC) Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9EBD664E30 for ; Sun, 7 Feb 2021 21:51:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9EBD664E30 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=iommu-bounces@lists.linux-foundation.org Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 706D9854DB; Sun, 7 Feb 2021 21:51:30 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TvDn-h8nAFCE; Sun, 7 Feb 2021 21:51:29 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by fraxinus.osuosl.org (Postfix) with ESMTP id D2F64854C9; Sun, 7 Feb 2021 21:51:29 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id C2B04C0891; Sun, 7 Feb 2021 21:51:29 +0000 (UTC) Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by lists.linuxfoundation.org (Postfix) with ESMTP id D1393C013A for ; Sun, 7 Feb 2021 21:51:27 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id B8CD0854D0 for ; Sun, 7 Feb 2021 21:51:27 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6yrpNxjYYuUn for ; Sun, 7 Feb 2021 21:51:25 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by fraxinus.osuosl.org (Postfix) with ESMTPS id BA725854C9 for ; Sun, 7 Feb 2021 21:51:25 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id 5631764E42 for ; 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-f173.google.com with SMTP id u66so11820115oig.9 for ; Sun, 07 Feb 2021 13:51:25 -0800 (PST) X-Gm-Message-State: AOAM532N9MAOubFoG0Fz3m3xEWcrkx5gqx5LHIGZkBmou/zVGkcW2+Ra RX7iEgUuGA+q9mOwxxzlhAuS7HA47uyrjR19mrs= X-Google-Smtp-Source: ABdhPJztcgMCwC5vEH2C09j7j+GkAttNY0a5GTpilwvVIo0NrUu5XPRToZOgdItl3JcOdDFgY9DlSYVlj5gq9JEHorc= 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: Jean-Philippe Brucker , kevin.tian@intel.com, Sihang Chen , Jason Gunthorpe , Linux API , "linux-kernel@vger.kernel.org" , Linux-MM , "open list:IOMMU DRIVERS" , Alexander Viro , gregkh , Zhangfei Gao , Andrew Morton , "Liguozhu \(Kenneth\)" , Linux ARM X-BeenThere: iommu@lists.linux-foundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Development issues for Linux IOMMU support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: iommu-bounces@lists.linux-foundation.org Sender: "iommu" 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 _______________________________________________ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu