]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pasemi: Do not process external or decrementer interrupts from sreset
authorNicholas Piggin <npiggin@gmail.com>
Mon, 20 Mar 2017 06:31:48 +0000 (16:31 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 28 Apr 2017 11:02:25 +0000 (21:02 +1000)
commitaff4a4e93bfbae43d5c8e622d079cbff6c6551d8
tree2fb463a522f27d082159624cf48c2890c80b12cc
parentcb4668f7f9b2feb9a7e40becfca52b9292261d39
powerpc/pasemi: Do not process external or decrementer interrupts from sreset

PA Semi will wake from low power state at the system reset interrupt,
with the event encoded in SRR1, rather than waking at the interrupt
vector that corresponds to that event.

The system reset handler for this platform decodes SRR1 event reason
and calls the interrupt handler to process it directly from the system
reset handlre.

A subsequent change will treat the system reset interrupt as a Linux NMI
with its own per-CPU stack, and this will no longer work. Remove the
external and decrementer handlers from the system reset handler.

- The external exception remains raised and will fire again at the
  EE interrupt vector when system reset returns.

- The decrementer is set to 1 so it will be raised again and fire when
  the system reset returns.

It is possible to branch to an idle handler from the system reset
interrupt (like POWER does), then restore a normal stack and restore
this optimisation. But simplicity wins for now.

Tested-by: Christian Zigotzky <chzigotzky@xenosoft.de>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/pasemi/idle.c