Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1571991
| From | Vijay Kumar <vijay.ac.kumar@oracle.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v3 0/4] sparc64: Jump to boot prom from console on panic |
| Date | 2017-02-01 22:30 +0100 |
| Message-ID | <t6aDw-30T-31@gated-at.bofh.it> (permalink) |
| References | <t68V3-1B8-3@gated-at.bofh.it> <t69eq-1O3-27@gated-at.bofh.it> |
| Organization | Oracle Corporation |
On 2/1/2017 1:50 PM, David Miller wrote: > From: Vijay Kumar <vijay.ac.kumar@oracle.com> > Date: Wed, 1 Feb 2017 11:34:36 -0800 > >> Currently Stop-A (L1A) does not make the kernel switch to OBP on panic. > This is intentional, the kernel prints a message telling the user to > press break (L1-A) if they want to drop out of the kernel and we force > the break to be allowed by setting stop_a_enabled. The problem is that pressing BRK after panic does not drop to OK prompt (when stop_a_enabled is set). So the kernel message to press Stop-A to return to boot prom is misleading in this case. > I'm wondering why there is so much effort being directed into BRK > behavior. User can drop into ok prompt from the running kernel and as well as from the panicked kernel. Pressing single break to jump to ok prompt conflicts with sysrq key combination (from console, BRK + sysrq_key). To be consistent across both the cases, user will have to send BRK twice in order to drop to ok prompt. Does this sound reasonable? > > If you want to break into the OK prompt, have the reboot-cmd > environment variable set appropriately, and simply hit BRK and it will > work in both ldom and non-ldom environments. Kernel does not print message "Press Stop-A (L1-A) to ..." for the case when it is expected to reboot on panic. Rather, it goes through different path in panic() when kernel.panic is _not_ set to 0. Here, patch is addressing the case when kernel.panic=0 (i.e not to reboot on panic). Thanks, Vijay
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH v3 0/4] sparc64: Jump to boot prom from console on panic Vijay Kumar <vijay.ac.kumar@oracle.com> - 2017-02-01 20:40 +0100
[PATCH v3 1/4] sparc64: Set cpu state to offline when stopped Vijay Kumar <vijay.ac.kumar@oracle.com> - 2017-02-01 20:40 +0100
[PATCH v3 2/4] sparc64: Migrate hvcons irq to panicked cpu Vijay Kumar <vijay.ac.kumar@oracle.com> - 2017-02-01 20:40 +0100
[PATCH v3 3/4] sparc64: Send break twice from console to return to boot prom Vijay Kumar <vijay.ac.kumar@oracle.com> - 2017-02-01 20:40 +0100
Re: [PATCH v3 0/4] sparc64: Jump to boot prom from console on panic David Miller <davem@davemloft.net> - 2017-02-01 21:00 +0100
Re: [PATCH v3 0/4] sparc64: Jump to boot prom from console on panic Vijay Kumar <vijay.ac.kumar@oracle.com> - 2017-02-01 22:30 +0100
csiph-web