]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amdgpu/atomfirmware: fix parsing of vram_info
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Jun 2024 17:48:26 +0000 (13:48 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Jul 2024 07:31:58 +0000 (09:31 +0200)
commitc92a15b3b2964e2f04e4423fcef85f94f03ddda7
tree7b10d1036be37700e07622e3542a107d0fef43ee
parent30cbf6ffafbbdd8a6e4e5f0a2e9a9827ee83f3ad
drm/amdgpu/atomfirmware: fix parsing of vram_info

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@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c