Skip to content

Commit f6c782e

Browse files
committed
drm/msm/dpu: also use KBps for bw_ctl output
Change debugfs and log entries to use KBps / u32 for bw_ctl and similar data. Reviewed-by: Abhinav Kumar <[email protected]> Signed-off-by: Dmitry Baryshkov <[email protected]> Patchwork: https://patchwork.freedesktop.org/patch/636066/ Link: https://lore.kernel.org/r/[email protected]
1 parent 879a7f8 commit f6c782e

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,10 @@ static void _dpu_core_perf_calc_crtc(const struct dpu_core_perf *core_perf,
135135
}
136136

137137
DRM_DEBUG_ATOMIC(
138-
"crtc=%d clk_rate=%llu core_ib=%u core_ab=%llu\n",
138+
"crtc=%d clk_rate=%llu core_ib=%u core_ab=%u\n",
139139
crtc->base.id, perf->core_clk_rate,
140-
perf->max_per_pipe_ib, perf->bw_ctl);
140+
perf->max_per_pipe_ib,
141+
(u32)DIV_ROUND_UP_ULL(perf->bw_ctl, 1000));
141142
}
142143

143144
static void dpu_core_perf_aggregate(struct drm_device *ddev,

drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1679,7 +1679,8 @@ static int dpu_crtc_debugfs_state_show(struct seq_file *s, void *v)
16791679
seq_printf(s, "intf_mode: %d\n", dpu_crtc_get_intf_mode(crtc));
16801680
seq_printf(s, "core_clk_rate: %llu\n",
16811681
dpu_crtc->cur_perf.core_clk_rate);
1682-
seq_printf(s, "bw_ctl: %llu\n", dpu_crtc->cur_perf.bw_ctl);
1682+
seq_printf(s, "bw_ctl: %uk\n",
1683+
(u32)DIV_ROUND_UP_ULL(dpu_crtc->cur_perf.bw_ctl, 1000));
16831684
seq_printf(s, "max_per_pipe_ib: %u\n",
16841685
dpu_crtc->cur_perf.max_per_pipe_ib);
16851686

0 commit comments

Comments
 (0)