]> git.baikalelectronics.ru Git - kernel.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)
commiteb9d839c382e6a5a0163f26b9992ebbcd1762e69
tree7b9c007faef69561d6fc22ba17e8140380ffdf0b
parentd3013249d647de0c9fc1ce6c61d7cbbeae28300e
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