From 0389835edbb9687fdd28bc25668f7cd23974b7c3 Mon Sep 17 00:00:00 2001 From: Deepak Nibade Date: Fri, 11 Apr 2014 15:28:01 +0530 Subject: 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 Reviewed-on: http://git-master/r/395154 GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom --- drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c | 3 +++ 1 file changed, 3 insertions(+) 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) sp->ops.incr_user_fd = gk20a_channel_syncpt_incr_user_fd; sp->ops.set_min_eq_max = gk20a_channel_syncpt_set_min_eq_max; sp->ops.destroy = gk20a_channel_syncpt_destroy; + + sp->ops.syncpt_aggressive_destroy = true; + return &sp->ops; } #endif /* CONFIG_TEGRA_GK20A */ -- cgit v1.2.2