]> git.baikalelectronics.ru Git - kernel.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)
commitf4d9913c974da33aff68947bc76c8f6a6d10cfad
treee7fb6eecbc86175be3423ebea800fe48d90b8439
parentd116a2d7ab7e29a31bc4495779e07bcf6b3d0551
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