]> git.hungrycats.org Git - linux/commit
drm/i915: Don't clobber the GTT when it's within stolen memory
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 5 Jun 2014 17:02:59 +0000 (20:02 +0300)
committerJiri Slaby <jslaby@suse.cz>
Fri, 18 Jul 2014 13:51:29 +0000 (15:51 +0200)
commitf29c738c2375d0db702e587bec74db8e25c1758b
tree0d4ff3adf7970e76926cb58cc58c2036f6436bb8
parentd5a2e1498c1285b33e457d8b62598389e9d3c9f5
drm/i915: Don't clobber the GTT when it's within stolen memory

commit f1e1c2129b79cfdaf07bca37c5a10569fe021abe upstream.

On most gen2-4 platforms the GTT can be (or maybe always is?)
inside the stolen memory region. If that's the case, reduce the
size of the stolen memory appropriately to make make sure we
don't clobber the GTT.

v2: Deal with gen4 36 bit physical address

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=80151
Acked-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/gpu/drm/i915/i915_gem_stolen.c
drivers/gpu/drm/i915/i915_reg.h