mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-25 02:52:51 +03:00
gpu: nvgpu: ctxsw_trace_tsg/channel_reset call order
For non fake mmu fault, both tsg and ch pointers could be valid. If tsg pointer is non null, issue ctxsw_trace for tsg instead of channel only. Change-Id: I161c40e8d43c7ae4d953ef4768ad75d4e993c87e Signed-off-by: Seema Khowala <seemaj@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1577915 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
a8643b3a99
commit
ceaab0595c
@@ -1603,11 +1603,14 @@ static bool gk20a_fifo_handle_mmu_fault(
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (ch)
|
||||
gk20a_ctxsw_trace_channel_reset(g, ch);
|
||||
else if (tsg)
|
||||
/*
|
||||
* For non fake mmu fault, both tsg and ch pointers
|
||||
* could be valid. Check tsg first.
|
||||
*/
|
||||
if (tsg)
|
||||
gk20a_ctxsw_trace_tsg_reset(g, tsg);
|
||||
else if (ch)
|
||||
gk20a_ctxsw_trace_channel_reset(g, ch);
|
||||
|
||||
/* disable the channel/TSG from hw and increment
|
||||
* syncpoints */
|
||||
|
||||
Reference in New Issue
Block a user