<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<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 style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
Thanks,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
Do we know when those changes will make it back to amd-staging-drm-next ?</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Christian König <ckoenig.leichtzumerken@gmail.com><br>
<b>Sent:</b> Wednesday, May 5, 2021 12:27 AM<br>
<b>To:</b> Alex Deucher <alexdeucher@gmail.com><br>
<b>Cc:</b> Deng, Emily <Emily.Deng@amd.com>; Deucher, Alexander <Alexander.Deucher@amd.com>; amd-gfx list <amd-gfx@lists.freedesktop.org>; Sun, Roy <Roy.Sun@amd.com>; Nieto, David M <David.Nieto@amd.com><br>
<b>Subject:</b> Re: [PATCH 1/2] drm/scheduler: Change scheduled fence track</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">I had to rebase them and was on sick leave last week.<br>
<br>
Changed a few things on patch #1 and pushed the result a minute ago.<br>
<br>
Christian.<br>
<br>
Am 04.05.21 um 22:23 schrieb Alex Deucher:<br>
> Did you push this yet? I don't see it in drm-misc.<br>
><br>
> Thanks,<br>
><br>
> Alex<br>
><br>
> On Wed, Apr 28, 2021 at 5:06 AM Christian König<br>
> <ckoenig.leichtzumerken@gmail.com> wrote:<br>
>> Well none. As I said I will push this upstream through drm-misc-next.<br>
>><br>
>> Christian.<br>
>><br>
>> Am 28.04.21 um 10:32 schrieb Deng, Emily:<br>
>><br>
>> [AMD Official Use Only - Internal Distribution Only]<br>
>><br>
>><br>
>> Hi Alex and Christian,<br>
>><br>
>> What extra work Roy need to do about this patch? And fdinfo?<br>
>><br>
>><br>
>><br>
>> Best wishes<br>
>><br>
>> Emily Deng<br>
>><br>
>> From: amd-gfx <amd-gfx-bounces@lists.freedesktop.org> On Behalf Of Deucher, Alexander<br>
>> Sent: Tuesday, April 27, 2021 3:52 AM<br>
>> To: Christian König <ckoenig.leichtzumerken@gmail.com><br>
>> Cc: Sun, Roy <Roy.Sun@amd.com>; amd-gfx list <amd-gfx@lists.freedesktop.org>; Nieto, David M <David.Nieto@amd.com><br>
>> Subject: Re: [PATCH 1/2] drm/scheduler: Change scheduled fence track<br>
>><br>
>><br>
>><br>
>> [AMD Official Use Only - Internal Distribution Only]<br>
>><br>
>><br>
>><br>
>> [AMD Official Use Only - Internal Distribution Only]<br>
>><br>
>><br>
>><br>
>> Fair point. Either way works for me.<br>
>><br>
>><br>
>><br>
>> Alex<br>
>><br>
>> ________________________________<br>
>><br>
>> From: Christian König <ckoenig.leichtzumerken@gmail.com><br>
>> Sent: Monday, April 26, 2021 3:48 PM<br>
>> To: Deucher, Alexander <Alexander.Deucher@amd.com><br>
>> Cc: amd-gfx list <amd-gfx@lists.freedesktop.org>; Sun, Roy <Roy.Sun@amd.com>; Nieto, David M <David.Nieto@amd.com><br>
>> Subject: Re: [PATCH 1/2] drm/scheduler: Change scheduled fence track<br>
>><br>
>><br>
>><br>
>> My concern is more to get this tested from more people than just AMD.<br>
>><br>
>> Christian.<br>
>><br>
>> Am 26.04.21 um 21:40 schrieb Deucher, Alexander:<br>
>><br>
>> [AMD Official Use Only - Internal Distribution Only]<br>
>><br>
>><br>
>><br>
>> That said, it would be easier for me to merge through the AMD tree since a relatively big AMD feature depends on it. Not sure how much conflict potential there is if this goes through the AMD tree.<br>
>><br>
>><br>
>><br>
>> Alex<br>
>><br>
>><br>
>><br>
>> ________________________________<br>
>><br>
>> From: amd-gfx <amd-gfx-bounces@lists.freedesktop.org> on behalf of Deucher, Alexander <Alexander.Deucher@amd.com><br>
>> Sent: Monday, April 26, 2021 3:24 PM<br>
>> To: Christian König <ckoenig.leichtzumerken@gmail.com><br>
>> Cc: amd-gfx list <amd-gfx@lists.freedesktop.org>; Sun, Roy <Roy.Sun@amd.com>; Nieto, David M <David.Nieto@amd.com><br>
>> Subject: Re: [PATCH 1/2] drm/scheduler: Change scheduled fence track<br>
>><br>
>><br>
>><br>
>> [AMD Official Use Only - Internal Distribution Only]<br>
>><br>
>><br>
>><br>
>> [AMD Official Use Only - Internal Distribution Only]<br>
>><br>
>><br>
>><br>
>> No objections from me.<br>
>><br>
>><br>
>><br>
>> Thanks!<br>
>><br>
>><br>
>><br>
>> Alex<br>
>><br>
>><br>
>><br>
>> ________________________________<br>
>><br>
>> From: Christian König <ckoenig.leichtzumerken@gmail.com><br>
>> Sent: Monday, April 26, 2021 2:49 AM<br>
>> To: Deucher, Alexander <Alexander.Deucher@amd.com><br>
>> Cc: Nieto, David M <David.Nieto@amd.com>; Sun, Roy <Roy.Sun@amd.com>; amd-gfx list <amd-gfx@lists.freedesktop.org><br>
>> Subject: Re: [PATCH 1/2] drm/scheduler: Change scheduled fence track<br>
>><br>
>><br>
>><br>
>> Hey Alex,<br>
>><br>
>> any objections that we merge those two patches through drm-misc-next?<br>
>><br>
>> Thanks,<br>
>> Christian.<br>
>><br>
>> Am 26.04.21 um 08:27 schrieb Roy Sun:<br>
>>> Update the timestamp of scheduled fence on HW<br>
>>> completion of the previous fences<br>
>>><br>
>>> This allow more accurate tracking of the fence<br>
>>> execution in HW<br>
>>><br>
>>> Signed-off-by: David M Nieto <david.nieto@amd.com><br>
>>> Signed-off-by: Roy Sun <Roy.Sun@amd.com><br>
>>> ---<br>
>>> drivers/gpu/drm/scheduler/sched_main.c | 12 ++++++++++--<br>
>>> 1 file changed, 10 insertions(+), 2 deletions(-)<br>
>>><br>
>>> diff --git a/drivers/gpu/drm/scheduler/sched_main.c b/drivers/gpu/drm/scheduler/sched_main.c<br>
>>> index 92d8de24d0a1..f8e39ab0c41b 100644<br>
>>> --- a/drivers/gpu/drm/scheduler/sched_main.c<br>
>>> +++ b/drivers/gpu/drm/scheduler/sched_main.c<br>
>>> @@ -515,7 +515,7 @@ void drm_sched_resubmit_jobs(struct drm_gpu_scheduler *sched)<br>
>>> EXPORT_SYMBOL(drm_sched_resubmit_jobs);<br>
>>><br>
>>> /**<br>
>>> - * drm_sched_resubmit_jobs_ext - helper to relunch certain number of jobs from mirror ring list<br>
>>> + * drm_sched_resubmit_jobs_ext - helper to relaunch certain number of jobs from pending list<br>
>>> *<br>
>>> * @sched: scheduler instance<br>
>>> * @max: job numbers to relaunch<br>
>>> @@ -671,7 +671,7 @@ drm_sched_select_entity(struct drm_gpu_scheduler *sched)<br>
>>> static struct drm_sched_job *<br>
>>> drm_sched_get_cleanup_job(struct drm_gpu_scheduler *sched)<br>
>>> {<br>
>>> - struct drm_sched_job *job;<br>
>>> + struct drm_sched_job *job, *next;<br>
>>><br>
>>> /*<br>
>>> * Don't destroy jobs while the timeout worker is running OR thread<br>
>>> @@ -690,6 +690,14 @@ drm_sched_get_cleanup_job(struct drm_gpu_scheduler *sched)<br>
>>> if (job && dma_fence_is_signaled(&job->s_fence->finished)) {<br>
>>> /* remove job from pending_list */<br>
>>> list_del_init(&job->list);<br>
>>> We just need to record the scheduled time of the next job. So we<br>
>>> need not to check the rest job.<br>
>>> + /* account for the next fence in the queue */<br>
>>> + next = list_first_entry_or_null(&sched->pending_list,<br>
>>> + struct drm_sched_job, list);<br>
>>> + if (next && test_bit(DMA_FENCE_FLAG_TIMESTAMP_BIT,<br>
>>> + &job->s_fence->finished.flags)) {<br>
>>> + next->s_fence->scheduled.timestamp =<br>
>>> + job->s_fence->finished.timestamp;<br>
>>> + }<br>
>>> } else {<br>
>>> job = NULL;<br>
>>> /* queue timeout for next job */<br>
>><br>
>><br>
>><br>
>> _______________________________________________<br>
>> amd-gfx mailing list<br>
>> amd-gfx@lists.freedesktop.org<br>
>> <a href="https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&data=04%7C01%7CDavid.Nieto%40amd.com%7C7e7e640953954b94e2d408d90f9744a1%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637557964635531548%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=Yk2XfdFcbeimlcdh3VXWldS1cRD9LA32PMlN0kbfUME%3D&reserved=0">
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&data=04%7C01%7CDavid.Nieto%40amd.com%7C7e7e640953954b94e2d408d90f9744a1%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637557964635531548%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=Yk2XfdFcbeimlcdh3VXWldS1cRD9LA32PMlN0kbfUME%3D&reserved=0</a><br>
<br>
</div>
</span></font></div>
</div>
</body>
</html>