summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_workarounds.h
diff options
context:
space:
mode:
authorChris Wilson2019-04-17 09:56:28 +0200
committerChris Wilson2019-04-17 11:58:20 +0200
commit254e11864a36a1d3b362bf5727e89382f1540015 (patch)
tree9fad9b7830c1c44c93b7af088dbb5da94581df5a /drivers/gpu/drm/i915/intel_workarounds.h
parentdrm/i915: Verify workarounds immediately after application (diff)
downloadkernel-qcow2-linux-254e11864a36a1d3b362bf5727e89382f1540015.tar.gz
kernel-qcow2-linux-254e11864a36a1d3b362bf5727e89382f1540015.tar.xz
kernel-qcow2-linux-254e11864a36a1d3b362bf5727e89382f1540015.zip
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
Diffstat (limited to 'drivers/gpu/drm/i915/intel_workarounds.h')
-rw-r--r--drivers/gpu/drm/i915/intel_workarounds.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_workarounds.h b/drivers/gpu/drm/i915/intel_workarounds.h
index 34eee5ec511e..fdf7ebb90f28 100644
--- a/drivers/gpu/drm/i915/intel_workarounds.h
+++ b/drivers/gpu/drm/i915/intel_workarounds.h
@@ -30,5 +30,7 @@ void intel_engine_apply_whitelist(struct intel_engine_cs *engine);
void intel_engine_init_workarounds(struct intel_engine_cs *engine);
void intel_engine_apply_workarounds(struct intel_engine_cs *engine);
+int intel_engine_verify_workarounds(struct intel_engine_cs *engine,
+ const char *from);
#endif