]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Make AGP support optional
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 5 Nov 2013 12:00:08 +0000 (14:00 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 8 Nov 2013 17:37:32 +0000 (18:37 +0100)
commit154e777002d3aa2770c6d5b41800e79f10f037aa
tree6b2d682242d0c6d651189290a4b5a5e27dbacf4c
parentaa3144b1b2d405eef68661db0bc303938b57f804
drm/i915: Make AGP support optional

We only depend on the intel-gtt module for GTT frobbign on older gens.
The intel_agp module is optional, except for UMS and some old XvMC
userland on gen3. So make AGP support optional. As before, we will
fail the i915 init for UMS and gen3 KMS the same as before if
intel_agp isn't around.

intel-gtt.c is left with a somewhat ugly ifdef mess, but I'm going
to save that for a later cleaning.

At least my gen2 still works with the patch and CONFIG_AGP=n.

v2: Make i915 depend on X86 and PCI, and intel-gtt depend on PCI

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/char/Makefile
drivers/char/agp/Kconfig
drivers/char/agp/Makefile
drivers/char/agp/intel-gtt.c
drivers/gpu/drm/i915/Kconfig
drivers/gpu/drm/i915/i915_drv.c