Commit 0b36603c authored by Alex Deucher's avatar Alex Deucher

drm/amdgpu/display: fix 64 bit divide

Use proper helper for 32 bit.
Reviewed-by: default avatarHarry Wentland <harry.wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 05ba0095
...@@ -197,7 +197,9 @@ void dce11_pplib_apply_display_requirements( ...@@ -197,7 +197,9 @@ void dce11_pplib_apply_display_requirements(
*/ */
if (ASICREV_IS_VEGA20_P(dc->ctx->asic_id.hw_internal_rev) && (context->stream_count >= 2)) { if (ASICREV_IS_VEGA20_P(dc->ctx->asic_id.hw_internal_rev) && (context->stream_count >= 2)) {
pp_display_cfg->min_memory_clock_khz = max(pp_display_cfg->min_memory_clock_khz, pp_display_cfg->min_memory_clock_khz = max(pp_display_cfg->min_memory_clock_khz,
(uint32_t) (dc->bw_vbios->high_yclk.value / memory_type_multiplier / 10000)); (uint32_t) div64_s64(
div64_s64(dc->bw_vbios->high_yclk.value,
memory_type_multiplier), 10000));
} else { } else {
pp_display_cfg->min_memory_clock_khz = context->bw_ctx.bw.dce.yclk_khz pp_display_cfg->min_memory_clock_khz = context->bw_ctx.bw.dce.yclk_khz
/ memory_type_multiplier; / memory_type_multiplier;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment