Skip to content

Commit d60a540

Browse files
committed
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux
Pull s390 updates from Heiko Carstens: "Since Martin is on vacation you get the s390 pull request for the v4.15 merge window this time from me. Besides a lot of cleanups and bug fixes these are the most important changes: - a new regset for runtime instrumentation registers - hardware accelerated AES-GCM support for the aes_s390 module - support for the new CEX6S crypto cards - support for FORTIFY_SOURCE - addition of missing z13 and new z14 instructions to the in-kernel disassembler - generate opcode tables for the in-kernel disassembler out of a simple text file instead of having to manually maintain those tables - fast memset16, memset32 and memset64 implementations - removal of named saved segment support - hardware counter support for z14 - queued spinlocks and queued rwlocks implementations for s390 - use the stack_depth tracking feature for s390 BPF JIT - a new s390_sthyi system call which emulates the sthyi (store hypervisor information) instruction - removal of the old KVM virtio transport - an s390 specific CPU alternatives implementation which is used in the new spinlock code" * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux: (88 commits) MAINTAINERS: add virtio-ccw.h to virtio/s390 section s390/noexec: execute kexec datamover without DAT s390: fix transactional execution control register handling s390/bpf: take advantage of stack_depth tracking s390: simplify transactional execution elf hwcap handling s390/zcrypt: Rework struct ap_qact_ap_info. s390/virtio: remove unused header file kvm_virtio.h s390: avoid undefined behaviour s390/disassembler: generate opcode tables from text file s390/disassembler: remove insn_to_mnemonic() s390/dasd: avoid calling do_gettimeofday() s390: vfio-ccw: Do not attempt to free no-op, test and tic cda. s390: remove named saved segment support s390/archrandom: Reconsider s390 arch random implementation s390/pci: do not require AIS facility s390/qdio: sanitize put_indicator s390/qdio: use atomic_cmpxchg s390/nmi: avoid using long-displacement facility s390: pass endianness info to sparse s390/decompressor: remove informational messages ...
2 parents 2101dd6 + 364a560 commit d60a540

125 files changed

Lines changed: 4751 additions & 4580 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Documentation/admin-guide/kernel-parameters.txt‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2548,6 +2548,9 @@
25482548

25492549
noalign [KNL,ARM]
25502550

2551+
noaltinstr [S390] Disables alternative instructions patching
2552+
(CPU alternatives feature).
2553+
25512554
noapic [SMP,APIC] Tells the kernel to not make use of any
25522555
IOAPICs that may be present in the system.
25532556

‎MAINTAINERS‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14335,6 +14335,7 @@ L: virtualization@lists.linux-foundation.org
1433514335
L: kvm@vger.kernel.org
1433614336
S: Supported
1433714337
F: drivers/s390/virtio/
14338+
F: arch/s390/include/uapi/asm/virtio-ccw.h
1433814339

1433914340
VIRTIO GPU DRIVER
1434014341
M: David Airlie <airlied@linux.ie>

‎arch/s390/Kconfig‎

Lines changed: 17 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ config S390
6868
select ARCH_BINFMT_ELF_STATE
6969
select ARCH_HAS_DEVMEM_IS_ALLOWED
7070
select ARCH_HAS_ELF_RANDOMIZE
71+
select ARCH_HAS_FORTIFY_SOURCE
7172
select ARCH_HAS_GCOV_PROFILE_ALL
7273
select ARCH_HAS_GIGANTIC_PAGE if (MEMORY_ISOLATION && COMPACTION) || CMA
7374
select ARCH_HAS_KCOV
@@ -143,7 +144,6 @@ config S390
143144
select HAVE_DYNAMIC_FTRACE
144145
select HAVE_DYNAMIC_FTRACE_WITH_REGS
145146
select HAVE_EFFICIENT_UNALIGNED_ACCESS
146-
select HAVE_EXIT_THREAD
147147
select HAVE_FTRACE_MCOUNT_RECORD
148148
select HAVE_FUNCTION_GRAPH_TRACER
149149
select HAVE_FUNCTION_TRACER
@@ -538,6 +538,22 @@ config ARCH_RANDOM
538538

