mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 01:50:07 +03:00
- Set ENOMEM error if GPU mapping fails in nvgpu_gr_ctx_alloc(). - In nvgpu_gr_ctx_free_patch_ctx(), it is not possible to have a valid patch buffer without GPU virtual address space. Hence instead of checking for gpu_va, use nvgpu_mem_is_valid() to check if GPU mappings can be removed. - Check if RTV circular buffer is ready within DGPU config. nvgpu_gr_global_ctx_buffer_map() already checks if buffer is ready or not and returns error if buffer is not ready. - g->ops.gr.ctxsw_prog.init_ctxsw_hdr_data() will always be set for each chip. Remove unnecessary NULL check. Jira NVGPU-4373 Change-Id: Ib490f81f8b8299f87cffbb8a33fde8cf98e6c288 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2259073 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com> Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Vinod Gopalakrishnakurup <vinodg@nvidia.com> Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>