Skip to content

Preparatory fixes and cleanup

Mark Rutland linux-arm-kernel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 14 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12Ensure `kernel_address` is alignedarch/aarch64/spin.S+1 -11 reply
2/12Output text separately from datamodel.lds.S+2 -10 replies
3/12Remove cache maintenanceMakefile.am boot_common.c cache.c+1 -622 replies
4/12Remove `flag_no_el3`arch/aarch32/boot.S arch/aarch64/boot.S+5 -223 replies
5/12Move PSCI triage to Carch/aarch32/psci.S arch/aarch64/psci.S psci.c+21 -440 replies
6/12Move scripts to a `scripts` directoryMakefile.am scripts/FDT.pm scripts/addpsci.pl +3 more+11 -91 reply
7/12aarch64: respect text offsetMakefile.am scripts/AA64Image.pm scripts/aa64-load-offset.pl+117 -22 replies
8/12Consistently use logical CPU IDsgic-v3.c gic.c include/cpu.h +1 more+6 -81 reply
9/12Cleanup `.globl` usagearch/aarch32/boot.S arch/aarch32/psci.S arch/aarch32/stack.S +7 more+30 -441 reply
10/12aarch32: rename `_spin_dead` -> `err_invalid_id`arch/aarch32/boot.S+2 -21 reply
11/12Rename `spin.h` -> `boot.h`boot_common.c include/boot.h psci.c+5 -51 reply
12/12Move common source files to `common` directoryMakefile.am common/bakery_lock.c common/boot.c +5 more+18 -131 reply

Reviews trailers per patch

8 of 12 patches have a Reviewed-by or Acked-by.

PatchAndre Przywara
1/12R-b
2/12
3/12R-b
4/12
5/12
6/12R-b
7/12
8/12R-b
9/12R-b
10/12R-b
11/12R-b
12/12R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [boot-wrapper PATCH 00/12] Preparatory fixes and cleanup

The boot-wrapper has had periodic updates over the last few years, and with each addition becomes increasingly in need of some larger scale cleanup to keep it clear and maintainable.

While looking over Jaxson Han's ARMv8-R AArch64 series [1] I realised there are a number of existing issues and design warts that we need to clean up before it becomes harder to do so.

These patches address some existing issues with the boot-wrapper, and restructure the codebase to make it easier to navigate. I intend to merge these in the next few days if there are no objections, and will follow up with some further rework which should make it easier to add ARMv8-R AArch64 support atop.

Thanks,
Mark.

[1] https://lore.kernel.org/r/[email protected]

Mark Rutland (12):
Ensure kernel_address is aligned Output text separately from data
Remove cache maintenance
Remove flag_no_el3
Move PSCI triage to C
Move scripts to a scripts directory
aarch64: respect text offset Consistently use logical CPU IDs
Cleanup .globl usage
aarch32: rename _spin_dead -> err_invalid_id Rename spin.h -> boot.h
Move common source files to common directory

 Makefile.am                            | 53 ++++++++++++---------
 arch/aarch32/boot.S                    | 22 +++------
 arch/aarch32/psci.S                    | 27 ++---------
 arch/aarch32/stack.S                   | 11 ++---
 arch/aarch32/utils.S                   |  4 +-
 arch/aarch64/boot.S                    | 21 ++------
 arch/aarch64/psci.S                    | 30 ++----------
 arch/aarch64/spin.S                    | 10 ++--
 arch/aarch64/stack.S                   | 11 ++---
 arch/aarch64/utils.S                   |  9 ++--
 cache.c                                | 58 -----------------------
 bakery_lock.c => common/bakery_lock.c  |  0
 boot_common.c => common/boot.c         |  7 +--
 gic-v3.c => common/gic-v3.c            |  4 +-
 gic.c => common/gic.c                  |  3 +-
 lib.c => common/lib.c                  |  0
 platform.c => common/platform.c        |  0
 psci.c => common/psci.c                | 28 ++++++++---
 include/{spin.h => boot.h}             |  6 +--
 include/cpu.h                          |  2 +
 include/linkage.h                      |  6 ++-
 model.lds.S                            |  3 +-
 scripts/AA64Image.pm                   | 87 ++++++++++++++++++++++++++++++++++
 FDT.pm => scripts/FDT.pm               |  0
 scripts/aa64-load-offset.pl            | 28 +++++++++++
 addpsci.pl => scripts/addpsci.pl       |  0
 findbase.pl => scripts/findbase.pl     |  0
 findcpuids.pl => scripts/findcpuids.pl |  0
 findmem.pl => scripts/findmem.pl       |  0
 29 files changed, 218 insertions(+), 212 deletions(-)
 delete mode 100644 cache.c
 rename bakery_lock.c => common/bakery_lock.c (100%)
 rename boot_common.c => common/boot.c (93%)
 rename gic-v3.c => common/gic-v3.c (98%)
 rename gic.c => common/gic.c (96%)
 rename lib.c => common/lib.c (100%)
 rename platform.c => common/platform.c (100%)
 rename psci.c => common/psci.c (69%)
 rename include/{spin.h => boot.h} (88%)
 create mode 100755 scripts/AA64Image.pm
 rename FDT.pm => scripts/FDT.pm (100%)
 create mode 100755 scripts/aa64-load-offset.pl
 rename addpsci.pl => scripts/addpsci.pl (100%)
 rename findbase.pl => scripts/findbase.pl (100%)
 rename findcpuids.pl => scripts/findcpuids.pl (100%)
 rename findmem.pl => scripts/findmem.pl (100%)
Signature · 7 lines
2.11.0


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel