OSDN Git Service

drm/amdgpu: add emit_reg_write_reg_wait ring callback
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 27 Mar 2018 16:58:14 +0000 (11:58 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 May 2018 18:43:13 +0000 (13:43 -0500)
commit828536385ab0d25b5ddd7153347df04ea3a6961d
tree94745c42689a8b2a48bf012572eb4efae5094ad8
parent9da00630188da6e8ad1596c2b58809c833b16154
drm/amdgpu: add emit_reg_write_reg_wait ring callback

This callback writes a value to a register and then reads
back another register and waits for a value in a single
operation.

Provide a helper function using two operations for engines
that don't support this opertion.

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