[tip: objtool/core] x86/insn: Support big endian cross-compiles

2021-01-18 Thread tip-bot2 for Martin Schwidefsky
The following commit has been merged into the objtool/core branch of tip: Commit-ID: 1d509f2a6ebca1aea3089c769f6375f01a832e9b Gitweb: https://git.kernel.org/tip/1d509f2a6ebca1aea3089c769f6375f01a832e9b Author:Martin Schwidefsky AuthorDate:Fri, 13 Nov 2020 00:03:23 +01:00

[tip: objtool/core] objtool: Fix reloc generation on big endian cross-compiles

2021-01-18 Thread tip-bot2 for Martin Schwidefsky
The following commit has been merged into the objtool/core branch of tip: Commit-ID: a1a664ece586457e9f7652b0bc5b08386259e358 Gitweb: https://git.kernel.org/tip/a1a664ece586457e9f7652b0bc5b08386259e358 Author:Martin Schwidefsky AuthorDate:Fri, 13 Nov 2020 00:03:26 +01:00

[tip: objtool/core] objtool: Fix reloc generation on big endian cross compiles

2020-10-07 Thread tip-bot2 for Martin Schwidefsky
The following commit has been merged into the objtool/core branch of tip: Commit-ID: 317664a7fcc99d9bcc0cb33ac05e27764f3024e4 Gitweb: https://git.kernel.org/tip/317664a7fcc99d9bcc0cb33ac05e27764f3024e4 Author:Martin Schwidefsky AuthorDate:Sun, 04 Oct 2020 16:30:50 +02:00

[tip: objtool/core] x86/insn: Support big endian cross-compiles

2020-10-07 Thread tip-bot2 for Martin Schwidefsky
The following commit has been merged into the objtool/core branch of tip: Commit-ID: 2a522b53c47051d3bf98748418f4f8e5f20d2c04 Gitweb: https://git.kernel.org/tip/2a522b53c47051d3bf98748418f4f8e5f20d2c04 Author:Martin Schwidefsky AuthorDate:Mon, 05 Oct 2020 17:50:31 +02:00

Re: [PATCH] s390: mark __cpacf_check_opcode() and cpacf_query_func() as __always_inline

2019-05-17 Thread Martin Schwidefsky
On Fri, 17 May 2019 15:54:24 +0900 Masahiro Yamada wrote: > Commit e60fb8bf68d4 ("s390/cpacf: mark scpacf_query() as __always_inline") > was not enough to make sure to meet the 'i' (immediate) constraint for the > asm operands. > > With CONFIG_OPTIMIZE_INLINING enabled, Laura Abbott reported

Re: [PATCH] s390: add unreachable() to dump_fault_info() to fix -Wmaybe-uninitialized

