mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-13 14:14:37 +00:00
drm/amdgpu: restore uvd fence seq in uvd resume
otherwise, uvd block will be never powered up in ring begin_use() callback. uvd ring test will be fail in resume in rumtime pm. Signed-off-by: Jim Qu <Jim.Qu@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
8daf94e900
commit
3b1186fd2a
1 changed files with 2 additions and 0 deletions
|
@ -346,6 +346,8 @@ int amdgpu_uvd_resume(struct amdgpu_device *adev)
|
||||||
ptr += le32_to_cpu(hdr->ucode_size_bytes);
|
ptr += le32_to_cpu(hdr->ucode_size_bytes);
|
||||||
}
|
}
|
||||||
memset_io(ptr, 0, size);
|
memset_io(ptr, 0, size);
|
||||||
|
/* to restore uvd fence seq */
|
||||||
|
amdgpu_fence_driver_force_completion(&adev->uvd.ring);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue