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>
Mon, 2 Nov 2015 18:54:16 +0000 (10:54 -0800)
commit98741e7e88066648f4f14490c76b61dbff745103
treeebdf881ddd0cfa55356cef8a48cc9000b83ca07a
parentde9d7e9a77ec2b3f91e081c1ac73ac4a0a922c67
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
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
drivers/gpu/nvgpu/gk20a/channel_gk20a.c
drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c
drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.h
drivers/gpu/nvgpu/gk20a/fifo_gk20a.h
drivers/gpu/nvgpu/gk20a/platform_gk20a.h
drivers/gpu/nvgpu/vgpu/fifo_vgpu.c