mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
When force closing the channel, NEXT and CTX_RELOAD bits might be set. Currently CTX_RELOAD bit is ignored. However, due to this, the channel created after the erroneous unbind encounters FECS fault. If the channel is unbound while it is running, fifo unbind error happens and can lead to unspecified behavior. By moving CTX_RELOAD to other channel in the TSG, the channel can be unbound safely. In other cases, if the channel is truly running something when it is being unbound it should either get preempted or be handled through engine reset. Bug 200701444 Change-Id: Iba956544dcaa1144c6064247257c64cbe9a29ae6 Signed-off-by: Sagar Kamble <skamble@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2515083 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> Reviewed-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>