Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp774180ybc; Tue, 19 Nov 2019 09:03:53 -0800 (PST) X-Google-Smtp-Source: APXvYqxmdw8F/D8P0glDfj8ABtEJir9yZdbdT2LlLCN31mMuN6dXhIbVRBGpwv2VNQ9yCe7S+ad2 X-Received: by 2002:a2e:9758:: with SMTP id f24mr4868368ljj.105.1574183033481; Tue, 19 Nov 2019 09:03:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574183033; cv=none; d=google.com; s=arc-20160816; b=LnUubeWKCVpZPrRJhg8H5MN3b/tVL+wd0aenbXdbcOpZtHAaqQV5Sms+uUt2zS0xxw yzN2QetCRQ4Sn5F1CpC1W8Dd69RrjvafHgkH1oXNEqsjflI9dOyZUkSyaDABEL9Q0MSV RYOKfSXjOPqyFg9d+zgJlOCQMVrkxB17zh/udvRNj8Vo94iEcfx7DDBCcQNo5CVJO1sZ N53V8TWub6ZVphnz3ogvijR/ZQ6Hnik7vQ8wzZKB4nvN/9ZLpBKu76UF1R5OCZbHR3Je qx5md66YKagowavqmQRWSzMMS9FWVRKSCNcaSlIRKD+H4DrGG/g0mMcFwBdoAw3UJAFw 62aQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=pA7YpdVgBFTfgSGBFhfPIn2WiBGa9N8AM+LJRTjoT4o=; b=fRR3eqyiDDx3R+g8qo9Eu8iq2wmsyMMXWExhhEc+6KwbmAda4ibQyrloYIsDtOSOKh b5O3KB8kA57n5PPQ9DYCa4PQA+zV5YreeTVvsj/065ULCfxT6HLzpPTTokdxyezW1Dcd zzc3PP6r5yLMHeCs14e3UR1QVqeS1HT4EMv72cOKTJBDbmPZCc7pgoC3+4i3yVW7YN4g ICbLh9zSWebswmqUMiTmvU5ZbZCfNgbbUBHC7v9S92tCjeATDpqPVTKjzmDifpbFVL19 FmVAO0k1JFQSlQk27y5Y9KY37njxCnBIs0TBVxolKthK7n4iFKdcSyIXXFNKDL+1z538 1EWQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ks14si13703576ejb.87.2019.11.19.09.03.28; Tue, 19 Nov 2019 09:03:53 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728566AbfKSRCC (ORCPT + 99 others); Tue, 19 Nov 2019 12:02:02 -0500 Received: from mga03.intel.com ([134.134.136.65]:23294 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728071AbfKSRCB (ORCPT ); Tue, 19 Nov 2019 12:02:01 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Nov 2019 09:01:53 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,218,1571727600"; d="scan'208";a="289664932" Received: from jacob-builder.jf.intel.com (HELO jacob-builder) ([10.7.199.155]) by orsmga001.jf.intel.com with ESMTP; 19 Nov 2019 09:01:53 -0800 Date: Tue, 19 Nov 2019 09:06:28 -0800 From: Jacob Pan To: Lu Baolu Cc: Auger Eric , iommu@lists.linux-foundation.org, LKML , Joerg Roedel , David Woodhouse , "Tian, Kevin" , Raj Ashok , Yi Liu , jacob.jun.pan@linux.intel.com Subject: Re: [PATCH v2 01/10] iommu/vt-d: Introduce native SVM capable flag Message-ID: <20191119090628.7295cd7d@jacob-builder> In-Reply-To: References: <1574106153-45867-1-git-send-email-jacob.jun.pan@linux.intel.com> <1574106153-45867-2-git-send-email-jacob.jun.pan@linux.intel.com> <20191118134809.66b9fda4@jacob-builder> Organization: OTC X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 19 Nov 2019 10:55:29 +0800 Lu Baolu wrote: > Hi, > > On 11/19/19 5:48 AM, Jacob Pan wrote: > > On Mon, 18 Nov 2019 21:33:53 +0100 > > Auger Eric wrote: > > > >> Hi Jacob, > >> > >> On 11/18/19 8:42 PM, Jacob Pan wrote: > >>> Shared Virtual Memory(SVM) is based on a collective set of > >>> hardware features detected at runtime. There are requirements for > >>> matching CPU and IOMMU capabilities. > >>> > >>> This patch introduces a flag which will be used to mark and test > >>> the capability of SVM. > >>> > >>> Signed-off-by: Jacob Pan > >>> Acked-by: Lu Baolu > >>> --- > >>> include/linux/intel-iommu.h | 1 + > >>> 1 file changed, 1 insertion(+) > >>> > >>> diff --git a/include/linux/intel-iommu.h > >>> b/include/linux/intel-iommu.h index ed11ef594378..63118991824c > >>> 100644 --- a/include/linux/intel-iommu.h > >>> +++ b/include/linux/intel-iommu.h > >>> @@ -433,6 +433,7 @@ enum { > >>> > >>> #define VTD_FLAG_TRANS_PRE_ENABLED (1 << 0) > >>> #define VTD_FLAG_IRQ_REMAP_PRE_ENABLED (1 << 1) > >>> +#define VTD_FLAG_SVM_CAPABLE (1 << 2) > >> > >> I think I would rather squash this into the next patch as there is > >> no user here. > >> > > Sure, I don't have strong preference. Baolu, what is your call? > > It's okay for me. > will squash then. Thanks! > Best regards, > baolu [Jacob Pan]