aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_drv.c
diff options
context:
space:
mode:
authorBen Widawsky <benjamin.widawsky@intel.com>2013-08-23 19:00:07 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-09-04 11:34:52 -0400
commitb833d68599b38187c2b55d750f496aa87d9020bc (patch)
tree2a456aa897dfcaea7a899f3274c0226cc1ae09d2 /drivers/gpu/drm/i915/i915_drv.c
parent9435373ef8870e0a84b6fec0ad89b952bf3097fa (diff)
drm/i915: Restore the preliminary HW check.
We still maintain code internally that cares about preliminary support. Leaving the check here doesn't hurt anyone, and should keep things more in line. This time around, stick the info in the intel_info structure, and also change the error from DRM_ERROR->DRM_INFO. This is a partial revert of: commit 590e4df8c82e6c2707ae12ba6672ab6fb9cd4b89 Author: Jesse Barnes <jbarnes@virtuousgeek.org> Date: Wed May 8 10:45:15 2013 -0700 drm/i915: VLV support is no longer preliminary Daniel, I'll provide the fix ups for internal too if/when you merge this (if you want). Cc: Jesse Barnes <jbarnes@virtuousgeek.org> Signed-off-by: Ben Widawsky <ben@bwidawsk.net> Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.c')
-rw-r--r--drivers/gpu/drm/i915/i915_drv.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c
index 69d8ed5416c3..72e2be7a6c80 100644
--- a/drivers/gpu/drm/i915/i915_drv.c
+++ b/drivers/gpu/drm/i915/i915_drv.c
@@ -799,6 +799,12 @@ static int i915_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
799 struct intel_device_info *intel_info = 799 struct intel_device_info *intel_info =
800 (struct intel_device_info *) ent->driver_data; 800 (struct intel_device_info *) ent->driver_data;
801 801
802 if (IS_PRELIMINARY_HW(intel_info) && !i915_preliminary_hw_support) {
803 DRM_INFO("This hardware requires preliminary hardware support.\n"
804 "See CONFIG_DRM_I915_PRELIMINARY_HW_SUPPORT, and/or modparam preliminary_hw_support\n");
805 return -ENODEV;
806 }
807
802 /* Only bind to function 0 of the device. Early generations 808 /* Only bind to function 0 of the device. Early generations
803 * used function 1 as a placeholder for multi-head. This causes 809 * used function 1 as a placeholder for multi-head. This causes
804 * us confusion instead, especially on the systems where both 810 * us confusion instead, especially on the systems where both