drm/amdgpu: set sdma irq src num according to sdma instances
authorHawking Zhang <Hawking.Zhang@amd.com>
Fri, 19 Jul 2019 11:09:38 +0000 (19:09 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 22 Jul 2019 19:57:31 +0000 (14:57 -0500)
commitd52d6de2809a31b58a62f9ecba58bfd8fbf1bc63
treee6d63913c6d76dd460628761c1fe3754f4d3bba0
parentb629167d686787507f35a8bfb46b8b12f4f26eb7
drm/amdgpu: set sdma irq src num according to sdma instances

Otherwise, it will cause driver access non-existing sdma registers
in gpu reset code path

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