]> 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)
commitdd48fca0bb367ef33fe82c164da9681747e2cebd
tree4871b92a07b8cd9ce086cbc0e9d65f199cc94dbf
parentddf059c621ebd5a267ae3decf88675fa44063b8c
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