OSDN Git Service

drm/i915/selftests: Add coverage of mocs registers
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 12 Nov 2019 22:36:00 +0000 (22:36 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 14 Nov 2019 17:38:54 +0000 (17:38 +0000)
commit3fb33cd32ffdf9da6ca53985c070e284e5acced9
tree6eaa564a886536439fd90fae995c8fd84d66baea
parentf8a0c7a996ff17191973838e93f5be51c9828174
drm/i915/selftests: Add coverage of mocs registers

Probe the mocs registers for new contexts and across GPU resets. Similar
to intel_workarounds, we have tables of what register values we expect
to see, so verify that user contexts are affected by them. In the
future, we should add tests similar to intel_sseu to cover dynamic
reconfigurations.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Prathap Kumar Valsan <prathap.kumar.valsan@intel.com>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Prathap Kumar Valsan <prathap.kumar.valsan@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191112223600.30993-4-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_mocs.c
drivers/gpu/drm/i915/gt/selftest_mocs.c [new file with mode: 0644]
drivers/gpu/drm/i915/selftests/i915_live_selftests.h