]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Fix GEN8_MCR_SELECTOR programming
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Wed, 17 Jul 2019 18:06:19 +0000 (19:06 +0100)
committerJani Nikula <jani.nikula@intel.com>
Mon, 29 Jul 2019 12:49:55 +0000 (15:49 +0300)
commite546420d4aae8ad04ea1a6535f0ad1dbc14ed7ff
tree0c75e39a95312047cc531e677521fe1761ec6136
parent8479af7d2f04394db9ba4f68a02c45898724e534
drm/i915: Fix GEN8_MCR_SELECTOR programming

fls returns bit positions starting from one for the lsb and the MCR
register expects zero based (sub)slice addressing.

Incorrent MCR programming can have the effect of directing MMIO reads of
registers in the 0xb100-0xb3ff range to invalid subslice returning zeroes
instead of actual content.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Fixes: fa31610b6773 ("drm/i915/cnl: Implement WaProgramMgsrForCorrectSliceSpecificMmioReads")
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20190717180624.20354-2-tvrtko.ursulin@linux.intel.com
(cherry picked from commit 15160879d47213c32f357bc67b6014d9aaf14ed7)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/gt/intel_engine_cs.c