Re: [PATCH v3 2/5] drm/sched/tests: Port tests to new cleanup method

2025-05-23 Thread Tvrtko Ursulin
On 22/05/2025 15:59, Philipp Stanner wrote: On Thu, 2025-05-22 at 15:06 +0100, Tvrtko Ursulin wrote: On 22/05/2025 09:27, Philipp Stanner wrote: The drm_gpu_scheduler now supports a callback to help drm_sched_fini() avoid memory leaks. This callback instructs the driver to signal all pending

Re: [PATCH v3 2/5] drm/sched/tests: Port tests to new cleanup method

2025-05-22 Thread Philipp Stanner
On Thu, 2025-05-22 at 15:06 +0100, Tvrtko Ursulin wrote: > > On 22/05/2025 09:27, Philipp Stanner wrote: > > The drm_gpu_scheduler now supports a callback to help > > drm_sched_fini() > > avoid memory leaks. This callback instructs the driver to signal > > all > > pending hardware fences. > > > >

Re: [PATCH v3 2/5] drm/sched/tests: Port tests to new cleanup method

2025-05-22 Thread Tvrtko Ursulin
On 22/05/2025 09:27, Philipp Stanner wrote: The drm_gpu_scheduler now supports a callback to help drm_sched_fini() avoid memory leaks. This callback instructs the driver to signal all pending hardware fences. Implement the new callback drm_sched_backend_ops.cancel_pending_fences(). Have the c

[PATCH v3 2/5] drm/sched/tests: Port tests to new cleanup method

2025-05-22 Thread Philipp Stanner
The drm_gpu_scheduler now supports a callback to help drm_sched_fini() avoid memory leaks. This callback instructs the driver to signal all pending hardware fences. Implement the new callback drm_sched_backend_ops.cancel_pending_fences(). Have the callback use drm_mock_sched_job_complete() with a