drm/amdgpu/atomfirmware: fix vram_info fetching for renoir
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 25 Jun 2020 21:55:57 +0000 (17:55 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 2 Jul 2020 16:02:57 +0000 (12:02 -0400)
Renoir uses integrated_system_info table v12.  The table
has the same layout as v11 with respect to this data.  Just
reuse the existing code for v12 for stable.

Fixes incorrectly reported vram info in the driver output.

Acked-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c

index e249b22fef549dc5d3b2eb94204b00965c2f88ba..4b8aad1c0b51611cf44ced8f6c774985d77f2aad 100644 (file)
@@ -206,6 +206,7 @@ amdgpu_atomfirmware_get_vram_info(struct amdgpu_device *adev,
                                (mode_info->atom_context->bios + data_offset);
                        switch (crev) {
                        case 11:
+                       case 12:
                                mem_channel_number = igp_info->v11.umachannelnumber;
                                /* channel width is 64 */
                                if (vram_width)