Skip to content

drm/i915: Optimize registers accesses in irq handlers

Ville Syrjala intel-gfx intel-xe 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4drm/i915: Use intel_de_read64_2x32_volatile_fw() for IVB_TIMESTAMP_CTR+PIPE_FRMTMSTMP querydrivers/gpu/drm/i915/display/intel_vblank.c+11 -231 reply
2/4drm/i915: Use intel_de_{read, write})fw() in BDW+ irq handlersdrivers/gpu/drm/i915/display/intel_display_irq.c drivers/gpu/drm/i915/display/intel_dmc.c drivers/gpu/drm/i915/display/intel_hotplug_irq.c+43 -431 reply
3/4drm/i915: Use intel_de_{read, write})fw() in VLV/CHV irq handlersdrivers/gpu/drm/i915/display/intel_display_irq.c drivers/gpu/drm/i915/display/intel_hotplug_irq.c+20 -201 reply
4/4drm/i915: Skip redundant frame/scanline/time reads for async flipsdrivers/gpu/drm/i915/display/intel_crtc.c+7 -31 reply

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchJani Nikula
1/4R-b
2/4R-b
3/4R-b
4/4R-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 [PATCH 0/4] drm/i915: Optimize registers accesses in irq handlers

From: Ville Syrjälä <[email protected]>

MMIO is incredible expensive on some of our platforms (especially the new ones). Switch to the cheaper _fw() register accessors in irq handlers to avoid adding a lot more costly FPGA_DBG MMIO reads to them when I (eventually) hoist the unclaimed register detection to the display code (and thus bring it over to xe as well).

ILK-HSW are still left with the more costly variants. I'm thinking I might try to convert them as well at some point, but that'll need some extra testing (especially on IVB/HSW which might suffer from some system hangs from parallel MMIO accesses to the same cacheline). MMIO isn't super expnsive on those platforms so might not matter too much. SNB/IVB are epscially cheap with ~70 ns for both reads and writes. ILK and HSW are bit more expensive in the 100-200 ns range.

Ville Syrjälä (4):
drm/i915: Use intel_de_read64_2x32_volatile_fw() for
IVB_TIMESTAMP_CTR+PIPE_FRMTMSTMP query
drm/i915: Use intel_de_{read,write})fw() in BDW+ irq handlers drm/i915: Use intel_de_{read,write})fw() in VLV/CHV irq handlers drm/i915: Skip redundant frame/scanline/time reads for async flips

 drivers/gpu/drm/i915/display/intel_crtc.c     | 10 +-
 .../gpu/drm/i915/display/intel_display_irq.c  | 94 +++++++++----------
 drivers/gpu/drm/i915/display/intel_dmc.c      |  6 +-
 .../gpu/drm/i915/display/intel_hotplug_irq.c  | 26 ++---
 drivers/gpu/drm/i915/display/intel_vblank.c   | 34 +++----
 5 files changed, 81 insertions(+), 89 deletions(-)
Signature · 1 line
2.55.0