From 2a820b1c52851b788c1f9ed14e34c7d146b3bfad Mon Sep 17 00:00:00 2001 From: Shi Zhongbo Date: Tue, 11 Jun 2019 13:39:46 +0800 Subject: [PATCH] msm: vidc: add VIDC_BUS log mask Add new VIDC_BUS log mask for bus parameters related logs. Change-Id: If933c8c88ec2e0ccb283606da7f46a3c3c49756a Signed-off-by: Shi Zhongbo --- msm/vidc/msm_vidc_bus_iris1.c | 6 +++--- msm/vidc/msm_vidc_bus_iris2.c | 4 ++-- msm/vidc/msm_vidc_debug.h | 3 +++ 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/msm/vidc/msm_vidc_bus_iris1.c b/msm/vidc/msm_vidc_bus_iris1.c index 90fdb821babc..5e30046bcf50 100644 --- a/msm/vidc/msm_vidc_bus_iris1.c +++ b/msm/vidc/msm_vidc_bus_iris1.c @@ -64,7 +64,7 @@ void __dump(struct dump dump[], int len) } } - dprintk(VIDC_LOW, "%s", formatted_line); + dprintk(VIDC_BUS, "%s", formatted_line); } } @@ -275,7 +275,7 @@ static unsigned long __calculate_decoder(struct vidc_bus_vote_data *d, llc.line_buffer_write + ddr.total; /* Dump all the variables for easier debugging */ - if (msm_vidc_debug & VIDC_PERF) { + if (msm_vidc_debug & VIDC_BUS) { struct dump dump[] = { {"DECODER PARAMETERS", "", DUMP_HEADER_MAGIC}, {"lcu size", "%d", lcu_size}, @@ -569,7 +569,7 @@ static unsigned long __calculate_encoder(struct vidc_bus_vote_data *d, ddr.total = fp_mult(ddr.total, qsmmu_bw_overhead_factor); llc.total = llc.ref_read_crcb + llc.line_buffer + ddr.total; - if (msm_vidc_debug & VIDC_PERF) { + if (msm_vidc_debug & VIDC_BUS) { struct dump dump[] = { {"ENCODER PARAMETERS", "", DUMP_HEADER_MAGIC}, {"width", "%d", width}, diff --git a/msm/vidc/msm_vidc_bus_iris2.c b/msm/vidc/msm_vidc_bus_iris2.c index 21703d3e3992..bbb640fc46b9 100644 --- a/msm/vidc/msm_vidc_bus_iris2.c +++ b/msm/vidc/msm_vidc_bus_iris2.c @@ -214,7 +214,7 @@ static unsigned long __calculate_decoder(struct vidc_bus_vote_data *d, llc.line_buffer_write + ddr.total; /* Dump all the variables for easier debugging */ - if (msm_vidc_debug & VIDC_PERF) { + if (msm_vidc_debug & VIDC_BUS) { struct dump dump[] = { {"DECODER PARAMETERS", "", DUMP_HEADER_MAGIC}, {"lcu size", "%d", lcu_size}, @@ -508,7 +508,7 @@ static unsigned long __calculate_encoder(struct vidc_bus_vote_data *d, ddr.total = fp_mult(ddr.total, qsmmu_bw_overhead_factor); llc.total = llc.ref_read_crcb + llc.line_buffer + ddr.total; - if (msm_vidc_debug & VIDC_PERF) { + if (msm_vidc_debug & VIDC_BUS) { struct dump dump[] = { {"ENCODER PARAMETERS", "", DUMP_HEADER_MAGIC}, {"width", "%d", width}, diff --git a/msm/vidc/msm_vidc_debug.h b/msm/vidc/msm_vidc_debug.h index e16376611f6d..72a79b48544f 100644 --- a/msm/vidc/msm_vidc_debug.h +++ b/msm/vidc/msm_vidc_debug.h @@ -37,6 +37,7 @@ enum vidc_msg_prio { VIDC_LOW = 0x00000004, VIDC_PERF = 0x00000008, VIDC_PKT = 0x00000010, + VIDC_BUS = 0x00000020, VIDC_PRINTK = 0x00001000, VIDC_FTRACE = 0x00002000, FW_LOW = 0x00010000, @@ -146,6 +147,8 @@ static inline char *get_debug_level_str(int level) return "perf"; case VIDC_PKT: return "pkt"; + case VIDC_BUS: + return "bus"; default: return "???"; }