Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp880594imj; Thu, 7 Feb 2019 13:24:10 -0800 (PST) X-Google-Smtp-Source: AHgI3IYE468ESrix9sbpLetFYM+MDP/Ya+pFsAcFSY5Gqvr0Inr6XM37s/E82dTPJKNSRA+c1/1P X-Received: by 2002:a63:d709:: with SMTP id d9mr9017017pgg.157.1549574650717; Thu, 07 Feb 2019 13:24:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549574650; cv=none; d=google.com; s=arc-20160816; b=ShEfsWnxMx0Tbg/+cKRRc0/FTwUCY1ZOcE3zheA8blw4pkKy38ODYdmxfGuJTkJEvi owwkW1/i3L0A9936cb/ygEx6kdF6Jyr3aB9tUn4vRxFdqFx+ssUIaVKEEfJcuyGrb78U fYD/y5jJN89yu8SY43cmpntRGwj5Y8MZp6Npcw72W0GDPHrc8Ll1H7dQmB9QIZU+0SXz 68Egv3co4HsmshD2fWW8/3R2ILZ1HY1mc4/piFmEomeu/QrvtsQho78cXpHBPIAhOhj5 ckgLmCQI7N7868DQ0hVLunAKZeEFi3ikuPc8lautZatZsJRWmpAm1jjUi8/TG88l52EE 4irw== 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; bh=GTU32CxJlalzJ+UzA35VvMOjavtoo4yaTexQeCyerOo=; b=l9e1rIl1RkXG4pszyCM0mlrS2DZhPnCmxnFXealsPLv42YGJZOCkw8N5E7PvAA5vIQ Qvh1CS5xEHUkpx7N6xhGWv2mUnW8QyCVUh1PLHlPICS35UR+++bLNPd8ICEJhCZ1+kzc TXLJ6DbYaK8jWhSH6ZDxVkAOC11Qr8gQ9h5R6Pm8GX2GtKVW1T+9X4WpKzlSPlF8Rd2O wUzTU+uA4gUoGgoXpsAKAv0sTgQy87/yGhkE4Gdy1E0/vp3B3SW740r3eYSBiGRnRMcq Jp7fZeJf0HENlmEUatSlydzRFqptO5GSWtnfVhbj1NpU5a2QbaaPtKhnImfj+i4gIhY/ 1X/g== 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 f11si82922pgv.101.2019.02.07.13.23.55; Thu, 07 Feb 2019 13:24:10 -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 S1726880AbfBGVW4 (ORCPT + 99 others); Thu, 7 Feb 2019 16:22:56 -0500 Received: from mga09.intel.com ([134.134.136.24]:16020 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726622AbfBGVW4 (ORCPT ); Thu, 7 Feb 2019 16:22:56 -0500 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Feb 2019 13:22:55 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,345,1544515200"; d="scan'208";a="142494220" Received: from otc-nc-03.jf.intel.com (HELO otc-nc-03) ([10.54.39.48]) by fmsmga004.fm.intel.com with ESMTP; 07 Feb 2019 13:22:55 -0800 Date: Thu, 7 Feb 2019 13:22:54 -0800 From: "Raj, Ashok" To: David Woodhouse Cc: sathyanarayanan.kuppuswamy@linux.intel.com, joro@8bytes.org, iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Jacob Pan , Ashok Raj Subject: Re: [PATCH v1 1/1] iommu/vt-d: Enable PRI only if the device enables PASID. Message-ID: <20190207212254.GA1647@otc-nc-03> References: <142748f6a00153f9926fe2a9dc30cf3cd89164cd.1549408090.git.sathyanarayanan.kuppuswamy@linux.intel.com> <0faf4f6a5bbd8cbee84aa78c40ab15216c2b8f0e.camel@infradead.org> <20190207210936.GH103220@otc-nc-03> <9393b9b2c15564ee84b627a73fb34bd17ebe4a7f.camel@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9393b9b2c15564ee84b627a73fb34bd17ebe4a7f.camel@infradead.org> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 07, 2019 at 09:15:24PM +0000, 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. That's true...it does seem to be covered already.. I can't remember why I thought this was required :-(.. We can drop this patch. > > What's the actual problem being fixed by this patch? 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? >