From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753763AbdEQM71 (ORCPT ); Wed, 17 May 2017 08:59:27 -0400 Received: from 8bytes.org ([81.169.241.247]:59724 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751607AbdEQM70 (ORCPT ); Wed, 17 May 2017 08:59:26 -0400 Date: Wed, 17 May 2017 14:59:23 +0200 From: Joerg Roedel To: Ashok Raj Cc: linux-kernel@vger.kernel.org, CQ Tang , linux-pci@vger.kernel.org, Jean-Phillipe Brucker , iommu@lists.linux-foundation.org Subject: Re: [PATCH 2/2] iommu/vt-d: Helper function to query if a pasid has any active users 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 Content-Disposition: inline In-Reply-To: <1494441543-8216-2-git-send-email-ashok.raj@intel.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.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.