drm/amdgpu/gfx9: add emit_reg_write_reg_wait ring callback (v2)
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 27 Mar 2018 20:07:50 +0000 (15:07 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 May 2018 18:43:13 +0000 (13:43 -0500)
commit10ed3c3190d38f189ed6857cecca1a2eb6de33a3
tree8403b4414ac9b6fdd7cd46bd3adc5b9ed3a1ef67
parent828536385ab0d25b5ddd7153347df04ea3a6961d
drm/amdgpu/gfx9: add emit_reg_write_reg_wait ring callback (v2)

This adds support for writing and reading back in a single
oneshot packet.  This is needed to send a tlb invalidation
and wait for ack in a single operation.

v2: squash the gfx ring stall fix

Reviewed-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Emily Deng <Emily.Deng@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c