Skip to contentSkip to conversation

drm/amd/amdgpu: vcn10 Add callback for emit_reg_write_reg_wait

PATCH In review Tom St Denis 2 participants 2 messages May 1, 2018 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amd/amdgpu: vcn10 Add callback for emit_reg_write_reg_wait

The callback .emit_reg_write_reg_wait was missing for vcn decode which resulted in a kernel oops.

---
 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c +1 -0
index d9a15338db7e..0501746b6c2c 100644
@@ -1109,6 +1109,7 @@ static const struct amdgpu_ring_funcs vcn_v1_0_dec_ring_vm_funcs = {
 	.end_use = amdgpu_vcn_ring_end_use,
 	.emit_wreg = vcn_v1_0_dec_ring_emit_wreg,
 	.emit_reg_wait = vcn_v1_0_dec_ring_emit_reg_wait,
+	.emit_reg_write_reg_wait = amdgpu_ring_emit_reg_write_reg_wait_helper,
 };
 
 static const struct amdgpu_ring_funcs vcn_v1_0_enc_ring_vm_funcs = {
Signature · 6 lines
2.14.3

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): [email protected]

Reviewed-by
#2 lore raw

Andrey

Quoted 13 lines · Tom St Denis

The callback .emit_reg_write_reg_wait was missing for vcn decode which resulted in a kernel oops.

---
  drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c | 1 +
  1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c +0 -0
index d9a15338db7e..0501746b6c2c 100644

drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c static const struct amdgpu_ring_funcs vcn_v1_0_dec_ring_vm_funcs = { · line 1115

Quoted 7 lines
drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c +1 -0
@@ -1109,6 +1109,7 @@ static const struct amdgpu_ring_funcs vcn_v1_0_dec_ring_vm_funcs = {
  	.end_use = amdgpu_vcn_ring_end_use,
  	.emit_wreg = vcn_v1_0_dec_ring_emit_wreg,
  	.emit_reg_wait = vcn_v1_0_dec_ring_emit_reg_wait,
+	.emit_reg_write_reg_wait = amdgpu_ring_emit_reg_write_reg_wait_helper,
  };
 
  static const struct amdgpu_ring_funcs vcn_v1_0_enc_ring_vm_funcs = {

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx