diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3032-drm-amd-display-refactor-dump_clk_registers.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3032-drm-amd-display-refactor-dump_clk_registers.patch | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3032-drm-amd-display-refactor-dump_clk_registers.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3032-drm-amd-display-refactor-dump_clk_registers.patch new file mode 100644 index 00000000..e00a0922 --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3032-drm-amd-display-refactor-dump_clk_registers.patch @@ -0,0 +1,50 @@ +From 6a8047e707d1b36829d33843fc91259da7d093d7 Mon Sep 17 00:00:00 2001 +From: Su Sung Chung <Su.Chung@amd.com> +Date: Wed, 22 May 2019 14:28:52 -0400 +Subject: [PATCH 3032/4256] drm/amd/display: refactor dump_clk_registers + +[why] +for 2 purposes: + +1. get raw register value dumped on the log, which will make it easier +to talk to other team who only knows about the register + +2. enable other HW to be able to use the same interface as raven to log +clock register data + +Signed-off-by: Su Sung Chung <Su.Chung@amd.com> +Reviewed-by: Tony Cheng <Tony.Cheng@amd.com> +Acked-by: Leo Li <sunpeng.li@amd.com> +--- + drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer_debug.c | 2 +- + drivers/gpu/drm/amd/display/dc/dm_services.h | 1 + + 2 files changed, 2 insertions(+), 1 deletion(-) + +diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer_debug.c b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer_debug.c +index 6e47444109d7..7f4766e45dff 100644 +--- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer_debug.c ++++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer_debug.c +@@ -45,7 +45,7 @@ + #include "dcn10_cm_common.h" + #include "clk_mgr.h" + +-static unsigned int snprintf_count(char *pBuf, unsigned int bufSize, char *fmt, ...) ++unsigned int snprintf_count(char *pBuf, unsigned int bufSize, char *fmt, ...) + { + unsigned int ret_vsnprintf; + unsigned int chars_printed; +diff --git a/drivers/gpu/drm/amd/display/dc/dm_services.h b/drivers/gpu/drm/amd/display/dc/dm_services.h +index b426ba02b793..1a0429744630 100644 +--- a/drivers/gpu/drm/amd/display/dc/dm_services.h ++++ b/drivers/gpu/drm/amd/display/dc/dm_services.h +@@ -151,6 +151,7 @@ void generic_reg_wait(const struct dc_context *ctx, + unsigned int delay_between_poll_us, unsigned int time_out_num_tries, + const char *func_name, int line); + ++unsigned int snprintf_count(char *pBuf, unsigned int bufSize, char *fmt, ...); + + /* These macros need to be used with soc15 registers in order to retrieve + * the actual offset. +-- +2.17.1 + |