]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: allow stolen, pre-allocated objects to avoid GTT allocation v2
authorJesse Barnes <jbarnes@virtuousgeek.org>
Wed, 8 May 2013 17:45:14 +0000 (10:45 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 10 May 2013 19:56:37 +0000 (21:56 +0200)
commitfba55c3f60786c88ee0ad91918adbfeb10b9d11a
treeb07b6410282d0d81efcd1c8b6641a5927df693c2
parent372d2422f76ccd88981f9ff768a6d878aca9cdad
drm/i915: allow stolen, pre-allocated objects to avoid GTT allocation v2

In some cases, we may not need GTT address space allocated to a stolen
object, so allow passing -1 to the preallocated function to indicate as
much.

v2: remove BUG_ON(gtt_offset & 4095) now that -1 is allowed (Ville)

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_stolen.c
drivers/gpu/drm/i915/intel_pm.c