]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
drm/i915: Allow objects to be created with no backing pages, but stolen space
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 15 Nov 2012 11:32:21 +0000 (11:32 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 30 Nov 2012 22:31:33 +0000 (23:31 +0100)
commitc1ad11fce86405c955873974f58ab305d894be78
treeb46d21b197743436b89a1cde300bff7233bfd631
parent11be49eb4db24c5e971edef160afb87788cc270c
drm/i915: Allow objects to be created with no backing pages, but stolen space

In order to accommodate objects that are not backed by struct pages, but
instead point into a contiguous region of stolen space, we need to make
various changes to avoid dereferencing obj->pages or obj->base.filp.

First introduce a marker for the stolen object, that specifies its
offset into the stolen region and implies that it has no backing pages.

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