Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2526163ybt; Tue, 16 Jun 2020 08:16:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/2kmC7DeRyTkAw/xRqju4rINBosg1vlZYN6souhacf5Gm+/X6t7caqBJg5wA77l4/lKov X-Received: by 2002:a17:906:6403:: with SMTP id d3mr3167492ejm.386.1592320563003; Tue, 16 Jun 2020 08:16:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592320562; cv=none; d=google.com; s=arc-20160816; b=0PBZxG8GjxHZ+Bbd83hCnMHFVGatlhckxf2Tdr6RzTMhddg+0YIMC311ZogNDOtFlO 1XyIFABykKPGkfUpY3S7u3ZXJ47dpp6TxtBFyxHlYgZ+PhC/nTr7oAo2reQUsE25MHpm qyiW4YkuQGdcOIhzuuZiSgNukzPYTOc8HELTgj1MSUGA/XgBNnMZ6qBUvx6sf6OhygFO cd8lTRUd5w7FS9W/gC90JvYuaDUV7KnutlZFMCiBbdMeDlkbtErkvlsUgOfmpJgFvIuM 3rP1s3dEPyo/wMEApL3StYXnf0MlwCHrQX7qAGS3rqpekkhJrOhzyS3ry1OF5Nh8m7lZ ctyA== 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:ironport-sdr:ironport-sdr; bh=NK7Epm6x3xdJwN1TZ4eW37urLLYHFiIc5IKQaRHwO+s=; b=rUjyL1BnvQaamRJNNcj35uB8YxPrhbtpLhA7Hvnwgj7fkWtMDaRzdElCkVTwoOiAj2 BqGE0jtSP2If24vGTvIMsYTzBu/a76HIHi29/zkMecGlmLgEj7G5lRvdjA6xVxl8M64o eCinZEmm80A0Ln4XBheEp4rvZZK04uRGAQmeL0EcevbF2iXdjomHhJlSdfnj1T1K9YZW ma9eyE6HDPuWqBdVd6RYR00sB9hscayIalrF0DS1YWyqXfaNdgevvtbCKl8M/rWtiD4Q loOOg4YKRBkGlAa/n5U58kR5YrY5bTi1XjqGdJjHcwSbJlIp3gg1FJPIuLqQDwe/hpQP E2iw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 89si10405622edo.459.2020.06.16.08.15.38; Tue, 16 Jun 2020 08:16:02 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729173AbgFPPLh (ORCPT + 99 others); Tue, 16 Jun 2020 11:11:37 -0400 Received: from mga18.intel.com ([134.134.136.126]:64061 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727077AbgFPPLh (ORCPT ); Tue, 16 Jun 2020 11:11:37 -0400 IronPort-SDR: uHar3FlRWYseKDnGobEVCGr6c4tliUSzusna7XbriXygDLHVprwi+lbLQt9NqbIa2N3Fj5lPb1 uLP51a/3/blg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jun 2020 08:11:36 -0700 IronPort-SDR: SwSn7gnGYbdK+kflKxePGQpLDi6Nn79/DH91IjaxvnM8WNKqmDDB6H+G96jm7432GHx9wtSMu7 KHuOqv+1JqVg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,518,1583222400"; d="scan'208";a="382897812" Received: from romley-ivt3.sc.intel.com ([172.25.110.60]) by fmsmga001.fm.intel.com with ESMTP; 16 Jun 2020 08:11:34 -0700 Date: Tue, 16 Jun 2020 08:11:35 -0700 From: Fenghua Yu To: Jean-Philippe Brucker Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , H Peter Anvin , David Woodhouse , Lu Baolu , Frederic Barrat , Andrew Donnellan , Felix Kuehling , Joerg Roedel , Dave Hansen , Tony Luck , Ashok Raj , Jacob Jun Pan , Dave Jiang , Yu-cheng Yu , Sohil Mehta , Ravi V Shankar , x86 , linux-kernel , amd-gfx , iommu@lists.linux-foundation.org, linuxppc-dev Subject: Re: [PATCH v2 08/12] mm: Define pasid in mm Message-ID: <20200616151134.GA15763@romley-ivt3.sc.intel.com> References: <1592008893-9388-1-git-send-email-fenghua.yu@intel.com> <1592008893-9388-9-git-send-email-fenghua.yu@intel.com> <20200616082819.GA590740@myrica> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200616082819.GA590740@myrica> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Jean, On Tue, Jun 16, 2020 at 10:28:19AM +0200, Jean-Philippe Brucker wrote: > 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? Sure. I will change it to CONFIG_IOMMU_SUPPORT. Thanks. -Fenghua