diff options
author | Christian König <christian.koenig@amd.com> | 2018-01-26 12:45:32 +0100 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-02-19 14:19:08 -0500 |
commit | c1e877da570cf3bb4cf88c3306ac8d68ca51b6ad (patch) | |
tree | b21c927eea40275d72ce90aa9f454714868977d3 /drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h | |
parent | 491355937a4b0079213f37669e601eb46c08b05b (diff) | |
download | lwn-c1e877da570cf3bb4cf88c3306ac8d68ca51b6ad.tar.gz lwn-c1e877da570cf3bb4cf88c3306ac8d68ca51b6ad.zip |
drm/amdgpu: add new emit_reg_wait callback
Allows us to wait for a register value/mask on a ring.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Felix Kuehling <felix.kuehling@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h index 70d05ec7bc07..867f53332305 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h @@ -150,6 +150,8 @@ struct amdgpu_ring_funcs { void (*emit_cntxcntl) (struct amdgpu_ring *ring, uint32_t flags); void (*emit_rreg)(struct amdgpu_ring *ring, uint32_t reg); void (*emit_wreg)(struct amdgpu_ring *ring, uint32_t reg, uint32_t val); + void (*emit_reg_wait)(struct amdgpu_ring *ring, uint32_t reg, + uint32_t val, uint32_t mask); void (*emit_tmz)(struct amdgpu_ring *ring, bool start); /* priority functions */ void (*set_priority) (struct amdgpu_ring *ring, |