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>
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]);