drm/i915/selftests: Check that whitelisted registers are accessible
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 1 Mar 2019 16:01:08 +0000 (16:01 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 1 Mar 2019 16:53:39 +0000 (16:53 +0000)
commit34ae8455f4d30ddc7c26d914d0f246de37488a99
tree7e4b0f52011f2df9258ceb9969fcafed4564598d
parentc384afe35200f090b10ff5b4e8c7e6ea6a54eb19
drm/i915/selftests: Check that whitelisted registers are accessible

There is no point in whitelisting a register that the user then cannot
write to, so check the register exists before merging such patches.

v2: Mark SLICE_COMMON_ECO_CHICKEN1 [731c] as write-only
v3: Use different variables for different meanings!

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Dale B Stimson <dale.b.stimson@intel.com>
Cc: Michał Winiarski <michal.winiarski@intel.com>
Reviewed-by: Michał Winiarski <michal.winiarski@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190301140404.26690-6-chris@chris-wilson.co.uk
Link: https://patchwork.freedesktop.org/patch/msgid/20190301160108.19039-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/selftests/intel_workarounds.c