drm/i915: Remove nonpriv flags when srm/lrm
authorMika Kuoppala <mika.kuoppala@linux.intel.com>
Thu, 24 Oct 2019 11:03:31 +0000 (14:03 +0300)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 24 Oct 2019 22:34:38 +0000 (23:34 +0100)
commit6b441c628e178629bbd38ddd8b97dfeff93c2bb6
treebd8f7309707257d16bb007a4758aabdfcec23492
parent5063f48bbbd87d3f309ed7c447609307e5b66731
drm/i915: Remove nonpriv flags when srm/lrm

On testing the whitelists, using any of the nonpriv
flags when trying to access the register offset will lead
to failure.

Define address mask to get the mmio offset in order
to guard against any current and future flag usage.

v2: apply also on scrub_whitelisted_registers (Lionel)

Cc: Tapani Pälli <tapani.palli@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Signed-off-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20191024110331.8935-1-mika.kuoppala@linux.intel.com
drivers/gpu/drm/i915/gt/selftest_workarounds.c
drivers/gpu/drm/i915/i915_reg.h