drm/i915: Filter pci devices based on PCI_CLASS_DISPLAY_VGA
authorDave Airlie <airlied@linux.ie>
Tue, 11 Nov 2008 08:02:12 +0000 (18:02 +1000)
committerDave Airlie <airlied@linux.ie>
Tue, 11 Nov 2008 08:02:12 +0000 (18:02 +1000)
commitafa21e0584f78964c092981fad94e45d38cda249
treee9902386afb4995ffcec006745c194a136813f0f
parent78538bf14995a136c2d9a22159ada49937359119
drm/i915: Filter pci devices based on PCI_CLASS_DISPLAY_VGA

This fixes hangs on 855-class hardware by avoiding double attachment of the
driver due to the stub second head device having the same pci id as the real
device.

Other DRM drivers probably want this treatment as well, but I'm applying it
just to this one for safety. But we should clean up the drm_pciids.h mess
now so that each driver has its own pci id list header in its own directory.
Lets do that in the next release.

Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_drv.c
include/drm/drm_pciids.h