mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
On deleting the subcontext, tsg->subctx_vms[] entries are set to NULL as per the subcontext id. For async subcontexts the index logic was used from that of tsg->async_veids bitmask. However subctx_vms is an array shared by all subcontexts hence index should be subcontext id aka veid. Also update the description of function nvgpu_tsg_validate_ch_subctx_vm as some of the functionality is now moved to another function nvgpu_tsg_create_sync_subcontext_internal. Bug 3979886 Change-Id: Ic290fb175b34988c6ffabe9c9dc4ec124d2c70af Signed-off-by: Sagar Kamble <skamble@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2879025 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>