drm/i915/gtt: Cache the PTE encoding of the scratch page
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 14 Jun 2018 18:42:17 +0000 (19:42 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 14 Jun 2018 19:25:35 +0000 (20:25 +0100)
commit986dbac4803c7eb2be0d0dac7bc642744502d080
treea9fafe53d387e76f3ca97d87b331cf5a27a591fa
parent4a192c7e8b14a2bf8f30b1fac3599a7d391dfcf9
drm/i915/gtt: Cache the PTE encoding of the scratch page

As the most frequent PTE encoding is for the scratch page, cache it upon
creation.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Cc: Matthew Auld <matthew.william.auld@gmail.com>
Reviewed-by: Matthew Auld <matthew.william.auld@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180614184218.1606-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_gtt.c
drivers/gpu/drm/i915/i915_gem_gtt.h