drm/amdgpu: fix unknown vram mem type for vega20
authorHawking Zhang <Hawking.Zhang@amd.com>
Mon, 17 Sep 2018 12:19:48 +0000 (20:19 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 19 Sep 2018 17:37:39 +0000 (12:37 -0500)
commit27e39d3dd365d661b5f6b5b09ad86ee142e11de0
treef645189b4effd175b3cce8e32f43f33986dd1f7c
parent801281fe09ffc8720336131669a946276e21fe4e
drm/amdgpu: fix unknown vram mem type for vega20

vega20 should use umc_info v3_3 instead of v3_1. There are
serveral versions of umc_info for vega series. Compared to
various versions of these structures, vram_info strucure is
unified for vega series. The patch switch to query mem_type
from vram_info structure for all the vega series dGPU.

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c