]> Gentwo Git Trees - linux/.git/commit
drm/sched: Add warning for removing hack in drm_sched_fini()
authorPhilipp Stanner <phasta@kernel.org>
Thu, 23 Oct 2025 12:34:30 +0000 (14:34 +0200)
committerPhilipp Stanner <phasta@kernel.org>
Fri, 31 Oct 2025 14:39:08 +0000 (15:39 +0100)
commit975ca62a014cb9254e07acb63ea0b81177e32c58
treee7d5bbec7c085cf87f17055954f2d725f07189d4
parentf1aa93005d0d6fb3293ca9c3eb08d1d1557117bf
drm/sched: Add warning for removing hack in drm_sched_fini()

The assembled developers agreed at the X.Org Developers Conference 2025
that the hack added for amdgpu in drm_sched_fini() shall be removed. It
shouldn't be needed by amdgpu anymore.

As it's unclear whether all drivers really follow the life time rule of
entities having to be torn down before their scheduler, it is reasonable
to warn for a while before removing the hack.

Add a warning in drm_sched_fini() that fires if an entity is still
active.

Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Signed-off-by: Philipp Stanner <phasta@kernel.org>
Link: https://patch.msgid.link/20251023123429.139848-2-phasta@kernel.org
drivers/gpu/drm/scheduler/sched_main.c