drm/i915: add support for 64K scratch page
authorMatthew Auld <[email protected]>
Fri, 6 Oct 2017 22:18:25 +0000 (23:18 +0100)
committerChris Wilson <[email protected]>
Sat, 7 Oct 2017 09:11:56 +0000 (10:11 +0100)
commitaa095871e4a7ba9fcf87ffd762c044e1f9f634f1
tree6d707efaadc9e402ff3925ca7d1212c2402272e6
parent0a03852e049af91da9ae70326c44bb5d9b0d377a
drm/i915: add support for 64K scratch page

Before we can fully enable 64K pages, we need to first support a 64K
scratch page if we intend to support the case where we have object sizes
< 2M, since any scratch PTE must also point to a 64K region.  Without
this our 64K usage is limited to objects which completely fill the
page-table, and therefore don't need any scratch.

v2: add reminder about why 48b PPGTT

Reported-by: Chris Wilson <[email protected]>
Signed-off-by: Matthew Auld <[email protected]>
Cc: Joonas Lahtinen <[email protected]>
Cc: Chris Wilson <[email protected]>
Reviewed-by: Chris Wilson <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Signed-off-by: Chris Wilson <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/i915/i915_gem_gtt.c
drivers/gpu/drm/i915/i915_gem_gtt.h