Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp887816imj; Thu, 7 Feb 2019 13:32:13 -0800 (PST) X-Google-Smtp-Source: AHgI3IaN9XpwkUyZLCFn/BnmorYZU33oFXDMpzFgmOxr5s+0+EWjEiJdFcMIvJJIhW0w/EhuZpSK X-Received: by 2002:a62:3305:: with SMTP id z5mr18614872pfz.112.1549575133116; Thu, 07 Feb 2019 13:32:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549575133; cv=none; d=google.com; s=arc-20160816; b=A+oPxriom54ijEz3pXaew5xr1KW/LQOFKW7nJhgkW6xfoPV4JTcjst2kQZlfmZo8cP 0W4TFpAotL8XCDWAyHe0Da9xslSjcxvtKkCxKdgiaiCLiMCBWbjGDRc+uD3dS6FUebuo Bozt1qyxTDnl6zQZYfpx1s/CaAD6/lhoHYAx+Ogwb+hNs02IwgQ1plrgBBcsbnAcZe0g uQdS/qQqUGFB03pVXVKCtQCnjKPmjv934A7WY91mBo225dpVsepigiJWuRF02CQqC4+O wGk5em/4JMLcfglxam54e5P2jZVfXhPDaQrjtfhjRweiajCAMTICSrwoNHPncj6je6Vz vwVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject:reply-to; bh=k+cDuehj+IkLHO5Dyj3kO74IVYg2mCf74r/BmM75SAc=; b=PSkxKgUzCKWfB/omhqFn4QPAopwKyBHxtfHtDDsiyHtIzdPb08lcF0S2dinINxEZR9 vi7v5HVEbg+g8YWHOZfbYW0YmqlRJHFEwBjYEXj2bt5uJrgvngohccipZB/Rkjez4+3K tTuRcYeecE7MHbxf0qhr98tokZyqIDi0/1awSzc8EDB9KR50SvO5KuRQadQELOgR9v/x Qpw4xmDTXs6JPYzXxo7wWYeztwCl9O1szqMsuRht9S4xfreod33BlMwtY5RrWOi2J+Ur Ts0uXioJ5PJF2tgUSELyTkh/i8pvkGj1/F+HBWIOmXhFZybP6zIoRCBgR951jQmODB+c 9rlg== 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 o1si111374pgh.29.2019.02.07.13.31.56; Thu, 07 Feb 2019 13:32:13 -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 S1726896AbfBGVbo (ORCPT + 99 others); Thu, 7 Feb 2019 16:31:44 -0500 Received: from mga01.intel.com ([192.55.52.88]:55823 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726512AbfBGVbo (ORCPT ); Thu, 7 Feb 2019 16:31:44 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Feb 2019 13:31:43 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,345,1544515200"; d="scan'208";a="113234116" Received: from linux.intel.com ([10.54.29.200]) by orsmga007.jf.intel.com with ESMTP; 07 Feb 2019 13:31:43 -0800 Received: from [10.54.74.33] (skuppusw-desk.jf.intel.com [10.54.74.33]) by linux.intel.com (Postfix) with ESMTP id 125605802E1; Thu, 7 Feb 2019 13:31:43 -0800 (PST) Reply-To: sathyanarayanan.kuppuswamy@linux.intel.com Subject: Re: [PATCH v1 1/1] iommu/vt-d: Enable PRI only if the device enables PASID. To: David Woodhouse , "Raj, Ashok" Cc: joro@8bytes.org, iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Jacob Pan References: <142748f6a00153f9926fe2a9dc30cf3cd89164cd.1549408090.git.sathyanarayanan.kuppuswamy@linux.intel.com> <0faf4f6a5bbd8cbee84aa78c40ab15216c2b8f0e.camel@infradead.org> <20190207210936.GH103220@otc-nc-03> <9393b9b2c15564ee84b627a73fb34bd17ebe4a7f.camel@infradead.org> From: sathyanarayanan kuppuswamy Organization: Intel Message-ID: Date: Thu, 7 Feb 2019 13:30:24 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <9393b9b2c15564ee84b627a73fb34bd17ebe4a7f.camel@infradead.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/7/19 1:15 PM, David Woodhouse wrote: > On Thu, 2019-02-07 at 13:09 -0800, Raj, Ashok wrote: >> You are right.. they are completely orthogonal. We just don't have >> a way to handle the page-requests for request without PASID's. >> >> There are some of the vIOMMU work to pass the PRI to who owns >> the device, and we can certainly relax it then. This is just to reflect >> what support exists today. FWIW, even the native driver maybe be able >> to resolve this if supported. > As things stand, if a device makes a PRI request without a PASID, it'll > get told that we didn't manage to bring the page in for it. Which is > true. > > What's the actual problem being fixed by this patch? Since the request is going to fail any way why go through the process of enabling it ? Once the functionality (PRI without PASID) is supported, then they can revert this patch. Just we are trying to expose whats currently supported clearly. > Yes, we're going > to want to hook up a way to pass the PRI to the right place... but why > add *another* thing that's just going to have to be fixed, by reverting > this patch? > -- Sathyanarayanan Kuppuswamy Linux kernel developer