gpu: nvgpu: vgpu: abort the channel right after force reset it

For gp10b and previous chips, RM server will issue fake mmu fault to
reset the channel. And the mmu fault event will be sent to vgpu client,
which will cause the client to abort the channel or tsg.
But on gv11b, RM server doesn't issue fake mmu fault any more. So I need
to abort it right after the force reset is finished.

Jira EVLR-1671

Change-Id: I11399fda84d31086ba1d4ffde5948e409cde2a28
Signed-off-by: Richard Zhao <rizhao@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1597378
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Richard Zhao
2017-11-13 15:22:13 -08:00
committed by mobile promotions
parent 326f97187a
commit 42bc87167a

View File

@@ -714,6 +714,8 @@ int vgpu_fifo_force_reset_ch(struct channel_gk20a *ch,
p->handle = ch->virt_ctx;
err = vgpu_comm_sendrecv(&msg, sizeof(msg), sizeof(msg));
WARN_ON(err || msg.ret);
if (!err)
gk20a_channel_abort(ch, false);
return err ? err : msg.ret;
}