drm/amdgpu/vcn2: don't access register when power gated
authorJack Xiao <Jack.Xiao@amd.com>
Thu, 18 Apr 2019 09:37:14 +0000 (17:37 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 21 Jun 2019 23:59:27 +0000 (18:59 -0500)
commit0b8794e252fcf47d840985dde1d7a4f8802b61a7
tree8db5f25c5459002a62ea2511723218bd2fa21658
parenta8179d62fbbd1e6fd73690fe0888f9471c5d7e94
drm/amdgpu/vcn2: don't access register when power gated

It will cause bus hang to access register UVD_STATUS
when VCN is in the state of power gated.

Signed-off-by: Jack Xiao <Jack.Xiao@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c