Re: [PATCH] drm/scheduler: Fix hang when sched_entity released

2021-02-17 Thread Andrey Grodzovsky
Will do. Andrey On 2/17/21 4:37 PM, Christian König wrote: Am 17.02.21 um 22:36 schrieb Andrey Grodzovsky: On 2/17/21 4:32 PM, Christian König wrote: Am 16.02.21 um 18:07 schrieb Andrey Grodzovsky: Problem: If scheduler is already stopped by the time sched_entity is released and entity's

Re: [PATCH] drm/scheduler: Fix hang when sched_entity released

2021-02-17 Thread Christian König
Am 17.02.21 um 22:36 schrieb Andrey Grodzovsky: On 2/17/21 4:32 PM, Christian König wrote: Am 16.02.21 um 18:07 schrieb Andrey Grodzovsky: Problem: If scheduler is already stopped by the time sched_entity is released and entity's job_queue not empty I encountred a hang in drm_sched_entity_fl

Re: [PATCH] drm/scheduler: Fix hang when sched_entity released

2021-02-17 Thread Andrey Grodzovsky
On 2/17/21 4:32 PM, Christian König wrote: Am 16.02.21 um 18:07 schrieb Andrey Grodzovsky: Problem: If scheduler is already stopped by the time sched_entity is released and entity's job_queue not empty I encountred a hang in drm_sched_entity_flush. This is because drm_sched_entity_is_idle never

Re: [PATCH] drm/scheduler: Fix hang when sched_entity released

2021-02-17 Thread Christian König
Am 16.02.21 um 18:07 schrieb Andrey Grodzovsky: Problem: If scheduler is already stopped by the time sched_entity is released and entity's job_queue not empty I encountred a hang in drm_sched_entity_flush. This is because drm_sched_entity_is_idle never becomes false. Fix: In drm_sched_fini detac

Re: [PATCH] drm/scheduler: Fix hang when sched_entity released

2021-02-17 Thread Andrey Grodzovsky
Ping Andrey On 2/16/21 12:07 PM, Andrey Grodzovsky wrote: Problem: If scheduler is already stopped by the time sched_entity is released and entity's job_queue not empty I encountred a hang in drm_sched_entity_flush. This is because drm_sched_entity_is_idle never becomes false. Fix: In drm_sche

[PATCH] drm/scheduler: Fix hang when sched_entity released

2021-02-16 Thread Andrey Grodzovsky
Problem: If scheduler is already stopped by the time sched_entity is released and entity's job_queue not empty I encountred a hang in drm_sched_entity_flush. This is because drm_sched_entity_is_idle never becomes false. Fix: In drm_sched_fini detach all sched_entities from the scheduler's run queu