drm/i915: Optimize registers accesses in irq handlers
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 5 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | drm/i915: Use intel_de_read64_2x32_volatile_fw() for IVB_TIMESTAMP_CTR+PIPE_FRMTMSTMP querydrivers/ | +11 | 1 reply | |
| 2/4 | drm/i915: Use intel_de_{read, write})fw() in BDW+ irq handlersdrivers/ drivers/ drivers/ | +43 | 1 reply | |
| 3/4 | drm/i915: Use intel_de_{read, write})fw() in VLV/CHV irq handlersdrivers/ drivers/ | +20 | 1 reply | |
| 4/4 | drm/i915: Skip redundant frame/scanline/time reads for async flipsdrivers/ | +7 | 1 reply |
Reviews trailers per patch
All 4 patches have a Reviewed-by or Acked-by.
| Patch | Jani Nikula |
|---|---|
| 1/4 | R-b |
| 2/4 | R-b |
| 3/4 | R-b |
| 4/4 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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