Re: [patch 2/8] [Intel IOMMU] Some generic search functions required to lookup device relationships.

2007-04-10 Thread Shaohua Li
On Tue, 2007-04-10 at 06:03 -0700, Greg KH wrote: > On Tue, Apr 10, 2007 at 04:11:38PM +0800, Shaohua Li wrote: > > On Mon, 2007-04-09 at 20:46 -0700, Greg KH wrote: > > > On Mon, Apr 09, 2007 at 02:55:54PM -0700, Ashok Raj wrote: > > > > +/* > > > > + * find the upstream PCIE-to-PCI bridge of a PC

Re: [patch 2/8] [Intel IOMMU] Some generic search functions required to lookup device relationships.

2007-04-10 Thread Greg KH
On Wed, Apr 11, 2007 at 09:40:36AM +0800, Shaohua Li wrote: > On Tue, 2007-04-10 at 06:03 -0700, Greg KH wrote: > > On Tue, Apr 10, 2007 at 04:11:38PM +0800, Shaohua Li wrote: > > > On Mon, 2007-04-09 at 20:46 -0700, Greg KH wrote: > > > > On Mon, Apr 09, 2007 at 02:55:54PM -0700, Ashok Raj wrote:

Re: [patch 2/8] [Intel IOMMU] Some generic search functions required to lookup device relationships.

2007-04-10 Thread Shaohua Li
On Tue, 2007-04-10 at 06:03 -0700, Greg KH wrote: > On Tue, Apr 10, 2007 at 04:11:38PM +0800, Shaohua Li wrote: > > On Mon, 2007-04-09 at 20:46 -0700, Greg KH wrote: > > > On Mon, Apr 09, 2007 at 02:55:54PM -0700, Ashok Raj wrote: > > > > +/* > > > > + * find the upstream PCIE-to-PCI bridge of a PC

Re: [patch 2/8] [Intel IOMMU] Some generic search functions required to lookup device relationships.

2007-04-10 Thread Greg KH
On Tue, Apr 10, 2007 at 04:11:38PM +0800, Shaohua Li wrote: > On Mon, 2007-04-09 at 20:46 -0700, Greg KH wrote: > > On Mon, Apr 09, 2007 at 02:55:54PM -0700, Ashok Raj wrote: > > > +/* > > > + * find the upstream PCIE-to-PCI bridge of a PCI device > > > + * if the device is PCIE, return NULL > > >

Re: [patch 2/8] [Intel IOMMU] Some generic search functions required to lookup device relationships.

2007-04-10 Thread Shaohua Li
On Mon, 2007-04-09 at 20:46 -0700, Greg KH wrote: > On Mon, Apr 09, 2007 at 02:55:54PM -0700, Ashok Raj wrote: > > +/* > > + * find the upstream PCIE-to-PCI bridge of a PCI device > > + * if the device is PCIE, return NULL > > + * if the device isn't connected to a PCIE bridge (that is its parent i

Re: [patch 2/8] [Intel IOMMU] Some generic search functions required to lookup device relationships.

2007-04-09 Thread Greg KH
On Mon, Apr 09, 2007 at 02:55:54PM -0700, Ashok Raj wrote: > +/* > + * find the upstream PCIE-to-PCI bridge of a PCI device > + * if the device is PCIE, return NULL > + * if the device isn't connected to a PCIE bridge (that is its parent is a > + * legacy PCI bridge and the bridge is directly conne

[patch 2/8] [Intel IOMMU] Some generic search functions required to lookup device relationships.

2007-04-09 Thread Ashok Raj
PCI support functions for DMAR, to find parent bridge. 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 de