Re: [PATCH 2/3] powerpc/ppc-opcode: Define and use PPC_RAW_TRAP() and PPC_RAW_TW()

2022-08-03 Thread Michael Ellerman
"Naveen N. Rao" writes: > Christophe Leroy wrote: >> Add and use PPC_RAW_TRAP() instead of opencoding. >> >> Signed-off-by: Christophe Leroy >> --- >> arch/powerpc/include/asm/ppc-opcode.h | 2 ++ >> arch/powerpc/include/asm/probes.h | 3 ++- >> arch/powerpc/xmon/xmon.c | 2 +-

[PATCH] powerpc/ppc-opcode: Fix PPC_RAW_TW()

2022-08-03 Thread Christophe Leroy
PPC_RAW_TW() is erroneously defined with base code 0x7f08 instead of 0x7c08. That's invisible because its only user is PPC_RAW_TRAP() which is 0x7fe8, but fix it anyway to avoid any risk of future bug. Reported-by: Naveen N. Rao Fixes: d00d762daf12 ("powerpc/ppc-opcode: Define and

Re: [PATCH v2] random: handle archrandom in plural words

2022-08-03 Thread Holger Dengler
Hi Jason, On 22/07/2022 13:22, Jason A. Donenfeld wrote: > On Fri, Jul 22, 2022 at 10:08:05AM +0200, Holger Dengler wrote: >> Why not changing the API to take bytes instead of words? Sure, at the >> moment it looks like all platforms with TRNG support are able to >> deliver at least one word, but

Re: [PATCH] powerpc/ppc-opcode: Fix PPC_RAW_TW()

2022-08-03 Thread Naveen N. Rao
Christophe Leroy wrote: PPC_RAW_TW() is erroneously defined with base code 0x7f08 instead of 0x7c08. That's invisible because its only user is PPC_RAW_TRAP() which is 0x7fe8, but fix it anyway to avoid any risk of future bug. Reported-by: Naveen N. Rao Fixes: d00d762daf12

clang kernel PPC32 build failure, undefined reference to `__umoddi3'

2022-08-03 Thread Christophe Leroy
Looks like since recently some clang builds fails for missing reference to `__umoddi3`. See exemple at: - https://github.com/ruscur/linux-ci/actions/runs/2789193140 -

Re: clang kernel PPC32 build failure, undefined reference to `__umoddi3'

2022-08-03 Thread Nick Desaulniers
Thanks for the report; tracking the issue here: https://github.com/ClangBuiltLinux/linux/issues/1679 clang-15 got more aggressive about eliminating loops outright; some cases can be replaced with division/remainder. LLVM is missing support for expanding 64b division by constant for 32b targets;

[powerpc:next] BUILD SUCCESS 4cfa6ff24a9744ba484521c38bea613134fbfcb3

2022-08-03 Thread kernel test robot
randconfig-r043-20220803 sh allmodconfig x86_64 rhel-8.3 riscvrandconfig-r042-20220803 x86_64 allyesconfig s390 randconfig-r044-20220803 arm

[PATCH] MAINTAINERS: Update ibmveth maintainer

2022-08-03 Thread Nick Child
Add Nick Child as the maintainer of the IBM Power Virtual Ethernet Device Driver, replacing Cristobal Forno. Signed-off-by: Nick Child --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 2cfda104ba4e..4686e505b8e0 100644 ---

[PATCH] mm: check the return value of ioremap() in macio_init()

2022-08-03 Thread studentxswpy
From: Xie Shaowen The function ioremap() in macio_init() can fail, so its return value should be checked. Fixes: 36874579dbf4c ("[PATCH] powerpc: macio-adb build fix") Reported-by: Hacash Robot Signed-off-by: Xie Shaowen --- drivers/macintosh/macio-adb.c | 4 1 file changed, 4

[PATCH] powerpc/microwatt: Add LiteX MMC driver

2022-08-03 Thread Joel Stanley
Enable the LiteX MMC device and it's dependency the common clock framework. Signed-off-by: Joel Stanley --- arch/powerpc/configs/microwatt_defconfig | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/powerpc/configs/microwatt_defconfig b/arch/powerpc/configs/microwatt_defconfig

Re: [PATCH 1/2] powerpc/64s: POWER9 DD2.3 CPU feature flag fixes

2022-08-03 Thread Michael Ellerman
Nicholas Piggin writes: > DD2.3 missed out on getting its feature flag bits. > > This meant when booting with dt-cpu-ftrs, CPU_FTR_P9_TM_HV_ASSIST is > missing (unless the firmware contains it, which mine does not seem to). > And when booting without, CPU_FTR_P9_TM_XER_SO_BUG is set. > > In

[PATCH] powerpc/64e: Fix kexec build error

2022-08-03 Thread Michael Ellerman
When building ppc64_book3e_allmodconfig the build fails with: arch/powerpc/kexec/file_load_64.c:1063:14: error: implicit declaration of function ‘firmware_has_feature’ 1063 | if (!firmware_has_feature(FW_FEATURE_LPAR)) | ^~~~ Add a direct

[PATCH] powerpc: Update ISA versions to mention e5500/e6500

2022-08-03 Thread Michael Ellerman
Add the NXP (nee Freescale) e5500 and e6500 to the ISA versions documentation. Signed-off-by: Michael Ellerman --- Documentation/powerpc/isa-versions.rst | 8 1 file changed, 8 insertions(+) diff --git a/Documentation/powerpc/isa-versions.rst b/Documentation/powerpc/isa-versions.rst

Re: [PATCH 2/3] powerpc/ppc-opcode: Define and use PPC_RAW_TRAP() and PPC_RAW_TW()

2022-08-03 Thread Naveen N. Rao
Christophe Leroy wrote: Add and use PPC_RAW_TRAP() instead of opencoding. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/ppc-opcode.h | 2 ++ arch/powerpc/include/asm/probes.h | 3 ++- arch/powerpc/xmon/xmon.c | 2 +- 3 files changed, 5 insertions(+), 2