Skip to content

Commit fec05ad

Browse files
Alvin Leealexdeucher
authored andcommitted
drm/amd/display: Use channel_width = 2 for vram table 3.0
VBIOS has suggested to use channel_width=2 for any ASIC that uses vram info 3.0. This is because channel_width in the vram table no longer represents the memory width Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Reviewed-by: Samson Tam <samson.tam@amd.com> Acked-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com> Signed-off-by: Alvin Lee <alvin.lee2@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent d6a5758 commit fec05ad

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2386,7 +2386,13 @@ static enum bp_result get_vram_info_v30(
23862386
return BP_RESULT_BADBIOSTABLE;
23872387

23882388
info->num_chans = info_v30->channel_num;
2389-
info->dram_channel_width_bytes = (1 << info_v30->channel_width) / 8;
2389+
/* As suggested by VBIOS we should always use
2390+
* dram_channel_width_bytes = 2 when using VRAM
2391+
* table version 3.0. This is because the channel_width
2392+
* param in the VRAM info table is changed in 7000 series and
2393+
* no longer represents the memory channel width.
2394+
*/
2395+
info->dram_channel_width_bytes = 2;
23902396

23912397
return result;
23922398
}

0 commit comments

Comments
 (0)