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>
This commit is contained in:
Le Ma 2018-11-15 18:56:17 +08:00 committed by Alex Deucher
parent 3d81f67a1b
commit 5cd54ab85d
1 changed files with 6 additions and 6 deletions

View File

@ -211,17 +211,17 @@ static u32 sdma_v4_0_get_reg_offset(struct amdgpu_device *adev,
case 1: case 1:
return (adev->reg_offset[SDMA1_HWIP][0][0] + offset); return (adev->reg_offset[SDMA1_HWIP][0][0] + offset);
case 2: case 2:
return (adev->reg_offset[SDMA2_HWIP][0][0] + offset); return (adev->reg_offset[SDMA2_HWIP][0][1] + offset);
case 3: case 3:
return (adev->reg_offset[SDMA3_HWIP][0][0] + offset); return (adev->reg_offset[SDMA3_HWIP][0][1] + offset);
case 4: case 4:
return (adev->reg_offset[SDMA4_HWIP][0][0] + offset); return (adev->reg_offset[SDMA4_HWIP][0][1] + offset);
case 5: case 5:
return (adev->reg_offset[SDMA5_HWIP][0][0] + offset); return (adev->reg_offset[SDMA5_HWIP][0][1] + offset);
case 6: case 6:
return (adev->reg_offset[SDMA6_HWIP][0][0] + offset); return (adev->reg_offset[SDMA6_HWIP][0][1] + offset);
case 7: case 7:
return (adev->reg_offset[SDMA7_HWIP][0][0] + offset); return (adev->reg_offset[SDMA7_HWIP][0][1] + offset);
default: default:
break; break;
} }