drm/amdgpu/gmc9: use amdgpu_ring_emit_reg_write_reg_wait in gpu tlb flush
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 27 Mar 2018 22:10:56 +0000 (17:10 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 May 2018 18:43:15 +0000 (13:43 -0500)
commitf8bc903707ae87342b97528037e27bf190051c11
tree1157b63e3a5bd82663c338af3bddbd2b1489827f
parentf58b85e3ec0e3d3ddeff6eb16ace23a42516ae70
drm/amdgpu/gmc9: use amdgpu_ring_emit_reg_write_reg_wait in gpu tlb flush

Use amdgpu_ring_emit_reg_write_reg_wait.  On engines that support it,
it provides a write and wait in a single packet which avoids a missed
ack if a world switch happens between the request and waiting for the
ack.

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>
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c