drm/amdgpu: Fix sdma doorbell range setting
authorOak Zeng <Oak.Zeng@amd.com>
Tue, 18 Dec 2018 02:03:45 +0000 (20:03 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 25 Jan 2019 21:15:34 +0000 (16:15 -0500)
commit8987e2e256be3551436a5abc3c48d0eb4d81084e
treedc3dc02301782ec0a9e4ad4dfa8baf00d5a09b92
parentfd4855409f6ebe015406cd2b2ffa4fee4cd1f4a7
drm/amdgpu: Fix sdma doorbell range setting

Different ASIC has different SDMA queue number so
different SDMA doorbell range. Introduce an extra
parameter to sdma_doorbell_range function and set
sdma doorbell range correctly.

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>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/nbio_v6_1.c
drivers/gpu/drm/amd/amdgpu/nbio_v7_0.c
drivers/gpu/drm/amd/amdgpu/nbio_v7_4.c
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c