From: Alex Deucher Date: Tue, 27 Mar 2018 22:06:52 +0000 (-0500) Subject: drm/amdgpu/vcn1: add emit_reg_write_reg_wait ring callback X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=f58b85e3ec0e3d3ddeff6eb16ace23a42516ae70;p=openwrt%2Fstaging%2Fblogic.git drm/amdgpu/vcn1: add emit_reg_write_reg_wait ring callback This adds support for writing and reading back using the helper since the engines doesn't have a oneshot packet. Reviewed-by: Huang Rui Reviewed-by: Christian König Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c b/drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c index 8c132673bc79..d9a15338db7e 100644 --- a/drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c +++ b/drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c @@ -1139,6 +1139,7 @@ static const struct amdgpu_ring_funcs vcn_v1_0_enc_ring_vm_funcs = { .end_use = amdgpu_vcn_ring_end_use, .emit_wreg = vcn_v1_0_enc_ring_emit_wreg, .emit_reg_wait = vcn_v1_0_enc_ring_emit_reg_wait, + .emit_reg_write_reg_wait = amdgpu_ring_emit_reg_write_reg_wait_helper, }; static void vcn_v1_0_set_dec_ring_funcs(struct amdgpu_device *adev)