]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Reorganize intel_enable_ppgtt
authorBen Widawsky <benjamin.widawsky@intel.com>
Fri, 6 Dec 2013 22:11:14 +0000 (14:11 -0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 18 Dec 2013 14:31:06 +0000 (15:31 +0100)
commitaa5b4e099371f27c665eb61205413ae315377e7c
tree4871b92a07b8cd9ce086cbc0e9d65f199cc94dbf
parente3b88ce1adaee4fb126d12551cdd4d1e51082542
drm/i915: Reorganize intel_enable_ppgtt

This patch consolidates the way in which we handle the various supported
PPGTT by module parameter in addition to what the hardware supports. It
strives to make doing the right thing in the code as simple as possible,
with the USES_ macros.

I've opted to add the full PPGTT argument simply so one can see how I
intend to use this function. It will not/cannot be used until later.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem_gtt.c