summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/soc15.c
diff options
context:
space:
mode:
authorFeifei Xu2018-03-23 20:44:28 +0100
committerAlex Deucher2018-05-17 17:13:18 +0200
commita95d89e2d8e268d90d0f97c9c57d61006eec78c3 (patch)
tree56b939cc38561c2d85ee9aff9cbda279d97a5a70 /drivers/gpu/drm/amd/amdgpu/soc15.c
parentdrm/amdgpu/soc15: Add ip blocks for vega20 (v2) (diff)
downloadkernel-qcow2-linux-a95d89e2d8e268d90d0f97c9c57d61006eec78c3.tar.gz
kernel-qcow2-linux-a95d89e2d8e268d90d0f97c9c57d61006eec78c3.tar.xz
kernel-qcow2-linux-a95d89e2d8e268d90d0f97c9c57d61006eec78c3.zip
drm/amdgpu: Add nbio support for vega20 (v2)
Some register offset in nbio v7.4 are different with v7.0. v2: Use nbio7.0 for now. TODO: add a new nbio 7.4 module (Alex) Signed-off-by: Feifei Xu <Feifei.Xu@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/soc15.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/soc15.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c b/drivers/gpu/drm/amd/amdgpu/soc15.c
index 10337fb3fc1f..4e065c68b86c 100644
--- a/drivers/gpu/drm/amd/amdgpu/soc15.c
+++ b/drivers/gpu/drm/amd/amdgpu/soc15.c
@@ -496,6 +496,8 @@ int soc15_set_ip_blocks(struct amdgpu_device *adev)
if (adev->flags & AMD_IS_APU)
adev->nbio_funcs = &nbio_v7_0_funcs;
+ else if (adev->asic_type == CHIP_VEGA20)
+ adev->nbio_funcs = &nbio_v7_0_funcs;
else
adev->nbio_funcs = &nbio_v6_1_funcs;