FreeBSDDesktop / kms-drm

the DRM part of the linuxkpi-based KMS
63 stars 26 forks source link

[amdgpu] quitting a compositor often locks the driver up #245

Closed valpackett closed 4 years ago

valpackett commented 4 years ago

Lockups on quitting the window server (making the window server completely unkillable) on amdgpu have been an issue since forever and it's still an issue on 5.2.

Currently the hanging stack trace when quitting wayfire looks like:

exit1fdescfree → … → linux_file_closedrm_releasedrm_file_freeamdgpu_driver_postclose_kmsamdgpu_vm_finidrm_sched_entity_destroydrm_sched_entity_flushlinux_wait_event_commonlinux_add_to_sleepqueuesleepq_wait_sigsleepq_catch_signalsmi_switch

upd: huh, drm_sched_entity_flush is the source of the infamous ==========> BUG: entity->rq->sched is NULL print

upd: so this is supposed to time out in 1000ms but doesn't

valpackett commented 4 years ago

oh, that was easy: https://reviews.freebsd.org/D25509

valpackett commented 4 years ago

Landed as rS362829