[PATCH 21/27] powerpc/eeh: Process interrupts caused by EEH
Benjamin Herrenschmidt
benh at kernel.crashing.org
Sun Jun 16 15:12:11 EST 2013
On Sat, 2013-06-15 at 17:03 +0800, Gavin Shan wrote:
> On PowerNV platform, the EEH event is produced either by detect
> on accessing config or I/O registers, or by interrupts dedicated
> for EEH report. The patch adds support to process the interrupts
> dedicated for EEH report.
>
> Firstly, the kernel thread will be waken up to process incoming
> interrupt. The PHBs will be scanned one by one to process all
> existing EEH errors. Besides, There're mulple EEH errors that can
> be reported from interrupts and we have differentiated actions
> against them:
>
> - If the IOC is dead, all PCI buses under all PHBs will be removed
> from the system.
> - If the PHB is dead, all PCI buses under the PHB will be removed
> from the system.
> - If the PHB is fenced, EEH event will be sent to EEH core and
> the fenced PHB is expected to be resetted completely.
> - If specific PE has been put into frozen state, EEH event will
> be sent to EEH core so that the PE will be resetted.
> - If the error is informational one, we just output the related
> registers for debugging purpose and no more action will be
> taken.
Getting better.... but:
- I still don't like having a kthread for that. Why not use schedule_work() ?
- We already have an EEH thread, why not just use it ? IE send it a special
type of message that makes it query the backend for error info instead ?
- I'm not fan of exposing that EEH private lock. I don't entirely understand
why you need to do that either.
Generally speaking, I'm thinking this file should contain less stuff, most of
it should move into the ioda backend, the interrupt just turning into some
request down to the existing EEH thread.
Cheers,
Ben.
More information about the Linuxppc-dev
mailing list