mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 20:51:44 +00:00
03dec92c4f
The drm_sched_entity_kill() is invoked twice by drm_sched_entity_destroy()
while userspace process is exiting or being killed. First time it's invoked
when sched entity is flushed and second time when entity is released. This
causes a lockup within wait_for_completion(entity_idle) due to how completion
API works.
Calling wait_for_completion() more times than complete() was invoked is a
error condition that causes lockup because completion internally uses
counter for complete/wait calls. The complete_all() must be used instead
in such cases.
This patch fixes lockup of Panfrost driver that is reproducible by killing
any application in a middle of 3d drawing operation.
Fixes:
|
||
---|---|---|
.. | ||
gpu_scheduler_trace.h | ||
Makefile | ||
sched_entity.c | ||
sched_fence.c | ||
sched_main.c |