From: Le Ma <le.ma@xxxxxxx> Signed-off-by: Le Ma <le.ma@xxxxxxx> Reviewed-by: Hawking Zhang <Hawking.Zhang@xxxxxxx> Signed-off-by: Alex Deucher <alexander.deucher@xxxxxxx> --- drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 12 ++++++------ 1 file 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 fc01502baf00..974228b918d2 100644 --- a/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c +++ b/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c @@ -208,17 +208,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; } -- 2.20.1 _______________________________________________ amd-gfx mailing list amd-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/amd-gfx