mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-25 02:52:51 +03:00
gpu: nvgpu: Reset sync point at alloc/free
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
This commit is contained in:
committed by
Dan Willemsen
parent
226c671f8e
commit
50d5ed2eef
@@ -275,6 +275,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);
|
||||
}
|
||||
@@ -291,6 +292,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");
|
||||
|
||||
Reference in New Issue
Block a user