Commit 28741299 authored by Daniel Sa's avatar Daniel Sa Committed by Alex Deucher

drm/amd/display: Fetch Mall caps from DC

[Why]
When performing P-State switching with Subvp on 8k (downscaled to 4k).
corruption can be seen on the screen. MALL data was not being fetched
from DC, and the system things there is more MALL space then what is
actually available.

[How]
Read MALL size from dc caps.
Reviewed-by: default avatarDillon Varone <dillon.varone@amd.com>
Acked-by: default avatarZaeem Mohamed <zaeem.mohamed@amd.com>
Signed-off-by: default avatarDaniel Sa <daniel.sa@amd.com>
Tested-by: default avatarDaniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 5d74be8c
...@@ -306,7 +306,7 @@ void dml21_apply_soc_bb_overrides(struct dml2_initialize_instance_in_out *dml_in ...@@ -306,7 +306,7 @@ void dml21_apply_soc_bb_overrides(struct dml2_initialize_instance_in_out *dml_in
if (in_dc->ctx->dc_bios->vram_info.num_chans) { if (in_dc->ctx->dc_bios->vram_info.num_chans) {
dml_clk_table->dram_config.channel_count = in_dc->ctx->dc_bios->vram_info.num_chans; dml_clk_table->dram_config.channel_count = in_dc->ctx->dc_bios->vram_info.num_chans;
//dml_soc_bb->mall_allocated_for_dcn_mbytes = TODO; dml_soc_bb->mall_allocated_for_dcn_mbytes = in_dc->caps.mall_size_total / 1048576;
} }
if (in_dc->ctx->dc_bios->vram_info.dram_channel_width_bytes) { if (in_dc->ctx->dc_bios->vram_info.dram_channel_width_bytes) {
......
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