Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp7006ybc; Mon, 18 Nov 2019 19:01:02 -0800 (PST) X-Google-Smtp-Source: APXvYqylmhBjnOdZ1ZN5zcfGFc1cihGDd8xlG+7snAIb+s3l1jx56o2W7NJJs8H0cUco7Wsb8fsO X-Received: by 2002:a17:906:85c8:: with SMTP id i8mr32252695ejy.46.1574132462739; Mon, 18 Nov 2019 19:01:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574132462; cv=none; d=google.com; s=arc-20160816; b=eYR6Z962N7rnev3AyHHvKObtBkRmdIseNveo1SJpYjHMuEyCXd/ZQpyhdOsh640dWs fzP/n+JPN2/LT5yRgo6AER4chfYCs1sL5QYU0tQo+jzOkdEAJcl8oEkcD7LCE5LN387S pGO1K3tKa6xBp7qMdZo8nltoaqdKz+xGy0LE7A/il4BeblHyV9Gsci6jK6Ld3+iw7FAQ QXKcDgPSs3RZuqZV6iWK8B3DN0rwpGwXrFSD7nQgWL8aAswTGlOhbVrjsJrGI1rGcD6q Sie6Sw5ORzYF9dmHQ0C75GeYH3X03n2b6f9XpIS7wfW5k0ajm1ciC+yGy32LMMh7+an0 T4/A== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:cc; bh=BmrkJFzTv/NsNmPd0uukz8c1bYziw7fJaCyRtSU5TyQ=; b=vHO6gZ8PQlmEZWVdRUbfP3AhlgceWD67APbKgytzL4GIn8E3F55jYr5aDDh7R3TyAc B018cVppAPMmHPrGrVjs0YF5fWmsdiHIJQThBtecGgjoluOgI7bsjVyJjZiqJ5YHXC7v gMeNXpkGVha2w3VGf6kaI3JV1TZRLLIj+dWFEhmT+1zSrDBHpHwon7x5RhLvE1qYzVGw j+OFPaNoxMlvoFybCCzwIPz3QIJZgvvULgsr8O/w5zY0u0pwWJRsSUnOKekhwwgiZBFo y9Rk3ozV9WFgI5bUdFKf7dZBEpIKz4KRpFaKw/OStvgs2aqirLeMeXIwdvj9BFczq/Aa rGvA== 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 op11si12930887ejb.107.2019.11.18.19.00.25; Mon, 18 Nov 2019 19:01:02 -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 S1727289AbfKSC6e (ORCPT + 99 others); Mon, 18 Nov 2019 21:58:34 -0500 Received: from mga05.intel.com ([192.55.52.43]:29917 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727014AbfKSC6e (ORCPT ); Mon, 18 Nov 2019 21:58:34 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Nov 2019 18:58:33 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,322,1569308400"; d="scan'208";a="204263224" Received: from allen-box.sh.intel.com (HELO [10.239.159.136]) ([10.239.159.136]) by fmsmga008.fm.intel.com with ESMTP; 18 Nov 2019 18:58:32 -0800 Cc: baolu.lu@linux.intel.com, iommu@lists.linux-foundation.org, LKML , Joerg Roedel , David Woodhouse , "Tian, Kevin" , Raj Ashok , Yi Liu Subject: Re: [PATCH v2 01/10] iommu/vt-d: Introduce native SVM capable flag To: Jacob Pan , Auger Eric 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> From: Lu Baolu Message-ID: Date: Tue, 19 Nov 2019 10:55:29 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191118134809.66b9fda4@jacob-builder> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Best regards, baolu