xserver/hw/xfree86/common
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
..
.gitignore .gitignore: use common defaults with custom section #24239 2009-11-11 21:40:20 -08:00
Makefile.am Move DoShowOptions to xf86Configure.c, delete xf86ShowOpts.c 2011-11-23 12:15:06 -08:00
compiler.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
extramodes Remove some default modes that really shouldn't be in the default set. 2008-06-24 10:40:36 -04:00
fourcc.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
modeline2c.awk Remove some OS/2 leftovers. 2009-04-06 10:58:47 -04:00
vesamodes Fix standard VESA modes. 2006-11-03 14:06:32 -08:00
vidmodeproc.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xf86.h xf86/pci: fix slot claiming counting. 2012-05-21 12:58:33 +01:00
xf86AutoConfig.c xfree86: add modesetting driver to fallback list on Linux 2012-05-21 12:58:32 +01:00
xf86Build.h.in Print the build time as well as the date if we can. 2007-06-04 02:03:44 -04:00
xf86Bus.c xf86/pci: fix slot claiming counting. 2012-05-21 12:58:33 +01:00
xf86Bus.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xf86Config.c xf86Config: load DIX libraries before drivers on Cygwin 2012-04-05 21:57:06 -05:00
xf86Config.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xf86Configure.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xf86Cursor.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xf86DGA.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xf86DPMS.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xf86Events.c xfree86: after VT switching back, only enable previously enabled devices 2012-04-16 11:29:55 +10:00
xf86Globals.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xf86Helper.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xf86InPriv.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xf86Init.c config/udev: add pre_init stage to config and udev. 2012-05-21 12:58:32 +01:00
xf86Mode.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xf86Module.h Bump input ABI to 17 for per-device idlecounters 2012-03-29 08:14:30 +10:00
xf86Opt.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xf86Option.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xf86Optionstr.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xf86PM.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xf86PciInfo.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xf86Priv.h xf86/pci: fix slot claiming counting. 2012-05-21 12:58:33 +01:00
xf86Privstr.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xf86RandR.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xf86VGAarbiter.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xf86VGAarbiter.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xf86VGAarbiterPriv.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xf86VidMode.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xf86Xinput.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xf86Xinput.h xfree86: after VT switching back, only enable previously enabled devices 2012-04-16 11:29:55 +10:00
xf86cmap.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xf86cmap.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xf86fbBus.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xf86fbman.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xf86fbman.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xf86noBus.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xf86pciBus.c xf86/pci: fix slot claiming counting. 2012-05-21 12:58:33 +01:00
xf86pciBus.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xf86sbusBus.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xf86sbusBus.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xf86str.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xf86xv.c xfree86: don't include xvmodproc.h when not needed 2012-05-14 13:17:12 +01:00
xf86xv.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xf86xvmc.c xfree86: don't include xvmodproc.h when not needed 2012-05-14 13:17:12 +01:00
xf86xvmc.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xf86xvpriv.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xisb.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xisb.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xorgHelper.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xorgVersion.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00