drm/amdgpu/vcn:Add ring W/R PTR check for VCN DPG mode stop
authorJames Zhu <[email protected]>
Wed, 3 Oct 2018 21:36:58 +0000 (17:36 -0400)
committerAlex Deucher <[email protected]>
Fri, 12 Oct 2018 17:54:17 +0000 (12:54 -0500)
commit15296db70619984157e60666da5da8994a66870e
treed7f177da7c04e6a7d8ae349dfe76cf7734383d9f
parent5866fb929c90e3189c1abd4d6518712ad56c90b4
drm/amdgpu/vcn:Add ring W/R PTR check for VCN DPG mode stop

Add ring write/read pointer check for VCN dynamic power gate mode
stop,to make sure that no job is left in ring before turn off DPG mode.

Signed-off-by: James Zhu <[email protected]>
Acked-by: Leo Liu <[email protected]>
Acked-by: Alex Deucher <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c