Skip to content

RFC Refactor HW workaround code

Oscar Mateo intel-gfx 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 RFC Latest6 patches 6 repliesIn review
  2. v5 RFC20 patches 6 repliesSuperseded
  3. v420 patches 4 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v322 patches23 repliesSuperseded
v211 patches14 repliesSuperseded
v1 RFC11 patches9 repliesSuperseded

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6drm/i915: Remove Gen9 WAs with no effectdrivers/gpu/drm/i915/i915_reg.h drivers/gpu/drm/i915/intel_pm.c+0 -63 replies
2/6drm/i915: Move a bunch of workaround-related code to its own filedrivers/gpu/drm/i915/Makefile drivers/gpu/drm/i915/intel_engine_cs.c drivers/gpu/drm/i915/intel_lrc.c +4 more+743 -6860 replies
3/6drm/i915: Split out functions for different kinds of workaroundsdrivers/gpu/drm/i915/i915_gem.c drivers/gpu/drm/i915/i915_gem_context.c drivers/gpu/drm/i915/intel_lrc.c +3 more+458 -2860 replies
4/6drm/i915: Move WA BB stuff to the workarounds file as welldrivers/gpu/drm/i915/intel_lrc.c drivers/gpu/drm/i915/intel_workarounds.c drivers/gpu/drm/i915/intel_workarounds.h+259 -2510 replies
5/6drm/i915: Create a new category of display WAsdrivers/gpu/drm/i915/intel_pm.c drivers/gpu/drm/i915/intel_workarounds.c drivers/gpu/drm/i915/intel_workarounds.h+325 -3010 replies
6/6drm/i915: Classify GT & Display WAs correctlydrivers/gpu/drm/i915/intel_workarounds.c+106 -1070 replies

Reviews trailers per patch

3 of 6 patches have a Reviewed-by or Acked-by.

PatchChris WilsonMika Kuoppala
1/6R-b
2/6
3/6
4/6R-b
5/6R-b
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v6 thread

Cover letter [RFC PATCH v6 0/6] Refactor HW workaround code

Until we agree on a design, I have removed all new code to save the actual list of WAs and dump it in debugfs. For the moment, only shuffle things arounds until most WAs are in the same file (and classified correctly according to the type of WA).

From previous versions of these series:

Currently, deciding how/where to apply new workarounds is challenging. Often, workarounds end up applied incorrectly and get lost under certain circumstances (e.g. a context switch or a GPU reset). This is a proposal to attempt to eliminate some of this pain, by clarifying the current classification of workarounds (context saved/restored, global registers, whitelisting, BB), putting them together on the same file, and improving the existing validation infrastructure (debugfs/i-g-t).

Oscar Mateo (6):
drm/i915: Remove Gen9 WAs with no effect
drm/i915: Move a bunch of workaround-related code to its own file drm/i915: Split out functions for different kinds of workarounds drm/i915: Move WA BB stuff to the workarounds file as well drm/i915: Create a new category of display WAs drm/i915: Classify GT & Display WAs correctly

 drivers/gpu/drm/i915/Makefile            |    3 +-
 drivers/gpu/drm/i915/i915_gem.c          |    3 +
 drivers/gpu/drm/i915/i915_gem_context.c  |    5 +
 drivers/gpu/drm/i915/i915_reg.h          |    3 -
 drivers/gpu/drm/i915/intel_engine_cs.c   |  682 --------------
 drivers/gpu/drm/i915/intel_lrc.c         |  264 +-----
 drivers/gpu/drm/i915/intel_pm.c          |  312 +------
 drivers/gpu/drm/i915/intel_ringbuffer.c  |    5 +-
 drivers/gpu/drm/i915/intel_ringbuffer.h  |    3 -
 drivers/gpu/drm/i915/intel_workarounds.c | 1432 ++++++++++++++++++++++++++++++
 drivers/gpu/drm/i915/intel_workarounds.h |   40 +
 11 files changed, 1503 insertions(+), 1249 deletions(-)
 create mode 100644 drivers/gpu/drm/i915/intel_workarounds.c
 create mode 100644 drivers/gpu/drm/i915/intel_workarounds.h
Signature · 6 lines
1.9.1

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx