Files
linux-nvgpu/drivers/gpu/nvgpu/os/linux
Debarshi Dutta f0fca24ffb gpu: nvgpu: avoid double mapping of usermode mmap region
gk20a_pm_runtime_suspend can fail and invoke gk20a_pm_finalize_poweron
that can cause double mapping of the usermode mmap region via
io_remap_pfn_range(). Avoid this by using a boolean variable to track
whether the region is already mapped.

Bug 2707416
Bug 200582208

Change-Id: I4d8cbe427400a5b986348a19af145367cc08ffc6
Signed-off-by: Debarshi Dutta <ddutta@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2229312
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2283801
Reviewed-by: Kajetan Dutka <kdutka@nvidia.com>
Reviewed-by: Thomas Fleury <tfleury@nvidia.com>
Reviewed-by: Amulya Yarlagadda <ayarlagadda@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: Kajetan Dutka <kdutka@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
2020-01-24 03:41:52 -08:00
..
2019-08-15 00:57:45 -07:00
2019-10-14 08:32:07 -07:00
2018-06-27 07:30:06 -07:00
2018-06-27 07:30:06 -07:00
2018-07-05 21:48:44 -07:00
2019-10-28 15:55:10 -07:00
2019-10-25 10:10:30 -07:00
2020-01-08 08:35:30 -08:00
2019-08-30 01:24:52 -07:00