diff options
author | Rob Clark <robdclark@gmail.com> | 2016-11-05 16:08:10 +0100 |
---|---|---|
committer | Sean Paul <seanpaul@chromium.org> | 2016-11-08 22:38:03 +0100 |
commit | 6559c901cb4840e46893d587d8af435aac9c4c3f (patch) | |
tree | 2e8878c166d83f7c68183acc699b5855a864563e /include/drm | |
parent | drm/atomic: add new drm_debug bit to dump atomic state (diff) | |
download | linux-6559c901cb4840e46893d587d8af435aac9c4c3f.tar.xz linux-6559c901cb4840e46893d587d8af435aac9c4c3f.zip |
drm/atomic: add debugfs file to dump out atomic state
Useful to dump current state from debugfs, if turning on the drm.debug
bit is too much overhead.
The drm_state_dump() can also be used by drivers, for example to
implement a module param that dumps state on error irqs.
Signed-off-by: Rob Clark <robdclark@gmail.com>
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/1478358492-30738-6-git-send-email-robdclark@gmail.com
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/drm_atomic.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/drm/drm_atomic.h b/include/drm/drm_atomic.h index 2d1e9c944b54..331bb100b718 100644 --- a/include/drm/drm_atomic.h +++ b/include/drm/drm_atomic.h @@ -366,6 +366,13 @@ int __must_check drm_atomic_check_only(struct drm_atomic_state *state); int __must_check drm_atomic_commit(struct drm_atomic_state *state); int __must_check drm_atomic_nonblocking_commit(struct drm_atomic_state *state); +void drm_state_dump(struct drm_device *dev, struct drm_printer *p); + +#ifdef CONFIG_DEBUG_FS +struct drm_minor; +int drm_atomic_debugfs_init(struct drm_minor *minor); +#endif + #define for_each_connector_in_state(__state, connector, connector_state, __i) \ for ((__i) = 0; \ (__i) < (__state)->num_connector && \ |