• K
    Intel IOMMU: PCI generic helper function · 994a65e2
    Keshavamurthy, Anil S 提交于
    When devices are under a p2p bridge, upstream transactions get replaced by the
    device id of the bridge as it owns the PCIE transaction.  Hence its necessary
    to setup translations on behalf of the bridge as well.  Due to this limitation
    all devices under a p2p share the same domain in a DMAR.
    
    We just cache the type of device, if its a native PCIe device
    or not for later use.
    
    [akpm@linux-foundation.org: BUG_ON -> WARN_ON+recover]
    Signed-off-by: NAnil S Keshavamurthy <anil.s.keshavamurthy@intel.com>
    Cc: Andi Kleen <ak@suse.de>
    Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
    Cc: Muli Ben-Yehuda <muli@il.ibm.com>
    Cc: "Siddha, Suresh B" <suresh.b.siddha@intel.com>
    Cc: Arjan van de Ven <arjan@infradead.org>
    Cc: Ashok Raj <ashok.raj@intel.com>
    Cc: "David S. Miller" <davem@davemloft.net>
    Cc: Christoph Lameter <clameter@sgi.com>
    Cc: Greg KH <greg@kroah.com>
    Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
    994a65e2
pci.h 33.4 KB