drm/amdgpu: add kiq version interface for RREG32/WREG32
authorchen gong <curry.gong@amd.com>
Wed, 15 Jan 2020 06:44:43 +0000 (14:44 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 22 Jan 2020 21:34:22 +0000 (16:34 -0500)
commitc68dbcd8f9b0aa01e0459a5841716cb6a2f447b9
treec9532f3709feb8a5c51f921a252b6136ed8a5ab4
parentd33a99c4b63643d3d7a85d4dfb2ac5afb01eebca
drm/amdgpu: add kiq version interface for RREG32/WREG32

Reading some registers by mmio will result in hang when GPU is in
"gfxoff" state.This problem can be solved by GPU in "ring command
packages" way.

Signed-off-by: chen gong <curry.gong@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c