Re: Bug: Write fault blocked by KUAP! (kernel 6.2-rc6, Talos II)

2023-02-16 Thread Erhard F.
On Thu, 9 Feb 2023 07:21:55 + Christophe Leroy wrote: > An easy fix would probably be to also check the suffix as a prefixed > instruction with 0 as suffix is not valid : > > diff --git a/arch/powerpc/include/asm/inst.h > b/arch/powerpc/include/asm/inst.h > index 684d3f453282..87084a52598b

Re: 6.2-rc7 fails building on Talos II: memory.c:(.text+0x2e14): undefined reference to `hash__tlb_flush'

2023-02-16 Thread Erhard F.
On Thu, 16 Feb 2023 06:29:52 + Christophe Leroy wrote: > Can you try with : > > diff --git a/arch/powerpc/include/asm/book3s/64/tlbflush.h > b/arch/powerpc/include/asm/book3s/64/tlbflush.h > index d5cd16270c5d..2bbc0fcce04a 100644 > --- a/arch/powerpc/include/asm/book3s/64/tlbflush.h > +++

Re: Bug: Write fault blocked by KUAP! (kernel 6.2-rc6, Talos II)

2023-02-03 Thread Erhard F.
On Fri, 03 Feb 2023 13:02:59 +1100 Benjamin Gray wrote: > Do you have a QEMU command to boot this? I tried with > > qemu-system-ppc64 --nographic --vga none --kernel ./vmlinux > > But it crashes immediately on booting the kernel (same using KVM on > Power9). No, this is a custom kernel

Re: [PATCH v2] of: Fix of platform build on powerpc due to bad of disaply code

2023-01-19 Thread Erhard F.
On Thu, 19 Jan 2023 10:53:23 +0100 Michal Suchanek wrote: > The commit 2d681d6a23a1 ("of: Make of framebuffer devices unique") > breaks build because of wrong argument to snprintf. That certainly > avoids the runtime error but is not the intended outcome. > > Also use standard device name format

Re: [PATCH] powerpc: Always inline radix_enabled() to fix build failure

2021-08-04 Thread Erhard F.
] > The code relies on constant folding of MMU_FTRS_POSSIBLE at buildtime > and elimination of non possible parts of code at compile time. For this > to work radix_enabled() must be inlined so make it __always_inline. > > Link: https://bugzilla.kernel.org/show_bug.cgi?id=213803 >

Re: [PATCH] i2c: powermac: Simplify reading the "reg" and "i2c-address" property

2020-04-22 Thread Erhard F.
On Tue, 21 Apr 2020 11:37:13 +0200 Wolfram Sang wrote: > On Wed, Apr 15, 2020 at 06:49:14PM +0530, Aishwarya R wrote: > > >> Use of_property_read_u32 to read the "reg" and "i2c-address" property > > >> instead of using of_get_property to check the return values. > > >> > > >> Signed-off-by: Aishw