mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 09:12:24 +03:00
dma_buf_kmap was introduced a decade ago to map a dma_buf partially by the input number of pages, when 32-bit was fairly common. It was added to not exhaust vmalloc space. Starting from kernel 5.6, it is deprecated as vmap calls should succeed with larger available vmalloc space. Use dma_buf_vmap/vunmap instead of dma_buf_kmap/kunmap for handling mapping of notifier memory in gk20a_channel_wait_semaphore. Also update the debug prints and add speculation barrier to the start of gk20a_channel_wait. Bug 2925664 Change-Id: I49078fa81f050a57a5b66a793e62006dd66e3ba3 Signed-off-by: Sagar Kamble <skamble@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2326513 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: automaticguardword <automaticguardword@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Konsta Holtta <kholtta@nvidia.com> Reviewed-by: Vaibhav Kachore <vkachore@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit