Re: [PATCH] powerpc: kgdb: Remove OUTBUFMAX constant

2025-10-15 Thread Christophe Leroy
cific powerpc kgdb support"), but it is no longer used anywhere in the source tree. Signed-off-by: Miquel Sabaté Solà Reviewed-by: Christophe Leroy --- arch/powerpc/include/asm/kgdb.h | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/powerpc/include/asm/kgdb.h b/arch/powerpc/i

Re: [PATCH v4 06/35] powerpc/vdso/gettimeofday: Explicitly include vdso/time32.h

2025-10-14 Thread Christophe Leroy
Tested-by: Andreas Larsson Reviewed-by: Andreas Larsson Reviewed-by: Christophe Leroy --- arch/powerpc/include/asm/vdso/gettimeofday.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/include/asm/vdso/gettimeofday.h b/arch/powerpc/include/asm/vdso/gettimeofd

Re: [PATCH] arch/powerpc: Remove .interp section in vmlinux

2025-10-13 Thread Christophe Leroy
+CLANG ppl Hi, Le 13/10/2025 à 06:01, Vishal Chourasia a écrit : While debugging a ppc64le QEMU guest on an x86_64 host, I observed GDB crashes when attempting to attach to the remote target: (gdb) target remote :1234 Investigation revealed that cross-compiling the Linux kernel for ppc64le on

Re: (bisected) [PATCH v2 08/37] mm/hugetlb: check for unreasonable folio sizes when registering hstate

2025-10-13 Thread Christophe Leroy
Le 09/10/2025 à 10:14, David Hildenbrand a écrit : On 09.10.25 10:04, Christophe Leroy wrote: Le 09/10/2025 à 09:22, David Hildenbrand a écrit : On 09.10.25 09:14, Christophe Leroy wrote: Hi David, Le 01/09/2025 à 17:03, David Hildenbrand a écrit : diff --git a/mm/hugetlb.c b/mm

Re: [PATCH] 85xx: Add several root nodes to probe

2025-10-12 Thread Christophe Leroy
Le 22/04/2025 à 04:40, Ben Collins a écrit : T4240 fails to hafve ifc, rapidio, and localbus probed. This matches other QorIQ platforms and ensures devices under these nodes get added as platform devices. What do you mean by "this matches other platforms" ? I can't grep any other platform

Re: [PATCH 3/4] powerpc: 86xx: Rename wdt@ nodes to watchdog@

2025-10-10 Thread Christophe Leroy
Le 18/04/2025 à 21:28, J. Neuschäfer via B4 Relay a écrit : From: "J. Neuschäfer" The watchdog.yaml schema prescribes a node name of "timer" or "watchdog" rather than the abbreviation "wdt". Signed-off-by: J. Neuschäfer Reviewed-by: Christophe

Re: [PATCH 2/4] powerpc: 83xx: Rename wdt@ nodes to watchdog@

2025-10-09 Thread Christophe Leroy
Le 18/04/2025 à 21:28, J. Neuschäfer via B4 Relay a écrit : From: "J. Neuschäfer" The watchdog.yaml schema prescribes a node name of "timer" or "watchdog" rather than the abbreviation "wdt". Signed-off-by: J. Neuschäfer Reviewed-by: Christo

Re: [bisected][linux-next20251003] tmp2 selftests resulting in Kernel OOPs

2025-10-07 Thread Christophe Leroy
Le 07/10/2025 à 17:08, Venkat Rao Bagalkote a écrit : On 07/10/25 10:59 am, Venkat Rao Bagalkote wrote: Greetings!!! IBM CI has reported a kernel OOPs while running TPM2selftests on IBM Power11 system with linux-next20251002 kernel. Test Case: make run_tests TAP version 13 1..3 # time

Re: [PATCH RESEND] PCI/AER: Check for NULL aer_info before ratelimiting in pci_print_aer()

2025-10-02 Thread Christophe Leroy
Le 29/09/2025 à 17:10, Sathyanarayanan Kuppuswamy a écrit : On 9/29/25 2:15 AM, Breno Leitao wrote: Similarly to pci_dev_aer_stats_incr(), pci_print_aer() may be called when dev->aer_info is NULL. Add a NULL check before proceeding to avoid calling aer_ratelimit() with a NULL aer_info pointe

Re: KVM-PR no longer works when compiled with new GCC compilers

2025-10-02 Thread Christophe Leroy
Le 02/10/2025 à 08:37, Christian Zigotzky a écrit : Hello, KVM-PR (-enable-kvm) doesn't work anymore on our PA Semi Nemo boards [1] if we compiled it with new GCC compilers. The VM can't boot. There aren't any messages on the serial console of QEMU. It boots without KVM-PR. Kernel config

Re: [PATCH RESEND] PCI/AER: Check for NULL aer_info before ratelimiting in pci_print_aer()

2025-09-29 Thread Christophe Leroy
Le 29/09/2025 à 11:15, Breno Leitao a écrit : Similarly to pci_dev_aer_stats_incr(), pci_print_aer() may be called when dev->aer_info is NULL. Add a NULL check before proceeding to avoid calling aer_ratelimit() with a NULL aer_info pointer, returning 1, which does not rate limit, given this is

Re: [PATCH 2/2] macintosh/via-pmu-backlight: Include linux/of.h and uapi/linux/fb.h

2025-09-26 Thread Christophe Leroy
nclude linux/of.h for of_machine_is_compatible(). Fixes: 9f218f9bb9d2 ("backlight: Do not include in header file") Signed-off-by: Nathan Chancellor Reviewed-by: Christophe Leroy --- drivers/macintosh/via-pmu-backlight.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/driv

Re: [PATCH 1/2] powerpc/powermac: Include linux/of.h in backlight.c

2025-09-26 Thread Christophe Leroy
~ Explicitly include of.h to resolve the errors. Fixes: 9f218f9bb9d2 ("backlight: Do not include in header file") Signed-off-by: Nathan Chancellor Reviewed-by: Christophe Leroy --- arch/powerpc/platforms/powermac/backlight.c | 1 + 1 file changed, 1 insertion(+) dif

