[PATCH linux-next] powerpc: disable sanitizer in irq_soft_mask_set

2022-08-20 Thread Zhouyi Zhou
In ppc, compiler based sanitizer will generate instrument instructions around statement WRITE_ONCE(local_paca->irq_soft_mask, mask): 0xc0295cb0 <+0>: addis r2,r12,774 0xc0295cb4 <+4>: addir2,r2,16464 0xc0295cb8 <+8>: mflrr0

[PATCH] i2c: pasemi: Add IRQ support for Apple Silicon

2022-08-20 Thread Arminder Singh
This is the first time I'm interacting with the Linux mailing lists, so please don't eviscerate me *too much* if I get the formatting wrong. Of course I'm always willing to take criticism and improve my formatting in the future. This patch adds support for IRQs to the PASemi I2C controller

RE: [PATCH] kernel: exit: cleanup release_thread()

2022-08-20 Thread Brian Cain
> -Original Message- > From: Kefeng Wang ... > Only x86 has own release_thread(), introduce a new weak > release_thread() function to clean empty definitions in > other ARCHs. > > Signed-off-by: Kefeng Wang > --- Acked-by: Brian Cain

Re: [PATCH] i2c: pasemi: Add IRQ support for Apple Silicon

2022-08-20 Thread kernel test robot
Hi Arminder, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on powerpc/next] [also build test WARNING on linus/master v6.0-rc1 next-20220819] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use

Re: [GIT PULL] Please pull powerpc/linux.git powerpc-6.0-3 tag

2022-08-20 Thread pr-tracker-bot
The pull request you sent on Sat, 20 Aug 2022 15:03:18 +1000: > https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git > tags/powerpc-6.0-3 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/32dd68f11058652a37152aed12bf552455914b40 Thank you! --

Re: Build/boot problem with 7b4537199a4a (Re: [PATCH v6 02/10] kbuild: link symbol CRCs at final link, removing CONFIG_MODULE_REL_CRCS)

2022-08-20 Thread Christophe Leroy
Le 20/08/2022 à 19:01, Masahiro Yamada a écrit : > On Sat, Aug 20, 2022 at 11:15 PM Christophe Leroy > wrote: >> >> >> >> Le 20/08/2022 à 14:51, Masahiro Yamada a écrit : >>> On Sat, Aug 20, 2022 at 7:02 PM Christophe Leroy >>> wrote: Hi, Le 13/05/2022 à 13:39, Masahiro

Re: [PATCH] powerpc: align syscall table for ppc32

2022-08-20 Thread Christophe Leroy
Le 20/08/2022 à 18:51, Masahiro Yamada a écrit : > Christophe Leroy reported that commit 7b4537199a4a ("kbuild: link > symbol CRCs at final link, removing CONFIG_MODULE_REL_CRCS") broke > mpc85xx_defconfig + CONFIG_RELOCATABLE=y. > > LD vmlinux > SYSMAP System.map >

Re: Build/boot problem with 7b4537199a4a (Re: [PATCH v6 02/10] kbuild: link symbol CRCs at final link, removing CONFIG_MODULE_REL_CRCS)

2022-08-20 Thread Masahiro Yamada
On Sat, Aug 20, 2022 at 11:15 PM Christophe Leroy wrote: > > > > Le 20/08/2022 à 14:51, Masahiro Yamada a écrit : > > On Sat, Aug 20, 2022 at 7:02 PM Christophe Leroy > > wrote: > >> > >> Hi, > >> > >> Le 13/05/2022 à 13:39, Masahiro Yamada a écrit : > >>> include/{linux,asm-generic}/export.h

[PATCH] powerpc: align syscall table for ppc32

2022-08-20 Thread Masahiro Yamada
Christophe Leroy reported that commit 7b4537199a4a ("kbuild: link symbol CRCs at final link, removing CONFIG_MODULE_REL_CRCS") broke mpc85xx_defconfig + CONFIG_RELOCATABLE=y. LD vmlinux SYSMAP System.map SORTTAB vmlinux CHKREL vmlinux WARNING: 451 bad relocations

Re: Build/boot problem with 7b4537199a4a (Re: [PATCH v6 02/10] kbuild: link symbol CRCs at final link, removing CONFIG_MODULE_REL_CRCS)

2022-08-20 Thread Christophe Leroy
Le 20/08/2022 à 14:51, Masahiro Yamada a écrit : > On Sat, Aug 20, 2022 at 7:02 PM Christophe Leroy > wrote: >> >> Hi, >> >> Le 13/05/2022 à 13:39, Masahiro Yamada a écrit : >>> include/{linux,asm-generic}/export.h defines a weak symbol, __crc_* >>> as a placeholder. >>> >>> Genksyms writes the

Re: Build/boot problem with 7b4537199a4a (Re: [PATCH v6 02/10] kbuild: link symbol CRCs at final link, removing CONFIG_MODULE_REL_CRCS)

2022-08-20 Thread Christophe Leroy
Le 20/08/2022 à 14:05, Sedat Dilek a écrit : > On Sat, Aug 20, 2022 at 12:04 PM Christophe Leroy > wrote: >> >> Hi, >> >> Le 13/05/2022 à 13:39, Masahiro Yamada a écrit : >>> include/{linux,asm-generic}/export.h defines a weak symbol, __crc_* >>> as a placeholder. >>> >>> Genksyms writes the

Re: Build/boot problem with 7b4537199a4a (Re: [PATCH v6 02/10] kbuild: link symbol CRCs at final link, removing CONFIG_MODULE_REL_CRCS)

