Linux MIPS Architecture development
 help / color / mirror / Atom feed
* [PATCH 00/10] various fixes for kexec crashkernel support
@ 2016-11-23 13:43 Marcin Nowakowski
  2016-11-23 13:43 ` Marcin Nowakowski
                   ` (10 more replies)
  0 siblings, 11 replies; 22+ messages in thread
From: Marcin Nowakowski @ 2016-11-23 13:43 UTC (permalink / raw)
  To: Ralf Baechle, linux-mips

This set of patches attempts to add support to generic MIPS kernels
for kexec and crashkernel loading, as well as fix some existing
potential issues with KASLR

Patches 1-7 fix various bootmem region definition problems, most importantly
ensuring that a firmware-loaded DTB is not corrupt during kernel relocation
or during bootmem initialisation

Patches 8-9 add some error checking and debug messages for kexec

Patch 10 adds support for loading the device tree blob through kexec
on generic platforms using UHI boot protocol.

I will be publishing supporting patches for kexec (especially for generic
platform dtb support) soon.


* Notes for crashkernel core dumps *

The following patches are required:
https://patchwork.linux-mips.org/patch/14588/
https://patchwork.linux-mips.org/patch/14587/
https://patchwork.linux-mips.org/patch/14586/

For non-generic platforms there is no standard method of passing
boot commandline, hence the required boot arguments (mem, elfcorehdr) need
to be set with CONFIG_CMDLINE (except for Cavium Octeon platforms which
have their own method implemented in soc-specific code as well as in
kexec userspace tool).

Marcin Nowakowski (10):
  MIPS: do not request resources for crashkernel if one isn't defined
  MIPS: init: ensure reserved memory regions are not added to bootmem
  MIPS: init: ensure bootmem does not corrupt reserved memory
  MIPS: use early_init_fdt_reserve_self to protect DTB location
  MIPS: platform: allow for DTB to be moved during kernel relocation
  MIPS: relocate: optionally relocate the DTB
  MIPS: fix mem=X@Y commandline processing
  MIPS: kexec: do not reserve invalid crashkernel memory on boot
  MIPS: kexec: add debug info about the new kexec'ed image
  MIPS: generic/kexec: add support for a DTB passed in a separate buffer

 arch/mips/generic/Makefile       |  1 +
 arch/mips/generic/init.c         | 13 ++++++
 arch/mips/generic/kexec.c        | 45 +++++++++++++++++++
 arch/mips/include/asm/bootinfo.h | 13 ++++++
 arch/mips/kernel/machine_kexec.c | 22 ++++++++++
 arch/mips/kernel/prom.c          |  7 +++
 arch/mips/kernel/relocate.c      | 37 +++++++++++++++-
 arch/mips/kernel/setup.c         | 94 ++++++++++++++++++++++++++++++++++++++--
 8 files changed, 228 insertions(+), 4 deletions(-)
 create mode 100644 arch/mips/generic/kexec.c

-- 
2.7.4

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

end of thread, other threads:[~2016-11-23 13:48 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-23 13:43 [PATCH 00/10] various fixes for kexec crashkernel support Marcin Nowakowski
2016-11-23 13:43 ` Marcin Nowakowski
2016-11-23 13:43 ` [PATCH 01/10] MIPS: do not request resources for crashkernel if one isn't defined Marcin Nowakowski
2016-11-23 13:43   ` Marcin Nowakowski
2016-11-23 13:43 ` [PATCH 02/10] MIPS: init: ensure reserved memory regions are not added to bootmem Marcin Nowakowski
2016-11-23 13:43   ` Marcin Nowakowski
2016-11-23 13:43 ` [PATCH 03/10] MIPS: init: ensure bootmem does not corrupt reserved memory Marcin Nowakowski
2016-11-23 13:43   ` Marcin Nowakowski
2016-11-23 13:43 ` [PATCH 04/10] MIPS: use early_init_fdt_reserve_self to protect DTB location Marcin Nowakowski
2016-11-23 13:43   ` Marcin Nowakowski
2016-11-23 13:43 ` [PATCH 05/10] MIPS: platform: allow for DTB to be moved during kernel relocation Marcin Nowakowski
2016-11-23 13:43   ` Marcin Nowakowski
2016-11-23 13:43 ` [PATCH 06/10] MIPS: relocate: optionally relocate the DTB Marcin Nowakowski
2016-11-23 13:43   ` Marcin Nowakowski
2016-11-23 13:43 ` [PATCH 07/10] MIPS: fix mem=X@Y commandline processing Marcin Nowakowski
2016-11-23 13:43   ` Marcin Nowakowski
2016-11-23 13:43 ` [PATCH 08/10] MIPS: kexec: do not reserve invalid crashkernel memory on boot Marcin Nowakowski
2016-11-23 13:43   ` Marcin Nowakowski
2016-11-23 13:43 ` [PATCH 09/10] MIPS: kexec: add debug info about the new kexec'ed image Marcin Nowakowski
2016-11-23 13:43   ` Marcin Nowakowski
2016-11-23 13:43 ` [PATCH 10/10] MIPS: generic/kexec: add support for a DTB passed in a separate buffer Marcin Nowakowski
2016-11-23 13:43   ` Marcin Nowakowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox