]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: scrub 64K
authorMatthew Auld <matthew.auld@intel.com>
Fri, 11 May 2018 09:51:40 +0000 (10:51 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Sun, 13 May 2018 09:29:18 +0000 (10:29 +0100)
commit8bd70468285d6c1420f68f88cc73fb56bad3b968
tree87d02c0acaae33cf28065bd63fc9a5d82d48cf4e
parenta9858bf2521d9f9b39ec48de456b58cb5b5f03e1
drm/i915/selftests: scrub 64K

We write all 4K page entries, even when using 64K pages. In order to
verify that the HW isn't cheating by using the 4K PTE instead of the 64K
PTE, we want to remove all the surplus entries. If the HW skipped the
64K PTE, it will read/write into the scratch page instead - which we
detect as missing results during selftests.

v2: much improved commentary (Chris)

Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Changbin Du <changbin.du@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20180511095140.25590-1-matthew.auld@intel.com
drivers/gpu/drm/i915/i915_gem_gtt.c
drivers/gpu/drm/i915/i915_gem_gtt.h
drivers/gpu/drm/i915/selftests/huge_pages.c