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:
Seema Khowala
2017-10-12 09:54:04 -07:00
committed by mobile promotions
parent a8643b3a99
commit ceaab0595c

View File

@@ -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 */