]> git.karo-electronics.de Git - linux-beck.git/commit
drm/i915: Calculate correct stolen size for GEN7+
authorBen Widawsky <ben@bwidawsk.net>
Sun, 4 Nov 2012 17:21:28 +0000 (09:21 -0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sun, 11 Nov 2012 22:51:43 +0000 (23:51 +0100)
commit03752f5b7b77b95d83479885040950fba1250850
tree7b9c007faef69561d6fc22ba17e8140380ffdf0b
parente76e9aebcdbfebae8f4cd147e3c0f800d36e97f3
drm/i915: Calculate correct stolen size for GEN7+

This bug existed in the old code, but was easier to fix here in the
rework. Unfortunately gen7 doesn't have a nice way to figure out the
size and we must use a lookup table.

As Jesse pointed out, there is some confusion in the docs about these
definitions. We're picking the one which seems more accurate, but we
really aren't certain.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_gtt.c
drivers/gpu/drm/i915/i915_reg.h