OSDN Git Service

drm/i915: Verify the engine workarounds stick on application
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 17 Apr 2019 07:56:28 +0000 (08:56 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 17 Apr 2019 09:58:20 +0000 (10:58 +0100)
commit254e11864a36a1d3b362bf5727e89382f1540015
tree9fad9b7830c1c44c93b7af088dbb5da94581df5a
parent4f1cb5875ca0e9386ff2f6545cd386d47ab8441b
drm/i915: Verify the engine workarounds stick on application

Read the engine workarounds back using the GPU after loading the initial
context state to verify that we are setting them correctly, and bail if
it fails.

v2: Break out the verification into its own loop

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190417075657.19456-3-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/intel_workarounds.c
drivers/gpu/drm/i915/intel_workarounds.h
drivers/gpu/drm/i915/selftests/intel_workarounds.c