]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
video: tegra: host: set default state for client managed syncpt
authorDeepak Nibade <dnibade@nvidia.com>
Tue, 29 Apr 2014 11:02:27 +0000 (16:32 +0530)
committerRiham Haidar <rhaidar@nvidia.com>
Wed, 21 May 2014 18:42:29 +0000 (11:42 -0700)
When we free a client managed syncpt we need to set its
min = max since this id can be next time given to any client
and new client should get the syncpt with min == max

Bug 1482249
Bug 1305024

Change-Id: I17c0dfdab48c4155e81f5786f4afd4e00e346d11
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/402920
(cherry picked from commit 07605883fc36f1d0727a987f3941d5ffc674854e)
Reviewed-on: http://git-master/r/411889
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
drivers/video/tegra/host/nvhost_syncpt.c

index 0b3e35d46744000dc016dd66b7ae11c9f481e241..8e868008f45907c223d881931eb661d452baaa76 100644 (file)
@@ -861,6 +861,8 @@ void nvhost_free_syncpt(u32 id)
        mutex_lock(&sp->syncpt_mutex);
 
        /* set to default state */
+       if (nvhost_syncpt_client_managed(sp, id))
+               nvhost_syncpt_set_min_eq_max(sp, id);
        sp->assigned[id] = false;
        sp->client_managed[id] = false;
        kfree(sp->syncpt_names[id]);