linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/8] s390: allow to build with llvm's integrated assembler
@ 2022-05-11 12:05 Heiko Carstens
  2022-05-11 12:05 ` [PATCH 1/8] s390/alternatives: provide identical sized orginal/alternative sequences Heiko Carstens
                   ` (9 more replies)
  0 siblings, 10 replies; 41+ messages in thread
From: Heiko Carstens @ 2022-05-11 12:05 UTC (permalink / raw)
  To: Vasily Gorbik, Alexander Gordeev, Jonas Paulsson, Ulrich Weigand,
	Masahiro Yamada, Alexander Egorenkov
  Cc: Sven Schnelle, Andreas Krebbel, Nathan Chancellor,
	Nick Desaulniers, linux-kernel, linux-s390

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(-)

-- 
2.32.0


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

end of thread, other threads:[~2022-05-16 14:06 UTC | newest]

Thread overview: 41+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-11 12:05 [PATCH 0/8] s390: allow to build with llvm's integrated assembler Heiko Carstens
2022-05-11 12:05 ` [PATCH 1/8] s390/alternatives: provide identical sized orginal/alternative sequences Heiko Carstens
2022-05-13  9:17   ` Vasily Gorbik
2022-05-11 12:05 ` [PATCH 2/8] s390/alternatives: remove padding generation code Heiko Carstens
2022-05-11 17:02   ` Heiko Carstens
2022-05-13  9:18   ` Vasily Gorbik
2022-05-11 12:05 ` [PATCH 3/8] s390/entry: shorten OUTSIDE macro Heiko Carstens
2022-05-12 15:59   ` kernel test robot
2022-05-12 16:20   ` kernel test robot
2022-05-12 17:21   ` Heiko Carstens
2022-05-12 18:00     ` Nick Desaulniers
2022-05-12 19:15       ` Heiko Carstens
2022-05-12 19:25         ` Nick Desaulniers
2022-05-13 12:29           ` Heiko Carstens
2022-05-11 12:05 ` [PATCH 4/8] s390/entry: workaround llvm's IAS limitations Heiko Carstens
2022-05-11 17:30   ` Nathan Chancellor
2022-05-12 17:24     ` Heiko Carstens
2022-05-12 19:06       ` Nathan Chancellor
2022-05-12 19:16         ` Heiko Carstens
2022-05-16  9:07       ` Alexander Gordeev
2022-05-16 10:19         ` Heiko Carstens
2022-05-16 10:42           ` Jonas Paulsson
2022-05-16 11:11           ` Alexander Gordeev
2022-05-16 14:05             ` Heiko Carstens
2022-05-11 12:05 ` [PATCH 5/8] s390/purgatory: " Heiko Carstens
2022-05-11 19:54   ` Nick Desaulniers
2022-05-12 17:26     ` Heiko Carstens
2022-05-12 17:25   ` Heiko Carstens
2022-05-11 12:05 ` [PATCH 6/8] s390/boot: workaround llvm IAS bug Heiko Carstens
2022-05-11 19:50   ` Nick Desaulniers
2022-05-11 12:05 ` [PATCH 7/8] s390/boot: do not emit debug info for assembly with llvm's IAS Heiko Carstens
2022-05-11 19:40   ` Nick Desaulniers
2022-05-12 17:30     ` Heiko Carstens
2022-05-11 12:05 ` [PATCH 8/8] scripts/min-tool-version.sh: raise minimum clang version to 14.0.0 for s390 Heiko Carstens
2022-05-11 19:27   ` Nick Desaulniers
2022-05-11 19:56     ` Nick Desaulniers
2022-05-12 19:06       ` Heiko Carstens
2022-05-11 19:48 ` [PATCH 0/8] s390: allow to build with llvm's integrated assembler Nick Desaulniers
2022-05-12 19:04   ` Heiko Carstens
2022-05-11 20:52 ` Nathan Chancellor
2022-05-12 19:03   ` Heiko Carstens

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).