mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
When profiler session is terminated abnormally, PMA control path is still in active/incorrect state with existing teardown sequence. This change ensures we clear PMA command slice registers before we wait for routers to be idle. Once PMM routers are idle, we clear PMA channel registers to drain all the in-flight records. Bug 4123716 Change-Id: I0659dc89b00f468c2f2df5af952ac68c70387746 Signed-off-by: Kishan <kpalankar@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com> (cherry picked from commit 64bcf057bf0930f414a700a378d33ee098bdf2e2) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2973882 Reviewed-by: Ramalingam C <ramalingamc@nvidia.com> Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>