1. 29 3月, 2012 1 次提交
  2. 24 3月, 2012 1 次提交
    • W
      ARM: 7316/1: kexec: EOI active and mask all interrupts in kexec crash path · 9141a003
      Will Deacon 提交于
      The kexec machine crash code can be called in interrupt context via a
      sysrq trigger made using the magic key combination. If the irq chip
      dealing with the serial interrupt is using the fasteoi flow handler,
      then we will never EOI the interrupt because the interrupt handler will
      be fatal. In the case of a GIC, this results in the crash kernel not
      receiving interrupts on that CPU interface.
      
      This patch adds code (based on the PowerPC implementation) to EOI any
      pending interrupts on the crash CPU before masking and disabling all
      interrupts. Secondary cores are not a problem since they are placed into
      a cpu_relax() loop via an IPI.
      Reported-by: NLei Wen <leiwen@marvell.com>
      Signed-off-by: NWill Deacon <will.deacon@arm.com>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      9141a003
  3. 13 12月, 2011 1 次提交
  4. 11 11月, 2011 1 次提交
  5. 08 11月, 2011 1 次提交
  6. 17 10月, 2011 1 次提交
  7. 04 3月, 2011 1 次提交
  8. 04 12月, 2010 1 次提交
  9. 26 10月, 2010 1 次提交
  10. 27 7月, 2010 2 次提交
    • R
      ARM: call machine_shutdown() from machine_halt(), etc · 3d3f78d7
      Russell King 提交于
      x86 calls machine_shutdown() from the various machine_*() calls which
      take the machine down ready for halting, restarting, etc, and uses
      this to bring the system safely to a point where those actions can be
      performed.  Such actions are stopping the secondary CPUs.
      
      So, change the ARM implementation of these to reflect what x86 does.
      
      This solves kexec problems on ARM SMP platforms, where the secondary
      CPUs were left running across the kexec call.
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      3d3f78d7
    • R
      ARM: Factor out common code from cpu_proc_fin() · 9ca03a21
      Russell King 提交于
      All implementations of cpu_proc_fin() start by disabling interrupts
      and then flush caches.  Rather than have every processors proc_fin()
      implementation do this, move it out into generic code - and move the
      cache flush past setup_mm_for_reboot() (so it can benefit from having
      caches still enabled.)
      
      This allows cpu_proc_fin() to become independent of the L1/L2 cache
      types, and eventually move the L2 cache flushing into the L2 support
      code.
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      9ca03a21
  11. 09 7月, 2010 1 次提交
  12. 10 2月, 2009 1 次提交
  13. 06 9月, 2008 1 次提交
  14. 15 8月, 2008 1 次提交
  15. 04 2月, 2008 1 次提交
    • R
      [ARM] 4736/1: Export atags to userspace and allow kexec to use customised atags · 4cd9d6f7
      Richard Purdie 提交于
      Currently, the atags used by kexec are fixed to the ones originally used
      to boot the kernel. This is less than ideal as changing the commandline,
      initrd and other options would be a useful feature.
      
      This patch exports the atags used for the current kernel to userspace
      through an "atags" file in procfs. The presence of the file is
      controlled by its own Kconfig option and cleans up several ifdef blocks
      into a separate file. The tags for the new kernel are assumed to be at
      a fixed location before the kernel image itself. The location of the
      tags used to boot the original kernel is unimportant and no longer
      saved.
      
      Based on a patch from Uli Luckas <u.luckas@road.de>
      Signed-off-by: NRichard Purdie <rpurdie@rpsys.net>
      Acked-by: NUli Luckas <u.luckas@road.de>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      4cd9d6f7
  16. 16 2月, 2007 1 次提交
    • R
      [ARM] 4137/1: Add kexec support · c587e4a6
      Richard Purdie 提交于
      Add kexec support to ARM.
      
      Improvements like commandline handling could be made but this patch gives
      basic functional support. It uses the next available syscall number, 347.
      
      Once the syscall number is known, userspace support will be
      finalised/submitted to kexec-tools, various patches already exist.
      
      Originally based on a patch by Maxim Syrchin but updated and forward
      ported by various people.
      Signed-off-by: NRichard Purdie <rpurdie@rpsys.net>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      c587e4a6