forked from Minki/linux
drm/amdgpu:fix uvd ring fini routine(v2)
fix missing finish uvd enc_ring. v2: since the adev pointer check in already in ring_fini so drop the check outsider Signed-off-by: Monk Liu <Monk.Liu@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
beb8410284
commit
4ff184d70e
@ -269,6 +269,7 @@ int amdgpu_uvd_sw_init(struct amdgpu_device *adev)
|
|||||||
|
|
||||||
int amdgpu_uvd_sw_fini(struct amdgpu_device *adev)
|
int amdgpu_uvd_sw_fini(struct amdgpu_device *adev)
|
||||||
{
|
{
|
||||||
|
int i;
|
||||||
kfree(adev->uvd.saved_bo);
|
kfree(adev->uvd.saved_bo);
|
||||||
|
|
||||||
amd_sched_entity_fini(&adev->uvd.ring.sched, &adev->uvd.entity);
|
amd_sched_entity_fini(&adev->uvd.ring.sched, &adev->uvd.entity);
|
||||||
@ -279,6 +280,9 @@ int amdgpu_uvd_sw_fini(struct amdgpu_device *adev)
|
|||||||
|
|
||||||
amdgpu_ring_fini(&adev->uvd.ring);
|
amdgpu_ring_fini(&adev->uvd.ring);
|
||||||
|
|
||||||
|
for (i = 0; i < AMDGPU_MAX_UVD_ENC_RINGS; ++i)
|
||||||
|
amdgpu_ring_fini(&adev->uvd.ring_enc[i]);
|
||||||
|
|
||||||
release_firmware(adev->uvd.fw);
|
release_firmware(adev->uvd.fw);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user