Re: [PATCH] powerpc/xmon: add turn off xmon option

From: Michael Ellerman
Date: Tue Feb 14 2017 - 07:22:53 EST


Pan Xinhui <xinhui.pan@xxxxxxxxxxxxxxxxxx> writes:

> Once xmon is triggered, there is no interface to turn it off again.
> However there exists disable/enable xmon code flows. And more important,
> System reset interrupt on powerVM will fire an oops to make a dump. At
> that time, xmon should not be triggered.
>
> So add 'z' option after current 'x|X' exit commands. Turn xmon off if 'z'
> is following.

Thanks for trying to clear this up.

But I like the solution we discussed in the other thread better. ie.
entering/leaving xmon via sysrq will always leave the state unchanged,
and we'll add a debugfs to change the state.

cheers