drm/amdgpu: fix UVD suspend and resume for VI APU
authorLeo Liu <leo.liu@amd.com>
Fri, 11 Sep 2015 21:09:57 +0000 (17:09 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 23 Sep 2015 21:23:41 +0000 (17:23 -0400)
commit1f4452105ce39786be13b4636251377a30d1286a
tree76621e36140beefbac705c4f8dcb595a948c3303
parent2bd188d0167227932be3cf5b033c0e600b01291f
drm/amdgpu: fix UVD suspend and resume for VI APU

User space passed the same handle before suspend and after resume,
so we have remove the session and handle destroy, and keep the
firmware untouched.

Signed-off-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c