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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jul 2020 07:39:39 +0000 (09:39 +0200)
commitfceff9423f428a62a20bb8fb8f66e6a9f906f12c
tree77e29869fad296d0d418dab0a2fe7569a1a48129
parentc337fc540bb99e476e33153a9196eba4749a707a
drm/amdgpu/atomfirmware: fix vram_info fetching for renoir

commit d7a6634a4cfba073ff6a526cb4265d6e58ece234 upstream.

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