From: Alex Deucher <alexander.deucher@xxxxxxx> commit f6f49dda49db72e7a0b4ca32c77391d5ff5ce232 upstream. v3.x changed the how vram width was encoded. The previous implementation actually worked correctly for most boards. Fix the implementation to work correctly everywhere. This fixes the vram width reported in the kernel log on some boards. Reviewed-by: Hawking Zhang <Hawking.Zhang@xxxxxxx> Signed-off-by: Alex Deucher <alexander.deucher@xxxxxxx> Cc: stable@xxxxxxxxxxxxxxx Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c @@ -399,7 +399,7 @@ amdgpu_atomfirmware_get_vram_info(struct mem_channel_number = vram_info->v30.channel_num; mem_channel_width = vram_info->v30.channel_width; if (vram_width) - *vram_width = mem_channel_number * (1 << mem_channel_width); + *vram_width = mem_channel_number * 16; break; default: return -EINVAL; Patches currently in stable-queue which might be from alexander.deucher@xxxxxxx are queue-6.9/drm-radeon-radeon_display-decrease-the-size-of-alloc.patch queue-6.9/drm-amd-display-skip-pipe-if-the-pipe-idx-not-set-pr.patch queue-6.9/drm-amdgpu-atomfirmware-fix-parsing-of-vram_info.patch queue-6.9/drm-amdgpu-avoid-using-null-object-of-framebuffer.patch queue-6.9/drm-amd-display-correct-hostvm-flag.patch queue-6.9/drm-amd-display-send-dp_total_lttpr_cnt-during-detection-if-lttpr-is-present.patch queue-6.9/drm-amdgpu-fix-pci-state-save-during-mode-1-reset.patch