539539
If unsure, say Y.
540540

541+
config ALTERNATIVES
542+
def_bool y
543+
prompt "Patch optimized instructions for running CPU type"
544+
help
545+
When enabled the kernel code is compiled with additional
546+
alternative instructions blocks optimized for newer CPU types.
547+
These alternative instructions blocks are patched at kernel boot
548+
time when running CPU supports them. This mechanism is used to
549+
optimize some critical code paths (i.e. spinlocks) for newer CPUs
550+
even if kernel is build to support older machine generations.
551+
552+
This mechanism could be disabled by appending "noaltinstr"
553+
option to the kernel command line.
554+
555+
If unsure, say Y.
556+
541557
endmenu
542558

543559
menu "Memory setup"
@@ -809,18 +825,6 @@ config PFAULT
809825
Everybody who wants to run Linux under VM != VM4.2 should select
810826
this option.
811827

812-
config SHARED_KERNEL
813-
bool "VM shared kernel support"
814-
depends on !JUMP_LABEL
815-
help
816-
Select this option, if you want to share the text segment of the
817-
Linux kernel between different VM guests. This reduces memory
818-
usage with lots of guests but greatly increases kernel size.
819-
Also if a kernel was IPL'ed from a shared segment the kexec system
820-
call will not work.
821-
You should only select this option if you know what you are
822-
doing and want to exploit this feature.
823-
824828
config CMM
825829
def_tristate n
826830
prompt "Cooperative memory management"
@@ -930,17 +934,4 @@ config S390_GUEST
930934
Select this option if you want to run the kernel as a guest under
931935
the KVM hypervisor.
932936

933-
config S390_GUEST_OLD_TRANSPORT
934-
def_bool y
935-
prompt "Guest support for old s390 virtio transport (DEPRECATED)"
936-
depends on S390_GUEST
937-
help
938-
Enable this option to add support for the old s390-virtio
939-
transport (i.e. virtio devices NOT based on virtio-ccw). This
940-
type of virtio devices is only available on the experimental
941-
kuli userspace or with old (< 2.6) qemu. If you are running
942-
with a modern version of qemu (which supports virtio-ccw since
943-
1.4 and uses it by default since version 2.4), you probably won't
944-
need this.
945-
946937
endmenu

‎arch/s390/Makefile‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ KBUILD_CFLAGS += -m64
2121
KBUILD_AFLAGS += -m64
2222
UTS_MACHINE := s390x
2323
STACK_SIZE := 16384
24-
CHECKFLAGS += -D__s390__ -D__s390x__
24+
CHECKFLAGS += -D__s390__ -D__s390x__ -mbig-endian
2525

2626
export LD_BFD
2727

@@ -133,6 +133,7 @@ archclean:
133133

134134
archprepare:
135135
$(Q)$(MAKE) $(build)=$(tools) include/generated/facilities.h
136+
$(Q)$(MAKE) $(build)=$(tools) include/generated/dis.h
136137

137138
# Don't use tabs in echo arguments
138139
define archhelp

‎arch/s390/boot/compressed/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ targets += vmlinux.bin.xz vmlinux.bin.lzma vmlinux.bin.lzo vmlinux.bin.lz4
1212
targets += misc.o piggy.o sizes.h head.o
1313

1414
KBUILD_CFLAGS := -m64 -D__KERNEL__ -O2
15-
KBUILD_CFLAGS += -DDISABLE_BRANCH_PROFILING
15+
KBUILD_CFLAGS += -DDISABLE_BRANCH_PROFILING -D__NO_FORTIFY
1616
KBUILD_CFLAGS += $(cflags-y) -fno-delete-null-pointer-checks -msoft-float
1717
KBUILD_CFLAGS += $(call cc-option,-mpacked-stack)
1818
KBUILD_CFLAGS += $(call cc-option,-ffreestanding)

‎arch/s390/boot/compressed/misc.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,7 @@ unsigned long decompress_kernel(void)
170170
free_mem_ptr = (unsigned long) &_end;
171171
free_mem_end_ptr = free_mem_ptr + HEAP_SIZE;
172172

