]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: make PDE|PTE platform specific
authorBen Widawsky <ben@bwidawsk.net>
Thu, 27 Jun 2013 23:30:04 +0000 (16:30 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 1 Jul 2013 09:27:57 +0000 (11:27 +0200)
commit45c90c48df0f6ea5c19d17853b8e63ab3d5e32bd
tree085677bfc6d01d63c5554909a98f0354c03b7f99
parent4bc740d43cf20cc953fc4fefd399255807d9e469
drm/i915: make PDE|PTE platform specific

Nothing outside of i915_gem_gtt.c and more specifically, the relevant
gen specific init function should need to know about number of PDEs, or
PTEs per PD. Exposing this will only lead to circumventing using the
upcoming VM abstraction.

To accomplish this, move the defines into the .c file, rename the PDE
define to be GEN6, and make the PTE count less of a magic number.

The remaining code in the global gtt setup is a bit messy, but an
upcoming patch will clean that one up.

v2: Don't hardcode number of PDEs (Daniel + Jesse)
Reworded commit message to reflect change.

Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
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