2022-08-20 Thread Masahiro Yamada
On Sat, Aug 20, 2022 at 7:02 PM Christophe Leroy wrote: > > Hi, > > Le 13/05/2022 à 13:39, Masahiro Yamada a écrit : > > include/{linux,asm-generic}/export.h defines a weak symbol, __crc_* > > as a placeholder. > > > > Genksyms writes the version CRCs into the linker script, which will be > >

[powerpc:next-test] BUILD SUCCESS bbee0d0affda40bb0917813cf416ac6ccbe1d5fa

2022-08-20 Thread kernel test robot
randconfig-c001 loongarch defconfig loongarch allnoconfig riscvrandconfig-r042-20220820 s390 randconfig-r044-20220820 arc randconfig-r043-20220820 i386 debian-10.3-kvm i386

[powerpc:merge] BUILD SUCCESS 171ad2c21268b329c0a92707f7642f588ab77926

2022-08-20 Thread kernel test robot
rhel-8.3 riscvrandconfig-r042-20220820 s390 randconfig-r044-20220820 arc randconfig-r043-20220820 x86_64randconfig-a013 x86_64randconfig-a011 x86_64randconfig-a015 i386

[PATCH] powerpc/fsl-pci: Choose PCI host bridge with alias pci0 as the primary

2022-08-20 Thread Pali Rohár
If there's no PCI host bridge with ISA then check for PCI host bridge with alias "pci0" (first PCI host bridge) and if it exists then choose it as the primary PCI host bridge. This makes choice of primary PCI host bridge more stable across boots and updates as the last fallback candidate for

Re: Build/boot problem with 7b4537199a4a (Re: [PATCH v6 02/10] kbuild: link symbol CRCs at final link, removing CONFIG_MODULE_REL_CRCS)

2022-08-20 Thread Sedat Dilek
On Sat, Aug 20, 2022 at 12:04 PM Christophe Leroy wrote: > > Hi, > > Le 13/05/2022 à 13:39, Masahiro Yamada a écrit : > > include/{linux,asm-generic}/export.h defines a weak symbol, __crc_* > > as a placeholder. > > > > Genksyms writes the version CRCs into the linker script, which will be > >

[PATCH] powerpc/pci: Enable PCI domains in /proc when PCI bus numbers are not unique

2022-08-20 Thread Pali Rohár
On 32-bit powerpc systems with more PCIe controllers and more PCI domains, where on more PCI domains are same PCI numbers, when kernel is compiled with CONFIG_PROC_FS=y and CONFIG_PPC_PCI_BUS_NUM_DOMAIN_DEPENDENT=y options, kernel prints "proc_dir_entry 'pci/01' already registered" error message.

Re: [PATCH v1 2/5] powerpc/32: Don't always pass -mcpu=powerpc to the compiler

2022-08-20 Thread Pali Rohár
On Thursday 18 August 2022 19:46:34 Pali Rohár wrote: > On Monday 11 July 2022 16:19:30 Christophe Leroy wrote: > > Since commit 4bf4f42a2feb ("powerpc/kbuild: Set default generic > > machine type for 32-bit compile"), when building a 32 bits kernel > > with a bi-arch version of GCC, or when

[PATCH] powerpc/boot: Fix compilation of uImage for e500 platforms

2022-08-20 Thread Pali Rohár
Commit 40a75584e526 ("powerpc/boot: Build wrapper for an appropriate CPU") broke compilation of uImage target for mpc85xx platforms by powerpc e500 SPE capable cross compilers. After that commit build process throws error: BOOTAS arch/powerpc/boot/crt0.o powerpc-linux-gnuspe-gcc: error:

[PATCH 3/3] powerpc: dts: turris1x.dts: Set lower priority for CPLD syscon-reboot

2022-08-20 Thread Pali Rohár
Due to CPLD firmware bugs, set CPLD syscon-reboot priority level to 64 (between rstcr and watchdog) to ensure that rstcr's global-utilities reset method which is preferred stay as default one, and to ensure that CPLD syscon-reboot is more preferred than watchdog reset method. Fixes: 0531a4abd1c6

[PATCH 2/3] power: reset: syscon-reboot: Add support for specifying priority

2022-08-20 Thread Pali Rohár
Read new optional device tree property priority for specifying priority level of reset handler. Default value is 192 as before. Signed-off-by: Pali Rohár --- drivers/power/reset/syscon-reboot.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git

[PATCH 1/3] dt-bindings: reset: syscon-reboot: Add priority property

2022-08-20 Thread Pali Rohár
This new optional priority property allows to specify custom priority level of reset device. Default level was always 192. Signed-off-by: Pali Rohár --- .../devicetree/bindings/power/reset/syscon-reboot.yaml| 4 1 file changed, 4 insertions(+) diff --git

Build/boot problem with 7b4537199a4a (Re: [PATCH v6 02/10] kbuild: link symbol CRCs at final link, removing CONFIG_MODULE_REL_CRCS)

2022-08-20 Thread Christophe Leroy
Hi, Le 13/05/2022 à 13:39, Masahiro Yamada a écrit : > include/{linux,asm-generic}/export.h defines a weak symbol, __crc_* > as a placeholder. > > Genksyms writes the version CRCs into the linker script, which will be > used for filling the __crc_* symbols. The linker script format depends > on

Re: [PATCH v4 2/2] selftests/powerpc: Add a test for execute-only memory

2022-08-20 Thread Michael Ellerman
Nicholas Miehlbradt writes: > On 17/8/2022 4:15 pm, Jordan Niethe wrote: >> On Wed, 2022-08-17 at 15:06 +1000, Russell Currey wrote: >>> From: Nicholas Miehlbradt >>> >>> This selftest is designed to cover execute-only protections >>> on the Radix MMU but will also work with Hash. >>> >>> The