drm/amdgpu: add vcn jpeg sw finish
authorBoyuan Zhang <boyuan.zhang@amd.com>
Wed, 30 May 2018 19:32:16 +0000 (15:32 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 15 Jun 2018 17:20:37 +0000 (12:20 -0500)
Add software finish for vcn jpeg ring.

v2: remove unnecessary scheduler entity.

Signed-off-by: Boyuan Zhang <boyuan.zhang@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c

index 127e87b470ff4da368c8c1feb0576f0b6cb0c62c..d485a74de44d86f3a67bd820a0134c70efc6bf10 100644 (file)
@@ -119,6 +119,8 @@ int amdgpu_vcn_sw_fini(struct amdgpu_device *adev)
        for (i = 0; i < adev->vcn.num_enc_rings; ++i)
                amdgpu_ring_fini(&adev->vcn.ring_enc[i]);
 
+       amdgpu_ring_fini(&adev->vcn.ring_jpeg);
+
        release_firmware(adev->vcn.fw);
 
        return 0;