From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754874AbdFWS7E (ORCPT ); Fri, 23 Jun 2017 14:59:04 -0400 Received: from mx1.redhat.com ([209.132.183.28]:42462 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754809AbdFWS7C (ORCPT ); Fri, 23 Jun 2017 14:59:02 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 5DA26C04D2AF Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=alex.williamson@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 5DA26C04D2AF Date: Fri, 23 Jun 2017 12:59:00 -0600 From: Alex Williamson To: Jacob Pan Cc: iommu@lists.linux-foundation.org, LKML , Joerg Roedel , David Woodhouse , "Liu, Yi L" , Lan Tianyu , "Tian, Kevin" , Raj Ashok , Jean Delvare , Yi L Subject: Re: [RFC 2/9] iommu/vt-d: add bind_pasid_table function Message-ID: <20170623125900.61091315@w520.home> In-Reply-To: <20170623111952.09915a6d@jacob-builder> References: <1497478983-77580-1-git-send-email-jacob.jun.pan@linux.intel.com> <1497478983-77580-3-git-send-email-jacob.jun.pan@linux.intel.com> <20170622165215.5989e02c@w520.home> <20170623111952.09915a6d@jacob-builder> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Fri, 23 Jun 2017 18:59:01 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 23 Jun 2017 11:19:52 -0700 Jacob Pan wrote: > On Thu, 22 Jun 2017 16:52:15 -0600 > Alex Williamson wrote: > > > On Wed, 14 Jun 2017 15:22:56 -0700 > > Jacob Pan wrote: > > > +static int intel_iommu_unbind_pasid_table(struct iommu_domain > > > *domain, > > > + struct device *dev) > > > +{ > > > + struct intel_iommu *iommu; > > > + struct dmar_domain *dmar_domain = to_dmar_domain(domain); > > > + u8 bus, devfn; > > > + > > > + iommu = device_to_iommu(dev, &bus, &devfn); > > > + if (!iommu) > > > + return -ENODEV; > > > + /* > > > + * REVISIT: we might want to clear the PASID table pointer > > > + * as part of context clear operation. Currently, it leaves > > > + * stale data but should be ignored by hardware since > > > PASIDE > > > + * is clear. > > > + */ > > > + /* ATS will be reenabled when remapping is restored */ > > > + pci_disable_ats(to_pci_dev(dev)); > > > > dev_is_pci()? > > > good to check, even thought intel iommu supports PCI only. That's not true, intel-iommu supports non-PCI devices defined in ACPI as well. Thanks, Alex