<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:DengXian;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Segoe UI";
        panose-1:2 11 5 2 4 2 4 2 2 3;}
@font-face
        {font-family:"\@DengXian";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<p style="font-family:Arial;font-size:11pt;color:#0078D7;margin:5pt;" align="Left">
[AMD Official Use Only - Internal Distribution Only]<br>
</p>
<br>
<div>
<div class="WordSection1">
<p class="MsoNormal">Hi, Andrey,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I just submitted the V7 patch in which I wrapped the increase_karma func and resubmit_job func.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
<p class="MsoNormal">Jack<o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> amd-gfx <amd-gfx-bounces@lists.freedesktop.org>
<b>On Behalf Of </b>Zhang, Jack (Jian)<br>
<b>Sent:</b> Thursday, March 11, 2021 11:28 AM<br>
<b>To:</b> Grodzovsky, Andrey <Andrey.Grodzovsky@amd.com>; amd-gfx@lists.freedesktop.org; Koenig, Christian <Christian.Koenig@amd.com>; Liu, Monk <Monk.Liu@amd.com>; Deng, Emily <Emily.Deng@amd.com><br>
<b>Subject:</b> RE: [PATCH v6] drm/amd/amdgpu implement tdr advanced mode<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p style="margin:5.0pt"><span style="font-family:"Arial",sans-serif;color:#0078D7">[AMD Official Use Only - Internal Distribution Only]<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p style="margin:5.0pt"><span style="font-family:"Arial",sans-serif;color:#0078D7">[AMD Official Use Only - Internal Distribution Only]<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">Ok, that will do the trick. Thank you!<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Jack<o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Grodzovsky, Andrey <<a href="mailto:Andrey.Grodzovsky@amd.com">Andrey.Grodzovsky@amd.com</a>>
<br>
<b>Sent:</b> Thursday, March 11, 2021 11:24 AM<br>
<b>To:</b> Zhang, Jack (Jian) <<a href="mailto:Jack.Zhang1@amd.com">Jack.Zhang1@amd.com</a>>;
<a href="mailto:amd-gfx@lists.freedesktop.org">amd-gfx@lists.freedesktop.org</a>; Koenig, Christian <<a href="mailto:Christian.Koenig@amd.com">Christian.Koenig@amd.com</a>>; Liu, Monk <<a href="mailto:Monk.Liu@amd.com">Monk.Liu@amd.com</a>>; Deng, Emily <<a href="mailto:Emily.Deng@amd.com">Emily.Deng@amd.com</a>><br>
<b>Subject:</b> Re: [PATCH v6] drm/amd/amdgpu implement tdr advanced mode<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Segoe UI",sans-serif;color:black">You can just rename drm_sched_resubmit_jobs to </span><span style="font-family:"Times New Roman",serif;color:black;background:white">drm_sched_resubmit_jobs_imp
 and create a wrapper function</span><span style="color:black;background:white"> </span><span style="font-family:"Times New Roman",serif;color:black;background:white">drm_sched_resubmit_jobs which will call that function with MAX_INT and so no need for code
 change in other driver will be needed. For amdgpu you call directly drm_sched_resubmit_jobs_imp with 1 and MAX_INT.</span><span style="color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Times New Roman",serif;color:black;background:white">Andrey</span><span style="color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="2" width="98%" align="center">
</div>
<div id="divRplyFwdMsg">
<p class="MsoNormal"><b><span style="color:black">From:</span></b><span style="color:black"> Zhang, Jack (Jian) <<a href="mailto:Jack.Zhang1@amd.com">Jack.Zhang1@amd.com</a>><br>
<b>Sent:</b> 10 March 2021 22:05<br>
<b>To:</b> Grodzovsky, Andrey <<a href="mailto:Andrey.Grodzovsky@amd.com">Andrey.Grodzovsky@amd.com</a>>;
<a href="mailto:amd-gfx@lists.freedesktop.org">amd-gfx@lists.freedesktop.org</a> <<a href="mailto:amd-gfx@lists.freedesktop.org">amd-gfx@lists.freedesktop.org</a>>; Koenig, Christian <<a href="mailto:Christian.Koenig@amd.com">Christian.Koenig@amd.com</a>>;
 Liu, Monk <<a href="mailto:Monk.Liu@amd.com">Monk.Liu@amd.com</a>>; Deng, Emily <<a href="mailto:Emily.Deng@amd.com">Emily.Deng@amd.com</a>><br>
<b>Subject:</b> RE: [PATCH v6] drm/amd/amdgpu implement tdr advanced mode</span> <o:p>
</o:p></p>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><a name="BM_BEGIN"></a><span style="font-family:"Times New Roman",serif">[AMD Official Use Only - Internal Distribution Only]<br>
<br>
Hi, Andrey,<br>
<br>
Thank you for your review.<br>
<br>
>> This is identical to drm_sched_resubmit_jobs in all but the 'int max' handling, can't you reuse drm_sched_resubmit_jobs by passing max argument==1 for the find guilty run and then, for the later normal run passing max==MAX_INT to avoid break the iteration
 to early ?<br>
<br>
Due to C language doesn't support function overloading, we couldn’t define function like the following(compiler error):<br>
void drm_sched_resubmit_jobs(struct drm_gpu_scheduler *sched, int max = INT_MAX);<br>
<br>
We have to rewrite every vender's  code where call the drm_sched_resubmit_jobs if we defined the function like this.<br>
void drm_sched_resubmit_jobs(struct drm_gpu_scheduler *sched, int max);<br>
<br>
Meanwhile, I also explored the Variable Arguments in C, But it still cannot meet the needs very well.<br>
<br>
Do you know some other methods that could help us to make this happen?<br>
Otherwise, I'm afraid we have to define a separate ways as patch V6 did.<br>
<br>
Thanks,<br>
Jack<br>
<br>
-----Original Message-----<br>
From: Grodzovsky, Andrey <<a href="mailto:Andrey.Grodzovsky@amd.com">Andrey.Grodzovsky@amd.com</a>><br>
Sent: Thursday, March 11, 2021 12:19 AM<br>
To: Zhang, Jack (Jian) <<a href="mailto:Jack.Zhang1@amd.com">Jack.Zhang1@amd.com</a>>;
<a href="mailto:amd-gfx@lists.freedesktop.org">amd-gfx@lists.freedesktop.org</a>; Koenig, Christian <<a href="mailto:Christian.Koenig@amd.com">Christian.Koenig@amd.com</a>>; Liu, Monk <<a href="mailto:Monk.Liu@amd.com">Monk.Liu@amd.com</a>>; Deng, Emily <<a href="mailto:Emily.Deng@amd.com">Emily.Deng@amd.com</a>><br>
Subject: Re: [PATCH v6] drm/amd/amdgpu implement tdr advanced mode<br>
<br>
<br>
<br>
On 2021-03-10 8:33 a.m., Jack Zhang wrote:<br>
> [Why]<br>
> Previous tdr design treats the first job in job_timeout as the bad job.<br>
> But sometimes a later bad compute job can block a good gfx job and<br>
> cause an unexpected gfx job timeout because gfx and compute ring share<br>
> internal GC HW mutually.<br>
><br>
> [How]<br>
> This patch implements an advanced tdr mode.It involves an additinal<br>
> synchronous pre-resubmit step(Step0 Resubmit) before normal resubmit<br>
> step in order to find the real bad job.<br>
><br>
> 1. At Step0 Resubmit stage, it synchronously submits and pends for the<br>
> first job being signaled. If it gets timeout, we identify it as guilty<br>
> and do hw reset. After that, we would do the normal resubmit step to<br>
> resubmit left jobs.<br>
><br>
> 2. Re-insert Bailing job to mirror_list, and leave it to be handled by<br>
> the main reset thread.<br>
><br>
> 3. For whole gpu reset(vram lost), do resubmit as the old way.<br>
><br>
> Signed-off-by: Jack Zhang <<a href="mailto:Jack.Zhang1@amd.com">Jack.Zhang1@amd.com</a>><br>
> ---<br>
>   drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 72 ++++++++++++++++++++-<br>
>   drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c    |  2 +-<br>
>   drivers/gpu/drm/scheduler/sched_main.c     | 75 ++++++++++++++++++++++<br>
>   include/drm/gpu_scheduler.h                |  2 +<br>
>   4 files changed, 148 insertions(+), 3 deletions(-)<br>
><br>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c<br>
> b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c<br>
> index e247c3a2ec08..dac0a242e5f5 100644<br>
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c<br>
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c<br>
> @@ -4639,6 +4639,7 @@ int amdgpu_device_gpu_recover(struct amdgpu_device *adev,<br>
>   int i, r = 0;<br>
>   bool need_emergency_restart = false;<br>
>   bool audio_suspended = false;<br>
> +int tmp_vram_lost_counter;<br>
><br>
>   /*<br>
>    * Special case: RAS triggered and full reset isn't supported @@<br>
> -4689,9 +4690,14 @@ int amdgpu_device_gpu_recover(struct amdgpu_device *adev,<br>
>   dev_info(adev->dev, "Bailing on TDR for s_job:%llx, as another already in progress",<br>
>   job ? job->base.id : -1);<br>
><br>
> -/* even we skipped this reset, still need to set the job to guilty */<br>
> -if (job)<br>
> +if (job) {<br>
> +/* re-insert node to avoid memory leak */<br>
> +spin_lock(&job->base.sched->job_list_lock);<br>
> +list_add(&job->base.node, &job->base.sched->pending_list);<br>
> +spin_unlock(&job->base.sched->job_list_lock);<br>
> +/* even we skipped this reset, still need to set the job to guilty<br>
> +*/<br>
>   drm_sched_increase_karma(&job->base);<br>
> +}<br>
<br>
I think this piece should be in a standalone patch as it comes to fix a bug of leaking jobs and not directly related to find actual guilty job. Also, this is not the only place where the problem arises - it also arises in other drivers where they check that
 guilty job's fence already signaled and bail out before reinsertion of bad job to mirror list. Seems to me better fix would be to handle this within scheduler code by adding specific return value to drm_sched_backend_ops.timedout_job marking that the code
 terminated early - before calling drm_sched_stop and so drm_sched_job_timedout would know this and then reinsert the job back to mirror_list itself.<br>
<br>
>   goto skip_recovery;<br>
>   }<br>
><br>
> @@ -4788,6 +4794,7 @@ int amdgpu_device_gpu_recover(struct amdgpu_device *adev,<br>
>   }<br>
>   }<br>
><br>
> +tmp_vram_lost_counter = atomic_read(&((adev)->vram_lost_counter));<br>
>   /* Actual ASIC resets if needed.*/<br>
>   /* TODO Implement XGMI hive reset logic for SRIOV */<br>
>   if (amdgpu_sriov_vf(adev)) {<br>
> @@ -4805,6 +4812,67 @@ int amdgpu_device_gpu_recover(struct amdgpu_device *adev,<br>
>   /* Post ASIC reset for all devs .*/<br>
>   list_for_each_entry(tmp_adev, device_list_handle, gmc.xgmi.head) {<br>
><br>
> +if (amdgpu_gpu_recovery == 2 &&<br>
> +!(tmp_vram_lost_counter < atomic_read(&adev->vram_lost_counter)))<br>
> +{<br>
> +<br>
> +for (i = 0; i < AMDGPU_MAX_RINGS; ++i) {<br>
> +struct amdgpu_ring *ring = tmp_adev->rings[i];<br>
> +int ret = 0;<br>
> +struct drm_sched_job *s_job;<br>
> +<br>
> +if (!ring || !ring->sched.thread)<br>
> +continue;<br>
> +<br>
> +/* No point to resubmit jobs if we didn't HW reset*/<br>
> +if (!tmp_adev->asic_reset_res && !job_signaled) {<br>
> +<br>
> +s_job = list_first_entry_or_null(&ring->sched.pending_list, struct drm_sched_job, list);<br>
> +if (s_job == NULL)<br>
> +continue;<br>
> +<br>
> +/* clear job's guilty and depend the folowing step to decide the real one */<br>
> +drm_sched_reset_karma(s_job);<br>
> +drm_sched_resubmit_jobs2(&ring->sched, 1);<br>
> +ret = dma_fence_wait_timeout(s_job->s_fence->parent, false,<br>
> +ring->sched.timeout);<br>
> +<br>
> +if (ret == 0) { /* timeout */<br>
> +DRM_ERROR("Found the real bad job! ring:%s, job_id:%llx\n", ring->sched.name, s_job->id);<br>
> +/* set guilty */<br>
> +drm_sched_increase_karma(s_job);<br>
> +<br>
> +/* do hw reset */<br>
> +if (amdgpu_sriov_vf(adev)) {<br>
> +amdgpu_virt_fini_data_exchange(adev);<br>
> +r = amdgpu_device_reset_sriov(adev, false);<br>
> +if (r)<br>
> +adev->asic_reset_res = r;<br>
> +} else {<br>
> +r  = amdgpu_do_asic_reset(hive, device_list_handle, &need_full_reset, false);<br>
> +if (r && r == -EAGAIN)<br>
> +goto retry;<br>
> +}<br>
> +<br>
> +/* add reset counter so that the following resubmitted job could flush vmid */<br>
> +atomic_inc(&tmp_adev->gpu_reset_counter);<br>
> +continue;<br>
> +}<br>
> +<br>
> +/* got the hw fence, signal finished fence */<br>
> +atomic_dec(&ring->sched.num_jobs);<br>
> +dma_fence_get(&s_job->s_fence->finished);<br>
> +dma_fence_signal(&s_job->s_fence->finished);<br>
> +dma_fence_put(&s_job->s_fence->finished);<br>
> +<br>
> +<br>
> +/* remove node from list and free the job */<br>
> +spin_lock(&ring->sched.job_list_lock);<br>
> +list_del_init(&s_job->node);<br>
> +spin_unlock(&ring->sched.job_list_lock);<br>
> +ring->sched.ops->free_job(s_job);<br>
> +}<br>
> +}<br>
> +}<br>
> +<br>
>   for (i = 0; i < AMDGPU_MAX_RINGS; ++i) {<br>
>   struct amdgpu_ring *ring = tmp_adev->rings[i];<br>
><br>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c<br>
> b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c<br>
> index 865f924772b0..9c3f4edb7532 100644<br>
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c<br>
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c<br>
> @@ -509,7 +509,7 @@ module_param_named(compute_multipipe, amdgpu_compute_multipipe, int, 0444);<br>
>    * DOC: gpu_recovery (int)<br>
>    * Set to enable GPU recovery mechanism (1 = enable, 0 = disable). The default is -1 (auto, disabled except SRIOV).<br>
>    */<br>
> -MODULE_PARM_DESC(gpu_recovery, "Enable GPU recovery mechanism, (1 =<br>
> enable, 0 = disable, -1 = auto)");<br>
> +MODULE_PARM_DESC(gpu_recovery, "Enable GPU recovery mechanism, (2 =<br>
> +advanced tdr mode, 1 = enable, 0 = disable, -1 = auto)");<br>
>   module_param_named(gpu_recovery, amdgpu_gpu_recovery, int, 0444);<br>
><br>
>   /**<br>
> diff --git a/drivers/gpu/drm/scheduler/sched_main.c<br>
> b/drivers/gpu/drm/scheduler/sched_main.c<br>
> index d82a7ebf6099..340a193b4fb9 100644<br>
> --- a/drivers/gpu/drm/scheduler/sched_main.c<br>
> +++ b/drivers/gpu/drm/scheduler/sched_main.c<br>
> @@ -395,6 +395,81 @@ void drm_sched_increase_karma(struct drm_sched_job *bad)<br>
>   }<br>
>   EXPORT_SYMBOL(drm_sched_increase_karma);<br>
><br>
> +<br>
> +void drm_sched_resubmit_jobs2(struct drm_gpu_scheduler *sched, int<br>
> +max) {<br>
> +struct drm_sched_job *s_job, *tmp;<br>
> +uint64_t guilty_context;<br>
> +bool found_guilty = false;<br>
> +struct dma_fence *fence;<br>
> +int i = 0;<br>
> +<br>
> +list_for_each_entry_safe(s_job, tmp, &sched->pending_list, list) {<br>
> +struct drm_sched_fence *s_fence = s_job->s_fence;<br>
> +<br>
> +if (i >= max)<br>
> +break;<br>
> +<br>
> +if (!found_guilty && atomic_read(&s_job->karma) > sched->hang_limit) {<br>
> +found_guilty = true;<br>
> +guilty_context = s_job->s_fence->scheduled.context;<br>
> +}<br>
> +<br>
> +if (found_guilty && s_job->s_fence->scheduled.context == guilty_context)<br>
> +dma_fence_set_error(&s_fence->finished, -ECANCELED);<br>
> +<br>
> +dma_fence_put(s_job->s_fence->parent);<br>
> +fence = sched->ops->run_job(s_job);<br>
> +i++;<br>
> +<br>
> +if (IS_ERR_OR_NULL(fence)) {<br>
> +if (IS_ERR(fence))<br>
> +dma_fence_set_error(&s_fence->finished, PTR_ERR(fence));<br>
> +<br>
> +s_job->s_fence->parent = NULL;<br>
> +} else {<br>
> +s_job->s_fence->parent = fence;<br>
> +}<br>
> +}<br>
> +}<br>
> +EXPORT_SYMBOL(drm_sched_resubmit_jobs2);<br>
<br>
This is identical to drm_sched_resubmit_jobs in all but the 'int max' handling, can't you reuse drm_sched_resubmit_jobs by passing max argument==1 for the find guilty run and then, for the later normal run passing max==MAX_INT to avoid break the iteration to
 early ?<br>
<br>
> +<br>
> +<br>
> +<br>
> +void drm_sched_reset_karma(struct drm_sched_job *bad) {<br>
> +int i;<br>
> +struct drm_sched_entity *tmp;<br>
> +struct drm_sched_entity *entity;<br>
> +struct drm_gpu_scheduler *sched = bad->sched;<br>
> +<br>
> +/* don't reset @bad's karma if it's from KERNEL RQ,<br>
> + * because sometimes GPU hang would cause kernel jobs (like VM updating jobs)<br>
> + * corrupt but keep in mind that kernel jobs always considered good.<br>
> + */<br>
> +if (bad->s_priority != DRM_SCHED_PRIORITY_KERNEL) {<br>
> +atomic_set(&bad->karma, 0);<br>
> +for (i = DRM_SCHED_PRIORITY_MIN; i < DRM_SCHED_PRIORITY_KERNEL;<br>
> +     i++) {<br>
> +struct drm_sched_rq *rq = &sched->sched_rq[i];<br>
> +<br>
> +spin_lock(&rq->lock);<br>
> +list_for_each_entry_safe(entity, tmp, &rq->entities, list) {<br>
> +if (bad->s_fence->scheduled.context ==<br>
> +entity->fence_context) {<br>
> +if (entity->guilty)<br>
> +atomic_set(entity->guilty, 0);<br>
> +break;<br>
> +}<br>
> +}<br>
> +spin_unlock(&rq->lock);<br>
> +if (&entity->list != &rq->entities)<br>
> +break;<br>
> +}<br>
> +}<br>
> +}<br>
> +EXPORT_SYMBOL(drm_sched_reset_karma);<br>
<br>
Same as above, very similar drm_sched_increase_karma, I would add a flag and just reuse code instead of duplucation.<br>
<br>
Andrey<br>
<br>
> +<br>
>   /**<br>
>    * drm_sched_stop - stop the scheduler<br>
>    *<br>
> diff --git a/include/drm/gpu_scheduler.h b/include/drm/gpu_scheduler.h<br>
> index 1c815e0a14ed..01c609149731 100644<br>
> --- a/include/drm/gpu_scheduler.h<br>
> +++ b/include/drm/gpu_scheduler.h<br>
> @@ -321,7 +321,9 @@ void drm_sched_wakeup(struct drm_gpu_scheduler *sched);<br>
>   void drm_sched_stop(struct drm_gpu_scheduler *sched, struct drm_sched_job *bad);<br>
>   void drm_sched_start(struct drm_gpu_scheduler *sched, bool full_recovery);<br>
>   void drm_sched_resubmit_jobs(struct drm_gpu_scheduler *sched);<br>
> +void drm_sched_resubmit_jobs2(struct drm_gpu_scheduler *sched, int<br>
> +max);<br>
>   void drm_sched_increase_karma(struct drm_sched_job *bad);<br>
> +void drm_sched_reset_karma(struct drm_sched_job *bad);<br>
>   bool drm_sched_dependency_optimized(struct dma_fence* fence,<br>
>       struct drm_sched_entity *entity);<br>
>   void drm_sched_fault(struct drm_gpu_scheduler *sched);<br>
></span><span style="font-size:12.0pt;font-family:"Times New Roman",serif"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>