xserver/hw/xfree86
Dave Airlie 39f73e813f xf86/pci: fix slot claiming counting.
Currently if we claim a slot for a PCI driver, we never let it go properly,
this prevents the fallback probe from reusing the slot, even though it
isn't claimed for that pci slot.

So if you set the modesetting driver to point at a specific kms device,
that isn't a PCI device (i.e. USB dongle), then the modesetting driver
loads, the pci probe tries to bind the config slot to the primary PCI
device, however we then check the kms device bus id to discover it
isn't valid. However we don't remove the claim on the slot. Next the
old probe function is called and there is no slots to claim.

This patch fixes that and converts the pciSlotClaimed boolean into
a counter, and changes the unclaim api to take a device pointer
to remove from the entity.

Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-05-21 12:58:33 +01:00
..
common xf86/pci: fix slot claiming counting. 2012-05-21 12:58:33 +01:00
ddc Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
dixmods xfree86: Add ifdef wrapper to xvmodproc.h 2012-05-14 13:29:20 +01:00
doc Fix gcc -Wwrite-strings warnings in xf86 ddx 2011-11-23 12:15:07 -08:00
dri xfree86: allow modules to be built without undefined symbols 2012-04-05 21:57:02 -05:00
dri2 xfree86: allow modules to be built without undefined symbols 2012-04-05 21:57:02 -05:00
exa xfree86: allow modules to be built without undefined symbols 2012-04-05 21:57:02 -05:00
fbdevhw xfree86: allow modules to be built without undefined symbols 2012-04-05 21:57:02 -05:00
i2c xfree86: allow modules to be built without undefined symbols 2012-04-05 21:57:02 -05:00
int10 Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
loader loader: add Cygwin support 2012-04-05 21:57:04 -05:00
man loader: add Cygwin support 2012-04-05 21:57:04 -05:00
modes Fix RANDR’s gamma_to_ramp(). 2012-05-08 17:55:10 -04:00
os-support os-support: add Cygwin support 2012-04-05 21:57:03 -05:00
parser Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
ramdac Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
shadowfb xfree86: allow modules to be built without undefined symbols 2012-04-05 21:57:02 -05:00
utils man: s/__xservername__/Xorg/g - no longer required 2012-03-26 16:36:55 -07:00
vbe xfree86: allow modules to be built without undefined symbols 2012-04-05 21:57:02 -05:00
vgahw Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
x86emu Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xaa xfree86: allow modules to be built without undefined symbols 2012-04-05 21:57:02 -05:00
.gitignore xfree86: Move sdksyms generation to ddx toplevel 2011-06-23 05:28:31 -07:00
Makefile.am xfree86: use silent rules with sdksyms generation 2012-05-04 13:13:55 -05:00
sdksyms.sh xres: Fix build without composite 2012-04-23 20:16:53 -07:00
xorgconf.cpp xfree86: use sed rather than cpp to perform string substitutions 2011-01-18 15:11:14 -08:00