diff options
author | Le Ma <le.ma@amd.com> | 2018-11-15 18:56:17 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-07-18 14:18:03 -0500 |
commit | 5cd54ab85d6148b666f8ca1e5eb94fae5e4d392a (patch) | |
tree | fd0bf4761462872745168d9242bedb66eefe603d /drivers/gpu | |
parent | 3d81f67a1b1bfc789651e02dfe9705bb8483f133 (diff) | |
download | linux-5cd54ab85d6148b666f8ca1e5eb94fae5e4d392a.tar.bz2 |
drm/amdgpu: correct Arcturus SDMA address space base index
Signed-off-by: Le Ma <le.ma@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c b/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c index 647a4e916ec5..b97306f1df11 100644 --- a/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c +++ b/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c @@ -211,17 +211,17 @@ static u32 sdma_v4_0_get_reg_offset(struct amdgpu_device *adev, case 1: return (adev->reg_offset[SDMA1_HWIP][0][0] + offset); case 2: - return (adev->reg_offset[SDMA2_HWIP][0][0] + offset); + return (adev->reg_offset[SDMA2_HWIP][0][1] + offset); case 3: - return (adev->reg_offset[SDMA3_HWIP][0][0] + offset); + return (adev->reg_offset[SDMA3_HWIP][0][1] + offset); case 4: - return (adev->reg_offset[SDMA4_HWIP][0][0] + offset); + return (adev->reg_offset[SDMA4_HWIP][0][1] + offset); case 5: - return (adev->reg_offset[SDMA5_HWIP][0][0] + offset); + return (adev->reg_offset[SDMA5_HWIP][0][1] + offset); case 6: - return (adev->reg_offset[SDMA6_HWIP][0][0] + offset); + return (adev->reg_offset[SDMA6_HWIP][0][1] + offset); case 7: - return (adev->reg_offset[SDMA7_HWIP][0][0] + offset); + return (adev->reg_offset[SDMA7_HWIP][0][1] + offset); default: break; } |