Skip to content

Separate display and tile workarounds

Matt Roper intel-xe 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6drm/i915: Stop forcing clock gating init for future platformsdrivers/gpu/drm/i915/intel_clock_gating.c+3 -70 replies
2/6drm/i915/adlp: Stop calling gen12lp_init_clock_gating()drivers/gpu/drm/i915/intel_clock_gating.c+0 -20 replies
3/6drm/i915/display: Extract display workarounds from clock gating initdrivers/gpu/drm/i915/Makefile drivers/gpu/drm/i915/display/intel_display_wa.c drivers/gpu/drm/i915/display/intel_display_wa.h +1 more+65 -420 replies
4/6drm/i915/display: Apply workarounds during display initdrivers/gpu/drm/i915/display/intel_display_driver.c drivers/gpu/drm/i915/intel_clock_gating.c+3 -30 replies
5/6drm/xe/wa: Apply tile workarounds at probe/resumedrivers/gpu/drm/xe/regs/xe_regs.h drivers/gpu/drm/xe/xe_pm.c drivers/gpu/drm/xe/xe_tile.c +3 more+34 -03 replies
6/6fixup! drm/xe/display: Implement display supportdrivers/gpu/drm/xe/Makefile drivers/gpu/drm/xe/display/ext/intel_clock_gating.c drivers/gpu/drm/xe/xe_display.c+2 -1281 reply

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchLucas De MarchiJani Nikula
SeriesA-b
1/6R-b
2/6R-b
3/6R-b
4/6R-b
5/6R-b
6/6R-b

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

Read the v1 thread

Cover letter [Intel-xe] [PATCH 0/6] Separate display and tile workarounds

i915's "clock gating" hooks were historically a bit of a dumping ground for assorted register programming (some of which wasn't actually related to clock gating in any way). i915 has now moved display workarounds to their own area within the display-specific code, so cherry-picking those patches into the Xe kernel will ensure that the same display workarounds are applied automatically during Xe's display init.

With display workarounds taken care of by the i915 cherry-picks, the remaining "clock gating" programming that Xe needs is more accurately described as "tile workarounds," i.e., workarounds that target sgunit/soc registers outside of the GTs and the display. Such workarounds are very rare and if we disregard pre-production workarounds, there's only a single tile workaround needed on Xe today. Adding proper programming for tile workarounds to Xe and moving Wa_22010954014 to that new area allows us to drop ext/intel_clock_gating.c.

Cc Lucas De Marchi <[email protected]>
Cc Jani Nikula <[email protected]>

Matt Roper (6):
drm/i915: Stop forcing clock gating init for future platforms drm/i915/adlp: Stop calling gen12lp_init_clock_gating() drm/i915/display: Extract display workarounds from clock gating init drm/i915/display: Apply workarounds during display init drm/xe/wa: Apply tile workarounds at probe/resume
fixup! drm/xe/display: Implement display support

 drivers/gpu/drm/i915/Makefile                 |   1 +
 .../drm/i915/display/intel_display_driver.c   |   3 +
 .../gpu/drm/i915/display/intel_display_wa.c   |  48 +++++++
 .../gpu/drm/i915/display/intel_display_wa.h   |  13 ++
 drivers/gpu/drm/i915/intel_clock_gating.c     |  52 +-------
 drivers/gpu/drm/xe/Makefile                   |   4 +-
 .../drm/xe/display/ext/intel_clock_gating.c   | 124 ------------------
 drivers/gpu/drm/xe/regs/xe_regs.h             |   3 +
 drivers/gpu/drm/xe/xe_display.c               |   2 -
 drivers/gpu/drm/xe/xe_pm.c                    |   5 +
 drivers/gpu/drm/xe/xe_tile.c                  |   3 +
 drivers/gpu/drm/xe/xe_wa.c                    |  20 +++
 drivers/gpu/drm/xe/xe_wa.h                    |   2 +
 drivers/gpu/drm/xe/xe_wa_oob.rules            |   1 +
 14 files changed, 103 insertions(+), 178 deletions(-)
 create mode 100644 drivers/gpu/drm/i915/display/intel_display_wa.c
 create mode 100644 drivers/gpu/drm/i915/display/intel_display_wa.h
 delete mode 100644 drivers/gpu/drm/xe/display/ext/intel_clock_gating.c
Signature · 1 line
2.41.0