gpu: nvgpu: gk20a: fix syncpt names for gk20a

nvhost_get_syncpt_host_managed() creates syncpt name based on
platform_device pointer passed to it
Passing host1x's pointer to this API results in setting gk20a
syncpt names as "host1x_0" which is conflicting

Hence to restore this pass gk20a's device pointer
which gives syncpt names as "gk20a.0_0"

Bug 1305024

Change-Id: I40325f2e4e2d9ea8de1d44e136edcb48a431e45c
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/389671
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
This commit is contained in:
Deepak Nibade
2014-03-28 16:09:05 +05:30
committed by Dan Willemsen
parent 0d908e51c8
commit f3f9677c57

View File

@@ -329,7 +329,7 @@ gk20a_channel_syncpt_create(struct channel_gk20a *c)
sp->c = c;
sp->host1x_pdev = to_platform_device(c->g->dev->dev.parent);
sp->id = nvhost_get_syncpt_host_managed(sp->host1x_pdev, c->hw_chid);
sp->id = nvhost_get_syncpt_host_managed(c->g->dev, c->hw_chid);
sp->ops.wait_cpu = gk20a_channel_syncpt_wait_cpu;
sp->ops.is_expired = gk20a_channel_syncpt_is_expired;