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=-3.5 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no 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 67ECBC433DF for ; Tue, 16 Jun 2020 09:31:47 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (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 10DC420767 for ; Tue, 16 Jun 2020 09:31:46 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="n2zYcdJI" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 10DC420767 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 49mNJ11K4FzDqQD for ; Tue, 16 Jun 2020 19:31:45 +1000 (AEST) Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=linaro.org (client-ip=2a00:1450:4864:20::643; helo=mail-ej1-x643.google.com; envelope-from=jean-philippe@linaro.org; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=n2zYcdJI; dkim-atps=neutral Received: from mail-ej1-x643.google.com (mail-ej1-x643.google.com [IPv6:2a00:1450:4864:20::643]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 49mLv70QJ8zDqTm for ; Tue, 16 Jun 2020 18:28:34 +1000 (AEST) Received: by mail-ej1-x643.google.com with SMTP id o15so20522387ejm.12 for ; Tue, 16 Jun 2020 01:28:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=8IjNpcb5GlLP8oh8x0KUTPeP/cupRlI8efPDAe078Wg=; b=n2zYcdJI10LwDXrUDK71pELIpej3d4vK23sWHQIG+DTNiP7rBB2Ydlo3ni2NhqKlw0 qmgjqRyWrTNKRJqtcN54fNNbVchNxv0UCZ8UD6A5n0N9veGqYXg67ZE1JHCqEN7GwO5N bEzMy2pQBU1i7k0Z/9BJp4fSpA1uwPrI9uPISnm1l2c83I4urBxMP6qXHOXcm7LqT474 DkWGGV7iqbwvNUH1ffz861zJTpj+CcmYfrKxZNalIwc2nhiDZQK3HmY8x01t6j0g8Rzp 21hq2PicDxmT3+wENPx4ZJnox12QbkNo3+5pkq+RlLl6x1a38Mh53C7YsX6mxJYhTMLu rlFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=8IjNpcb5GlLP8oh8x0KUTPeP/cupRlI8efPDAe078Wg=; b=R67qwXkv0mNOeuYhe0NuYZLu/lJbZAJYNmPAW9l0mJ61s5Qem/XMM9qraZurMlryzC CY9wIbk1uqRjtCFwE+bMy5XNhk0WHBI/wA82ae/PFSJpgv1t5a28s5N9ouxFNTFHZDCN QRdWgJ08by2xXf822eSJcDp0sanANrOqnceATVHfFWayh8Hysb9FmNBFmjVTZFiDZ74A 4lQKT9dUnkBIIFM/rYwEuMw8ob4xP+H9rGNTmw7OtJkWy8SWq/ccUVz150WjrbrPOAFj vG/VhX+Wizt2aeP/OgrbqQGr3D5Uz8aOI2rkLBFJForjrjTjlxoof3lQkpvSPCdPFI5C xH6Q== X-Gm-Message-State: AOAM532IR6S6FMSJhsz5JBpRP6idLKS12ULZKdvZxxnOu37G8P9yJ/iF nZfFnrPExyOnQHnn1UgVDoTBvg== X-Google-Smtp-Source: ABdhPJwdmGZqCbPQVfP2PbF9SY5ULvsP9RvSngnjuu0AyNddv0ojHPfA/jhOP8zjYvYdGToRfiyJAw== X-Received: by 2002:a17:906:6b92:: with SMTP id l18mr1733654ejr.145.1592296110725; Tue, 16 Jun 2020 01:28:30 -0700 (PDT) Received: from myrica ([2001:171b:226e:c200:116c:c27a:3e7f:5eaf]) by smtp.gmail.com with ESMTPSA id c4sm10680797ejz.104.2020.06.16.01.28.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jun 2020 01:28:30 -0700 (PDT) Date: Tue, 16 Jun 2020 10:28:19 +0200 From: Jean-Philippe Brucker To: Fenghua Yu Subject: Re: [PATCH v2 08/12] mm: Define pasid in mm Message-ID: <20200616082819.GA590740@myrica> References: <1592008893-9388-1-git-send-email-fenghua.yu@intel.com> <1592008893-9388-9-git-send-email-fenghua.yu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1592008893-9388-9-git-send-email-fenghua.yu@intel.com> X-Mailman-Approved-At: Tue, 16 Jun 2020 19:28:56 +1000 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Dave Hansen , H Peter Anvin , Dave Jiang , Ashok Raj , Joerg Roedel , x86 , amd-gfx , Ingo Molnar , Ravi V Shankar , Yu-cheng Yu , Andrew Donnellan , Borislav Petkov , Sohil Mehta , Thomas Gleixner , Tony Luck , linuxppc-dev , Felix Kuehling , linux-kernel , iommu@lists.linux-foundation.org, Jacob Jun Pan , Frederic Barrat , David Woodhouse , Lu Baolu Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" On Fri, Jun 12, 2020 at 05:41:29PM -0700, Fenghua Yu wrote: > diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h > index 64ede5f150dc..5778db3aa42d 100644 > --- a/include/linux/mm_types.h > +++ b/include/linux/mm_types.h > @@ -538,6 +538,10 @@ struct mm_struct { > atomic_long_t hugetlb_usage; > #endif > struct work_struct async_put_work; > + > +#ifdef CONFIG_PCI_PASID Non-PCI devices can also use a PASID (e.g. Arm's SubstreamID). How about CONFIG_IOMMU_SUPPORT? Thanks, Jean > + unsigned int pasid; > +#endif