|
@@ -1215,9 +1215,15 @@ static int i915_load_modeset_init(struct drm_device *dev)
|
|
if (ret)
|
|
if (ret)
|
|
DRM_INFO("failed to find VBIOS tables\n");
|
|
DRM_INFO("failed to find VBIOS tables\n");
|
|
|
|
|
|
- /* if we have > 1 VGA cards, then disable the radeon VGA resources */
|
|
|
|
|
|
+ /* If we have > 1 VGA cards, then we need to arbitrate access
|
|
|
|
+ * to the common VGA resources.
|
|
|
|
+ *
|
|
|
|
+ * If we are a secondary display controller (!PCI_DISPLAY_CLASS_VGA),
|
|
|
|
+ * then we do not take part in VGA arbitration and the
|
|
|
|
+ * vga_client_register() fails with -ENODEV.
|
|
|
|
+ */
|
|
ret = vga_client_register(dev->pdev, dev, NULL, i915_vga_set_decode);
|
|
ret = vga_client_register(dev->pdev, dev, NULL, i915_vga_set_decode);
|
|
- if (ret)
|
|
|
|
|
|
+ if (ret && ret != -ENODEV)
|
|
goto cleanup_ringbuffer;
|
|
goto cleanup_ringbuffer;
|
|
|
|
|
|
intel_register_dsm_handler();
|
|
intel_register_dsm_handler();
|