Files
linux-nvgpu/drivers/gpu/nvgpu/os/linux
Thomas Fleury f422aee393 gpu: nvgpu: use refcnt for ch mmu_debug_mode
Replaced ch->mmu_debug_mode_enabled with ch->mmu_debug_mode_refcnt.
If channel is enabled multiple times by userspace, then ref count is
updated accordingly. There is an expectation that enable/disable
calls are balanced for setting channel's mmu debug mode.
When unbinding the channel, decrease refcnt for the channel until it
reaches 0.
Also, removed tsg parameter from nvgpu_tsg_set_mmu_debug_mode as it
can be retrieved from ch.

Bug 2515097

Change-Id: If334e374a55bd14ae219edbfd3b1fce5ff25c226
Signed-off-by: Thomas Fleury <tfleury@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2184702
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
2019-08-28 16:54:51 -07:00
..
2019-07-19 00:05:40 -07:00
2019-07-01 07:05:18 -07:00
2018-06-27 07:30:06 -07:00
2019-04-22 03:15:09 -07:00
2019-02-01 09:45:57 -08:00
2019-08-27 10:37:21 -07:00
2019-06-21 04:35:25 -07:00
2018-07-05 21:48:44 -07:00
2019-08-27 10:37:21 -07:00
2019-08-27 10:37:21 -07:00
2018-12-13 04:56:14 -08:00
2019-08-27 10:37:21 -07:00
2019-04-10 06:03:59 -07:00
2019-08-28 14:24:19 -07:00