[Intel-gfx] [PATCH 7/7] iommu/vt-d: Implement page request handling

Chris Wilson chris at chris-wilson.co.uk
Sat Oct 10 09:54:48 PDT 2015


On Fri, Oct 09, 2015 at 12:54:07AM +0100, David Woodhouse wrote:
> Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
> ---
>  drivers/iommu/intel-svm.c   | 115 +++++++++++++++++++++++++++++++++++++++++++-
>  include/linux/intel-iommu.h |  21 ++++++++
>  2 files changed, 134 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/iommu/intel-svm.c b/drivers/iommu/intel-svm.c
> index 1260e87..ace1e32 100644
> --- a/drivers/iommu/intel-svm.c
> +++ b/drivers/iommu/intel-svm.c
>  static irqreturn_t prq_event_thread(int irq, void *d)
>  {

> +	if (svm) {
> +		mutex_lock(&pasid_mutex);
> +		kref_put(&svm->kref, &intel_mm_free);
> +		mutex_unlock(&pasid_mutex);

kref_put_mutex(&svm->kref, intel_mm_free, &pasid_mutex); ?
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the Intel-gfx mailing list