]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd/display: pass calculated dram_speed_mts to dml2
authorCharlene Liu <Charlene.Liu@amd.com>
Mon, 13 Jan 2025 16:57:54 +0000 (11:57 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 13 Feb 2025 02:04:10 +0000 (21:04 -0500)
commitb40d022ec06ade9f6c809091dc188422a0f0946d
tree31c37605c004dcbf43a355e54139ace1acb50079
parent51d1b338541dea83fec8e6f95d3e46fa469a73a8
drm/amd/display: pass calculated dram_speed_mts to dml2

[why]
currently dml2 is using a hard coded 16 to convert memclk to dram_speed_mts.
for apu, this depends on wck_ratio.

change to pass the already calculated dram_speed_mts from fpu to dml2.

v2: use existing calculation of dram_speed_mts for now to avoid regression

Signed-off-by: Charlene Liu <Charlene.Liu@amd.com>
Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Reviewed-by: Roman Li <Roman.Li@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml/dcn35/dcn35_fpu.c
drivers/gpu/drm/amd/display/dc/dml/dcn351/dcn351_fpu.c
drivers/gpu/drm/amd/display/dc/dml2/dml2_wrapper.h