All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/v3d: Fix calling drm_sched_resubmit_jobs for same sched.
@ 2019-03-12 16:57 Andrey Grodzovsky
       [not found] ` <1552409822-17230-1-git-send-email-andrey.grodzovsky-5C7GfCeVMHo@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Andrey Grodzovsky @ 2019-03-12 16:57 UTC (permalink / raw)
  To: dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW,
	amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW,
	tomeu-XCtybt49RKsYaV1qd6yewg, eric-WhKQ6XTQaPysTnJN9+BGXg
  Cc: Andrey Grodzovsky

Also stop calling drm_sched_increase_karma multiple times.

Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
---
 drivers/gpu/drm/v3d/v3d_sched.c | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)

diff --git a/drivers/gpu/drm/v3d/v3d_sched.c b/drivers/gpu/drm/v3d/v3d_sched.c
index 4704b2d..ce7c737b 100644
--- a/drivers/gpu/drm/v3d/v3d_sched.c
+++ b/drivers/gpu/drm/v3d/v3d_sched.c
@@ -231,20 +231,17 @@ v3d_gpu_reset_for_timeout(struct v3d_dev *v3d, struct drm_sched_job *sched_job)
 	mutex_lock(&v3d->reset_lock);
 
 	/* block scheduler */
-	for (q = 0; q < V3D_MAX_QUEUES; q++) {
-		struct drm_gpu_scheduler *sched = &v3d->queue[q].sched;
-
-		drm_sched_stop(sched);
+	for (q = 0; q < V3D_MAX_QUEUES; q++)
+		drm_sched_stop(&v3d->queue[q].sched);
 
-		if(sched_job)
-			drm_sched_increase_karma(sched_job);
-	}
+	if(sched_job)
+		drm_sched_increase_karma(sched_job);
 
 	/* get the GPU back into the init state */
 	v3d_reset(v3d);
 
 	for (q = 0; q < V3D_MAX_QUEUES; q++)
-		drm_sched_resubmit_jobs(sched_job->sched);
+		drm_sched_resubmit_jobs(&v3d->queue[q].sched);
 
 	/* Unblock schedulers and restart their jobs. */
 	for (q = 0; q < V3D_MAX_QUEUES; q++) {
-- 
2.7.4

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-03-13 18:49 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-12 16:57 [PATCH] drm/v3d: Fix calling drm_sched_resubmit_jobs for same sched Andrey Grodzovsky
     [not found] ` <1552409822-17230-1-git-send-email-andrey.grodzovsky-5C7GfCeVMHo@public.gmane.org>
2019-03-12 17:33   ` Eric Anholt
     [not found]     ` <87imworo9v.fsf-WhKQ6XTQaPysTnJN9+BGXg@public.gmane.org>
2019-03-12 17:48       ` Grodzovsky, Andrey
     [not found]         ` <CY4PR12MB1446C0DAFA3349227DEB9B0AEA490-rpdhrqHFk070Y0OdeIqGUgdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2019-03-13 16:13           ` Eric Anholt
     [not found]             ` <87lg1ioipw.fsf-WhKQ6XTQaPysTnJN9+BGXg@public.gmane.org>
2019-03-13 16:36               ` Grodzovsky, Andrey
     [not found]                 ` <fc067a25-260f-d056-f22c-10d9aac7a612-5C7GfCeVMHo@public.gmane.org>
2019-03-13 17:53                   ` Eric Anholt
2019-03-13 18:49                     ` Grodzovsky, Andrey
2019-03-13  8:25   ` Christian König

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.