]> 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)
commit754424e9cb51badce84dbdcd1b7e3effd535a959
treebd8f7309707257d16bb007a4758aabdfcec23492
parent90c97ab9de07f6c99aa8f5e1802d5967ad4ff303
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