Skip to content

RFC drm/i915: expose fifo pipe underrun counts

Joe Konno intel-gfx 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3drm/i915: get cpu, pch underrun reporting statedrivers/gpu/drm/i915/intel_fifo_underrun.c+43 -00 replies
2/3drm/i915: do not disable handler after underrundrivers/gpu/drm/i915/intel_fifo_underrun.c+14 -151 reply
3/3drm/i915: add underrun counts to i915_display_infodrivers/gpu/drm/i915/i915_debugfs.c drivers/gpu/drm/i915/intel_drv.h drivers/gpu/drm/i915/intel_fifo_underrun.c+14 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC 0/3] drm/i915: expose fifo pipe underrun counts

From: Joe Konno <[email protected]>

In tracking down a watermark bug, I discovered the pch and cpu underrun interrupt handlers would disable themselves after initial reports to prevent an interrupt/dmesg storm. Storms are bad, but underrun interrupt handling should not cease. For my case, I need to be able to count pch and cpu underruns for each pipe or transcoder. Displaying this information in the 'i915_display_info' node seemed the best course of action.

In order to do this, however, I had to revisit some long-standing behaviors in the underrun interrupt handlers. One problem became three. Thanks in advance for your review and feedback.

Requesting comment on the following solutions I came up with (corresponding to each patch in the series):

1. provide simple 'getter' mechanisms for pch and cpu underrun reporting

     ("is it enabled?")-- and base dmesg output on the answer to that question;

2. don't allow the interrupt handlers to disable or filter themselves (and prevent accurate counting); and finally

3. atomically-incremented pch and cpu underrun counters, with those counters displayed in debugfs i915_display_info per-pipe, per-transcoder

For: https://bugs.freedesktop.org/show_bug.cgi?id=93865

Joe Konno (3):
drm/i915: get cpu, pch underrun reporting state drm/i915: do not disable handler after underrun drm/i915: add underrun counts to i915_display_info

 drivers/gpu/drm/i915/i915_debugfs.c        |  6 ++-
 drivers/gpu/drm/i915/intel_drv.h           |  4 ++
 drivers/gpu/drm/i915/intel_fifo_underrun.c | 78 ++++++++++++++++++++++++------
 3 files changed, 71 insertions(+), 17 deletions(-)
Signature · 6 lines
2.6.4

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