173-
puts("Uncompressing Linux... ");
174173
__decompress(input_data, input_len, NULL, NULL, output, 0, NULL, error);
175-
puts("Ok, booting the kernel.\n");
176174
return (unsigned long) output;
177175
}
178176

‎arch/s390/configs/default_defconfig‎

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ CONFIG_KSM=y
6969
CONFIG_TRANSPARENT_HUGEPAGE=y
7070
CONFIG_CLEANCACHE=y
7171
CONFIG_FRONTSWAP=y
72-
CONFIG_CMA=y
7372
CONFIG_CMA_DEBUG=y
7473
CONFIG_CMA_DEBUGFS=y
7574
CONFIG_MEM_SOFT_DIRTY=y
@@ -379,7 +378,6 @@ CONFIG_BLK_DEV_LOOP=m
379378
CONFIG_BLK_DEV_CRYPTOLOOP=m
380379
CONFIG_BLK_DEV_DRBD=m
381380
CONFIG_BLK_DEV_NBD=m
382-
CONFIG_BLK_DEV_OSD=m
383381
CONFIG_BLK_DEV_RAM=y
384382
CONFIG_BLK_DEV_RAM_SIZE=32768
385383
CONFIG_BLK_DEV_RAM_DAX=y
@@ -416,7 +414,6 @@ CONFIG_SCSI_OSD_ULD=m
416414
CONFIG_MD=y
417415
CONFIG_BLK_DEV_MD=y
418416
CONFIG_MD_LINEAR=m
419-
CONFIG_MD_RAID0=m
420417
CONFIG_MD_MULTIPATH=m
421418
CONFIG_MD_FAULTY=m
422419
CONFIG_BLK_DEV_DM=m
@@ -483,6 +480,8 @@ CONFIG_INFINIBAND=m
483480
CONFIG_INFINIBAND_USER_ACCESS=m
484481
CONFIG_MLX4_INFINIBAND=m
485482
CONFIG_MLX5_INFINIBAND=m
483+
CONFIG_VFIO=m
484+
CONFIG_VFIO_PCI=m
486485
CONFIG_VIRTIO_BALLOON=m
487486
CONFIG_EXT4_FS=y
488487
CONFIG_EXT4_FS_POSIX_ACL=y
@@ -599,7 +598,6 @@ CONFIG_DETECT_HUNG_TASK=y
599598
CONFIG_WQ_WATCHDOG=y
600599
CONFIG_PANIC_ON_OOPS=y
601600
CONFIG_DEBUG_TIMEKEEPING=y
602-
CONFIG_DEBUG_RT_MUTEXES=y
603601
CONFIG_DEBUG_WW_MUTEX_SLOWPATH=y
604602
CONFIG_PROVE_LOCKING=y
605603
CONFIG_LOCK_STAT=y
@@ -629,10 +627,8 @@ CONFIG_SCHED_TRACER=y
629627
CONFIG_FTRACE_SYSCALLS=y
630628
CONFIG_STACK_TRACER=y
631629
CONFIG_BLK_DEV_IO_TRACE=y
632-
CONFIG_UPROBE_EVENTS=y
633630
CONFIG_FUNCTION_PROFILER=y
634631
CONFIG_HIST_TRIGGERS=y
635-
CONFIG_TRACE_ENUM_MAP_FILE=y
636632
CONFIG_LKDTM=m
637633
CONFIG_TEST_LIST_SORT=y
638634
CONFIG_TEST_SORT=y
@@ -649,6 +645,7 @@ CONFIG_ENCRYPTED_KEYS=m
649645
CONFIG_SECURITY=y
650646
CONFIG_SECURITY_NETWORK=y
651647
CONFIG_HARDENED_USERCOPY=y
648+
CONFIG_FORTIFY_SOURCE=y
652649
CONFIG_SECURITY_SELINUX=y
653650
CONFIG_SECURITY_SELINUX_BOOTPARAM=y
654651
CONFIG_SECURITY_SELINUX_BOOTPARAM_VALUE=0
@@ -705,12 +702,12 @@ CONFIG_CRYPTO_USER_API_RNG=m
705702
CONFIG_CRYPTO_USER_API_AEAD=m
706703
CONFIG_ZCRYPT=m
707704
CONFIG_PKEY=m
705+
CONFIG_CRYPTO_PAES_S390=m
708706
CONFIG_CRYPTO_SHA1_S390=m
709707
CONFIG_CRYPTO_SHA256_S390=m
710708
CONFIG_CRYPTO_SHA512_S390=m
711709
CONFIG_CRYPTO_DES_S390=m
712710
CONFIG_CRYPTO_AES_S390=m
713-
CONFIG_CRYPTO_PAES_S390=m
714711
CONFIG_CRYPTO_GHASH_S390=m
715712
CONFIG_CRYPTO_CRC32_S390=y
716713
CONFIG_ASYMMETRIC_KEY_TYPE=y

