drm/radeon: free uvd ring on unload
Need to free the uvd ring. Also reshuffle gart tear down to happen after uvd tear down. Signed-off-by: Jérôme Glisse <jglisse@redhat.com> Cc: stable@vger.kernel.org Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Родитель
9ef4e1d000
Коммит
d965441342
|
@ -5475,9 +5475,9 @@ void evergreen_fini(struct radeon_device *rdev)
|
||||||
radeon_wb_fini(rdev);
|
radeon_wb_fini(rdev);
|
||||||
radeon_ib_pool_fini(rdev);
|
radeon_ib_pool_fini(rdev);
|
||||||
radeon_irq_kms_fini(rdev);
|
radeon_irq_kms_fini(rdev);
|
||||||
evergreen_pcie_gart_fini(rdev);
|
|
||||||
uvd_v1_0_fini(rdev);
|
uvd_v1_0_fini(rdev);
|
||||||
radeon_uvd_fini(rdev);
|
radeon_uvd_fini(rdev);
|
||||||
|
evergreen_pcie_gart_fini(rdev);
|
||||||
r600_vram_scratch_fini(rdev);
|
r600_vram_scratch_fini(rdev);
|
||||||
radeon_gem_fini(rdev);
|
radeon_gem_fini(rdev);
|
||||||
radeon_fence_driver_fini(rdev);
|
radeon_fence_driver_fini(rdev);
|
||||||
|
|
|
@ -171,6 +171,8 @@ void radeon_uvd_fini(struct radeon_device *rdev)
|
||||||
|
|
||||||
radeon_bo_unref(&rdev->uvd.vcpu_bo);
|
radeon_bo_unref(&rdev->uvd.vcpu_bo);
|
||||||
|
|
||||||
|
radeon_ring_fini(rdev, &rdev->ring[R600_RING_TYPE_UVD_INDEX]);
|
||||||
|
|
||||||
release_firmware(rdev->uvd_fw);
|
release_firmware(rdev->uvd_fw);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1955,9 +1955,9 @@ void rv770_fini(struct radeon_device *rdev)
|
||||||
radeon_wb_fini(rdev);
|
radeon_wb_fini(rdev);
|
||||||
radeon_ib_pool_fini(rdev);
|
radeon_ib_pool_fini(rdev);
|
||||||
radeon_irq_kms_fini(rdev);
|
radeon_irq_kms_fini(rdev);
|
||||||
rv770_pcie_gart_fini(rdev);
|
|
||||||
uvd_v1_0_fini(rdev);
|
uvd_v1_0_fini(rdev);
|
||||||
radeon_uvd_fini(rdev);
|
radeon_uvd_fini(rdev);
|
||||||
|
rv770_pcie_gart_fini(rdev);
|
||||||
r600_vram_scratch_fini(rdev);
|
r600_vram_scratch_fini(rdev);
|
||||||
radeon_gem_fini(rdev);
|
radeon_gem_fini(rdev);
|
||||||
radeon_fence_driver_fini(rdev);
|
radeon_fence_driver_fini(rdev);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче