Skip to contentSkip to conversation

amd/amdgpu: add missing break statement

PATCH In review Nirmoy Das 2 participants 2 messages Dec 16, 2019

Subsystems (2)
lore
Share & tools
lore

Nirmoy Das

author
#0 lore raw

PATCH 1/1 amd/amdgpu: add missing break statement

Fixes 8c066a8c7a9ac9a66 (amd/amdgpu: add sched array to IPs with multiple run-queues)
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c +1 -0
index f5fe60465524..63f6365312d5 100644
@@ -160,6 +160,7 @@ static int amdgpu_ctx_init(struct amdgpu_device *adev,
 		case AMDGPU_HW_IP_VCN_ENC:
 			scheds = adev->vcn.vcn_enc_sched;
 			num_scheds =  adev->vcn.num_vcn_enc_sched;
+			break;
 		case AMDGPU_HW_IP_VCN_JPEG:
 			scheds = adev->jpeg.jpeg_sched;
 			num_scheds =  adev->jpeg.num_jpeg_sched;
Signature · 6 lines
2.24.0

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Nirmoy Das
Fixes 8c066a8c7a9ac9a66 (amd/amdgpu: add sched array to IPs with multiple run-queues)
Quoted 19 lines
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c +1 -1
index f5fe60465524..63f6365312d5 100644
@@ -160,6 +160,7 @@ static int amdgpu_ctx_init(struct amdgpu_device *adev,
                case AMDGPU_HW_IP_VCN_ENC:
                        scheds = adev->vcn.vcn_enc_sched;
                        num_scheds =  adev->vcn.num_vcn_enc_sched;
+                       break;
                case AMDGPU_HW_IP_VCN_JPEG:
                        scheds = adev->jpeg.jpeg_sched;
                        num_scheds =  adev->jpeg.num_jpeg_sched;
--

2.24.0

Quoted 4 lines

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

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