Re: [PATCH 1/4] drm/sched: optimize drm_sched_job_add_dependency a bit

2025-05-26 Thread Philipp Stanner
+Cc Matthew, again :) On Thu, 2025-05-22 at 18:19 +0200, Christian König wrote: > On 5/22/25 16:27, Tvrtko Ursulin wrote: > > > > On 22/05/2025 14:41, Christian König wrote: > > > Since we already iterated over the xarray we know at which index > > > the new > > > entry should be stored. So inste

Re: [PATCH 1/4] drm/sched: optimize drm_sched_job_add_dependency a bit

2025-05-23 Thread Tvrtko Ursulin
On 22/05/2025 17:19, Christian König wrote: On 5/22/25 16:27, Tvrtko Ursulin wrote: On 22/05/2025 14:41, Christian König wrote: Since we already iterated over the xarray we know at which index the new entry should be stored. So instead of using xa_alloc use xa_store and write into the index

Re: [PATCH 1/4] drm/sched: optimize drm_sched_job_add_dependency a bit

2025-05-22 Thread Christian König
On 5/22/25 16:27, Tvrtko Ursulin wrote: > > On 22/05/2025 14:41, Christian König wrote: >> Since we already iterated over the xarray we know at which index the new >> entry should be stored. So instead of using xa_alloc use xa_store and >> write into the index directly. >> >> Signed-off-by: Christ

Re: [PATCH 1/4] drm/sched: optimize drm_sched_job_add_dependency a bit

2025-05-22 Thread Tvrtko Ursulin
On 22/05/2025 14:41, Christian König wrote: Since we already iterated over the xarray we know at which index the new entry should be stored. So instead of using xa_alloc use xa_store and write into the index directly. Signed-off-by: Christian König --- drivers/gpu/drm/scheduler/sched_main.c

[PATCH 1/4] drm/sched: optimize drm_sched_job_add_dependency a bit

2025-05-22 Thread Christian König
Since we already iterated over the xarray we know at which index the new entry should be stored. So instead of using xa_alloc use xa_store and write into the index directly. Signed-off-by: Christian König --- drivers/gpu/drm/scheduler/sched_main.c | 12 ++-- 1 file changed, 6 insertions(