2019-05-17 Thread Martin Schwidefsky
On Fri, 17 May 2019 15:49:22 +0900 Masahiro Yamada wrote: > When CONFIG_OPTIMIZE_INLINING is enabled for s390, I see this warning: > > arch/s390/mm/fault.c:127:15: warning: 'asce' may be used uninitialized in > this function [-Wmaybe-uninitialized] > switch (asce & _ASCE_TYPE_MASK) { >

[GIT PULL] s390 patches for the 5.2 merge window #2

2019-05-17 Thread Martin Schwidefsky
Wiedmann (3): s390/qdio: allow to scan all Output SBALs in one go s390/qdio: use get_buf_state() in debug_get_buf_state() s390/qdio: optimize state inspection of HW-owned SBALs Martin Schwidefsky (1): s390/boot: fix compiler error due to missing awk strtonum Masahiro Yamada (1

Re: [PATCH] s390: move arch/s390/defconfig to arch/s390/configs/defconfig

2019-05-15 Thread Martin Schwidefsky
On Mon, 13 May 2019 11:11:16 +0900 Masahiro Yamada wrote: > As of Linux 5.1, alpha and s390 are the last architectures that > have defconfig in arch/*/ instead of arch/*/configs/. > > $ find arch -name defconfig | sort > arch/alpha/defconfig > arch/arm64/configs/defconfig >

Re: [PATCH] latent_entropy: avoid build error when plugin cflags are not set

2019-05-08 Thread Martin Schwidefsky
On Tue, 7 May 2019 09:16:29 -0700 Kees Cook wrote: > On Tue, May 7, 2019 at 7:28 AM Vasily Gorbik wrote: > > Some architectures set up CFLAGS for linux decompressor phase from > > scratch and do not include GCC_PLUGINS_CFLAGS. Since "latent_entropy" > > variable declaration is generated by the

[GIT PULL] s390 patches for the 5.2 merge window

2019-05-06 Thread Martin Schwidefsky
/qdio: eliminate queue's last_move cursor s390/qdio: limit direct access to first_to_check cursor s390/qdio: consolidate index tracking for queue scan Martin Schwidefsky (21): s390/rseq: use trap4 for RSEQ_SIG s390: fine-tune stack switch helper s390/mm: make

Re: Linux 5.1-rc5

2019-05-02 Thread Martin Schwidefsky
On Thu, 2 May 2019 16:31:10 +0200 Greg KH wrote: > On Thu, May 02, 2019 at 04:17:58PM +0200, Martin Schwidefsky wrote: > > On Thu, 2 May 2019 14:21:28 +0200 > > Greg KH wrote: > > > > > On Mon, Apr 15, 2019 at 09:17:10AM -0700, Linus Torvalds wrote: > >

[GIT PULL] s390 patches for 5.1-rc6

2019-04-18 Thread Martin Schwidefsky
Perches (1): s390/mem_detect: Use IS_ENABLED(CONFIG_BLK_DEV_INITRD) Martin Schwidefsky (1): s390/3270: fix lockdep false positive on view->lock Peter Oberparleiter (1): s390/dasd: Fix capacity calculation for large volumes Vasily Gorbik (1): s390: correct some inl

Re: [PATCH 2/2] s390: boot, purgatory: pass $(CLANG_FLAGS) where needed

2019-04-15 Thread Martin Schwidefsky
On Thu, 11 Apr 2019 11:08:31 -0700 Nick Desaulniers wrote: > On Thu, Apr 11, 2019 at 1:52 AM Arnd Bergmann wrote: > > > > On Thu, Apr 11, 2019 at 12:14 AM 'Nick Desaulniers' via Clang Built > > Linux wrote: > > > On Wed, Apr 10, 2019 at 1:13 PM Arnd Bergmann wrote: > > > > > > > > The

Re: [PATCH 05/12] s390: zcrypt: initialize variables before_use

2019-04-11 Thread Martin Schwidefsky
On Wed, 10 Apr 2019 20:57:21 +0200 Arnd Bergmann wrote: > On Wed, Apr 10, 2019 at 5:59 PM Martin Schwidefsky > wrote: > > On Tue, 9 Apr 2019 11:54:30 +0200 Harald Freudenberger > > wrote: > > > On 08.04.19 23:26, Arnd Bergmann wrote: > > >

Re: [PATCH 10/12] s390: avoid __builtin_return_address(n) on clang

2019-04-11 Thread Martin Schwidefsky
On Wed, 10 Apr 2019 21:07:56 +0200 Arnd Bergmann wrote: > On Wed, Apr 10, 2019 at 6:14 PM Steven Rostedt wrote: > > On Wed, 10 Apr 2019 18:03:57 +0200 Martin Schwidefsky > > wrote: > > > > > > --- a/arch/s390/include/asm/ftrace.h > > > > +++ b/ar

Re: rseq/s390: choosing code signature

2019-04-10 Thread Martin Schwidefsky
On Wed, 10 Apr 2019 11:57:36 -0400 (EDT) Mathieu Desnoyers wrote: > - On Apr 10, 2019, at 11:52 AM, schwidefsky schwidef...@de.ibm.com wrote: > > > On Wed, 10 Apr 2019 11:50:39 -0400 (EDT) > > Mathieu Desnoyers wrote: > > > >> ----- On Apr 10, 2019,

Re: [PATCH 10/12] s390: avoid __builtin_return_address(n) on clang

2019-04-10 Thread Martin Schwidefsky
On Mon, 8 Apr 2019 23:26:23 +0200 Arnd Bergmann wrote: > llvm on s390 has problems with __builtin_return_address(n), with n>0, > this results in a somewhat cryptic error message: > > fatal error: error in backend: Unsupported stack frame traversal count > > To work around it, use the direct

Re: [PATCH 11/12] s390: make chkbss work with clang

2019-04-10 Thread Martin Schwidefsky
On Mon, 8 Apr 2019 23:26:24 +0200 Arnd Bergmann wrote: > llvm skips an empty .bss section entirely, which makes > the check fail with an unexpected error: > > /tmp/binutils-multi-test/bin/s390x-linux-gnu-objdump: section '.bss' > mentioned in a -j option, but not found in any input file >

Re: [PATCH 08/12] s390: syscall_wrapper: avoid clang warning

2019-04-10 Thread Martin Schwidefsky
On Mon, 8 Apr 2019 23:26:21 +0200 Arnd Bergmann wrote: > Building system calls with clang results in a warning > about an alias from a global function to a static one: > > ../fs/namei.c:3847:1: warning: unused function '__se_sys_mkdirat' > [-Wunused-function] > SYSCALL_DEFINE3(mkdirat, int,

Re: [PATCH 09/12] s390: make __load_psw_mask work with clang

2019-04-10 Thread Martin Schwidefsky
On Mon, 8 Apr 2019 23:26:22 +0200 Arnd Bergmann wrote: > clang fails to use the %O and %R inline assembly modifiers > the same way as gcc, leading to build failures with every use > of __load_psw_mask(): > > /tmp/nmi-4a9f80.s: Assembler messages: > /tmp/nmi-4a9f80.s:571: Error: junk at end of

Re: [PATCH 06/12] s390: ctcm: fix ctcm_new_device error return code

2019-04-10 Thread Martin Schwidefsky
On Mon, 8 Apr 2019 23:26:19 +0200 Arnd Bergmann wrote: > clang points out that the return code from this function is > undefined for one of the error paths: > > ../drivers/s390/net/ctcm_main.c:1595:7: warning: variable 'result' is used > uninitialized whenever 'if' condition is true >

Re: [PATCH 05/12] s390: zcrypt: initialize variables before_use

2019-04-10 Thread Martin Schwidefsky
On Tue, 9 Apr 2019 11:54:30 +0200 Harald Freudenberger wrote: > On 08.04.19 23:26, Arnd Bergmann wrote: > > The 'func_code' variable gets printed in debug statements without > > a prior initialization in multiple functions, as reported when building > > with clang: > > > >

Re: [PATCH 04/12] s390: qeth: address type mismatch warning

2019-04-10 Thread Martin Schwidefsky
On Mon, 8 Apr 2019 23:26:17 +0200 Arnd Bergmann wrote: > clang produces a harmless warning for each use for the qeth_adp_supported > macro: > > drivers/s390/net/qeth_l2_main.c:559:31: warning: implicit conversion from > enumeration type 'enum qeth_ipa_setadp_cmd' to > different

Re: [PATCH 02/12] s390: don't build vdso32 with clang

2019-04-10 Thread Martin Schwidefsky
On Mon, 8 Apr 2019 23:26:15 +0200 Arnd Bergmann wrote: > clang does not support 31 bit object files on s390, so skip > the 32-bit vdso here, and only build it when using gcc to compile > the kernel. > > Signed-off-by: Arnd Bergmann Added to s390/linux:features for the next merge window.

Re: [PATCH 01/12] s390: remove -fno-strength-reduce flag

2019-04-10 Thread Martin Schwidefsky
On Mon, 8 Apr 2019 23:26:14 +0200 Arnd Bergmann wrote: > This was added as a workaround for really old compilers, and it prevents > building with clang now. I can see no reason for keeping it, as it has > already been removed for most architectures in the pre-git era, so > let's remove it

Re: rseq/s390: choosing code signature

2019-04-10 Thread Martin Schwidefsky
On Wed, 10 Apr 2019 11:50:39 -0400 (EDT) Mathieu Desnoyers wrote: > - On Apr 10, 2019, at 6:32 AM, schwidefsky schwidef...@de.ibm.com wrote: > > > On Tue, 9 Apr 2019 15:32:22 -0400 (EDT) > > Mathieu Desnoyers wrote: > > > >> Hi, > >> >

Re: [PATCH 12/12] [PROBABLY WRONG] s390: void '0' constraint in inline assembly

2019-04-10 Thread Martin Schwidefsky
solution would be to CALL_FMT1 as #define CALL_FMT1 CALL_FMT_0 It still is not optimal though as for CALL_FMT_0 the "+" (r2) indicates an input but CALL_ARGS_0 does not initialize r2. I am thinking about the following patch to cover all cases: -- >From 91a4abbec91a9f26f84f7386

Re: rseq/s390: choosing code signature

2019-04-10 Thread Martin Schwidefsky
elftests/rseq/rseq-s390.h file that updates > the signature value, so I can then pick it up for the glibc > patchset. The trap4 instruction is a suitable one. The patch would look like this -- commit 2ee28f6d1de968a71f074ab150384b90b4121216 Author: Martin Schwidefsky Date: We

[GIT PULL] s390 patches for 5.1 #2

2019-03-28 Thread Martin Schwidefsky
Cornelia Huck (1): vfio: ccw: only free cp on final interrupt Harald Freudenberger (1): s390/zcrypt: revisit ap device remove procedure Martin Schwidefsky (3): s390: limit brk randomization to 32MB s390/vtime: steal time exponential moving average Merge tag 'vfio-ccw

Re: [PATCH 1/4] glibc: Perform rseq(2) registration at C startup and thread creation (v7)

2019-03-28 Thread Martin Schwidefsky
On Wed, 27 Mar 2019 16:38:32 -0400 "Carlos O'Donell" wrote: > On 3/27/19 5:16 AM, Martin Schwidefsky wrote: > > On Mon, 25 Mar 2019 11:54:32 -0400 (EDT) > > Mathieu Desnoyers wrote: > > > >>>> +++ b/sysdeps/unix/sysv/linux/s390/bits/rseq.

Re: [PATCH 1/4] glibc: Perform rseq(2) registration at C startup and thread creation (v7)

2019-03-27 Thread Martin Schwidefsky
On Mon, 25 Mar 2019 11:54:32 -0400 (EDT) Mathieu Desnoyers wrote: > >> +++ b/sysdeps/unix/sysv/linux/s390/bits/rseq.h > [...] > >> + > >> +/* Signature required before each abort handler code. */ > >> +#define RSEQ_SIG 0x53053053 > > > > Why not a s390 specific value here? > > s390 also

Re: [PATCH] s390/mem_detect: Use IS_ENABLED(CONFIG_BLK_DEV_INITRD)

2019-03-07 Thread Martin Schwidefsky
On Thu, 07 Mar 2019 15:51:45 -0800 Joe Perches wrote: > IS_ENABLED should generally use CONFIG_ prefaced symbols and > it doesn't appear as if there is a BLK_DEV_INITRD define. > > Signed-off-by: Joe Perches > --- > arch/s390/boot/mem_detect.c | 2 +- > 1 file changed, 1 insertion(+), 1

[GIT PULL] s390 patches for the 5.1 merge window

2019-03-04 Thread Martin Schwidefsky
e s390/cpum_cf: add ctr_stcctm() function Ilya Leoshkevich (1): s390/jump_label: Use "jdd" constraint on gcc9 Ingo Franzki (1): pkey: Indicate old mkvp only if old and current mkvp are different Julian Wiedmann (1): s390/qdio: make SBAL address array typ

Re: [PATCH v3 18/34] s390: mm: Add p?d_large() definitions

2019-02-27 Thread Martin Schwidefsky
ightly off. > CC: Martin Schwidefsky > CC: Heiko Carstens > CC: linux-s...@vger.kernel.org > Signed-off-by: Steven Price > --- > arch/s390/include/asm/pgtable.h | 10 ++ > 1 file changed, 10 insertions(+) > > diff --git a/arch/s390/include/asm/pgtabl

Re: [PATCH] s390/setup: fix early warning messages

2019-02-18 Thread Martin Schwidefsky
On Mon, 18 Feb 2019 18:01:46 +0100 Martin Schwidefsky wrote: > On Mon, 18 Feb 2019 07:46:40 -0800 > Guenter Roeck wrote: > > > Hi, > > > > On Thu, Feb 14, 2019 at 03:40:56PM +0100, Martin Schwidefsky wrote: > > > The setup_lowcore() function create

Re: [PATCH] s390/setup: fix early warning messages

2019-02-18 Thread Martin Schwidefsky
On Mon, 18 Feb 2019 07:46:40 -0800 Guenter Roeck wrote: > Hi, > > On Thu, Feb 14, 2019 at 03:40:56PM +0100, Martin Schwidefsky wrote: > > The setup_lowcore() function creates a new prefix page for the boot CPU. > > The PSW mask for the system_call, external int

[GIT PULL] s390 patches for 5.0 #3

2019-02-10 Thread Martin Schwidefsky
hat turned out to be required after all Harald Freudenberger (1): s390/zcrypt: fix specification exception on z196 during ap probe Martin Schwidefsky (1): s390/suspend: fix stack setup in swsusp_arch_suspend Sebast

Re: [PATCH] zcrypt: handle AP Info notification from CHSC SEI command

2019-02-01 Thread Martin Schwidefsky
On Fri, 1 Feb 2019 10:01:59 +0100 Heiko Carstens wrote: > On Thu, Jan 31, 2019 at 06:28:39PM -0500, Tony Krowiak wrote: > > On 1/30/19 1:32 PM, Sebastian Ott wrote: > > >On Wed, 30 Jan 2019, Tony Krowiak wrote: > > >>+#if IS_ENABLED(CONFIG_ZCRYPT) > > >>+void ap_bus_cfg_chg(void); > >

[GIT PULL] s390 patches for 5.0 #2

2019-01-23 Thread Martin Schwidefsky
rescan Martin Schwidefsky (1): s390/mm: always force a load of the primary ASCE on context switch Vasily Gorbik (1): s390/vdso: correct vdso mapping for compat tasks arch/s390/include/asm/mmu_context.h | 7 +++ arch/s390/kernel/early.c| 4 ++-- arch/s390/kernel/setup.c

Re: [PATCH 0/5] s390: rework compat wrapper generation

2019-01-18 Thread Martin Schwidefsky
On Thu, 17 Jan 2019 21:19:20 +0100 Heiko Carstens wrote: > On Thu, Jan 17, 2019 at 05:21:50PM +0100, Arnd Bergmann wrote: > > On Thu, Jan 17, 2019 at 2:36 PM Heiko Carstens > > wrote: > > > > > > On Wed, Jan 16, 2019 at 02:15:18PM +0100, Arnd Bergmann wrote: > > > > > > I did not test

Re: [PATCH v1] s390/smp: Fix calling smp_call_ipl_cpu() from ipl CPU

2019-01-11 Thread Martin Schwidefsky
On Fri, 11 Jan 2019 15:18:22 +0100 David Hildenbrand wrote: > When calling smp_call_ipl_cpu() from the IPL CPU, we will try to read > from pcpu_devices->lowcore. However, due to prefixing, that will result > in reading from absolute address 0 on that CPU. We have to go via the > actual lowcore

Re: Kconfig label updates

2019-01-09 Thread Martin Schwidefsky
Partitioning > @@ -157,7 +158,7 @@ config HOTPLUG_PCI_SGI > When in doubt, say N. > > config HOTPLUG_PCI_S390 > - bool "System z PCI Hotplug Support" > + bool "IBM System z PCI Hotplug Support" > depends on S390 && 64BIT > help > Say Y here if you want to use the System z PCI Hotplug > The rewording of the HOTPLUG_PCI_S390 entry is fine with me. Acked-by: Martin Schwidefsky -- blue skies, Martin. "Reality continues to ruin my life." - Calvin.

[GIT PULL] s390 patches for the 4.21 merge window

2019-01-01 Thread Martin Schwidefsky
handling s390/zcrypt: make sysfs reset attribute trigger queue reset s390/zcrypt: rework ap scan bus code Martin Schwidefsky (1): Merge tag 'vfio-ccw-20181213' of git://git.kernel.org/.../kvms390/vfio-ccw into features Petr Tesarik (1): s390: vfio-ap: include

Re: [PATCH 2/6] __wr_after_init: write rare for static allocation

2018-12-12 Thread Martin Schwidefsky
On Wed, 5 Dec 2018 15:13:56 -0800 Andy Lutomirski wrote: > I added some s390 and powerpc people. > > On Tue, Dec 4, 2018 at 4:18 AM Igor Stoppa wrote: > > > > Implementation of write rare for statically allocated data, located in a > > specific memory section through the use of the

Re: [PATCH AUTOSEL 4.19 13/73] s390/mm: fix mis-accounting of pgtable_bytes

2018-11-30 Thread Martin Schwidefsky
On Wed, 14 Nov 2018 17:21:07 -0500 Sasha Levin wrote: > From: Martin Schwidefsky > > [ Upstream commit e12e4044aede97974feb7f0ed726a5179a32 ] > > In case a fork or a clone system fails in copy_process and the error > handling does the mmput() at the bad_for

Re: [PATCH AUTOSEL 4.19 13/73] s390/mm: fix mis-accounting of pgtable_bytes

2018-11-30 Thread Martin Schwidefsky
On Wed, 14 Nov 2018 17:21:07 -0500 Sasha Levin wrote: > From: Martin Schwidefsky > > [ Upstream commit e12e4044aede97974feb7f0ed726a5179a32 ] > > In case a fork or a clone system fails in copy_process and the error > handling does the mmput() at the bad_for

[GIT PULL] s390 patches for 4.20 #3

2018-11-29 Thread Martin Schwidefsky
Eric Farman (2): s390/cio: Fix cleanup of pfn_array alloc failure s390/cio: Fix cleanup when unsupported IDA format is used Harald Freudenberger (1): s390/zcrypt: reinit ap queue state machine during device probe Martin Schwidefsky (2): Merge tag 'vfio-ccw-20181113

[GIT PULL] s390 patches for 4.20 #3

2018-11-29 Thread Martin Schwidefsky
Eric Farman (2): s390/cio: Fix cleanup of pfn_array alloc failure s390/cio: Fix cleanup when unsupported IDA format is used Harald Freudenberger (1): s390/zcrypt: reinit ap queue state machine during device probe Martin Schwidefsky (2): Merge tag 'vfio-ccw-20181113

Re: [PATCH 3/3] s390/mm: fix mis-accounting of pgtable_bytes

2018-11-27 Thread Martin Schwidefsky
On Tue, 27 Nov 2018 08:34:12 +0100 Heiko Carstens wrote: > On Wed, Oct 31, 2018 at 01:36:23PM +0300, Kirill A. Shutemov wrote: > > On Wed, Oct 31, 2018 at 11:09:44AM +0100, Heiko Carstens wrote: > > > On Wed, Oct 31, 2018 at 07:31:49AM +0100, Martin Schwidefsky wrote

Re: [PATCH 3/3] s390/mm: fix mis-accounting of pgtable_bytes

2018-11-27 Thread Martin Schwidefsky
On Tue, 27 Nov 2018 08:34:12 +0100 Heiko Carstens wrote: > On Wed, Oct 31, 2018 at 01:36:23PM +0300, Kirill A. Shutemov wrote: > > On Wed, Oct 31, 2018 at 11:09:44AM +0100, Heiko Carstens wrote: > > > On Wed, Oct 31, 2018 at 07:31:49AM +0100, Martin Schwidefsky wrote

Re: [PATCH] s390: Remove obsolete bust_spinlock() implementation

2018-11-26 Thread Martin Schwidefsky
On Fri, 23 Nov 2018 08:02:12 +0100 Heiko Carstens wrote: > On Fri, Nov 23, 2018 at 11:17:48AM +0900, Sergey Senozhatsky wrote: > > On (11/22/18 15:15), Petr Mladek wrote: > > > The commit cefc8be82403cf ("Consolidate bust_spinlocks()") kept > > > the s390-specific implementation because of the

Re: [PATCH] s390: Remove obsolete bust_spinlock() implementation

2018-11-26 Thread Martin Schwidefsky
On Fri, 23 Nov 2018 08:02:12 +0100 Heiko Carstens wrote: > On Fri, Nov 23, 2018 at 11:17:48AM +0900, Sergey Senozhatsky wrote: > > On (11/22/18 15:15), Petr Mladek wrote: > > > The commit cefc8be82403cf ("Consolidate bust_spinlocks()") kept > > > the s390-specific implementation because of the

Re: [for-next][PATCH 11/18] s390/function_graph: Simplify with function_graph_entry()

2018-11-21 Thread Martin Schwidefsky
he architecture dependent prepare_ftrace_return(). > > Have s390 use the new code, and remove the shadow stack management as well as > having to set up the trace structure. > > This is needed to prepare for a fix of a design bug on how the curr_ret_stack > is used. > > Cc: Marti

Re: [for-next][PATCH 11/18] s390/function_graph: Simplify with function_graph_entry()

2018-11-21 Thread Martin Schwidefsky
he architecture dependent prepare_ftrace_return(). > > Have s390 use the new code, and remove the shadow stack management as well as > having to set up the trace structure. > > This is needed to prepare for a fix of a design bug on how the curr_ret_stack > is used. > > Cc: Marti

Re: crashkernel=512M is no longer working on this aarch64 server

2018-11-11 Thread Martin Schwidefsky
On Sun, 11 Nov 2018 08:36:09 -0500 Qian Cai wrote: > > On Nov 11, 2018, at 6:35 AM, Martin Schwidefsky > > wrote: > > > > On Sat, 10 Nov 2018 23:41:34 -0500 > > Qian Cai wrote: > > > >> It was broken somewhere between b00d209241ff and 3

Re: crashkernel=512M is no longer working on this aarch64 server

2018-11-11 Thread Martin Schwidefsky
On Sun, 11 Nov 2018 08:36:09 -0500 Qian Cai wrote: > > On Nov 11, 2018, at 6:35 AM, Martin Schwidefsky > > wrote: > > > > On Sat, 10 Nov 2018 23:41:34 -0500 > > Qian Cai wrote: > > > >> It was broken somewhere between b00d209241ff and 3

Re: crashkernel=512M is no longer working on this aarch64 server

2018-11-11 Thread Martin Schwidefsky
On Sat, 10 Nov 2018 23:41:34 -0500 Qian Cai wrote: > It was broken somewhere between b00d209241ff and 3541833fd1f2. > > [0.00] cannot allocate crashkernel (size:0x2000) > > Where a good one looks like this, > > [0.00] crashkernel reserved: 0x0860 -

Re: crashkernel=512M is no longer working on this aarch64 server

2018-11-11 Thread Martin Schwidefsky
On Sat, 10 Nov 2018 23:41:34 -0500 Qian Cai wrote: > It was broken somewhere between b00d209241ff and 3541833fd1f2. > > [0.00] cannot allocate crashkernel (size:0x2000) > > Where a good one looks like this, > > [0.00] crashkernel reserved: 0x0860 -

Re: [GIT PULL] s390 patches for 4.20 #2

2018-11-09 Thread Martin Schwidefsky
On Fri, 9 Nov 2018 06:39:07 -0600 Linus Torvalds wrote: > On Fri, Nov 9, 2018 at 1:14 AM Martin Schwidefsky > wrote: > > > > s390 updates for 4.20-rc2 > > Pulled. > > > - A fix for the pgtable_bytes misaccounting on s390. The patch changes > >c

Re: [GIT PULL] s390 patches for 4.20 #2

2018-11-09 Thread Martin Schwidefsky
On Fri, 9 Nov 2018 06:39:07 -0600 Linus Torvalds wrote: > On Fri, Nov 9, 2018 at 1:14 AM Martin Schwidefsky > wrote: > > > > s390 updates for 4.20-rc2 > > Pulled. > > > - A fix for the pgtable_bytes misaccounting on s390. The patch changes > >c

[GIT PULL] s390 patches for 4.20 #2

2018-11-08 Thread Martin Schwidefsky
Heiko Carstens (1): s390: update defconfigs Justin M. Forbes (1): s390/mm: Fix ERROR: "__node_distance" undefined! Martin Schwidefsky (4): mm: make the __PAGETABLE_PxD_FOLDED defines non-empty mm: introdu

[GIT PULL] s390 patches for 4.20 #2

2018-11-08 Thread Martin Schwidefsky
Heiko Carstens (1): s390: update defconfigs Justin M. Forbes (1): s390/mm: Fix ERROR: "__node_distance" undefined! Martin Schwidefsky (4): mm: make the __PAGETABLE_PxD_FOLDED defines non-empty mm: introdu

Re: [PATCH] s390: numa: Export __node_distance

2018-11-04 Thread Martin Schwidefsky
On Sun, 4 Nov 2018 13:28:06 -0800 Guenter Roeck wrote: > __node_distance is used by nvme, resulting in: > > ERROR: "__node_distance" [drivers/nvme/host/nvme-core.ko] undefined! > > when trying to build nvme as module. > > Fixes: f333444708f8 ("nvme: take node locality into account when

Re: [PATCH] s390: numa: Export __node_distance

2018-11-04 Thread Martin Schwidefsky
On Sun, 4 Nov 2018 13:28:06 -0800 Guenter Roeck wrote: > __node_distance is used by nvme, resulting in: > > ERROR: "__node_distance" [drivers/nvme/host/nvme-core.ko] undefined! > > when trying to build nvme as module. > > Fixes: f333444708f8 ("nvme: take node locality into account when

Re: s390: runtime warning about pgtables_bytes

2018-11-02 Thread Martin Schwidefsky
On Wed, 31 Oct 2018 15:57:54 -0400 Joe Lawrence wrote: > On Fri, Oct 12, 2018 at 05:08:33PM +0200, Martin Schwidefsky wrote: > > On Thu, 11 Oct 2018 15:02:11 +0200 > > Martin Schwidefsky wrote: > > > > > On Thu, 11 Oct 2018 18:04:12 +0800 > > > Li Wan

Re: s390: runtime warning about pgtables_bytes

2018-11-02 Thread Martin Schwidefsky
On Wed, 31 Oct 2018 15:57:54 -0400 Joe Lawrence wrote: > On Fri, Oct 12, 2018 at 05:08:33PM +0200, Martin Schwidefsky wrote: > > On Thu, 11 Oct 2018 15:02:11 +0200 > > Martin Schwidefsky wrote: > > > > > On Thu, 11 Oct 2018 18:04:12 +0800 > > > Li Wan

[PATCH 4/4] s390/mm: fix mis-accounting of pgtable_bytes

2018-10-31 Thread Martin Schwidefsky
for the true size of the address space. Reported-by: Li Wang Tested-by: Li Wang Signed-off-by: Martin Schwidefsky --- arch/s390/include/asm/mmu_context.h | 5 - arch/s390/include/asm/pgalloc.h | 6 +++--- arch/s390/include/asm/pgtable.h | 18 ++ arch/s390/include/asm

[PATCH 4/4] s390/mm: fix mis-accounting of pgtable_bytes

2018-10-31 Thread Martin Schwidefsky
for the true size of the address space. Reported-by: Li Wang Tested-by: Li Wang Signed-off-by: Martin Schwidefsky --- arch/s390/include/asm/mmu_context.h | 5 - arch/s390/include/asm/pgalloc.h | 6 +++--- arch/s390/include/asm/pgtable.h | 18 ++ arch/s390/include/asm

[PATCH 3/4] mm: add mm_pxd_folded checks to pgtable_bytes accounting functions

2018-10-31 Thread Martin Schwidefsky
pgtable_bytes value for platforms that use a dynamic number of page table levels. Acked-by: Kirill A. Shutemov Signed-off-by: Martin Schwidefsky --- include/linux/mm.h | 8 1 file changed, 8 insertions(+) diff --git a/include/linux/mm.h b/include/linux/mm.h index 1e52b8f..844a853 100644

[PATCH 1/4] mm: make the __PAGETABLE_PxD_FOLDED defines non-empty

2018-10-31 Thread Martin Schwidefsky
Change the currently empty defines for __PAGETABLE_PMD_FOLDED, __PAGETABLE_PUD_FOLDED and __PAGETABLE_P4D_FOLDED to return 1. This makes it possible to use __is_defined() to test if the preprocessor define exists. Signed-off-by: Martin Schwidefsky --- arch/arm/include/asm/pgtable-2level.h

[PATCH 3/4] mm: add mm_pxd_folded checks to pgtable_bytes accounting functions

2018-10-31 Thread Martin Schwidefsky
pgtable_bytes value for platforms that use a dynamic number of page table levels. Acked-by: Kirill A. Shutemov Signed-off-by: Martin Schwidefsky --- include/linux/mm.h | 8 1 file changed, 8 insertions(+) diff --git a/include/linux/mm.h b/include/linux/mm.h index 1e52b8f..844a853 100644

[PATCH 1/4] mm: make the __PAGETABLE_PxD_FOLDED defines non-empty

2018-10-31 Thread Martin Schwidefsky
Change the currently empty defines for __PAGETABLE_PMD_FOLDED, __PAGETABLE_PUD_FOLDED and __PAGETABLE_P4D_FOLDED to return 1. This makes it possible to use __is_defined() to test if the preprocessor define exists. Signed-off-by: Martin Schwidefsky --- arch/arm/include/asm/pgtable-2level.h

[PATCH 2/4] mm: introduce mm_[p4d|pud|pmd]_folded

2018-10-31 Thread Martin Schwidefsky
Add three architecture overrideable functions to test if the p4d, pud, or pmd layer of a page table is folded or not. Signed-off-by: Martin Schwidefsky --- include/asm-generic/pgtable.h | 16 1 file changed, 16 insertions(+) diff --git a/include/asm-generic/pgtable.h b/include

[PATCH 2/4] mm: introduce mm_[p4d|pud|pmd]_folded

2018-10-31 Thread Martin Schwidefsky
Add three architecture overrideable functions to test if the p4d, pud, or pmd layer of a page table is folded or not. Signed-off-by: Martin Schwidefsky --- include/asm-generic/pgtable.h | 16 1 file changed, 16 insertions(+) diff --git a/include/asm-generic/pgtable.h b/include

[PATCH 0/4] pgtable bytes mis-accounting v3

2018-10-31 Thread Martin Schwidefsky
other archs). Martin Schwidefsky (4): mm: make the __PAGETABLE_PxD_FOLDED defines non-empty mm: introduce mm_[p4d|pud|pmd]_folded mm: add mm_pxd_folded checks to pgtable_bytes accounting functions s390/mm: fix mis-accounting of pgtable_bytes arch/arm/include/asm/pgtable-2level.h

[PATCH 0/4] pgtable bytes mis-accounting v3

2018-10-31 Thread Martin Schwidefsky
other archs). Martin Schwidefsky (4): mm: make the __PAGETABLE_PxD_FOLDED defines non-empty mm: introduce mm_[p4d|pud|pmd]_folded mm: add mm_pxd_folded checks to pgtable_bytes accounting functions s390/mm: fix mis-accounting of pgtable_bytes arch/arm/include/asm/pgtable-2level.h

Re: [PATCH 3/3] s390/mm: fix mis-accounting of pgtable_bytes

2018-10-31 Thread Martin Schwidefsky
On Wed, 31 Oct 2018 07:46:47 +0100 Martin Schwidefsky wrote: > On Wed, 31 Oct 2018 14:43:38 +0800 > Li Wang wrote: > > > On Wed, Oct 31, 2018 at 2:31 PM, Martin Schwidefsky > > wrote: > > > > > BUG: non-zero pgtables_bytes on freeing mm: -16384 > >

Re: [PATCH 3/3] s390/mm: fix mis-accounting of pgtable_bytes

2018-10-31 Thread Martin Schwidefsky
On Wed, 31 Oct 2018 07:46:47 +0100 Martin Schwidefsky wrote: > On Wed, 31 Oct 2018 14:43:38 +0800 > Li Wang wrote: > > > On Wed, Oct 31, 2018 at 2:31 PM, Martin Schwidefsky > > wrote: > > > > > BUG: non-zero pgtables_bytes on freeing mm: -16384 > >

Re: [PATCH 1/3] mm: introduce mm_[p4d|pud|pmd]_folded

2018-10-31 Thread Martin Schwidefsky
On Wed, 31 Oct 2018 12:02:55 +0300 "Kirill A. Shutemov" wrote: > On Mon, Oct 15, 2018 at 06:42:37PM +0200, Martin Schwidefsky wrote: > > Add three architecture overrideable function to test if the > > p4d, pud, or pmd layer of a page table is folded or not. >

Re: [PATCH 1/3] mm: introduce mm_[p4d|pud|pmd]_folded

2018-10-31 Thread Martin Schwidefsky
On Wed, 31 Oct 2018 12:02:55 +0300 "Kirill A. Shutemov" wrote: > On Mon, Oct 15, 2018 at 06:42:37PM +0200, Martin Schwidefsky wrote: > > Add three architecture overrideable function to test if the > > p4d, pud, or pmd layer of a page table is folded or not. >

Re: [PATCH 3/3] s390/mm: fix mis-accounting of pgtable_bytes

2018-10-31 Thread Martin Schwidefsky
On Wed, 31 Oct 2018 14:43:38 +0800 Li Wang wrote: > On Wed, Oct 31, 2018 at 2:31 PM, Martin Schwidefsky > wrote: > > > On Wed, 31 Oct 2018 14:18:33 +0800 > > Li Wang wrote: > > > > > On Tue, Oct 16, 2018 at 12:42 AM, Martin Schwidefsky < >

Re: [PATCH 3/3] s390/mm: fix mis-accounting of pgtable_bytes

2018-10-31 Thread Martin Schwidefsky
On Wed, 31 Oct 2018 14:43:38 +0800 Li Wang wrote: > On Wed, Oct 31, 2018 at 2:31 PM, Martin Schwidefsky > wrote: > > > On Wed, 31 Oct 2018 14:18:33 +0800 > > Li Wang wrote: > > > > > On Tue, Oct 16, 2018 at 12:42 AM, Martin Schwidefsky < >

Re: [PATCH 3/3] s390/mm: fix mis-accounting of pgtable_bytes

2018-10-31 Thread Martin Schwidefsky
On Wed, 31 Oct 2018 14:18:33 +0800 Li Wang wrote: > On Tue, Oct 16, 2018 at 12:42 AM, Martin Schwidefsky > wrote: > > > In case a fork or a clone system fails in copy_process and the error > > handling does the mmput() at the bad_fork_cleanup_mm label, the > >

Re: [PATCH 3/3] s390/mm: fix mis-accounting of pgtable_bytes

2018-10-31 Thread Martin Schwidefsky
On Wed, 31 Oct 2018 14:18:33 +0800 Li Wang wrote: > On Tue, Oct 16, 2018 at 12:42 AM, Martin Schwidefsky > wrote: > > > In case a fork or a clone system fails in copy_process and the error > > handling does the mmput() at the bad_fork_cleanup_mm label, the > >

Re: dcache endless loop in d_invalidate

2018-10-25 Thread Martin Schwidefsky
On Tue, 16 Oct 2018 13:15:28 +0200 Martin Schwidefsky wrote: > In short, this if-statement in select_collect: > > if (dentry->d_flags & DCACHE_SHRINK_LIST) { > data->found++; > } > > with assumption that "somebody else

Re: dcache endless loop in d_invalidate

2018-10-25 Thread Martin Schwidefsky
On Tue, 16 Oct 2018 13:15:28 +0200 Martin Schwidefsky wrote: > In short, this if-statement in select_collect: > > if (dentry->d_flags & DCACHE_SHRINK_LIST) { > data->found++; > } > > with assumption that "somebody else

[GIT PULL] s390 patches for the 4.20 merge window #1

2018-10-23 Thread Martin Schwidefsky
: clean up AOB handling s390/ccwgroup: add get_ccwgroupdev_by_busid() Martin Schwidefsky (9): s390: add initial 64-bit restart PSW s390/appldata: pass parameter list pointer to appldata_asm s390/appldata: do not use stack buffers for hardware data s390/hypfs: do not use sta

[GIT PULL] s390 patches for the 4.20 merge window #1

2018-10-23 Thread Martin Schwidefsky
: clean up AOB handling s390/ccwgroup: add get_ccwgroupdev_by_busid() Martin Schwidefsky (9): s390: add initial 64-bit restart PSW s390/appldata: pass parameter list pointer to appldata_asm s390/appldata: do not use stack buffers for hardware data s390/hypfs: do not use sta

dcache endless loop in d_invalidate

2018-10-16 Thread Martin Schwidefsky
Hi Al, I am currently looking into a customer dump and found what looks like an issue in the dcache code. And I think the following commit of yours has something to do with it: commit fe91522a7ba82ca1a51b07e19954b3825e4aaa22 Author: Al Viro Date: Sat May 3 00:02:25 2014 -0400 don't

dcache endless loop in d_invalidate

2018-10-16 Thread Martin Schwidefsky
Hi Al, I am currently looking into a customer dump and found what looks like an issue in the dcache code. And I think the following commit of yours has something to do with it: commit fe91522a7ba82ca1a51b07e19954b3825e4aaa22 Author: Al Viro Date: Sat May 3 00:02:25 2014 -0400 don't

[PATCH 2/3] mm: add mm_pxd_folded checks to pgtable_bytes accounting functions

2018-10-15 Thread Martin Schwidefsky
pgtable_bytes value for platforms that use a dynamic number of page table levels. Signed-off-by: Martin Schwidefsky --- include/linux/mm.h | 8 1 file changed, 8 insertions(+) diff --git a/include/linux/mm.h b/include/linux/mm.h index d1029972541c..67f55c71e59a 100644 --- a/include/linux/mm.h

[PATCH 3/3] s390/mm: fix mis-accounting of pgtable_bytes

2018-10-15 Thread Martin Schwidefsky
for the true size of the address space. Reported-by: Li Wang Signed-off-by: Martin Schwidefsky --- arch/s390/include/asm/mmu_context.h | 5 - arch/s390/include/asm/pgalloc.h | 6 +++--- arch/s390/include/asm/pgtable.h | 18 ++ arch/s390/include/asm/tlb.h | 6

[PATCH 2/3] mm: add mm_pxd_folded checks to pgtable_bytes accounting functions

2018-10-15 Thread Martin Schwidefsky
pgtable_bytes value for platforms that use a dynamic number of page table levels. Signed-off-by: Martin Schwidefsky --- include/linux/mm.h | 8 1 file changed, 8 insertions(+) diff --git a/include/linux/mm.h b/include/linux/mm.h index d1029972541c..67f55c71e59a 100644 --- a/include/linux/mm.h

[PATCH 3/3] s390/mm: fix mis-accounting of pgtable_bytes

2018-10-15 Thread Martin Schwidefsky
for the true size of the address space. Reported-by: Li Wang Signed-off-by: Martin Schwidefsky --- arch/s390/include/asm/mmu_context.h | 5 - arch/s390/include/asm/pgalloc.h | 6 +++--- arch/s390/include/asm/pgtable.h | 18 ++ arch/s390/include/asm/tlb.h | 6

[PATCH 1/3] mm: introduce mm_[p4d|pud|pmd]_folded

2018-10-15 Thread Martin Schwidefsky
Add three architecture overrideable function to test if the p4d, pud, or pmd layer of a page table is folded or not. Signed-off-by: Martin Schwidefsky --- include/linux/mm.h | 40 1 file changed, 40 insertions(+) diff --git a/include/linux/mm.h b

[PATCH 1/3] mm: introduce mm_[p4d|pud|pmd]_folded

2018-10-15 Thread Martin Schwidefsky
Add three architecture overrideable function to test if the p4d, pud, or pmd layer of a page table is folded or not. Signed-off-by: Martin Schwidefsky --- include/linux/mm.h | 40 1 file changed, 40 insertions(+) diff --git a/include/linux/mm.h b

[RFC][PATCH 0/3] pgtable bytes mis-accounting v2

2018-10-15 Thread Martin Schwidefsky
ror on alpha (and potentially on other archs). Martin Schwidefsky (3): mm: introduce mm_[p4d|pud|pmd]_folded mm: add mm_pxd_folded checks to pgtable_bytes accounting functions s390/mm: fix mis-accounting of pgtable_bytes arch/s390/include/asm/mmu_context.h | 5 arch/s390/include/

[RFC][PATCH 0/3] pgtable bytes mis-accounting v2

2018-10-15 Thread Martin Schwidefsky
ror on alpha (and potentially on other archs). Martin Schwidefsky (3): mm: introduce mm_[p4d|pud|pmd]_folded mm: add mm_pxd_folded checks to pgtable_bytes accounting functions s390/mm: fix mis-accounting of pgtable_bytes arch/s390/include/asm/mmu_context.h | 5 arch/s390/include/

Re: s390: runtime warning about pgtables_bytes

2018-10-12 Thread Martin Schwidefsky
On Thu, 11 Oct 2018 15:02:11 +0200 Martin Schwidefsky wrote: > On Thu, 11 Oct 2018 18:04:12 +0800 > Li Wang wrote: > > > When running s390 system with LTP/cve-2017-17052.c[1], the following BUG is > > came out repeatedly. > > I remember this warning start from ker

Re: s390: runtime warning about pgtables_bytes

2018-10-12 Thread Martin Schwidefsky
On Thu, 11 Oct 2018 15:02:11 +0200 Martin Schwidefsky wrote: > On Thu, 11 Oct 2018 18:04:12 +0800 > Li Wang wrote: > > > When running s390 system with LTP/cve-2017-17052.c[1], the following BUG is > > came out repeatedly. > > I remember this warning start from ker

  1   2   3   4   5   6   7   8   9   10   >