linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* a3b2cb30 broken panic reporting for qemu guests
@ 2017-11-29  4:06 David Gibson
  2017-11-29  4:23 ` Nicholas Piggin
  0 siblings, 1 reply; 10+ messages in thread
From: David Gibson @ 2017-11-29  4:06 UTC (permalink / raw)
  To: Nicholas Piggin, Mahesh Salgaonkar, Michael Ellerman; +Cc: linuxppc-dev

[-- Attachment #1: Type: text/plain, Size: 1256 bytes --]

a3b2cb30 "powerpc: Do not call ppc_md.panic in fadump panic notifier"
purports to fix a problem when the kernel panics with fadump not
registered, but it breaks something else instead.  I _think_ it was
working on the incorrect assumption that ppc_md.panic was (or should
be) only used with fadump, but I'm not really sure.

Panic works with kdump enabled, and (I think) with fadump enabled).
However, with neither of these enabled, we always go to the generic
panic logic.

That's incorrect for PAPR guests - they should call ibm,os-term via
RTAS.  Under qemu this leads to a "GUEST_PANICKED" event notification
which higher-level management pays attention to.  Since a3b2cb30 we
now reboot instead of reporting that.

I believe it will also break panic for PS3 machines, but since that
platform basically no longer exists, we probably don't care.

I'm not entirely sure how to fix this.  I _think_ what we want is to
call ppc_md.panic from a late panic notifier, the way this patch does
for fadump_panic_event() if fadump is registered.

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2017-12-04  6:31 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-29  4:06 a3b2cb30 broken panic reporting for qemu guests David Gibson
2017-11-29  4:23 ` Nicholas Piggin
2017-11-30  5:11   ` David Gibson
2017-12-01 11:11     ` Michael Ellerman
2017-12-01 11:40       ` Nicholas Piggin
2017-12-04  5:49         ` David Gibson
2017-12-04  6:12           ` Nicholas Piggin
2017-12-04  6:31             ` David Gibson
2017-12-04  5:47       ` David Gibson
2017-12-04  5:45   ` David Gibson

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).