summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
authorAlvin Lee <alvin.lee2@amd.com>2023-12-04 15:19:34 -0500
committerAlex Deucher <alexander.deucher@amd.com>2023-12-19 15:18:14 -0500
commit9dda0c07f00f511c112af135aa1ee349345037fa (patch)
tree2e4b351d3239cf3bd3ab19518e1c4d6d2b4c3d76 /drivers/gpu/drm
parentceb6a6f023fd3e8b07761ed900352ef574010bcb (diff)
downloadlinux-stable-9dda0c07f00f511c112af135aa1ee349345037fa.tar.gz
linux-stable-9dda0c07f00f511c112af135aa1ee349345037fa.tar.bz2
linux-stable-9dda0c07f00f511c112af135aa1ee349345037fa.zip
drm/amd/display: Revert " drm/amd/display: Use channel_width = 2 for vram table 3.0"
[Description] Revert commit fec05adc40c2 ("drm/amd/display: Use channel_width = 2 for vram table 3.0") Because the issue is being fixed from VBIOS side. Reviewed-by: Samson Tam <samson.tam@amd.com> Acked-by: Wayne Lin <wayne.lin@amd.com> Signed-off-by: Alvin Lee <alvin.lee2@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r--drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c b/drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c
index 6a96810a477e..7cdb1a8a0ba0 100644
--- a/drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c
+++ b/drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c
@@ -2386,13 +2386,7 @@ static enum bp_result get_vram_info_v30(
return BP_RESULT_BADBIOSTABLE;
info->num_chans = info_v30->channel_num;
- /* As suggested by VBIOS we should always use
- * dram_channel_width_bytes = 2 when using VRAM
- * table version 3.0. This is because the channel_width
- * param in the VRAM info table is changed in 7000 series and
- * no longer represents the memory channel width.
- */
- info->dram_channel_width_bytes = 2;
+ info->dram_channel_width_bytes = (1 << info_v30->channel_width) / 8;
return result;
}