gpu: nvgpu: set aggressive_sync_destroy at runtime
authorDeepak Nibade <dnibade@nvidia.com>
Fri, 23 Oct 2015 10:11:21 +0000 (15:11 +0530)
committermobile promotions <svcmobile_promotions@nvidia.com>
Fri, 4 Dec 2015 16:05:59 +0000 (08:05 -0800)
commit7bf9b9471c85a98d8b1ae65d60f0c53ac9ccee36
tree553ee558ca67eb6211727758dea548cf29991f7e
parent185d2224e4767d68e44fc10c85d5de2371c0ff12
gpu: nvgpu: set aggressive_sync_destroy at runtime

We currently set "aggressive_destroy" flag to destroy
sync object statically and for each sync object

Move this flag to per-platform structure so that it
can be set per-platform for all the sync objects

Also, set the default value of this flag as "false"
and set it to "true" once we have more than 64
channels in use

Bug 200141116

Change-Id: I1bc271df4f468a4087a06a27c7289ee0ec3ef29c
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/822041
(cherry picked from commit 98741e7e88066648f4f14490c76b61dbff745103)
Reviewed-on: http://git-master/r/835817
Reviewed-on: http://git-master/r/838592
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
drivers/gpu/nvgpu/gk20a/channel_gk20a.c
drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c
drivers/gpu/nvgpu/gk20a/fifo_gk20a.h
drivers/gpu/nvgpu/gk20a/platform_gk20a.h
drivers/gpu/nvgpu/vgpu/fifo_vgpu.c