]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gen12: Invalidate aux table entries forcibly
authorMika Kuoppala <mika.kuoppala@linux.intel.com>
Wed, 6 May 2020 16:53:10 +0000 (19:53 +0300)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 7 May 2020 06:44:42 +0000 (07:44 +0100)
commit544a11ae6422b6d0545b7fbac2c4482d1c7614b3
tree548db35f66119ab31a81c9646a02852171478047
parenta696a9e7066d5b90cdba9c601b5239c9ce7aa0dc
drm/i915/gen12: Invalidate aux table entries forcibly

Aux table invalidation can fail on update. So
next access may cause memory access to be into stale entry.

Proposed workaround is to invalidate entries between
all batchbuffers.

v2: correct register address (Yang)
v3: respect the order (Chris)

References bspec#43904, hsdes#1809175790
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Chuansheng Liu <chuansheng.liu@intel.com>
Cc: Rafael Antognolli <rafael.antognolli@intel.com>
Cc: Yang A Shi <yang.a.shi@intel.com>
Signed-off-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Acked-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20200506165310.1239-1-mika.kuoppala@linux.intel.com
drivers/gpu/drm/i915/gt/intel_lrc.c
drivers/gpu/drm/i915/i915_reg.h