drm/amdgpu/vcn2.0: stall DPG when WPTR/RPTR reset
authorJames Zhu <James.Zhu@amd.com>
Tue, 18 Feb 2020 22:44:39 +0000 (17:44 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Apr 2020 18:44:45 +0000 (14:44 -0400)
commitef563ff403404ef2f234abe79bdd9f04ab6481c9
treeef1626b951b135cecb7e3e7d2a51f43cc8a81465
parente3b41d82dabaf6f1da94df8339afeee66e9b1a7e
drm/amdgpu/vcn2.0: stall DPG when WPTR/RPTR reset

Add vcn dpg harware synchronization to fix race condition
issue between vcn driver and hardware.

Signed-off-by: James Zhu <James.Zhu@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c