From 31a436b3a1720f0ff3ab51d102c55c09c7e247fd Mon Sep 17 00:00:00 2001 From: Timo Alho Date: Thu, 4 Dec 2014 00:53:17 -0800 Subject: Revert "gpu: nvgpu: Enable syncpt reclaim only on gm20b" This reverts commit 8eefb93c21934b101d7f423c38d9ea384a45fad6. Bug 1585422 Change-Id: I217e0ffe6c230ee3c63d9aec1c48ce9c41770468 Signed-off-by: Timo Alho Reviewed-on: http://git-master/r/659426 --- drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c') diff --git a/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c b/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c index a27f08a4..746a2de3 100644 --- a/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c @@ -305,6 +305,8 @@ gk20a_channel_syncpt_create(struct channel_gk20a *c) sp->ops.signal_timeline = gk20a_channel_syncpt_signal_timeline; sp->ops.destroy = gk20a_channel_syncpt_destroy; + sp->ops.aggressive_destroy = true; + return &sp->ops; } #endif /* CONFIG_TEGRA_GK20A */ @@ -642,6 +644,10 @@ gk20a_channel_semaphore_create(struct channel_gk20a *c) sema->ops.signal_timeline = gk20a_channel_semaphore_signal_timeline; sema->ops.destroy = gk20a_channel_semaphore_destroy; + /* Aggressively destroying the semaphore sync would cause overhead + * since the pool needs to be mapped to GMMU. */ + sema->ops.aggressive_destroy = false; + return &sema->ops; clean_up: gk20a_channel_semaphore_destroy(&sema->ops); -- cgit v1.2.2