[BOOTWRAPPER PATCH 0/3] Clean up CPU node management

Mark Rutland mark.rutland at arm.com
Fri Feb 17 04:32:48 PST 2017


The bootwrapper still has some hard-coded assumptions regarding the
model, assuming things match the old RTSM VE AEMv8-A model it was
originally written for. Notably, by default it assumes a fixed
configuration of CPU IDs.

We tried to bodge around this with the addition of the --with-cpu-ids
option to the configure script, but in practice this turns out to be
fragile, with a number of non-obvious failure modes.

These patches attempt to fix this properly, by dynamically detecting the
set of CPUs from the DTB provided to the boot wrapper. The newly
redundant --with-cpu-ids option is then removed.

Thanks,
Mark.

Mark Rutland (3):
  FDT.pm: add helper to get untranslated reg
  FDT.pm: add helper to get a node's full path
  Dynamically determine the set of CPUs

 FDT.pm           | 34 ++++++++++++++++++++++++++++++++--
 Makefile.am      | 14 ++++++--------
 addpsci.pl       | 29 +++++++++++++++++++++++++++++
 configure.ac     |  8 --------
 findcpuids.pl    | 32 ++++++++++++++++++++++++++++++++
 gen-cpu-nodes.sh | 24 ------------------------
 6 files changed, 99 insertions(+), 42 deletions(-)
 create mode 100755 addpsci.pl
 create mode 100755 findcpuids.pl
 delete mode 100755 gen-cpu-nodes.sh

-- 
1.9.1




More information about the linux-arm-kernel mailing list