]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6d41d9dc21c2e1361223a7550dd49238d601243b
treebd8f7309707257d16bb007a4758aabdfcec23492
parentb78b4176f7f94ba3ea55e6cb0cfff5aaf2f1e945
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