uterm: add PCI primary GPU detection
authorDavid Herrmann <dh.herrmann@googlemail.com>
Sat, 27 Oct 2012 11:25:44 +0000 (13:25 +0200)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Sat, 27 Oct 2012 11:25:44 +0000 (13:25 +0200)
commit89e84aa78c2d082f32b9cc8cffbcf00ab8a6214e
treed8a407a9e0aa9d0cd07b5ba890524fb66c416dcc
parent2c5e9bff2b7ec12852cf0fc0d2731157d126c1a5
uterm: add PCI primary GPU detection

We used to simply probe every GPU that is reported by the kernel. However,
if a system has multiple GPUs that share display controllers, we cannot
use both simultaneously. Unfortunately, the kernel currently does not
notify us about this. Hence, we use some heuristics to determine which GPU
is the boot-gpu/primary-gpu.

This only adds the detection logic, it does not modify any code to use
this detection at all.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
Makefile.am
configure.ac
src/uterm_monitor.c
src/uterm_pci.c [new file with mode: 0644]
src/uterm_pci.h [new file with mode: 0644]