Re: [PATCH] drm: Fix support for PCI domains

2010-08-13 Thread Geert Uytterhoeven
On Fri, Aug 6, 2010 at 05:55, Benjamin Herrenschmidt wrote: > (For some reason I thought that went in ages ago ...) > > This fixes support for PCI domains in what should hopefully be a backward > compatible way along with a change to libdrm. > > When the interface version is set to 1.4, we assume

Re: [PATCH] drm: Fix support for PCI domains

2010-08-12 Thread Jesse Barnes
> > Hm, so pci_domain_nr should just return 0 on platforms where > > CONFIG_PCI_DOMAINS isn't set.  I'd expect that to be the case when > > CONFIG_PCI=n...  Maybe we just need to shuffle the definition > > around? > > I suspect something like the attached would suffice. > > Or maybe moving the CO

Re: [PATCH] drm: Fix support for PCI domains

2010-08-12 Thread Dave Airlie
On Fri, Aug 13, 2010 at 9:45 AM, Jesse Barnes wrote: > On Fri, 13 Aug 2010 09:33:35 +1000 > Dave Airlie wrote: > >> On Fri, Aug 13, 2010 at 7:30 AM, Geert Uytterhoeven >> wrote: >> > On Fri, Aug 6, 2010 at 05:55, Benjamin Herrenschmidt >> > wrote: >> >> (For some reason I thought that went in a

Re: [PATCH] drm: Fix support for PCI domains

2010-08-12 Thread Jesse Barnes
On Fri, 13 Aug 2010 09:33:35 +1000 Dave Airlie wrote: > On Fri, Aug 13, 2010 at 7:30 AM, Geert Uytterhoeven > wrote: > > On Fri, Aug 6, 2010 at 05:55, Benjamin Herrenschmidt > > wrote: > >> (For some reason I thought that went in ages ago ...) > >> > >> This fixes support for PCI domains in wha

Re: [PATCH] drm: Fix support for PCI domains

2010-08-12 Thread Dave Airlie
On Fri, Aug 13, 2010 at 7:30 AM, Geert Uytterhoeven wrote: > On Fri, Aug 6, 2010 at 05:55, Benjamin Herrenschmidt > wrote: >> (For some reason I thought that went in ages ago ...) >> >> This fixes support for PCI domains in what should hopefully be a backward >> compatible way along with a change

Re: [PATCH] drm: Fix support for PCI domains

2010-08-06 Thread Michel Dänzer
On Fre, 2010-08-06 at 13:55 +1000, Benjamin Herrenschmidt wrote: > (For some reason I thought that went in ages ago ...) > > This fixes support for PCI domains in what should hopefully be a backward > compatible way along with a change to libdrm. > > When the interface version is set to 1.4, we

[PATCH] drm: Fix support for PCI domains

2010-08-05 Thread Benjamin Herrenschmidt
(For some reason I thought that went in ages ago ...) This fixes support for PCI domains in what should hopefully be a backward compatible way along with a change to libdrm. When the interface version is set to 1.4, we assume userspace understands domains and the world is at peace. We thus pass p