gpu: nvgpu: gk20a: fix syncpt names for gk20a
authorDeepak Nibade <dnibade@nvidia.com>
Thu, 15 May 2014 07:56:03 +0000 (12:56 +0530)
committerTerje Bergstrom <tbergstrom@nvidia.com>
Mon, 19 May 2014 09:32:22 +0000 (02:32 -0700)
commit649ca251818b36b6103676c6717a7c2ff094fdf8
tree3af35217a5b4ad1e31a4577c4f32692c8a5237bf
parent852d655ec9631fbcab7dbf6a81751daf45d3febe
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"

Also, add a syncpt check for sycnpt received.

Bug 1305024

Change-Id: I4ff96c7c9ebff2dca385c5787a85b4a9451b9514
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/410121
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c