Re: [PATCH 1/2] drm/etnaviv: split fence lock

2022-12-02 Thread Philipp Zabel
On Thu, Dec 01, 2022 at 06:48:45PM +0100, Lucas Stach wrote: > The fence lock currently protects two distinct things. It protects the fence > IDR from concurrent inserts and removes and also keeps drm_sched_job_arm and > drm_sched_entity_push_job in one atomic section to guarantee the fence seqno >

[PATCH 1/2] drm/etnaviv: split fence lock

2022-12-01 Thread Lucas Stach
The fence lock currently protects two distinct things. It protects the fence IDR from concurrent inserts and removes and also keeps drm_sched_job_arm and drm_sched_entity_push_job in one atomic section to guarantee the fence seqno monotonicity. Split the lock into those two functions. Signed-off-b