‎arch/s390/configs/gcov_defconfig‎

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ CONFIG_KSM=y
7070
CONFIG_TRANSPARENT_HUGEPAGE=y
7171
CONFIG_CLEANCACHE=y
7272
CONFIG_FRONTSWAP=y
73-
CONFIG_CMA=y
7473
CONFIG_MEM_SOFT_DIRTY=y
7574
CONFIG_ZSWAP=y
7675
CONFIG_ZBUD=m
@@ -376,7 +375,6 @@ CONFIG_BLK_DEV_LOOP=m
376375
CONFIG_BLK_DEV_CRYPTOLOOP=m
377376
CONFIG_BLK_DEV_DRBD=m
378377
CONFIG_BLK_DEV_NBD=m
379-
CONFIG_BLK_DEV_OSD=m
380378
CONFIG_BLK_DEV_RAM=y
381379
CONFIG_BLK_DEV_RAM_SIZE=32768
382380
CONFIG_BLK_DEV_RAM_DAX=y
@@ -412,7 +410,6 @@ CONFIG_SCSI_OSD_ULD=m
412410
CONFIG_MD=y
413411
CONFIG_BLK_DEV_MD=y
414412
CONFIG_MD_LINEAR=m
415-
CONFIG_MD_RAID0=m
416413
CONFIG_MD_MULTIPATH=m
417414
CONFIG_MD_FAULTY=m
418415
CONFIG_BLK_DEV_DM=m
@@ -479,6 +476,8 @@ CONFIG_INFINIBAND=m
479476
CONFIG_INFINIBAND_USER_ACCESS=m
480477
CONFIG_MLX4_INFINIBAND=m
481478
CONFIG_MLX5_INFINIBAND=m
479+
CONFIG_VFIO=m
480+
CONFIG_VFIO_PCI=m
482481
CONFIG_VIRTIO_BALLOON=m
483482
CONFIG_EXT4_FS=y
484483
CONFIG_EXT4_FS_POSIX_ACL=y
@@ -575,10 +574,8 @@ CONFIG_SCHED_TRACER=y
575574
CONFIG_FTRACE_SYSCALLS=y
576575
CONFIG_STACK_TRACER=y
577576
CONFIG_BLK_DEV_IO_TRACE=y
578-
CONFIG_UPROBE_EVENTS=y
579577
CONFIG_FUNCTION_PROFILER=y
580578
CONFIG_HIST_TRIGGERS=y
581-
CONFIG_TRACE_ENUM_MAP_FILE=y
582579
CONFIG_LKDTM=m
583580
CONFIG_PERCPU_TEST=m
584581
CONFIG_ATOMIC64_SELFTEST=y
@@ -650,12 +647,12 @@ CONFIG_CRYPTO_USER_API_RNG=m
650647
CONFIG_CRYPTO_USER_API_AEAD=m
651648
CONFIG_ZCRYPT=m
652649
CONFIG_PKEY=m
650+
CONFIG_CRYPTO_PAES_S390=m
653651
CONFIG_CRYPTO_SHA1_S390=m
654652
CONFIG_CRYPTO_SHA256_S390=m
655653
CONFIG_CRYPTO_SHA512_S390=m
656654
CONFIG_CRYPTO_DES_S390=m
657655
CONFIG_CRYPTO_AES_S390=m
658-
CONFIG_CRYPTO_PAES_S390=m
659656
CONFIG_CRYPTO_GHASH_S390=m
660657
CONFIG_CRYPTO_CRC32_S390=y
661658
CONFIG_CRC7=m

