diff options
author | Tvrtko Ursulin <tvrtko.ursulin@intel.com> | 2018-12-03 12:50:10 +0000 |
---|---|---|
committer | Tvrtko Ursulin <tvrtko.ursulin@intel.com> | 2018-12-04 12:23:18 +0000 |
commit | 094304beb4e1f4bfb2b59385a12d7074f4485e98 (patch) | |
tree | 02b5510415474bde8e6ff0dcab4d1b5c05ffe27d /drivers/gpu/drm/i915/intel_workarounds.h | |
parent | 4a15c75c42460252a63d30f03b4766a52945fb47 (diff) | |
download | kernel_replicant_linux-094304beb4e1f4bfb2b59385a12d7074f4485e98.tar.gz kernel_replicant_linux-094304beb4e1f4bfb2b59385a12d7074f4485e98.tar.bz2 kernel_replicant_linux-094304beb4e1f4bfb2b59385a12d7074f4485e98.zip |
drm/i915: Verify GT workaround state after GPU init
Since we now have all the GT workarounds in a table, by adding a simple
shared helper function we can now verify that their values are still
applied after some interesting events in the lifetime of the driver.
Initially we only do this after GPU initialization.
v2:
Chris Wilson:
* Simplify verification by realizing it's a simple xor and and.
* Remove verification from engine reset path.
* Return bool straight away from the verify API.
v3:
* API rename. (Chris Wilson)
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20181203125014.3219-4-tvrtko.ursulin@linux.intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/intel_workarounds.h')
-rw-r--r-- | drivers/gpu/drm/i915/intel_workarounds.h | 2 |
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 979695a53964..8822e6035f8d 100644 --- a/drivers/gpu/drm/i915/intel_workarounds.h +++ b/drivers/gpu/drm/i915/intel_workarounds.h @@ -32,6 +32,8 @@ int intel_ctx_workarounds_emit(struct i915_request *rq); void intel_gt_init_workarounds(struct drm_i915_private *dev_priv); void intel_gt_apply_workarounds(struct drm_i915_private *dev_priv); +bool intel_gt_verify_workarounds(struct drm_i915_private *dev_priv, + const char *from); void intel_whitelist_workarounds_apply(struct intel_engine_cs *engine); |