]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfea9c86511c48758b8929e6419ca73829c03f4e8
tree9fad9b7830c1c44c93b7af088dbb5da94581df5a
parentc8881060d52ebb6907e1db89f637b7c49fc2e865
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