[PATCH 2/4] gpu: host1x: Add locking to syncpt

2016-11-11 Thread Thierry Reding
On Tue, Nov 08, 2016 at 07:51:33PM +0200, Mikko Perttunen wrote: [...] > @@ -86,7 +88,17 @@ static struct host1x_syncpt *host1x_syncpt_alloc(struct > host1x *host, > else > sp->client_managed = false; > > + mutex_unlock(&host->syncpt_mutex); > return sp; > + > +err_

[PATCH 2/4] gpu: host1x: Add locking to syncpt

2016-11-08 Thread Mikko Perttunen
From: Arto Merilainen Currently syncpoints are not locked by mutex and this causes races if we are aggressively freeing and allocating syncpoints. This patch adds missing mutex protection to syncpoint structures. Signed-off-by: Arto Merilainen Reviewed-by: Shridhar Rasal Signed-off-by: Mikko