summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c
diff options
context:
space:
mode:
authorDeepak Nibade <dnibade@nvidia.com>2014-04-11 05:58:01 -0400
committerDan Willemsen <dwillemsen@nvidia.com>2015-03-18 15:09:10 -0400
commit0389835edbb9687fdd28bc25668f7cd23974b7c3 (patch)
treecad73f1bb26531e60add3f1d0345e6b377296fd9 /drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c
parent91724953fdc8a574aebdd3b2d71ce5c1dd295e99 (diff)
gpu: nvgpu: gk20a: enable syncpt free at channel_unbind()
Set syncpt_aggressive_destroy = true and enable gpu channels' syncpt free at channel_unbind() time. This is more agrressive level to free a syncpt. Bug 1305024 Change-Id: I20296590454fcbf6556c5bd08b7e47156f7a1e65 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/395154 GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c b/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c
index b94c0c93..d0b975a9 100644
--- a/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c
@@ -356,6 +356,9 @@ gk20a_channel_syncpt_create(struct channel_gk20a *c)
356 sp->ops.incr_user_fd = gk20a_channel_syncpt_incr_user_fd; 356 sp->ops.incr_user_fd = gk20a_channel_syncpt_incr_user_fd;
357 sp->ops.set_min_eq_max = gk20a_channel_syncpt_set_min_eq_max; 357 sp->ops.set_min_eq_max = gk20a_channel_syncpt_set_min_eq_max;
358 sp->ops.destroy = gk20a_channel_syncpt_destroy; 358 sp->ops.destroy = gk20a_channel_syncpt_destroy;
359
360 sp->ops.syncpt_aggressive_destroy = true;
361
359 return &sp->ops; 362 return &sp->ops;
360} 363}
361#endif /* CONFIG_TEGRA_GK20A */ 364#endif /* CONFIG_TEGRA_GK20A */