drm/komeda: Adds error event print functionality
authorLowry Li (Arm Technology China) <Lowry.Li@arm.com>
Fri, 2 Aug 2019 09:43:10 +0000 (09:43 +0000)
committerjames qian wang (Arm Technology China) <james.qian.wang@arm.com>
Tue, 17 Sep 2019 10:49:41 +0000 (18:49 +0800)
commit4d74b25ee395cb2faf615519e765f47ce5964a96
tree2481d40c459932db55b46f4a55836c0af53f4d8e
parent62afb4ad425af2bc6ac6ff6d697825ae47c25211
drm/komeda: Adds error event print functionality

Adds to print the event message when error happens and the same event
will not be printed until next vsync.

Changes since v2:
1. Refine komeda_sprintf();
2. Not using STR_SZ macro for the string size in komeda_print_events().

Changes since v1:
1. Handling the event print by CONFIG_KOMEDA_ERROR_PRINT;
2. Changing the max string size to 256.

Signed-off-by: Lowry Li (Arm Technology China) <lowry.li@arm.com>
Reviewed-by: Mihail Atanassov <mihail.atanassov@arm.com>
Reviewed-by: James Qian Wang (Arm Technology China) <james.qian.wang@arm.com>
Signed-off-by: james qian wang (Arm Technology China) <james.qian.wang@arm.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1564738954-6101-1-git-send-email-lowry.li@arm.com
drivers/gpu/drm/arm/display/Kconfig
drivers/gpu/drm/arm/display/komeda/Makefile
drivers/gpu/drm/arm/display/komeda/komeda_dev.h
drivers/gpu/drm/arm/display/komeda/komeda_event.c [new file with mode: 0644]
drivers/gpu/drm/arm/display/komeda/komeda_kms.c