mbox series

[RFC,0/4] virtual memory for OPAL boot

Message ID 20190302130626.19647-1-npiggin@gmail.com
Headers show
Series virtual memory for OPAL boot | expand

Message

Nicholas Piggin March 2, 2019, 1:06 p.m. UTC
I've made quite a few improvements and bug fixes, but not much
change in concept. This is booting pretty reliably on a P9 WSP
platform. Haven't tested P8 or other platforms, and there's a
weird checkstop with STB I haven't debugged (so just commented
out the code).

Nicholas Piggin (4):
  asm/head: move unnecessary code out of head
  core/exceptions.c: rearrange code to allow more interrupt types
  asm/head.S: set POWER9 radix HID bit at entry
  virtual memory for OPAL boot

 asm/head.S           | 138 +-------
 asm/misc.S           | 138 ++++++++
 core/Makefile.inc    |   2 +-
 core/cpu.c           |  19 +-
 core/exceptions.c    |  56 +++-
 core/flash.c         |   4 +-
 core/init.c          | 118 +++++--
 core/mem_region.c    |  67 ++--
 core/opal.c          |  14 +-
 core/vm.c            | 781 +++++++++++++++++++++++++++++++++++++++++++
 hdata/spira.c        |  21 +-
 hw/fake-nvram.c      |  12 +-
 hw/homer.c           |   5 +
 hw/lpc-uart.c        |  31 +-
 hw/lpc.c             |   2 +
 hw/phb4.c            |   9 +-
 hw/psi.c             |   2 +
 hw/slw.c             |   4 +-
 hw/xive.c            |   5 +
 hw/xscom.c           |   4 +-
 include/cpu.h        |  21 +-
 include/io.h         |  57 +++-
 include/mem_region.h |   1 +
 include/processor.h  |  12 +-
 include/skiboot.h    |  26 ++
 libstb/container.c   |  12 +-
 skiboot.lds.S        |  77 +++--
 27 files changed, 1394 insertions(+), 244 deletions(-)
 create mode 100644 core/vm.c