Skip to content

Commit

Permalink
drm/msm/dpu: Clear perf params before calculating bw
Browse files Browse the repository at this point in the history
To prevent incorrect BW calculation, zero out dpu_core_perf_params
before it is passed into dpu_core_perf_aggregate().

Signed-off-by: Jessica Zhang <quic_jesszhan@quicinc.com>
Fixes: 795aef6 ("drm/msm/dpu: remove duplicate code calculating sum of bandwidths")
Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/641278/
Signed-off-by: Rob Clark <robdclark@chromium.org>
  • Loading branch information
Jessica Zhang authored and Rob Clark committed Mar 6, 2025
1 parent 06dd5d8 commit e79751f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ int dpu_core_perf_crtc_check(struct drm_crtc *crtc,
u32 bw, threshold;
struct dpu_crtc_state *dpu_cstate;
struct dpu_kms *kms;
struct dpu_core_perf_params perf;
struct dpu_core_perf_params perf = { 0 };

if (!crtc || !state) {
DPU_ERROR("invalid crtc\n");
Expand Down

0 comments on commit e79751f

Please sign in to comment.