From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joerg Roedel Subject: Re: [PATCH 2/2] iommu/vt-d: Helper function to query if a pasid has any active users Date: Wed, 17 May 2017 14:59:23 +0200 Message-ID: <20170517125923.GE11068@8bytes.org> References: <1494441543-8216-1-git-send-email-ashok.raj@intel.com> <1494441543-8216-2-git-send-email-ashok.raj@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1494441543-8216-2-git-send-email-ashok.raj@intel.com> Sender: linux-kernel-owner@vger.kernel.org To: Ashok Raj Cc: linux-kernel@vger.kernel.org, CQ Tang , linux-pci@vger.kernel.org, Jean-Phillipe Brucker , iommu@lists.linux-foundation.org List-Id: iommu@lists.linux-foundation.org On Wed, May 10, 2017 at 11:39:03AM -0700, Ashok Raj wrote: > From: CQ Tang > > A driver would need to know if there are any active references to a > a PASID before cleaning up its resources. This function helps check > if there are any active users of a PASID before it can perform any > recovery on that device. > > To: Joerg Roedel > To: linux-kernel@vger.kernel.org > To: David Woodhouse > Cc: Jean-Phillipe Brucker > Cc: iommu@lists.linux-foundation.org > > Signed-off-by: CQ Tang > Signed-off-by: Ashok Raj > --- > drivers/iommu/intel-svm.c | 30 ++++++++++++++++++++++++++++++ > include/linux/intel-svm.h | 20 ++++++++++++++++++++ > 2 files changed, 50 insertions(+) Applied, thanks.