Skip to content

drm: add atomic state logging and debugfs

Rob Clark dri-devel 1 version Applied

Status from this message: Applied the series to drm-misc, thanks

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/7drm: helper macros to print composite typesdrivers/gpu/drm/drm_modes.c drivers/gpu/drm/drm_rect.c include/drm/drmP.h+24 -160 replies
2/7drm: add helper for printing to log or seq_fileDocumentation/gpu/drm-internals.rst drivers/gpu/drm/Makefile drivers/gpu/drm/drm_print.c +1 more+189 -10 replies
3/7drm: add helpers to go from plane state to drm_rectdrivers/gpu/drm/drm_plane_helper.c drivers/gpu/drm/i915/intel_display.c drivers/gpu/drm/i915/intel_sprite.c +1 more+29 -260 replies
4/7drm/atomic: add new drm_debug bit to dump atomic statedrivers/gpu/drm/drm_atomic.c include/drm/drmP.h include/drm/drm_connector.h +2 more+133 -00 replies
5/7drm/atomic: add debugfs file to dump out atomic statedrivers/gpu/drm/drm_atomic.c drivers/gpu/drm/drm_debugfs.c include/drm/drm_atomic.h+79 -00 replies
6/7drm/msm/mdp5: add atomic_print_state supportdrivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.h drivers/gpu/drm/msm/mdp/mdp5/mdp5_plane.c+29 -10 replies
7/7drm/msm: module param to dump state on error irqdrivers/gpu/drm/msm/mdp/mdp4/mdp4_irq.c drivers/gpu/drm/msm/mdp/mdp5/mdp5_irq.c drivers/gpu/drm/msm/msm_drv.c+25 -00 replies

Reviews trailers per patch

4 of 7 patches have a Reviewed-by or Acked-by.

PatchSean Paul
1/7R-b
2/7
3/7R-b
4/7
5/7R-b
6/7R-b
7/7

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/7] drm: add atomic state logging and debugfs

I realized that I had not re-sent this after updating from review comments, and adding kerneldoc.

The drm/msm bits I can include in my msm-next pull-req for 4.10. Just including them here to show example usage.

There will be a minor conflict to resolve around drm_get_format_name(), depending on what the final solution there is. But that should be trivial. If needed I can rebase after that lands. But would be nice if this ended up in drm-next for 4.10 so that I can land the drm/msm bits (and some later patches that use drm_printer to dump SMP state in debugfs and on error irqs)

Rob Clark (7):
drm: helper macros to print composite types
drm: add helper for printing to log or seq_file
drm: add helpers to go from plane state to drm_rect drm/atomic: add new drm_debug bit to dump atomic state drm/atomic: add debugfs file to dump out atomic state drm/msm/mdp5: add atomic_print_state support drm/msm: module param to dump state on error irq

 Documentation/gpu/drm-internals.rst       |  17 ++++
 drivers/gpu/drm/Makefile                  |   2 +-
 drivers/gpu/drm/drm_atomic.c              | 156 ++++++++++++++++++++++++++++++
 drivers/gpu/drm/drm_debugfs.c             |   9 ++
 drivers/gpu/drm/drm_modes.c               |   8 +-
 drivers/gpu/drm/drm_plane_helper.c        |  11 +--
 drivers/gpu/drm/drm_print.c               |  54 +++++++++++
 drivers/gpu/drm/drm_rect.c                |  11 +--
 drivers/gpu/drm/i915/intel_display.c      |  10 +-
 drivers/gpu/drm/i915/intel_sprite.c       |  11 +--
 drivers/gpu/drm/msm/mdp/mdp4/mdp4_irq.c   |  10 ++
 drivers/gpu/drm/msm/mdp/mdp5/mdp5_irq.c   |  11 +++
 drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.h   |  12 +++
 drivers/gpu/drm/msm/mdp/mdp5/mdp5_plane.c |  18 +++-
 drivers/gpu/drm/msm/msm_drv.c             |   4 +
 include/drm/drmP.h                        |  22 +++++
 include/drm/drm_atomic.h                  |   7 ++
 include/drm/drm_connector.h               |  13 +++
 include/drm/drm_crtc.h                    |  13 +++
 include/drm/drm_plane.h                   |  36 +++++++
 include/drm/drm_print.h                   | 117 ++++++++++++++++++++++
 21 files changed, 508 insertions(+), 44 deletions(-)
 create mode 100644 drivers/gpu/drm/drm_print.c
 create mode 100644 include/drm/drm_print.h
Signature · 6 lines
2.7.4

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel