]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7063ebded34924dbd65f71072a9988bc98d2ed6a
treef645189b4effd175b3cce8e32f43f33986dd1f7c
parenta90005b1debabc8cf9f76eef43c167f632395d91
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