Skip to contentSkip to conversation

drm/amdgpu: fix broken UVD startup in phys mode

PATCH In review Alex Deucher 2 participants 2 messages Oct 11, 2016 – Oct 12, 2016 1 message not in the archive

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

PATCH 1/1 drm/amdgpu: fix broken UVD startup in phys mode

Add type, align_mask and nop to the physical mode UVD funcs as well.

---
 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c +3 -0
index 15708f8..8f8a5dd 100644
@@ -1022,6 +1022,9 @@ const struct amd_ip_funcs uvd_v6_0_ip_funcs = {
 };
 
 static const struct amdgpu_ring_funcs uvd_v6_0_ring_phys_funcs = {
+	.type = AMDGPU_RING_TYPE_UVD,
+	.align_mask = 0xf,
+	.nop = PACKET0(mmUVD_NO_OP, 0),
 	.get_rptr = uvd_v6_0_ring_get_rptr,
 	.get_wptr = uvd_v6_0_ring_get_wptr,
 	.set_wptr = uvd_v6_0_ring_set_wptr,
Signature · 6 lines
2.5.5

_______________________________________________
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): 1476214757-5273-1-git-send-email-alexander.deucher-5C7GfCeVMHo@public.gmane.org

Reviewed-by
#2 lore raw

Am 11.10.2016 um 21:39 schrieb Alex Deucher:

Quoted 3 lines

Add type, align_mask and nop to the physical mode UVD funcs as well.

Quoted 9 lines
---
  drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c | 3 +++
  1 file changed, 3 insertions(+)
drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c +0 -0
index 15708f8..8f8a5dd 100644

drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c const struct amd_ip_funcs uvd_v6_0_ip_funcs = { · line 1030

Quoted 9 lines
drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c +3 -0
@@ -1022,6 +1022,9 @@ const struct amd_ip_funcs uvd_v6_0_ip_funcs = {
  };
 
  static const struct amdgpu_ring_funcs uvd_v6_0_ring_phys_funcs = {
+	.type = AMDGPU_RING_TYPE_UVD,
+	.align_mask = 0xf,
+	.nop = PACKET0(mmUVD_NO_OP, 0),
  	.get_rptr = uvd_v6_0_ring_get_rptr,
  	.get_wptr = uvd_v6_0_ring_get_wptr,
  	.set_wptr = uvd_v6_0_ring_set_wptr,

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