Merge tag 's390-6.12-1' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux
authorLinus Torvalds <torvalds@linux-foundation.org>
Sat, 21 Sep 2024 16:02:54 +0000 (09:02 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 21 Sep 2024 16:02:54 +0000 (09:02 -0700)
Pull s390 updates from Vasily Gorbik:

 - Optimize ftrace and kprobes code patching and avoid stop machine for
   kprobes if sequential instruction fetching facility is available

 - Add hiperdispatch feature to dynamically adjust CPU capacity in
   vertical polarization to improve scheduling efficiency and overall
   performance. Also add infrastructure for handling warning track
   interrupts (WTI), allowing for graceful CPU preemption

 - Rework crypto code pkey module and split it into separate,
   independent modules for sysfs, PCKMO, CCA, and EP11, allowing modules
   to load only when the relevant hardware is available

 - Add hardware acceleration for HMAC modes and the full AES-XTS cipher,
   utilizing message-security assist extensions (MSA) 10 and 11. It
   introduces new shash implementations for HMAC-SHA224/256/384/512 and
   registers the hardware-accelerated AES-XTS cipher as the preferred
   option. Also add clear key token support

 - Add MSA 10 and 11 processor activity instrumentation counters to perf
   and update PAI Extension 1 NNPA counters

 - Cleanup cpu sampling facility code and rework debug/WARN_ON_ONCE
   statements

 - Add support for SHA3 performance enhancements introduced with MSA 12

 - Add support for the query authentication information feature of MSA
   13 and introduce the KDSA CPACF instruction. Provide query and query
   authentication information in sysfs, enabling tools like cpacfinfo to
   present this data in a human-readable form

 - Update kernel disassembler instructions

 - Always enable EXPOLINE_EXTERN if supported by the compiler to ensure
   kpatch compatibility

 - Add missing warning handling and relocated lowcore support to the
   early program check handler

 - Optimize ftrace_return_address() and avoid calling unwinder

 - Make modules use kernel ftrace trampolines

 - Strip relocs from the final vmlinux ELF file to make it roughly 2
   times smaller

 - Dump register contents and call trace for early crashes to the
   console

 - Generate ptdump address marker array dynamically

 - Fix rcu_sched stalls that might occur when adding or removing large
   amounts of pages at once to or from the CMM balloon

 - Fix deadlock caused by recursive lock of the AP bus scan mutex

 - Unify sync and async register save areas in entry code

 - Cleanup debug prints in crypto code

 - Various cleanup and sanitizing patches for the decompressor

 - Various small ftrace cleanups

* tag 's390-6.12-1' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux: (84 commits)
  s390/crypto: Display Query and Query Authentication Information in sysfs
  s390/crypto: Add Support for Query Authentication Information
  s390/crypto: Rework RRE and RRF CPACF inline functions
  s390/crypto: Add KDSA CPACF Instruction
  s390/disassembler: Remove duplicate instruction format RSY_RDRU
  s390/boot: Move boot_printk() code to own file
  s390/boot: Use boot_printk() instead of sclp_early_printk()
  s390/boot: Rename decompressor_printk() to boot_printk()
  s390/boot: Compile all files with the same march flag
  s390: Use MARCH_HAS_*_FEATURES defines
  s390: Provide MARCH_HAS_*_FEATURES defines
  s390/facility: Disable compile time optimization for decompressor code
  s390/boot: Increase minimum architecture to z10
  s390/als: Remove obsolete comment
  s390/sha3: Fix SHA3 selftests failures
  s390/pkey: Add AES xts and HMAC clear key token support
  s390/cpacf: Add MSA 10 and 11 new PCKMO functions
  s390/mm: Add cond_resched() to cmm_alloc/free_pages()
  s390/pai_ext: Update PAI extension 1 counters
  s390/pai_crypto: Add support for MSA 10 and 11 pai counters
  ...

1  2 
arch/s390/Kconfig
arch/s390/boot/startup.c
arch/s390/kernel/entry.S
arch/s390/mm/dump_pagetables.c
drivers/s390/crypto/ap_bus.c

Simple merge
Simple merge
Simple merge
index 0a67fcee44141e966ff514784752c10a6973167d,9e2dc42143b3cd539e4353118b2a2d775cd63840..fa54f3bc0c8d376d1ca206c4edd5c0c714679a81
@@@ -310,6 -247,34 +247,34 @@@ static int ptdump_cmp(const void *a, co
        return 0;
  }
  
 -              markers = kvrealloc(markers, oldsize, newsize, GFP_KERNEL);
+ static int add_marker(unsigned long start, unsigned long end, const char *name)
+ {
+       size_t oldsize, newsize;
+       oldsize = markers_cnt * sizeof(*markers);
+       newsize = oldsize + 2 * sizeof(*markers);
+       if (!oldsize)
+               markers = kvmalloc(newsize, GFP_KERNEL);
+       else
++              markers = kvrealloc(markers, newsize, GFP_KERNEL);
+       if (!markers)
+               goto error;
+       markers[markers_cnt].is_start = 1;
+       markers[markers_cnt].start_address = start;
+       markers[markers_cnt].size = end - start;
+       markers[markers_cnt].name = name;
+       markers_cnt++;
+       markers[markers_cnt].is_start = 0;
+       markers[markers_cnt].start_address = end;
+       markers[markers_cnt].size = end - start;
+       markers[markers_cnt].name = name;
+       markers_cnt++;
+       return 0;
+ error:
+       markers_cnt = 0;
+       return -ENOMEM;
+ }
  static int pt_dump_init(void)
  {
  #ifdef CONFIG_KFENCE
Simple merge