Skip to content

s390: allow to build with llvm's integrated assembler

Heiko Carstens linux-s390 lkml llvm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 30 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8s390/alternatives: provide identical sized orginal/alternative sequencesarch/s390/include/asm/spinlock.h arch/s390/kernel/entry.S arch/s390/lib/spinlock.c+13 -131 reply
2/8s390/alternatives: remove padding generation codearch/s390/include/asm/alternative-asm.h arch/s390/include/asm/alternative.h arch/s390/kernel/alternative.c+31 -1992 replies
3/8s390/entry: shorten OUTSIDE macroarch/s390/kernel/entry.S+3 -55 replies
4/8s390/entry: workaround llvm's IAS limitationsarch/s390/kernel/entry.S+11 -09 replies
5/8s390/purgatory: workaround llvm's IAS limitationsarch/s390/purgatory/head.S+22 -73 replies
6/8s390/boot: workaround llvm IAS bugarch/s390/boot/head.S+21 -131 reply
7/8s390/boot: do not emit debug info for assembly with llvm's IASarch/s390/Makefile+2 -02 replies
8/8scripts/min-tool-version.sh: raise minimum clang version to 14.0.0 for s390scripts/min-tool-version.sh+1 -23 replies

Reviews trailers per patch

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

PatchNick DesaulniersNathan ChancellorVasily GorbikAlexander Gordeev
SeriesT-b T-b
1/8A-b
2/8A-b
3/8
4/8A-b
5/8
6/8
7/8
8/8A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v1 thread

Cover letter [PATCH 0/8] s390: allow to build with llvm's integrated assembler

A couple of patches which in result make it finally possible to build the kernel for s390 with llvm's integrated assembler. Several configs build without errors or warnings, and the kernel also works as expected.

Note that patch 6 ("s390/boot: workaround llvm IAS bug") reveals a miscompile. This looks like a bug in the instruction definitions of the mvc and clc instructions(?). I'd like to ask people to look into this, since this silently generated broken code.

This patch series is based on linux-next, which contains two additional required s390 specific patches to make llvm's IAS work.

Thanks,
Heiko

Heiko Carstens (8):
s390/alternatives: provide identical sized orginal/alternative sequences s390/alternatives: remove padding generation code
s390/entry: shorten OUTSIDE macro
s390/entry: workaround llvm's IAS limitations
s390/purgatory: workaround llvm's IAS limitations
s390/boot: workaround llvm IAS bug
s390/boot: do not emit debug info for assembly with llvm's IAS scripts/min-tool-version.sh: raise minimum clang version to 14.0.0 for s390

 arch/s390/Makefile                      |  2 +
 arch/s390/boot/head.S                   | 34 +++++----
 arch/s390/include/asm/alternative-asm.h | 76 +++-----------------
 arch/s390/include/asm/alternative.h     | 93 ++++++-------------------
 arch/s390/include/asm/spinlock.h        |  2 +-
 arch/s390/kernel/alternative.c          | 61 +---------------
 arch/s390/kernel/entry.S                | 39 +++++++----
 arch/s390/lib/spinlock.c                |  4 +-
 arch/s390/purgatory/head.S              | 29 ++++++--
 scripts/min-tool-version.sh             |  3 +-
 10 files changed, 104 insertions(+), 239 deletions(-)
Signature · 1 line
2.32.0