‎arch/s390/configs/performance_defconfig‎

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ CONFIG_KSM=y
6868
CONFIG_TRANSPARENT_HUGEPAGE=y
6969
CONFIG_CLEANCACHE=y
7070
CONFIG_FRONTSWAP=y
71-
CONFIG_CMA=y
7271
CONFIG_MEM_SOFT_DIRTY=y
7372
CONFIG_ZSWAP=y
7473
CONFIG_ZBUD=m
@@ -374,7 +373,6 @@ CONFIG_BLK_DEV_LOOP=m
374373
CONFIG_BLK_DEV_CRYPTOLOOP=m
375374
CONFIG_BLK_DEV_DRBD=m
376375
CONFIG_BLK_DEV_NBD=m
377-
CONFIG_BLK_DEV_OSD=m
378376
CONFIG_BLK_DEV_RAM=y
379377
CONFIG_BLK_DEV_RAM_SIZE=32768
380378
CONFIG_BLK_DEV_RAM_DAX=y
@@ -410,7 +408,6 @@ CONFIG_SCSI_OSD_ULD=m
410408
CONFIG_MD=y
411409
CONFIG_BLK_DEV_MD=y
412410
CONFIG_MD_LINEAR=m
413-
CONFIG_MD_RAID0=m
414411
CONFIG_MD_MULTIPATH=m
415412
CONFIG_MD_FAULTY=m
416413
CONFIG_BLK_DEV_DM=m
@@ -477,6 +474,8 @@ CONFIG_INFINIBAND=m
477474
CONFIG_INFINIBAND_USER_ACCESS=m
478475
CONFIG_MLX4_INFINIBAND=m
479476
CONFIG_MLX5_INFINIBAND=m
477+
CONFIG_VFIO=m
478+
CONFIG_VFIO_PCI=m
480479
CONFIG_VIRTIO_BALLOON=m
481480
CONFIG_EXT4_FS=y
482481
CONFIG_EXT4_FS_POSIX_ACL=y
@@ -573,10 +572,8 @@ CONFIG_SCHED_TRACER=y
573572
CONFIG_FTRACE_SYSCALLS=y
574573
CONFIG_STACK_TRACER=y
575574
CONFIG_BLK_DEV_IO_TRACE=y
576-
CONFIG_UPROBE_EVENTS=y
577575
CONFIG_FUNCTION_PROFILER=y
578576
CONFIG_HIST_TRIGGERS=y
579-
CONFIG_TRACE_ENUM_MAP_FILE=y
580577
CONFIG_LKDTM=m
581578
CONFIG_PERCPU_TEST=m
582579
CONFIG_ATOMIC64_SELFTEST=y
@@ -648,12 +645,12 @@ CONFIG_CRYPTO_USER_API_RNG=m
648645
CONFIG_CRYPTO_USER_API_AEAD=m
649646
CONFIG_ZCRYPT=m
650647
CONFIG_PKEY=m
648+
CONFIG_CRYPTO_PAES_S390=m
651649
CONFIG_CRYPTO_SHA1_S390=m
652650
CONFIG_CRYPTO_SHA256_S390=m
653651
CONFIG_CRYPTO_SHA512_S390=m
654652
CONFIG_CRYPTO_DES_S390=m
655653
CONFIG_CRYPTO_AES_S390=m
656-
CONFIG_CRYPTO_PAES_S390=m
657654
CONFIG_CRYPTO_GHASH_S390=m
658655
CONFIG_CRYPTO_CRC32_S390=y
659656
CONFIG_CRC7=m

0 commit comments

Comments
 (0)