From: panxinhui <xinhui@linux.vnet.ibm.com>
To: "Guilherme G. Piccoli" <gpiccoli@linux.vnet.ibm.com>,
Nicholas Piggin <npiggin@gmail.com>
Cc: xinhui.pan@linux.vnet.ibm.com, linuxppc-dev@lists.ozlabs.org,
paulus@samba.org
Subject: Re: [PATCH] powerpc/xmon: add debugfs entry for xmon
Date: Wed, 15 Feb 2017 11:52:56 +0800 [thread overview]
Message-ID: <7b8735e8-3f6f-d6ec-4382-5729fb9b69c3@linux.vnet.ibm.com> (raw)
In-Reply-To: <8ddc4a78-4dd9-40df-2f00-503b4ff204b0@linux.vnet.ibm.com>
在 2017/2/15 上午1:35, Guilherme G. Piccoli 写道:
> On 14/02/2017 01:58, Pan Xinhui wrote:
>>
>>
>> 在 2017/2/14 10:35, Nicholas Piggin 写道:
>>> On Mon, 13 Feb 2017 19:00:42 -0200
>>>
>>> xmon state changing after the first sysrq+x violates principle of least
>>> astonishment, so I think that should be fixed.
>>>
>> hi, Nick
>> yes, as long as xmon is disabled during boot, it should still be disabled after existing xmon.
>> My patch does not fix that as it need people add one more char 'z' following 'x'.
>> I will provide a new patch to fix that.
>>
>>> Then the question is, is it worth making it runtime configurable with xmon
>>> command or debugfs tunables?
>>>
>> They are options for people to turn xmon features on or off. Maybe people needn't this.
>> However I am not a fan of debugfs this time as I am used to using xmon cmds. :)
>>
>> Hi, Guilherme
>> So in the end, my thought is that: 1) cmd x|X will exit xmon and keep xmon in the original state(indicated by var xmon_off).
>> 2) Then add options to turn some features on/off. And debugfs maybe not fit for this. But I am also wondering at same time, are people needing this?
>
> Hi Nick and Xinhui, thanks very much for the feedback.
> I agree, we should keep xmon in the state it was firstly set, on boot
> time - dropping to the debugger using sysrq shouldn't change it.
>
Yes, and feel free to include my fix patch "powerpc/xmon: Fix an unexpected xmon onoff state change" :)
> Now, the use case of the debugfs approach is to allow user to
> enable/disable xmon without need to drop into the debugger itself, or
> reboot the machine.
Good, got it.
We look forward to your new patch. :)
thanks
xinhui
> Imagine a scenario in which we have a production machine, and:
>
>
> i) For some reason, somebody kept xmon enabled on grub.cfg and now, we
> want to let kdump work in case of crash - how to disable xmon in runtime?
>
> ii) The opposite: xmon wasn't enable on boot time in production machine,
> but we have a super-rare issue and want to drop to xmon next time it
> happens, so we need to enable it. But we don't want to drop into the
> debugger to force it gets enabled, so how do we enable it?
>
> Regarding the place of the xmon state file, I believe debugfs is the
> right place - where else could we add it? procfs? configfs?
>
> Thanks,
>
>
> Guilherme
>>
>> thanks
>> xinhui
>>
>>> Thanks,
>>> Nick
>>>
>>
next prev parent reply other threads:[~2017-02-15 3:53 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-13 21:00 [PATCH] powerpc/xmon: add debugfs entry for xmon Guilherme G. Piccoli
2017-02-14 2:35 ` Nicholas Piggin
2017-02-14 3:58 ` Pan Xinhui
2017-02-14 11:41 ` Michael Ellerman
2017-02-14 17:35 ` Guilherme G. Piccoli
2017-02-14 23:50 ` Michael Ellerman
2017-02-15 3:52 ` panxinhui [this message]
2017-02-14 11:37 ` Michael Ellerman
2017-02-14 17:39 ` Guilherme G. Piccoli
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7b8735e8-3f6f-d6ec-4382-5729fb9b69c3@linux.vnet.ibm.com \
--to=xinhui@linux.vnet.ibm.com \
--cc=gpiccoli@linux.vnet.ibm.com \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=npiggin@gmail.com \
--cc=paulus@samba.org \
--cc=xinhui.pan@linux.vnet.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).