aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/soc15.c
diff options
context:
space:
mode:
authorFeifei Xu <Feifei.Xu@amd.com>2018-03-23 14:44:28 -0500
committerAlex Deucher <alexander.deucher@amd.com>2018-08-27 11:10:23 -0500
commitfe3c948918e7e3d18eed85571d32a2f7c4b63a84 (patch)
tree91ef11ac659b48921fb43f262d75df35e9ec0f1b /drivers/gpu/drm/amd/amdgpu/soc15.c
parentRevert "drm/amdgpu: Add nbio support for vega20 (v2)" (diff)
downloadlinux-dev-fe3c948918e7e3d18eed85571d32a2f7c4b63a84.tar.xz
linux-dev-fe3c948918e7e3d18eed85571d32a2f7c4b63a84.zip
drm/amdgpu: Add nbio 7.4 support for vega20 (v3)
Some register offset in nbio v7.4 are different with v7.0. We need a seperate nbio_v7_4.c for vega20. v2: fix doorbell range for sdma (Alex) v3: squash in static fix (kbuild test robot) 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 6bd80369685e..73c85a0282d0 100644
--- a/drivers/gpu/drm/amd/amdgpu/soc15.c
+++ b/drivers/gpu/drm/amd/amdgpu/soc15.c
@@ -497,6 +497,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_4_funcs;
else
adev->nbio_funcs = &nbio_v6_1_funcs;