drm/i915: disable drm agp support for !gen3 with kms enabled
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 25 Jun 2012 13:58:49 +0000 (15:58 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 25 Jun 2012 19:10:14 +0000 (21:10 +0200)
commit01a06850fb45ace55ed67d1d9da2df553a041e40
tree54b4ea08d4959c0bd99dfe350e8275eb847f18f1
parent87207ca20eeb519aa0333b754db9cf3c369ea6f7
drm/i915: disable drm agp support for !gen3 with kms enabled

This is the quick&dirty way Dave Airlie suggested to workaround the
midlayer drm agp brain-damange. Note that i915_probe is only called
when the driver has ksm enabled, so no need to check for that.

We also need to move the intel_agp_enabled check at the right place.
Note that the only thing this does is enforce the correct module load
order (by using a symbol from intel-agp.ko) to ensure that the fake
agp driver is ready before the drm core tries to set up the agp stuff.

v2: Add a comment to explain why gen3 needs all this legacy fake agp
stuff - we've shipped an XvMC library with a kms-enabled ddx that
requires it (but only on gen3).

v3: Make it clear that this is only a gen3 issue in the comment.

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.c
This page took 0.03081 seconds and 5 git commands to generate.