]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
gpu: nvgpu: Reset sync point at alloc/free
authorTerje Bergstrom <tbergstrom@nvidia.com>
Fri, 13 Feb 2015 22:26:54 +0000 (14:26 -0800)
committerTerje Bergstrom <tbergstrom@nvidia.com>
Fri, 20 Feb 2015 04:17:21 +0000 (20:17 -0800)
Change-Id: I8753e47ef4d3f4b3645ed6c6e604449d81d3da4b
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/709061
(cherry picked from commit cc07f316334b88cc18070fba9dd9149ba193bd38)
Reviewed-on: http://git-master/r/707980

drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c

index 746a2de322c2f4e889cdcccad3108085893ffea1..6c195deb8ed21118e064a989bcbdfefe4559b9a7 100644 (file)
@@ -274,6 +274,7 @@ static void gk20a_channel_syncpt_destroy(struct gk20a_channel_sync *s)
 {
        struct gk20a_channel_syncpt *sp =
                container_of(s, struct gk20a_channel_syncpt, ops);
+       nvhost_syncpt_set_min_eq_max_ext(sp->host1x_pdev, sp->id);
        nvhost_free_syncpt(sp->id);
        kfree(sp);
 }
@@ -290,6 +291,7 @@ gk20a_channel_syncpt_create(struct channel_gk20a *c)
        sp->c = c;
        sp->host1x_pdev = c->g->host1x_dev;
        sp->id = nvhost_get_syncpt_host_managed(c->g->dev, c->hw_chid);
+       nvhost_syncpt_set_min_eq_max_ext(sp->host1x_pdev, sp->id);
        if (!sp->id) {
                kfree(sp);
                gk20a_err(&c->g->dev->dev, "failed to get free syncpt");