drm/i915/gtt: Reuse the read-only 64KiB scratch page and directories
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 29 Oct 2018 18:27:21 +0000 (18:27 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 30 Oct 2018 09:10:22 +0000 (09:10 +0000)
commitb379e30629c0ce912f032809a31c11e6fbddda63
tree17cb4ca2287427c0ac93ce6c8c9b086114744239
parentdaf3dc0f9b0044e25ac96d1b9c65dca4df1aa99f
drm/i915/gtt: Reuse the read-only 64KiB scratch page and directories

If we can prevent stray writes from landing in the scratch page, we can
reuse the same page and same scratch PT for all contexts without fear of
information leaks and side-channels.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181029182721.29568-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_gtt.c