mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-24 19:45:06 +08:00
drm/komeda: add rate limiting disable to err_verbosity
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
This commit is contained in:
parent
4039f0293b
commit
f8fbe33be7
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user