mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-12 15:08:25 -04:00
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 <quic_abhinavk@quicinc.com> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Patchwork: https://patchwork.freedesktop.org/patch/636066/ Link: https://lore.kernel.org/r/20250209-dpu-perf-rework-v5-5-87e936cf3004@linaro.org
This commit is contained in:
@@ -135,9 +135,10 @@ static void _dpu_core_perf_calc_crtc(const struct dpu_core_perf *core_perf,
|
||||
}
|
||||
|
||||
DRM_DEBUG_ATOMIC(
|
||||
"crtc=%d clk_rate=%llu core_ib=%u core_ab=%llu\n",
|
||||
"crtc=%d clk_rate=%llu core_ib=%u core_ab=%u\n",
|
||||
crtc->base.id, perf->core_clk_rate,
|
||||
perf->max_per_pipe_ib, perf->bw_ctl);
|
||||
perf->max_per_pipe_ib,
|
||||
(u32)DIV_ROUND_UP_ULL(perf->bw_ctl, 1000));
|
||||
}
|
||||
|
||||
static void dpu_core_perf_aggregate(struct drm_device *ddev,
|
||||
|
||||
@@ -1679,7 +1679,8 @@ static int dpu_crtc_debugfs_state_show(struct seq_file *s, void *v)
|
||||
seq_printf(s, "intf_mode: %d\n", dpu_crtc_get_intf_mode(crtc));
|
||||
seq_printf(s, "core_clk_rate: %llu\n",
|
||||
dpu_crtc->cur_perf.core_clk_rate);
|
||||
seq_printf(s, "bw_ctl: %llu\n", dpu_crtc->cur_perf.bw_ctl);
|
||||
seq_printf(s, "bw_ctl: %uk\n",
|
||||
(u32)DIV_ROUND_UP_ULL(dpu_crtc->cur_perf.bw_ctl, 1000));
|
||||
seq_printf(s, "max_per_pipe_ib: %u\n",
|
||||
dpu_crtc->cur_perf.max_per_pipe_ib);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user