]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
gpu: nvgpu: gk20a: allow syncpt free at channel_unbind()
authorDeepak Nibade <dnibade@nvidia.com>
Fri, 11 Apr 2014 09:52:58 +0000 (15:22 +0530)
committerSeema Khowala <seemaj@nvidia.com>
Wed, 23 Apr 2014 21:05:08 +0000 (14:05 -0700)
commitb55a50746df6b560ad35739ea3d95fe9bd2d49c4
tree45cc05c9f8d39f92f9e37c7265302072cc9cd043
parent783e96e4c6ce338ffea697623e8548eaaa87184b
gpu: nvgpu: gk20a: allow syncpt free at channel_unbind()

Add infrastructure to allow freeing gpu channels' syncpts at
channel_unbind()

Currently, we free the syncpt at channel_free() only.
But we can free the syncpt when channel becomes idle.

When we do channel_unbind(), channel cannot be scheduled and
hence we can destroy its syncpt.
Channel will request again for new syncpt when it has new work
to do.

This feature will be enabled with boolean flag
syncpt_aggressive_destroy

Bug 1305024

Change-Id: Ib498e2c371e36ffc1430d4f95f2780b4c587e43e
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/395153
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
drivers/gpu/nvgpu/gk20a/channel_gk20a.c
drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.h