Skip to content

Commit

Permalink
drm/komeda: add rate limiting disable to err_verbosity
Browse files Browse the repository at this point in the history
It's possible to get multiple events in a single frame/flip, so add an
option to print them all.

Reviewed-by: James Qian Wang (Arm Technology China) <james.qian.wang@arm.com>
Acked-by: Liviu Dudau <liviu.dudau@arm.com>
Signed-off-by: Mihail Atanassov <mihail.atanassov@arm.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191107114155.54307-6-mihail.atanassov@arm.com
  • Loading branch information
Mihail Atanassov committed Nov 12, 2019
1 parent 4039f02 commit f8fbe33
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions drivers/gpu/drm/arm/display/komeda/komeda_dev.h
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,8 @@ struct komeda_dev {
#define KOMEDA_DEV_PRINT_INFO_EVENTS BIT(2)
/* Dump DRM state on an error or warning event. */
#define KOMEDA_DEV_PRINT_DUMP_STATE_ON_EVENT BIT(8)
/* Disable rate limiting of event prints (normally one per commit) */
#define KOMEDA_DEV_PRINT_DISABLE_RATELIMIT BIT(12)
};

static inline bool
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpu/drm/arm/display/komeda/komeda_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ void komeda_print_events(struct komeda_events *evts, struct drm_device *dev)
/* reduce the same msg print, only print the first evt for one frame */
if (evts->global || is_new_frame(evts))
en_print = true;
if (!en_print)
if (!(err_verbosity & KOMEDA_DEV_PRINT_DISABLE_RATELIMIT) && !en_print)
return;

if (err_verbosity & KOMEDA_DEV_PRINT_ERR_EVENTS)
Expand Down

0 comments on commit f8fbe33

Please sign in to comment.