diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2017-12-15 16:18:00 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-12-18 10:59:40 -0500 |
commit | 2990a1fc012e1bb4523a54d2c27eebc21a2c7e7e (patch) | |
tree | e07272cef54677f36064067882d5135ce5c69422 /drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c | |
parent | f5ec697e37023ce60dc1c38bf6b2bf32de767376 (diff) |
drm/amdgpu: rename ip block helper functions
add device to the name for consistency.
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c index 916e51670bfd..bd6d3a1c1d65 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c | |||
@@ -244,7 +244,7 @@ int amdgpu_uvd_sw_init(struct amdgpu_device *adev) | |||
244 | } | 244 | } |
245 | 245 | ||
246 | /* from uvd v5.0 HW addressing capacity increased to 64 bits */ | 246 | /* from uvd v5.0 HW addressing capacity increased to 64 bits */ |
247 | if (!amdgpu_ip_block_version_cmp(adev, AMD_IP_BLOCK_TYPE_UVD, 5, 0)) | 247 | if (!amdgpu_device_ip_block_version_cmp(adev, AMD_IP_BLOCK_TYPE_UVD, 5, 0)) |
248 | adev->uvd.address_64_bit = true; | 248 | adev->uvd.address_64_bit = true; |
249 | 249 | ||
250 | switch (adev->asic_type) { | 250 | switch (adev->asic_type) { |
@@ -1153,10 +1153,10 @@ static void amdgpu_uvd_idle_work_handler(struct work_struct *work) | |||
1153 | } else { | 1153 | } else { |
1154 | amdgpu_asic_set_uvd_clocks(adev, 0, 0); | 1154 | amdgpu_asic_set_uvd_clocks(adev, 0, 0); |
1155 | /* shutdown the UVD block */ | 1155 | /* shutdown the UVD block */ |
1156 | amdgpu_set_powergating_state(adev, AMD_IP_BLOCK_TYPE_UVD, | 1156 | amdgpu_device_ip_set_powergating_state(adev, AMD_IP_BLOCK_TYPE_UVD, |
1157 | AMD_PG_STATE_GATE); | 1157 | AMD_PG_STATE_GATE); |
1158 | amdgpu_set_clockgating_state(adev, AMD_IP_BLOCK_TYPE_UVD, | 1158 | amdgpu_device_ip_set_clockgating_state(adev, AMD_IP_BLOCK_TYPE_UVD, |
1159 | AMD_CG_STATE_GATE); | 1159 | AMD_CG_STATE_GATE); |
1160 | } | 1160 | } |
1161 | } else { | 1161 | } else { |
1162 | schedule_delayed_work(&adev->uvd.idle_work, UVD_IDLE_TIMEOUT); | 1162 | schedule_delayed_work(&adev->uvd.idle_work, UVD_IDLE_TIMEOUT); |
@@ -1176,10 +1176,10 @@ void amdgpu_uvd_ring_begin_use(struct amdgpu_ring *ring) | |||
1176 | amdgpu_dpm_enable_uvd(adev, true); | 1176 | amdgpu_dpm_enable_uvd(adev, true); |
1177 | } else { | 1177 | } else { |
1178 | amdgpu_asic_set_uvd_clocks(adev, 53300, 40000); | 1178 | amdgpu_asic_set_uvd_clocks(adev, 53300, 40000); |
1179 | amdgpu_set_clockgating_state(adev, AMD_IP_BLOCK_TYPE_UVD, | 1179 | amdgpu_device_ip_set_clockgating_state(adev, AMD_IP_BLOCK_TYPE_UVD, |
1180 | AMD_CG_STATE_UNGATE); | 1180 | AMD_CG_STATE_UNGATE); |
1181 | amdgpu_set_powergating_state(adev, AMD_IP_BLOCK_TYPE_UVD, | 1181 | amdgpu_device_ip_set_powergating_state(adev, AMD_IP_BLOCK_TYPE_UVD, |
1182 | AMD_PG_STATE_UNGATE); | 1182 | AMD_PG_STATE_UNGATE); |
1183 | } | 1183 | } |
1184 | } | 1184 | } |
1185 | } | 1185 | } |