Re: [PATCH 2/2] drivers/base/node: merge unregister_one_node() and unregister_node() to a single function.

2025-09-24 Thread Christophe Leroy
Le 24/09/2025 à 20:40, Donet Tom a écrit : unregister_one_node() and unregister_node() are small functions. This patch merges them into a single function named unregister_node() to improve code readability. Same comment than patch 1. It is not only because they are small that you merge them

Re: [PATCH RESEND 00/62] initrd: remove classic initrd support

2025-09-23 Thread Christophe Leroy
Le 13/09/2025 à 02:37, Askar Safin a écrit : [Vous ne recevez pas souvent de courriers de safinas...@gmail.com. Découvrez pourquoi ceci est important à https://aka.ms/LearnAboutSenderIdentification ] Intro This patchset removes classic initrd (initial RAM disk) support, which was deprec

Re: [PATCH v2] bus: fsl-mc: Check return value of platform_get_resource()

2025-09-22 Thread Christophe Leroy
propagate the error in order to prevent NULL pointer dereference. Fixes: 6305166c8771 ("bus: fsl-mc: Add ACPI support for fsl-mc") Cc: Signed-off-by: Salah Triki --- Changes in v2: - Add Fixes and Cc tags, as suggested by Markus Elfring and Christophe Leroy. - Remove blank l

Re: (subset) [PATCH v6 0/7] Add support of IRQs to QUICC ENGINE GPIOs

2025-09-22 Thread Christophe Leroy
On Thu, 18 Sep 2025 18:23:20 +0200, Christophe Leroy wrote: > The QUICC Engine provides interrupts for a few I/O ports. This is > handled via a separate interrupt ID and managed via a triplet of > dedicated registers hosted by the SoC. > > Implement an interrupt driver for thos

Re: [PATCH v2] powerpc/smp: Add check for kcalloc() failure in parse_thread_groups()

2025-09-22 Thread Christophe Leroy
Le 22/09/2025 à 17:38, Christophe JAILLET a écrit : Le 22/09/2025 à 17:10, Guangshuo Li a écrit : As kcalloc() may fail, check its return value to avoid a NULL pointer dereference when passing it to of_property_read_u32_array(). Fixes: 790a1662d3a26 ("powerpc/smp: Parse ibm,thread-groups wit

Re: [PATCH v2] powerpc/smp: Add check for kcalloc() failure in parse_thread_groups()

2025-09-22 Thread Christophe Leroy
above the ---, otherwise it will be lost when applying the commit. With that fixed, Reviewed-by: Christophe Leroy --- arch/powerpc/kernel/smp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/powerpc/kernel/smp.c b/arch/powerpc/kernel/smp.c index 5ac7084eebc0..cfccb9389760 10

Re: [PATCH] powerpc/Makefile: use $(objtree) for crtsavres.o

2025-09-22 Thread Christophe Leroy
Le 19/09/2025 à 14:14, A. Sverdlin a écrit : [Vous ne recevez pas souvent de courriers de alexander.sverd...@siemens.com. Découvrez pourquoi ceci est important à https://aka.ms/LearnAboutSenderIdentification ] From: Alexander Sverdlin ... otherwise it could be problematic to build externa

Re: [PATCH v5 6/7] dt-bindings: soc: fsl: qe: Convert QE GPIO to DT schema

2025-09-20 Thread Christophe Leroy
Rob, Conor, Krzysztof, Can one of you or someone else help me with below comment from Rob ? Le 03/09/2025 à 06:58, Christophe Leroy a écrit : Hi Rob, Le 02/09/2025 à 23:24, Rob Herring a écrit : On Mon, Sep 01, 2025 at 02:05:13PM +0200, Christophe Leroy wrote: Convert QE QPIO devicetree

Re: [PATCH RESEND 08/62] arm: init: remove FLAG_RDLOAD and FLAG_RDPROMPT

2025-09-20 Thread Christophe Leroy
Le 13/09/2025 à 02:37, Askar Safin a écrit : [Vous ne recevez pas souvent de courriers de safinas...@gmail.com. Découvrez pourquoi ceci est important à https://aka.ms/LearnAboutSenderIdentification ] They are unused since previous commit Since which commit ? Signed-off-by: Askar Safin

[PATCH v6 2/7] soc: fsl: qe: Change GPIO driver to a proper platform driver

2025-09-20 Thread Christophe Leroy
unused. And to improve readability and reduce risk of errors, add a macro to transform a pin number into the mask that matches the associated bit in registers. Reviewed-by: Bartosz Golaszewski Signed-off-by: Christophe Leroy --- drivers/soc/fsl/qe/gpio.c | 98

[PATCH v6 1/7] soc: fsl: qe: Add an interrupt controller for QUICC Engine Ports

2025-09-19 Thread Christophe Leroy
which interrupts are supported depends on the microcontroller: - mpc8323 has 10 interrupts - mpc8360 has 28 interrupts - mpc8568 has 18 interrupts So add this information as data of the compatible. Signed-off-by: Christophe Leroy --- drivers/soc/fsl/qe/Makefile | 2 +- drivers/soc/fsl/qe

[PATCH v6 3/7] soc: fsl: qe: Drop legacy-of-mm-gpiochip.h header from GPIO driver

2025-09-19 Thread Christophe Leroy
ommit 34064c8267a6 ("powerpc/8xx: Drop legacy-of-mm-gpiochip.h header")] Suggested-by: Bartosz Golaszewski Reviewed-by: Bartosz Golaszewski Signed-off-by: Christophe Leroy --- arch/powerpc/platforms/Kconfig | 1 - drivers/soc/fsl/qe/gpio.c | 51 ++ 2 fi

[PATCH RESEND v3 0/4] ASoC: fsl: fsl_qmc_audio: Reduce amount of interrupts

2025-09-19 Thread Christophe Leroy
ove exemple, on a kernel started with 'threadirqs' option, the QMC irq thread uses 16% CPU time with this patch while it uses 26% CPU time without this patch. Christophe Leroy (4): soc: fsl: qmc: Only set completion interrupt when needed ASoc: fsl: fsl_qmc_audio: Ensure audio channe

[PATCH RESEND v3 4/4] ASoc: fsl: fsl_qmc_audio: Drop struct qmc_dai_chan

2025-09-19 Thread Christophe Leroy
prtd_tx and prtd_rx members are not used anymore and only qmc_chan member remains so struct qmc_dai_chan has become pointless. Use qmc_chan directly and drop struct qmc_dai_chan. Acked-by: Herve Codina Signed-off-by: Christophe Leroy --- sound/soc/fsl/fsl_qmc_audio.c | 52

[PATCH RESEND v3 2/4] ASoc: fsl: fsl_qmc_audio: Ensure audio channels are ordered in TDM bus

2025-09-19 Thread Christophe Leroy
channels. Acked-by: Herve Codina Signed-off-by: Christophe Leroy --- sound/soc/fsl/fsl_qmc_audio.c | 29 + 1 file changed, 29 insertions(+) diff --git a/sound/soc/fsl/fsl_qmc_audio.c b/sound/soc/fsl/fsl_qmc_audio.c index 5614a8b909ed..c0c7ef0a1511 100644 --- a/sound/soc

[PATCH v6 4/7] soc: fsl: qe: Add support of IRQ in QE GPIO

2025-09-18 Thread Christophe Leroy
qe_pio_b: gpio-controller@1418 { compatible = "fsl,mpc8323-qe-pario-bank-b"; reg = <0x1418 0x18>; interrupts = <4 5 6 7>; interrupt-parent = <&qepic>; gpio-controller; #gpio-cells =

[PATCH RESEND v3 3/4] ASoC: fsl: fsl_qmc_audio: Only request completion on last channel

2025-09-18 Thread Christophe Leroy
completion processing on the last QMC channel. On my board with the above exemple, on a kernel started with 'threadirqs' option, the QMC irq thread uses 16% CPU time with this patch while it uses 26% CPU time without this patch. Acked-by: Herve Codina Signed-off-by: Christophe Leroy

[PATCH v6 5/7] dt-bindings: soc: fsl: qe: Add an interrupt controller for QUICC Engine Ports

2025-09-18 Thread Christophe Leroy
Signed-off-by: Christophe Leroy --- .../soc/fsl/cpm_qe/fsl,qe-ports-ic.yaml | 58 +++ 1 file changed, 58 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/fsl/cpm_qe/fsl,qe-ports-ic.yaml diff --git a/Documentation/devicetree/bindings/soc/fsl/cpm_qe/fsl,qe

[PATCH v6 0/7] Add support of IRQs to QUICC ENGINE GPIOs

2025-09-18 Thread Christophe Leroy
iaw dts-coding-style.rst Changes in v2: - Fixed warning on PPC64 build (Patch 1) - Using devm_kzalloc() instead of kzalloc (Patch 2) - Stop using of-mm-gpiochip (New patch 3) - Added fsl,qe-gpio-irq-mask propertie in DT binding doc (Patch 4) - Fixed problems reported by 'make dt_binding_check&#

[PATCH RESEND v3 1/4] soc: fsl: qmc: Only set completion interrupt when needed

2025-09-18 Thread Christophe Leroy
When no post-completion processing is expected, don't waste time handling useless interrupts. Only set QMC_BD_[R/T]X_I when a completion function is passed in, and perform seamless completion on submit for interruptless buffers. Acked-by: Herve Codina Signed-off-by: Christophe

[PATCH v6 6/7] dt-bindings: soc: fsl: qe: Convert QE GPIO to DT schema

2025-09-18 Thread Christophe Leroy
Convert QE QPIO devicetree binding to DT schema. Signed-off-by: Christophe Leroy --- v6: Comments from Rob taken into account except the comment on fsl,-qe-pario-bank becoming fsl,chip-qe-pario-bank as I don't know what to do. --- .../gpio/fsl,mpc8323-qe-pario-bank.yaml

Re: [PATCH RESEND v3 0/4] ASoC: fsl: fsl_qmc_audio: Reduce amount of interrupts

2025-09-18 Thread Christophe Leroy
Le 18/09/2025 à 17:34, Christophe Leroy a écrit : This is a RESEND of v3 sent one month ago, see: https://lore.kernel.org/all/cover.1754993232.git.christophe.le...@csgroup.eu/ Sorry for the noise, v3 was https://lore.kernel.org/all/cover.1755504428.git.christophe.le...@csgroup.eu/ The

[PATCH v6 7/7] dt-bindings: soc: fsl: qe: Add support of IRQ in QE GPIO

2025-09-18 Thread Christophe Leroy
= "fsl,mpc8568-qe-pario-bank-f" When not using IRQ and for banks having no IRQ (like bank D on mpc8323) the origin compatible = "fsl,mpc8323-qe-pario-bank" is still valid. Signed-off-by: Christophe Leroy --- .../gpio/fsl,mpc8323-qe-pario-bank.yaml | 27

Re: [PATCH] powerpc/smp: Add check for kcalloc() in parse_thread_groups()

2025-09-18 Thread Christophe Leroy
Le 18/09/2025 à 15:15, Guangshuo Li a écrit : [Vous ne recevez pas souvent de courriers de lgs201920130...@gmail.com. Découvrez pourquoi ceci est important à https://aka.ms/LearnAboutSenderIdentification ] As kcalloc() may fail, check its return value to avoid a NULL pointer dereference whe

Re: [PATCH v3 0/4] ASoC: fsl: fsl_qmc_audio: Reduce amount of interrupts

2025-09-17 Thread Christophe Leroy
Hi Mark, Liam, Le 18/08/2025 à 10:19, Christophe Leroy a écrit : This series reduces significantly the amount of interrupts on fsl_qmc_audio device. I can't see this series in linux-next. I see in patchwork [1] that this series still has status 'NEW' but also state 'arch

[RFC PATCH] powerpc: Remove CONFIG_HIGHMEM

2025-09-17 Thread Christophe Leroy
up to 1Gbytes RAM, PAGE_OFFSET and TASK_SIZE is adjusted to 0xb000 (a000 on book3s/32 with modules). If you have more than 1Gbytes of RAM you can adjust CONFIG_LOWMEM_SIZE. [1] https://lore.kernel.org/all/4ff89b72-03ff-4447-9d21-dd6a5fe15...@app.fastmail.com/ Signed-off-by: Christophe

Re: [PATCH v3 07/36] powerpc/vdso: Explicitly include asm/cputable.h and asm/feature-fixups.h

2025-09-17 Thread Christophe Leroy
Le 17/09/2025 à 16:00, Thomas Weißschuh a écrit : The usage of ASM_FTR_IFCLR(CPU_TR_ARCH_31) requires asm/cputable.h and asm/feature-fixups.h. Currently these headers are included transitively, but that transitive inclusion is about to go away. Hum ... That was unexpectedly added by commit

Re: [PATCH v3 07/36] powerpc/vdso: Explicitly include asm/cputable.h and asm/feature-fixups.h

2025-09-17 Thread Christophe Leroy
Le 17/09/2025 à 17:21, Thomas Weißschuh a écrit : On Wed, Sep 17, 2025 at 04:41:49PM +0200, Christophe Leroy wrote: Le 17/09/2025 à 16:00, Thomas Weißschuh a écrit : The usage of ASM_FTR_IFCLR(CPU_TR_ARCH_31) requires asm/cputable.h and asm/feature-fixups.h. Currently these headers are

Re: [RFC PATCH V1] watchdog: Add boot-time selection for hard lockup detector

2025-09-16 Thread Christophe Leroy
Le 16/09/2025 à 16:50, Jinchao Wang a écrit : Currently, the hard lockup detector is selected at compile time via Kconfig, which requires a kernel rebuild to switch implementations. This is inflexible, especially on systems where a perf event may not be available or may be needed for other tas

[PATCH v2] powerpc/32: Fix unpaired stwcx. on interrupt exit

2025-09-16 Thread Christophe Leroy
("[POWERPC] Avoid unpaired stwcx. on some processors") which is based on CPU_FTR_NEED_PAIRED_STWCX feature. Fixes: b96bae3ae2cb ("powerpc/32: Replace ASM exception exit by C exception exit from ppc64") Signed-off-by: Christophe Leroy --- v2: Fixed the commit message (Wrong pa

Re: [PATCH RESEND 05/62] init: remove "ramdisk_start" command line parameter, which controls starting block number of initrd

2025-09-15 Thread Christophe Leroy
Have a simpler subject, Le 13/09/2025 à 02:37, Askar Safin a écrit : [Vous ne recevez pas souvent de courriers de safinas...@gmail.com. Découvrez pourquoi ceci est important à https://aka.ms/LearnAboutSenderIdentification ] This is preparation for initrd removal and make a more interesting m

Re: [PATCH RESEND 16/62] brd: remove "ramdisk_size" command line parameter

2025-09-15 Thread Christophe Leroy
Le 13/09/2025 à 02:37, Askar Safin a écrit : [Vous ne recevez pas souvent de courriers de safinas...@gmail.com. Découvrez pourquoi ceci est important à https://aka.ms/LearnAboutSenderIdentification ] It was used mostly for initrd. It could be used only if brd is built-in. Use "brd.rd_size" i

Re: [PATCH RESEND 02/62] init: remove deprecated "prompt_ramdisk" command line parameter, which does nothing

2025-09-15 Thread Christophe Leroy
Le 13/09/2025 à 02:37, Askar Safin a écrit : [Vous ne recevez pas souvent de courriers de safinas...@gmail.com. Découvrez pourquoi ceci est important à https://aka.ms/LearnAboutSenderIdentification ] This is preparation for initrd removal Squash patch 1 and patch 2 together and say this is

Re: [PATCH RESEND 06/62] arm: init: remove special logic for setting brd.rd_size

2025-09-15 Thread Christophe Leroy
Le 13/09/2025 à 02:37, Askar Safin a écrit : [Vous ne recevez pas souvent de courriers de safinas...@gmail.com. Découvrez pourquoi ceci est important à https://aka.ms/LearnAboutSenderIdentification ] There is no any reason for having special mechanism for setting ramdisk size. Also this all

Re: [PATCH V3 0/7] Add interface to expose vpa dtl counters via

2025-09-15 Thread Christophe Leroy
Le 15/09/2025 à 12:29, Athira Rajeev a écrit : The pseries Shared Processor Logical Partition(SPLPAR) machines can retrieve a log of dispatch and preempt events from the hypervisor using data from Disptach Trace Log(DTL) buffer. With this information, user can retrieve when and why each dispat

Re: [PATCH RESEND 01/62] init: remove deprecated "load_ramdisk" command line parameter, which does nothing

2025-09-15 Thread Christophe Leroy
Le 13/09/2025 à 02:37, Askar Safin a écrit : [Vous ne recevez pas souvent de courriers de safinas...@gmail.com. Découvrez pourquoi ceci est important à https://aka.ms/LearnAboutSenderIdentification ] This is preparation for initrd removal Squash patch 1 and patch 2 together and say this i

Re: [PATCH RESEND 03/62] init: sh, sparc, x86: remove unused constants RAMDISK_PROMPT_FLAG and RAMDISK_LOAD_FLAG

2025-09-15 Thread Christophe Leroy
remove them Fixes: c8376994c86c ("initrd: remove support for multiple floppies") Cc: # because changes uapi headers Signed-off-by: Askar Safin Reviewed-by: Christophe Leroy --- arch/sh/kernel/setup.c| 2 -- arch/sparc/kernel/setup_32.c | 2 -- arch/sp

Re: [PATCH RESEND 06/62] arm: init: remove special logic for setting brd.rd_size

2025-09-15 Thread Christophe Leroy
Le 13/09/2025 à 02:37, Askar Safin a écrit : [Vous ne recevez pas souvent de courriers de safinas...@gmail.com. Découvrez pourquoi ceci est important à https://aka.ms/LearnAboutSenderIdentification ] There is no any reason for having special mechanism for setting ramdisk size. That's you o

Re: [PATCH RESEND 04/62] init: x86, arm, sh, sparc: remove variable rd_image_start, which controls starting block number of initrd

2025-09-15 Thread Christophe Leroy
Le 13/09/2025 à 02:37, Askar Safin a écrit : [Vous ne recevez pas souvent de courriers de safinas...@gmail.com. Découvrez pourquoi ceci est important à https://aka.ms/LearnAboutSenderIdentification ] This is preparation for initrd removal Signed-off-by: Askar Safin --- Documentation/arch

Re: [PATCH v2] powerpc/32: Fix unpaired stwcx. on interrupt exit

2025-09-14 Thread Christophe Leroy
Hi Segher, Le 12/09/2025 à 15:24, Segher Boessenkool a écrit : Hi! On Fri, Sep 12, 2025 at 10:37:34AM +0200, Christophe Leroy wrote: BEGIN_FTR_SECTION + lwarx r0,0,r1 +END_FTR_SECTION_IFSET(CPU_FTR_NEED_PAIRED_STWCX) stwcx. r0,0,r1 /* to clear the reservation

[PATCH v2] powerpc/32: Restore clearing of MSR[RI] at interrupt/syscall exit

2025-09-11 Thread Christophe Leroy
uot;). Fixes: 6f76a01173cc ("powerpc/syscall: implement system call entry/exit logic in C for PPC32") Fixes: 13799748b957 ("powerpc/64: use interrupt restart table to speed up return from interrupt") Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/entry_32.S | 18 +++

Re: [TECH TOPIC] Reaching consensus on CONFIG_HIGHMEM phaseout

2025-09-10 Thread Christophe Leroy
Hi Richard, Le 10/09/2025 à 16:04, Richard Weinberger a écrit : Arnd, - Ursprüngliche Mail - Von: "Arnd Bergmann" High memory is one of the least popular features of the Linux kernel. Added in 1999 for linux-2.3.16 to support large x86 machines, there are very few systems that still n

[PATCH v2] powerpc/32: Remove PAGE_KERNEL_TEXT to fix startup failure

2025-09-09 Thread Christophe Leroy
://lore.kernel.org/all/342b4120-911c-4723-82ec-d8c9b03a8...@mailbox.org/ Signed-off-by: Christophe Leroy --- v2: Revised commit message --- arch/powerpc/include/asm/pgtable.h | 12 arch/powerpc/mm/book3s32/mmu.c | 4 ++-- arch/powerpc/mm/pgtable_32.c | 2 +- 3 files changed, 3 insertions

Re: Kernel v6.17-rc4 with STATIC_CALL_SELFTEST=y enabled fails to boot at early stage (PowerMac G4 DP)

2025-09-07 Thread Christophe Leroy
Le 04/09/2025 à 11:57, Andrew Donnellan a écrit : On Thu, 2025-09-04 at 14:33 +0530, Madhavan Srinivasan wrote: I am using qemu with -M mac99 and it boots Hardware name: PowerMac3,1 7400 0xc0209 PowerMac printk: legacy bootconsole [udbg0] enabled -

Re: [PATCH RFC] powerpc: Panic on jump label code patching failure

2025-09-06 Thread Christophe Leroy
Le 06/09/2025 à 05:52, Ritesh Harjani a écrit : [Vous ne recevez pas souvent de courriers de rite...@linux.ibm.com. Découvrez pourquoi ceci est important à https://aka.ms/LearnAboutSenderIdentification ] Andrew Donnellan writes: If patch_branch() or patch_instruction() fails while updatin

Re: [PATCH] powerpc/32: Remove PAGE_KERNEL_TEXT to fix startup failure

2025-09-05 Thread Christophe Leroy
Le 05/09/2025 à 08:57, Andrew Donnellan a écrit : On Thu, 2025-09-04 at 18:33 +0200, Christophe Leroy wrote: PAGE_KERNEL_TEXT is an old macro that is used to tell kernel whether kernel text has to be mapped read-only or read-write based on build time options. But nowadays, with

Re: [PATCH] tty: remove redundant condition checks

2025-09-05 Thread Christophe Leroy
Le 05/09/2025 à 11:13, Xichao Zhao a écrit : Remove redundant condition checks and replace else if with else. Signed-off-by: Xichao Zhao Reviewed-by: Christophe Leroy --- drivers/tty/hvc/hvc_console.c | 2 +- drivers/tty/serial/msm_serial.c | 2 +- 2 files changed, 2 insertions

Re: [PATCH RFC] powerpc: Panic on jump label code patching failure

2025-09-04 Thread Christophe Leroy
off-by: Andrew Donnellan Reviewed-by: Christophe Leroy --- Ran into this while debugging an issue that Erhard reported to me about my PAGE_TABLE_CHECK series on a G4, where updating a static key failed silently, but only for one call site, leading to an incorrect reference count later on. This lo

Re: [PATCH] powerpc/32: Remove PAGE_KERNEL_TEXT to fix startup failure

2025-09-04 Thread Christophe Leroy
Le 05/09/2025 à 05:55, Ritesh Harjani a écrit : Christophe Leroy writes: PAGE_KERNEL_TEXT is an old macro that is used to tell kernel whether kernel text has to be mapped read-only or read-write based on build time options. But nowadays, with functionnalities like jump_labels, static

Re: Kernel v6.17-rc4 with STATIC_CALL_SELFTEST=y enabled fails to boot at early stage (PowerMac G4 DP)

2025-09-04 Thread Christophe Leroy
Le 04/09/2025 à 10:40, Madhavan Srinivasan a écrit : On 9/4/25 1:01 PM, Christophe Leroy wrote: Hi Erhard, Le 04/09/2025 à 00:44, Erhard Furtner a écrit : Greetings! In a conversation with Andrew about his page table check code for PowerPC he found out there seems to be a general

Re: Kernel v6.17-rc4 with STATIC_CALL_SELFTEST=y enabled fails to boot at early stage (PowerMac G4 DP)

2025-09-04 Thread Christophe Leroy
Hi Erhard, Le 04/09/2025 à 00:44, Erhard Furtner a écrit : Greetings! In a conversation with Andrew about his page table check code for PowerPC he found out there seems to be a general problem of the code patching code on ppc: > I note that STATIC_CALL_SELFTEST seems to fail, which could b

[PATCH] powerpc/32: Remove PAGE_KERNEL_TEXT to fix startup failure

2025-09-04 Thread Christophe Leroy
may imply kernel text modification, always set kernel text read-write at startup and rely on CONFIG_STRICT_KERNEL_RWX to provide accurate protection. Reported-by: Erhard Furtner Closes: https://lore.kernel.org/all/342b4120-911c-4723-82ec-d8c9b03a8...@mailbox.org/ Signed-off-by: Christophe Leroy

Re: Kernel v6.17-rc4 with STATIC_CALL_SELFTEST=y enabled fails to boot at early stage (PowerMac G4 DP)

2025-09-04 Thread Christophe Leroy
Hi Again, Le 04/09/2025 à 09:31, Christophe Leroy a écrit : Hi Erhard, Le 04/09/2025 à 00:44, Erhard Furtner a écrit : Greetings! In a conversation with Andrew about his page table check code for PowerPC he found out there seems to be a general problem of the code patching code on ppc

Re: [PATCH 5.4 only v2] powerpc: boot: Remove leading zero in label in udelay()

2025-09-04 Thread Christophe Leroy
in linux-5.4.y because commit 8b14e1dff067 ("powerpc: Remove support for PowerPC 601") removed this code altogether in 5.10. Link: https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=226749d5a6ff0d5c607d6428d6c81e1e7e7a994b [1] Signed-off-by: Nathan Chancellor Reviewed-by: Ch

Re: [PATCH v3 5/7] powerpc: Stop calling page_address() in free_pages()

2025-09-04 Thread Christophe Leroy
Le 03/09/2025 à 20:59, Vishal Moola (Oracle) a écrit : free_pages() should be used when we only have a virtual address. We should call __free_pages() directly on our page instead. Signed-off-by: Vishal Moola (Oracle) Reviewed-by: Ritesh Harjani (IBM) Reviewed-by: Christophe Leroy

Re: [PATCH] powerpc/32: Restore clearing of MSR[RI] in interrupt_exit_kernel_prepare()

2025-09-03 Thread Christophe Leroy
Le 01/09/2025 à 12:37, Christophe Leroy a écrit : Commit 13799748b957 ("powerpc/64: use interrupt restart table to speed up return from interrupt") removed the inconditional clearing of MSR[RI] when returning from interrupt into kernel. But powerpc/32 doesn't implement interrup

[PATCH v5 5/7] dt-bindings: soc: fsl: qe: Add an interrupt controller for QUICC Engine Ports

2025-09-03 Thread Christophe Leroy
-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/fsl/cpm_qe/fsl,qe-ports-ic.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale QUICC Engine I/O Ports Interrupt Controller + +maintainers: + - Christophe Leroy + +description: + Interrupt controller for

Re: [PATCH] powerpc/pasemi: Add a null pointer check to the pas_setup_mce_regs

2025-09-03 Thread Christophe Leroy
Le 17/01/2024 à 10:17, Kunwu Chan a écrit : kasprintf() returns a pointer to dynamically allocated memory which can be NULL upon failure. Ensure the allocation was successful by checking the pointer validity. Signed-off-by: Kunwu Chan Reviewed-by: Christophe Leroy --- arch/powerpc

Re: [PATCH v5 6/7] dt-bindings: soc: fsl: qe: Convert QE GPIO to DT schema

2025-09-02 Thread Christophe Leroy
Hi Rob, Le 02/09/2025 à 23:24, Rob Herring a écrit : On Mon, Sep 01, 2025 at 02:05:13PM +0200, Christophe Leroy wrote: Convert QE QPIO devicetree binding to DT schema. Signed-off-by: Christophe Leroy --- v5: New --- + +properties: + compatible: +items: + - enum: + - fsl

[PATCH v5 1/7] soc: fsl: qe: Add an interrupt controller for QUICC Engine Ports

2025-09-01 Thread Christophe Leroy
which interrupts are supported depends on the microcontroller: - mpc8323 has 10 interrupts - mpc8360 has 28 interrupts - mpc8568 has 18 interrupts So add this information as data of the compatible. Signed-off-by: Christophe Leroy --- drivers/soc/fsl/qe/Makefile | 2 +- drivers/soc/fsl/qe

[PATCH v5 7/7] dt-bindings: soc: fsl: qe: Add support of IRQ in QE GPIO

2025-09-01 Thread Christophe Leroy
= "fsl,mpc8568-qe-pario-bank-f" When not using IRQ and for banks having no IRQ (like bank D on mpc8323) the origin compatible = "fsl,mpc8323-qe-pario-bank" is still valid. Signed-off-by: Christophe Leroy --- v5: Changed to DT schema --- .../fsl/cpm_qe/fsl,mpc8323-qe-pario

[PATCH v5 4/7] soc: fsl: qe: Add support of IRQ in QE GPIO

2025-09-01 Thread Christophe Leroy
qe_pio_b: gpio-controller@1418 { compatible = "fsl,mpc8323-qe-pario-bank-b"; reg = <0x1418 0x18>; interrupts = <4 5 6 7>; interrupt-parent = <&qepic>; gpio-controller; #gpio-cells =

[PATCH v5 2/7] soc: fsl: qe: Change GPIO driver to a proper platform driver

2025-09-01 Thread Christophe Leroy
unused. And to improve readability and reduce risk of errors, add a macro to transform a pin number into the mask that matches the associated bit in registers. Signed-off-by: Christophe Leroy Reviewed-by: Bartosz Golaszewski --- v5: Added the PIN_MASK() macro --- drivers/soc/fsl/qe/gpio.c | 98

[PATCH v5 0/7] Add support of IRQs to QUICC ENGINE GPIOs

2025-09-01 Thread Christophe Leroy
ms reported by 'make dt_binding_check' (Patch 5) Christophe Leroy (7): soc: fsl: qe: Add an interrupt controller for QUICC Engine Ports soc: fsl: qe: Change GPIO driver to a proper platform driver soc: fsl: qe: Drop legacy-of-mm-gpiochip.h header from GPIO driver soc: fsl: qe: Add support of IRQ

[PATCH v5 6/7] dt-bindings: soc: fsl: qe: Convert QE GPIO to DT schema

2025-09-01 Thread Christophe Leroy
Convert QE QPIO devicetree binding to DT schema. Signed-off-by: Christophe Leroy --- v5: New --- .../fsl/cpm_qe/fsl,mpc8323-qe-pario-bank.yaml | 53 +++ .../bindings/soc/fsl/cpm_qe/qe/par_io.txt | 26 + 2 files changed, 54 insertions(+), 25 deletions(-) create mode

[PATCH v5 3/7] soc: fsl: qe: Drop legacy-of-mm-gpiochip.h header from GPIO driver

2025-09-01 Thread Christophe Leroy
ommit 34064c8267a6 ("powerpc/8xx: Drop legacy-of-mm-gpiochip.h header")] Suggested-by: Bartosz Golaszewski Signed-off-by: Christophe Leroy --- arch/powerpc/platforms/Kconfig | 1 - drivers/soc/fsl/qe/gpio.c | 51 ++ 2 files changed, 27 insertions(+

[PATCH] powerpc/32: Restore clearing of MSR[RI] in interrupt_exit_kernel_prepare()

2025-09-01 Thread Christophe Leroy
cleared. Fixes: 13799748b957 ("powerpc/64: use interrupt restart table to speed up return from interrupt") Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/interrupt.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/powerpc/kernel/interrupt.c b/arch/powerpc/kernel/inter

Re: [RFC 3/8] book3s64/hash: Fix phys_addr_t printf format in htab_initialize()

2025-08-30 Thread Christophe Leroy
s.o] Error 1 Cc: Madhavan Srinivasan Cc: Michael Ellerman Cc: Nicholas Piggin Cc: Christophe Leroy Cc: Paul Mackerras Cc: "Aneesh Kumar K.V" Cc: Donet Tom Cc: linuxppc-dev@lists.ozlabs.org Signed-off-by: Ritesh Harjani (IBM) --- arch/powerpc/mm/book3s64/hash_utils.c | 2 +-

Re: [RFC 6/8] powerpc/book3s64/slb: Make preload_add return type as void

2025-08-30 Thread Christophe Leroy
make it's return type to void. s/it's/its Cc: Madhavan Srinivasan Cc: Michael Ellerman Cc: Nicholas Piggin Cc: Christophe Leroy Cc: Paul Mackerras Cc: "Aneesh Kumar K.V" Cc: Donet Tom Cc: linuxppc-dev@lists.ozlabs.org Signed-off-by: Ritesh Harjani (IBM) --- arch

Re: [RFC 5/8] powerpc/ptdump: Dump PXX level info for kernel_page_tables

2025-08-30 Thread Christophe Leroy
present dirty accessed Cc: Madhavan Srinivasan Cc: Michael Ellerman Cc: Nicholas Piggin Cc: Christophe Leroy Cc: Paul Mackerras Cc: "Aneesh Kumar K.V" Cc: Donet Tom Cc: linuxppc-dev@lists.ozlabs.org Signed-off-by: Ritesh Harjani (IBM) --- arch/powerpc/mm/ptdump/8xx.

Re: [RFC 7/8] powerpc/book3s64/slb: Add no_slb_preload early cmdline param

2025-08-30 Thread Christophe Leroy
: Christophe Leroy Cc: Paul Mackerras Cc: "Aneesh Kumar K.V" Cc: Donet Tom Cc: linuxppc-dev@lists.ozlabs.org Signed-off-by: Ritesh Harjani (IBM) --- Documentation/admin-guide/kernel-parameters.txt | 3 +++ arch/powerpc/mm/book3s64/hash_utils.c | 3 +++ arch/powerpc/m

Re: [PATCH v3 5/6] dt-bindings: soc: fsl: qe: Add support of IRQ in QE GPIO

2025-08-29 Thread Christophe Leroy
Le 29/08/2025 à 11:16, Krzysztof Kozlowski a écrit : On 29/08/2025 10:35, Christophe Leroy wrote: Le 29/08/2025 à 09:47, Krzysztof Kozlowski a écrit : On 28/08/2025 16:12, Christophe Leroy wrote: Le 28/08/2025 à 15:28, Rob Herring a écrit : On Mon, Aug 25, 2025 at 2:20 AM Christophe

Re: [PATCH v3 5/6] dt-bindings: soc: fsl: qe: Add support of IRQ in QE GPIO

2025-08-29 Thread Christophe Leroy
Le 29/08/2025 à 09:47, Krzysztof Kozlowski a écrit : On 28/08/2025 16:12, Christophe Leroy wrote: Le 28/08/2025 à 15:28, Rob Herring a écrit : On Mon, Aug 25, 2025 at 2:20 AM Christophe Leroy wrote: In the QE, a few GPIOs are IRQ capable. Similarly to commit 726bd223105c ("powerp

Re: [PATCH v3 5/6] dt-bindings: soc: fsl: qe: Add support of IRQ in QE GPIO

2025-08-28 Thread Christophe Leroy
Le 28/08/2025 à 15:28, Rob Herring a écrit : On Mon, Aug 25, 2025 at 2:20 AM Christophe Leroy wrote: In the QE, a few GPIOs are IRQ capable. Similarly to commit 726bd223105c ("powerpc/8xx: Adding support of IRQ in MPC8xx GPIO"), add IRQ support to QE GPIO. Add property '

Re: [PATCH] powerpc/powernv: Rename pe_level_printk to pe_printk and embed KERN_LEVEL in format

2025-08-27 Thread Christophe Leroy
Le 28/08/2025 à 02:04, Joe Perches a écrit : [Vous ne recevez pas souvent de courriers de j...@perches.com. Découvrez pourquoi ceci est important à https://aka.ms/LearnAboutSenderIdentification ] On Wed, 2025-08-27 at 18:42 +0200, Christophe Leroy wrote: Hi Joe Le 21/06/2019 à 07:36, Joe

Re: [PATCH] powerpc/lib/xor_vmx: Relax frame size for clang

2025-08-27 Thread Christophe Leroy
Le 21/06/2019 à 10:58, Mathieu Malaterre a écrit : When building with clang-8 the frame size limit is hit: ../arch/powerpc/lib/xor_vmx.c:119:6: error: stack frame size of 1200 bytes in function '__xor_altivec_5' [-Werror,-Wframe-larger-than=] Follow the same approach as commit 9c87156cce

Re: [PATCH] powerpc/powernv: Rename pe_level_printk to pe_printk and embed KERN_LEVEL in format

2025-08-27 Thread Christophe Leroy
Hi Joe Le 21/06/2019 à 07:36, Joe Perches a écrit : Remove the separate KERN_ from each pe_level_printk and instead add the KERN_ to the format. pfix in pe_level_printk could also be used uninitialized so add a new else and set pfx to the hex value of pe->flags. Rename pe_level_printk to pe_pr

[PATCH] powerpc/32: Fix unpaired stwcx. on interrupt exit

2025-08-27 Thread Christophe Leroy
Avoid unpaired stwcx. on some processors") Fixes: b96bae3ae2cb ("powerpc/32: Replace ASM exception exit by C exception exit from ppc64") Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/entry_32.S | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/

[PATCH] powerpc/8xx: Remove specific code from fast_exception_return

2025-08-27 Thread Christophe Leroy
ok3s/32 or booke, never by common code or 8xx code. So remove the clear of MSR[RI] enclosed in #ifdef CONFIG_PPC_8xx. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/entry_32.S | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/arch/powerpc/kernel/entry_32.S b/arch/powe

Re: [PATCH v7 3/8] powerpc/smp: Export cpu_coregroup_mask()

2025-08-26 Thread Christophe Leroy
Le 26/08/2025 à 06:13, K Prateek Nayak a écrit : Deine cpu_coregroup_mask() to export the per-cpu cpu_corgrp_map when coregroups are supported(). When has_coregroup_support() returns false, cpu_coregroup_mask() returns the mask used by the PKG domain. Since this will only be used after CONFIG

Re: [PATCH v7 5/8] sched/topology: Unify tl_smt_mask() across core and all arch

2025-08-26 Thread Christophe Leroy
Le 26/08/2025 à 06:13, K Prateek Nayak a écrit : Unify the tl_smt_mask() wrapper around cpu_smt_mask() across core, x86, ppc, and s390. On s390, include/linux/topology.c defines an explicit cpu_smt_mask() wrapper around topology_sibling_cpumask() when cpu_smt_mask() is not defined by the arch

Re: [PATCH v7 7/8] sched/topology: Unify tl_mc_mask() across core and all arch

2025-08-26 Thread Christophe Leroy
Le 26/08/2025 à 06:13, K Prateek Nayak a écrit : Unify the tl_mc_mask() wrapper around cpu_coregroup_mask() used by core, x86, powerpc, and s390. No functional changes intended. Signed-off-by: K Prateek Nayak --- arch/powerpc/kernel/smp.c | 7 +-- arch/s390/kernel/topology.c

Re: [PATCH v7 2/8] powerpc/smp: Rename cpu_corgroup_* to cpu_corgrp_*

2025-08-26 Thread Christophe Leroy
Le 26/08/2025 à 06:13, K Prateek Nayak a écrit : Rename cpu_corgroup_{map,mask} to cpu_corgrp_{map,mask} to free up the cpu_corgroup_* namespace. cpu_corgroup_mask() will be added back in the subsequent commit for CONFIG_SCHED_MC enablement. This renaming seems odd and uncomplete. For instan

Re: Ozlabs patchwork notification not working anymore

2025-08-26 Thread Christophe Leroy
Hi Jeremy, Le 26/08/2025 à 04:24, Jeremy Kerr a écrit : Hi Christophe, I still don't receive anything it seems. I have modified the status of several patches over the last two weeks and haven't received any notification from patchwork. In your case, it looks like you have previously opted-out

[PATCH v4] soc: fsl: qe: Change GPIO driver to a proper platform driver

2025-08-26 Thread Christophe Leroy
unused. Signed-off-by: Christophe Leroy Reviewed-by: Bartosz Golaszewski --- v4: Removed unused headers --- drivers/soc/fsl/qe/gpio.c | 88 +-- 1 file changed, 47 insertions(+), 41 deletions(-) diff --git a/drivers/soc/fsl/qe/gpio.c b/drivers/soc/fsl/qe

[PATCH v4] soc: fsl: qe: Add support of IRQ in QE GPIO

2025-08-26 Thread Christophe Leroy
6 7>; interrupt-parent = <&qepic>; gpio-controller; #gpio-cells = <2>; fsl,qe-gpio-irq-mask = <0x01400050>; }; Signed-off-by: Christophe Leroy --- v4: Using device_property_read_u32() instead of of_property_re

Re: [PATCH v7 5/8] sched/topology: Unify tl_smt_mask() across core and all arch

2025-08-26 Thread Christophe Leroy
Le 26/08/2025 à 10:01, Peter Zijlstra a écrit : diff --git a/include/linux/sched/topology.h b/include/linux/sched/topology.h index 602508130c8a..d75fbb7d9667 100644 --- a/include/linux/sched/topology.h +++ b/include/linux/sched/topology.h @@ -37,7 +37,13 @@ static inline int cpu_smt_flags(void

  1   2   3   4   5   6   7   8   9   10   >