]> www.infradead.org Git - users/jedix/linux-maple.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)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 25 Jun 2024 18:11:46 +0000 (14:11 -0400)
commitf6f49dda49db72e7a0b4ca32c77391d5ff5ce232
tree3561aa4ecd80533cb261a4d8234696b108737888
parentc223376b3019a00a0241faea0bc8c966738d1cc5
drm/amdgpu/atomfirmware: fix parsing of vram_info

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
drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c