drm/i915: Only bind to function 0 of the PCI device
commit3e4025ac37f80662d9f2d64377129d80998857e1
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 1 Feb 2011 19:43:02 +0000 (1 19:43 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 17 Feb 2011 23:15:21 +0000 (17 15:15 -0800)
tree52fe2528afe193acd87d5ee56214dc99d700fcef
parent8a6852fc5a74f999c1a3132db7e856b541928deb
drm/i915: Only bind to function 0 of the PCI device

commit 5fe49d86f9d01044abf687a8cd21edef636d58aa upstream.

Early chipsets (gen2/3) used function 1 as a placeholder for multi-head.
We used to ignore these since they were not assigned to
PCI_CLASS_DISPLAY_VGA. However with 934f992c7 we attempt to bind to all
Intel PCI_CLASS_DISPLAY devices (and functions) to work in multi-gpu
systems. This fails hard on gen2/3.

Reported-by: Ferenc Wágner <wferi@niif.hu>
Tested-by: Ferenc Wágner <wferi@niif.hu>
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=28012
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/gpu/drm/i915/i915_drv.c