Lines Matching defs:bad
294 * Remove the bad job so it cannot be freed by concurrent
323 * @bad: The job guilty of time out
325 * Increment on every hang caused by the 'bad' job. If this exceeds the hang
329 void drm_sched_increase_karma(struct drm_sched_job *bad)
334 struct drm_gpu_scheduler *sched = bad->sched;
336 /* don't increase @bad's karma if it's from KERNEL RQ,
340 if (bad->s_priority != DRM_SCHED_PRIORITY_KERNEL) {
341 atomic_inc(&bad->karma);
348 if (bad->s_fence->scheduled.context ==
350 if (atomic_read(&bad->karma) >
351 bad->sched->hang_limit)
369 * @bad: job which caused the time out
372 * Note: bad job will not be freed as it might be used later and so it's
377 void drm_sched_stop(struct drm_gpu_scheduler *sched, struct drm_sched_job *bad)
384 * Reinsert back the bad job here - now it's safe as
386 * bad job at this point - we parked (waited for) any in progress
390 if (bad && bad->sched == sched)
395 list_add(&bad->node, &sched->ring_mirror_list);
426 * We must keep bad job alive for later use during
430 if (bad != s_job)