Re: [PATCH weston 1/2] pci: add PCI helpers to detect primary GPUs

2012-10-30 Thread Sannu K
On Mon, Oct 29, 2012 at 9:13 PM, David Herrmann wrote: > Hi Sannu > > On Sun, Oct 28, 2012 at 10:19 AM, Sannu K wrote: GPU switching under linux has no stable API. The vga_switcheroo module only provides some temporary hacks via debugfs. Therefore, the situations you describe

Re: [PATCH weston 1/2] pci: add PCI helpers to detect primary GPUs

2012-10-29 Thread David Herrmann
Hi Sannu On Sun, Oct 28, 2012 at 10:19 AM, Sannu K wrote: >>> >>> GPU switching under linux has no stable API. The vga_switcheroo module >>> only provides some temporary hacks via debugfs. Therefore, the >>> situations you describe are not what this patch tries to address. It >>> rather tries to

Re: [PATCH weston 1/2] pci: add PCI helpers to detect primary GPUs

2012-10-28 Thread Sannu K
>> >> GPU switching under linux has no stable API. The vga_switcheroo module >> only provides some temporary hacks via debugfs. Therefore, the >> situations you describe are not what this patch tries to address. It >> rather tries to fix the problem where weston uses a >> secondary/auxiliary GPU an

Re: [PATCH weston 1/2] pci: add PCI helpers to detect primary GPUs

2012-10-28 Thread Sannu K
On Sun, Oct 28, 2012 at 1:58 AM, David Herrmann wrote: > Hi Sannu > > On Sat, Oct 27, 2012 at 8:38 PM, Sannu K wrote: >> On Sat, Oct 27, 2012 at 6:24 PM, David Herrmann >> wrote: >>> This adds one global helper which returns a string describing the primary >>> PCI GPU. This string can later be u

Re: [PATCH weston 1/2] pci: add PCI helpers to detect primary GPUs

2012-10-27 Thread David Herrmann
Hi Sannu On Sat, Oct 27, 2012 at 8:38 PM, Sannu K wrote: > On Sat, Oct 27, 2012 at 6:24 PM, David Herrmann > wrote: >> This adds one global helper which returns a string describing the primary >> PCI GPU. This string can later be used to compare with drmGetBusid() to >> check whether a given DRM

Re: [PATCH weston 1/2] pci: add PCI helpers to detect primary GPUs

2012-10-27 Thread Sannu K
On Sat, Oct 27, 2012 at 6:24 PM, David Herrmann wrote: > This adds one global helper which returns a string describing the primary > PCI GPU. This string can later be used to compare with drmGetBusid() to > check whether a given DRM GPU is the primary GPU. What do you mean by the term "Primary GP

[PATCH weston 1/2] pci: add PCI helpers to detect primary GPUs

2012-10-27 Thread David Herrmann
This adds one global helper which returns a string describing the primary PCI GPU. This string can later be used to compare with drmGetBusid() to check whether a given DRM GPU is the primary GPU. This layer is disabled if weston is compiled without libpciaccess. The heuristics are very similar to