Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp867653imj; Thu, 7 Feb 2019 13:11:30 -0800 (PST) X-Google-Smtp-Source: AHgI3IZ+apBiBuhnGxAD8yztKrEPEsnt+2IKHmA7N6BI38310YQ1CYzZlX49dFFqwhBT/UkQxk0y X-Received: by 2002:a63:9d0f:: with SMTP id i15mr16647862pgd.77.1549573890271; Thu, 07 Feb 2019 13:11:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549573890; cv=none; d=google.com; s=arc-20160816; b=PDerz3GIBAwUnrnZ5HWyqvDLv0FEblvwhgQzrbZbNjqeup+VNowpFOY+y9PbCesSut IqngV1xFI69NRad8eh7Ogq+TVdW6qeQy4z37S7KzTa3Dsg/8V90khJMejn4wnHxykQKO 9XskxjwTlESUlpWCfnbTl76qNSovDfb8+fL2L/X6MDkzSKpxZ5ViARZmMAFVeNoPSm5q WZlhJy56Ke7m0exW2QS5hHtcqzfZbn+XB6QxIGQgSusDGR8FOwmtIs3mjUKhEGF2FYng Tw9PSW+fvjSp5PjH6FKZjF7OwAbmWnQqKpSpBcDGDiK3dLWMYcLrd05myefXvnnQ7abW TqDw== 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=gEnKFto3Z2fR2GBLCu0S7FWjswNbxfROz63idxQn5fc=; b=Lmni7qGThOtffP0r85gOmeQaKn19DE/lUdb86ye4a1e6SS7HLyTZebzc3XavQfgmHu EUAhEMsNjAk+hsMFWluhQA1UoyEgtGLKhIlrvAMrS2B1GKibh2FsozkOBniCAVYTgLGX sHMOGacsqnsrE9i4Qu6pOMyvKvAd19bEOBYxEsboVT6UKOqFzXSfELSwdef2zLmdT0YK t6DXkiQEysspNsJ+b1rr3ah15pnvVKVOysXJqvvT687BelZ8yTAXODQNsQdOsxhd01Z+ 953wuhEehUaUIfNM80tWzIHrmrNnF7Fa8uXF8LmcX9dptlYwaE/CJUhx0SYKs2MbkGTB cLFQ== 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 q127si81596pfq.19.2019.02.07.13.11.14; Thu, 07 Feb 2019 13:11:30 -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 S1727659AbfBGVJi (ORCPT + 99 others); Thu, 7 Feb 2019 16:09:38 -0500 Received: from mga01.intel.com ([192.55.52.88]:54093 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727485AbfBGVJh (ORCPT ); Thu, 7 Feb 2019 16:09:37 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Feb 2019 13:09:37 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,345,1544515200"; d="scan'208";a="116081329" Received: from otc-nc-03.jf.intel.com (HELO otc-nc-03) ([10.54.39.48]) by orsmga008.jf.intel.com with ESMTP; 07 Feb 2019 13:09:36 -0800 Date: Thu, 7 Feb 2019 13:09:36 -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: <20190207210936.GH103220@otc-nc-03> References: <142748f6a00153f9926fe2a9dc30cf3cd89164cd.1549408090.git.sathyanarayanan.kuppuswamy@linux.intel.com> <0faf4f6a5bbd8cbee84aa78c40ab15216c2b8f0e.camel@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0faf4f6a5bbd8cbee84aa78c40ab15216c2b8f0e.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 08:08:06PM +0000, David Woodhouse wrote: > On Thu, 2019-02-07 at 10:44 -0800, sathyanarayanan.kuppuswamy@linux.intel.com wrote: > > From: Kuppuswamy Sathyanarayanan > > > > Intel IOMMU Page Request Services (PRS) only works with devices which > > supports/uses PASID. So enable PRI only if the device also enables > > PASID support. For more details, Please check the implementation of PRQ > > handler(prq_event_thread()) in intel-svm driver. > > > > Cc: Jacob Pan > > Cc: Ashok Raj > > Signed-off-by: Kuppuswamy Sathyanarayanan > > Hm, that shouldn't be true. PRI and PASID support are orthogonal. > > If we get a PRI request without PASID, we should currently report it as > non-serviced which is the right thing to do. We can hook this up to KVM > etc. to actually allow paging of guests with devices attached, *if* the > devices attached to those guests support PRI. > > Nothing fundamentally stops us using PRI without PASID support. 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. > >