drm/i915/gem: Poison stolen pages before use
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 19 Oct 2020 16:50:04 +0000 (17:50 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 20 Oct 2020 09:16:54 +0000 (10:16 +0100)
commitd7085b0faac8330b67e1b10ff2dadd8af6b2564e
tree0a1dec0f725037c5c66e3cf1fbc779ab9abbb6ed
parentfa812ce96a46efc27cae4dcad866aaee9cb25d28
drm/i915/gem: Poison stolen pages before use

When allocating objects from stolen, memset() the backing store to
POISON_INUSE (0x5a) to help identify any uninitialised use of a stolen
object.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201019165005.18128-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/i915_gem_stolen.c