diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2018-06-14 19:42:17 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2018-06-14 20:25:35 +0100 |
commit | 986dbac4803c7eb2be0d0dac7bc642744502d080 (patch) | |
tree | a9fafe53d387e76f3ca97d87b331cf5a27a591fa /drivers/gpu/drm/i915/i915_gem_gtt.h | |
parent | 4a192c7e8b14a2bf8f30b1fac3599a7d391dfcf9 (diff) | |
download | linux-stable-986dbac4803c7eb2be0d0dac7bc642744502d080.tar.gz linux-stable-986dbac4803c7eb2be0d0dac7bc642744502d080.tar.bz2 linux-stable-986dbac4803c7eb2be0d0dac7bc642744502d080.zip |
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
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gem_gtt.h')
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem_gtt.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem_gtt.h b/drivers/gpu/drm/i915/i915_gem_gtt.h index 46c95d188580..7ff5cc612771 100644 --- a/drivers/gpu/drm/i915/i915_gem_gtt.h +++ b/drivers/gpu/drm/i915/i915_gem_gtt.h @@ -412,6 +412,7 @@ struct gen6_hw_ppgtt { struct i915_vma *vma; gen6_pte_t __iomem *pd_addr; + gen6_pte_t scratch_pte; unsigned int pin_count; bool scan_for_unused_pt; |