aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlvin Lee <[email protected]>2022-06-29 16:35:12 +0000
committerAlex Deucher <[email protected]>2022-10-10 21:32:55 +0000
commit9799702360d51a714e888fef4ab5fb9123dfb41f (patch)
tree12a6f30b31c9be67cccf798cd7931d8bb2492615
parentdrm/amd/display: Drop uncessary OTG lock check (diff)
downloadkernel-9799702360d51a714e888fef4ab5fb9123dfb41f.tar.gz
kernel-9799702360d51a714e888fef4ab5fb9123dfb41f.zip
drm/amd/display: Fix watermark calculation
Watermark calculation was incorrect due to missing brackets. Fixes: 85f4bc0c333c ("drm/amd/display: Add SubVP required code") Tested-by: Daniel Wheeler <[email protected]> Reviewed-by: Rodrigo Siqueira <[email protected]> Acked-by: Qingqing Zhuo <[email protected]> Signed-off-by: Alvin Lee <[email protected]> Signed-off-by: Alex Deucher <[email protected]> Cc: [email protected] # 6.0
-rw-r--r--drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c b/drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
index bbde635c56fc..0541e87e4f38 100644
--- a/drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
+++ b/drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
@@ -781,7 +781,7 @@ void dc_dmub_setup_subvp_dmub_command(struct dc *dc,
// Store the original watermark value for this SubVP config so we can lower it when the
// MCLK switch starts
wm_val_refclk = context->bw_ctx.bw.dcn.watermarks.a.cstate_pstate.pstate_change_ns *
- dc->res_pool->ref_clocks.dchub_ref_clock_inKhz / 1000 / 1000;
+ (dc->res_pool->ref_clocks.dchub_ref_clock_inKhz / 1000) / 1000;
cmd.fw_assisted_mclk_switch_v2.config_data.watermark_a_cache = wm_val_refclk < 0xFFFF ? wm_val_refclk : 0xFFFF;
}