]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/i915/selftests: recreate WA lists inside the selftest
authorDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Thu, 10 Jan 2019 01:32:31 +0000 (17:32 -0800)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Thu, 10 Jan 2019 09:15:18 +0000 (09:15 +0000)
commitf663b0ca9b7d91d9f7428c1aa87b0ecbe5300aa0
treee7fb6eecbc86175be3423ebea800fe48d90b8439
parentd22ba0cb1ffeffa5bf37b7cfab7958706daffee4
drm/i915/selftests: recreate WA lists inside the selftest

By using the wa lists inside the live driver structures, we won't
catch issues where those are incorrectly setup or corrupted.
To cover this gap, update the workaround framework to allow saving the
wa lists to independent structures and use them in the selftests.

Suggested-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190110013232.8972-1-daniele.ceraolospurio@intel.com
[tursulin: Fixup checkpatch whitespace complaint in memset.]
drivers/gpu/drm/i915/intel_workarounds.c
drivers/gpu/drm/i915/selftests/intel_workarounds.c