From: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
To: "Christian König" <ckoenig.leichtzumerken@gmail.com>,
"Christian König" <christian.koenig@amd.com>,
"Tvrtko Ursulin" <tursulin@igalia.com>,
dri-devel@lists.freedesktop.org
Cc: kernel-dev@igalia.com, Alex Deucher <alexander.deucher@amd.com>,
Luben Tuikov <ltuikov89@gmail.com>,
Matthew Brost <matthew.brost@intel.com>,
Daniel Vetter <daniel.vetter@ffwll.ch>,
amd-gfx@lists.freedesktop.org, stable@vger.kernel.org
Subject: Re: [PATCH] drm/scheduler: Fix drm_sched_entity_set_priority()
Date: Fri, 26 Jul 2024 10:02:02 +0100 [thread overview]
Message-ID: <d4eb469f-7fdb-4906-aec8-0e36529b10b0@igalia.com> (raw)
In-Reply-To: <fb7b7ce4-294e-463b-93b7-565099e1c2d8@gmail.com>
On 24/07/2024 12:16, Christian König wrote:
> Am 24.07.24 um 10:16 schrieb Tvrtko Ursulin:
>> [SNIP]
>>> Absolutely.
>>
>> Absolutely good and absolutely me, or absolutely you? :)
>
> You, I don't even have time to finish all the stuff I already started :/
Okay, I think I can squeeze it in.
>> These are the TODO points and their opens:
>>
>> - Adjust amdgpu_ctx_set_entity_priority() to call
>> drm_sched_entity_modify_sched() regardless of the hw_type - to fix
>> priority changes on a single sched other than gfx or compute.
>
> Either that or to stop using the scheduler priority to implement
> userspace priorities and always use different HW queues for that.
>
>>
>> - Document sched_list array lifetime must align with the entity and
>> adjust the callers.
>>
>> Open:
>>
>> Do you still oppose keeping sched_list for num_scheds == 1?
>
> Not if you can fix up all callers.
>
>> If so do you propose drm_sched_entity_modify_sched() keeps disagreeing
>> with drm_sched_entity_init() on this detail? And keep the "one shot
>> single sched_list" quirk in? Why is that nicer than simply keeping the
>> list and remove that quirk? Once lifetime rules are clear it IMO is
>> okay to always keep the list.
>
> Yeah if every caller of drm_sched_entity_init() can be fixed I'm fine
> with that as well.
Okay so I will tackle the above few first.
>>
>> - Remove drm_sched_entity_set_priority().
>>
>> Open:
>>
>> Should we at this point also modify amdgpu_device_init_schedulers() to
>> stop initialising schedulers with DRM_SCHED_PRIORITY_COUNT run queues?
>
> One step at a time.
And leave this for later.
Regards,
Tvrtko
prev parent reply other threads:[~2024-07-26 9:02 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-19 9:47 [PATCH] drm/scheduler: Fix drm_sched_entity_set_priority() Tvrtko Ursulin
2024-07-19 13:02 ` Christian König
2024-07-19 15:18 ` Christian König
2024-07-19 17:39 ` Matthew Brost
2024-07-22 8:12 ` AW: " Koenig, Christian
2024-07-22 13:52 ` Tvrtko Ursulin
2024-07-22 14:06 ` Christian König
2024-07-22 14:43 ` Tvrtko Ursulin
2024-07-22 15:13 ` Christian König
2024-07-24 8:16 ` Tvrtko Ursulin
2024-07-24 11:16 ` Christian König
2024-07-26 9:02 ` Tvrtko Ursulin [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d4eb469f-7fdb-4906-aec8-0e36529b10b0@igalia.com \
--to=tvrtko.ursulin@igalia.com \
--cc=alexander.deucher@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=christian.koenig@amd.com \
--cc=ckoenig.leichtzumerken@gmail.com \
--cc=daniel.vetter@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=kernel-dev@igalia.com \
--cc=ltuikov89@gmail.com \
--cc=matthew.brost@intel.com \
--cc=stable@vger.kernel.org \
--cc=tursulin@igalia.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox