]> git.karo-electronics.de Git - linux-beck.git/commit
gpu: host1x: Add locking to syncpt
authorArto Merilainen <amerilainen@nvidia.com>
Tue, 8 Nov 2016 17:51:33 +0000 (19:51 +0200)
committerThierry Reding <treding@nvidia.com>
Fri, 11 Nov 2016 14:33:13 +0000 (15:33 +0100)
commitd4b5781890b9329b9e7720f14d3eeb5661348535
treea1ce286f7e473f0bd9103f0d59321d1af6d46faf
parentf08ef2d1a1a9aaa756823e847f9eb74f3658393a
gpu: host1x: Add locking to syncpt

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 <amerilainen@nvidia.com>
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>
Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
[treding@nvidia.com: use better label names, don't reset local variable]
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/host1x/dev.h
drivers/gpu/host1x/syncpt.c