drm/amdgpu/ring: add two interfaces to support r/w registers with kiq
authorXiangliang Yu <Xiangliang.Yu@amd.com>
Tue, 10 Jan 2017 04:53:52 +0000 (12:53 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 27 Jan 2017 16:13:21 +0000 (11:13 -0500)
commitb6091c1217e16606ee231c053cde000d8fa1f674
tree652d20276624fe45d24fc8b2fc6d90dda242e9d1
parent2493664f0594d4140a5025de8e419ca2c16ccee9
drm/amdgpu/ring: add two interfaces to support r/w registers with kiq

During virtual runtime, need to send command to kiq ring to
read/write GPU registers. Add two interface to support the two
actions.

Signed-off-by: Xiangliang Yu <Xiangliang.Yu@amd.com>
Signed-off-by: Monk Linu <Monk.Liu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-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_ring.h