RE: [RFC][PATCH v3 2/3] Skip spin_locks in panic case and addWARN_ON()
From: Luck, Tony
Date: Mon Jan 02 2012 - 14:42:05 EST
> 7.1.1 Exception for Machine Check, INIT, and NMI.
I wonder if this section is poorly named ... I suspect that it may really mean
"Exception for fatal situations". I don't think that the EFI code has any way
to know that one of these events has happened (in theory it could tell that it
was executing a machine check handler if it looked at MCIP bit in MCG_STATUS,
but I doubt that it does that ... INIT/NMI would seem even harder to detect).
> My suggestion is that panicked cpu sends NMI to itself and then it calls kmsg_dump(KMSG_DUMP_PANIC) in NMI.
So I wonder whether there is any value in the cpu sending an NMI to itself to
meet the exact wording of this section in the spec.
I'll ask an Intel EFI guru whether I'm on target.
-Tony
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/