Re: [PATCH 4/4] drm: Nerv drm_global_mutex BKL for good drivers

2020-01-28 Thread Daniel Vetter
On Tue, Jan 28, 2020 at 11:00:32AM +, Chris Wilson wrote: > Quoting Daniel Vetter (2020-01-28 10:46:01) > > This catches the majority of drivers (unfortunately not if we take > > users into account, because all the big drivers have at least a > > lastclose hook). > > Yeah, that lastclose for s

Re: [PATCH 4/4] drm: Nerv drm_global_mutex BKL for good drivers

2020-01-28 Thread Chris Wilson
Quoting Daniel Vetter (2020-01-28 10:46:01) > This catches the majority of drivers (unfortunately not if we take > users into account, because all the big drivers have at least a > lastclose hook). Yeah, that lastclose for switching back to fbcon, and ensuring that switch is started before the nex

[PATCH 4/4] drm: Nerv drm_global_mutex BKL for good drivers

2020-01-28 Thread Daniel Vetter
This catches the majority of drivers (unfortunately not if we take users into account, because all the big drivers have at least a lastclose hook). With the prep patches out of the way all drm state is fully protected and either prevents or can deal with the races from dropping the BKL around open