drm/amdgpu/vcn3.0: add wptr/rptr reset/update for share memory
authorSonny Jiang <sonny.jiang@amd.com>
Sun, 31 Jan 2021 14:44:51 +0000 (09:44 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 Feb 2021 14:28:55 +0000 (09:28 -0500)
commitb2576c3bf4ce9b992e1c1fbb1cffe0d606702621
treead8130a04413ff727893286244dd0a3979bb8f11
parent4588f7b7dd5f09e70b6e223490a0d054c3d64071
drm/amdgpu/vcn3.0: add wptr/rptr reset/update for share memory

Because of dpg, the rptr/wptr need to be saved on fw shared memory,
and restore them back in RBC_RB_RPTR/WPTR in kernel at power up.

Signed-off-by: Sonny Jiang <sonny.jiang@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h
drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c