Hi Philipp,
On 01/07/25 10:21, Philipp Stanner wrote:
Since its inception, the GPU scheduler can leak memory if the driver calls drm_sched_fini() while there are still jobs in flight.
The simplest way to solve this in a backwards compatible manner is by adding a new callback, drm_sched_backend_ops.cancel_job(), which instructs the driver to signal the hardware fence associated with the job. Afterwards, the scheduler can savely use the established free_job()
s/savely/safely
callback for freeing the job.
Implement the new backend_ops callback cancel_job().
Suggested-by: Tvrtko Ursulin tvrtko.ursulin@igalia.com Link: https://lore.kernel.org/dri-devel/20250418113211.69956-1-tvrtko.ursulin@igal... Signed-off-by: Philipp Stanner phasta@kernel.org
Reviewed-by: Maíra Canal mcanal@igalia.com
Best Regards, - Maíra
linaro-mm-sig@lists.linaro.org