]> www.infradead.org Git - users/hch/configfs.git/commit
drm/xe/xe2: Add Wa_15015404425
authorTejas Upadhyay <tejas.upadhyay@intel.com>
Tue, 9 Jul 2024 15:56:06 +0000 (21:26 +0530)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Mon, 19 Aug 2024 17:30:47 +0000 (13:30 -0400)
commitcbc6e98ab11bea52789d2835e45e8816c39407e1
tree74fae93f9109475e2e16336cb72def6eb5455f87
parent7e81285380743aa5759bb29a388f056c3d326a2c
drm/xe/xe2: Add Wa_15015404425

Wa_15015404425 asks us to perform four "dummy" writes to a
non-existent register offset before every real register read.
Although the specific offset of the writes doesn't directly
matter, the workaround suggests offset 0x130030 as a good target
so that these writes will be easy to recognize and filter out in
debugging traces.

V5(MattR):
  - Avoid negating an equality comparison
V4(MattR):
  - Use writel and remove xe_reg usage
V3(MattR):
  - Define dummy reg local to function
  - Avoid tracing dummy writes
  - Update commit message
V2:
  - Add WA to 8/16/32bit reads also - MattR
  - Corrected dummy reg address - MattR
  - Use for loop to avoid mental pause - JaniN

Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Tejas Upadhyay <tejas.upadhyay@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240709155606.2998941-1-tejas.upadhyay@intel.com
(cherry picked from commit 86c5b70a9c0c3f05f7002ef8b789460c96b54e27)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_mmio.c