Files
linux-nvgpu/drivers/gpu/nvgpu/gk20a/tsg_gk20a.c
Deepak Nibade 3c2656c8c6 gpu: nvgpu: clear events from channel/TSG while closing
If User does not close the event fd created on channel/TSG,
it is possible that the event stays on channel/TSG
structure and reappears when channel/TSG is re-opened

This causes false failure when we try to enable some event
of channel/TSG since we do not allow enabling same event
twice on same channel/TSG

Fix this by removing all enabled events from channel/TSG
while closing it

Bug 200243092
Bug 1818654

Change-Id: I9d5ffc89f87cf4c44124f8015c2c2f0587ad2ef4
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/1237723
(cherry picked from commit 2737a5c86cf5fbfe8a04f6a87764e8ecb9b30555)
Reviewed-on: http://git-master/r/1238266
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2016-10-20 00:34:08 -07:00

15 KiB