summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/vega20_reg_init.c
diff options
context:
space:
mode:
authorOak Zeng <Oak.Zeng@amd.com>2018-12-18 04:42:58 +0300
committerAlex Deucher <alexander.deucher@amd.com>2019-01-26 00:15:34 +0300
commitfd4855409f6ebe015406cd2b2ffa4fee4cd1f4a7 (patch)
tree1d1085140b0476a064c10907b62b65b00d1ad724 /drivers/gpu/drm/amd/amdgpu/vega20_reg_init.c
parent1f46df61a148da7263165079b4874d61525c8ae1 (diff)
downloadlinux-fd4855409f6ebe015406cd2b2ffa4fee4cd1f4a7.tar.xz
drm/amdgpu: Add per device sdma_doorbell_range field
Different ASIC has different sdma doorbell range. Add a per device sdma_doorbell_range field and initialize it. Signed-off-by: Oak Zeng <Oak.Zeng@amd.com> Reviewed-by: Philip Yang <Philip.Yang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/vega20_reg_init.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/vega20_reg_init.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/vega20_reg_init.c b/drivers/gpu/drm/amd/amdgpu/vega20_reg_init.c
index 63c542cfabfa..53716c593b2b 100644
--- a/drivers/gpu/drm/amd/amdgpu/vega20_reg_init.c
+++ b/drivers/gpu/drm/amd/amdgpu/vega20_reg_init.c
@@ -86,5 +86,6 @@ void vega20_doorbell_index_init(struct amdgpu_device *adev)
adev->doorbell_index.uvd_vce.vce_ring4_5 = AMDGPU_VEGA20_DOORBELL64_VCE_RING4_5;
adev->doorbell_index.uvd_vce.vce_ring6_7 = AMDGPU_VEGA20_DOORBELL64_VCE_RING6_7;
adev->doorbell_index.max_assignment = AMDGPU_VEGA20_DOORBELL_MAX_ASSIGNMENT << 1;
+ adev->doorbell_index.sdma_doorbell_range = 20;
}