[PATCH v4 21/28] net: wan: Add framer framework support

2023-08-18 Thread Christophe Leroy
changes - get/set the framer configuration Signed-off-by: Herve Codina Reviewed-by: Christophe Leroy Signed-off-by: Christophe Leroy --- v4: Fixed wrong names in three EXPORT_SYMBOL() --- drivers/net/wan/Kconfig| 2 + drivers/net/wan/Makefile | 2 + drivers/net/wan

[PATCH v4 24/28] net: wan: framer: Add support for the Lantiq PEF2256 framer

2023-08-18 Thread Christophe Leroy
From: Herve Codina The Lantiq PEF2256 is a framer and line interface component designed to fulfill all required interfacing between an analog E1/T1/J1 line and the digital PCM system highway/H.100 bus. Signed-off-by: Herve Codina Reviewed-by: Christophe Leroy Signed-off-by: Christophe Leroy

[PATCH v4 27/28] ASoC: codecs: Add support for the framer codec

2023-08-18 Thread Christophe Leroy
Codina Reviewed-by: Christophe Leroy Signed-off-by: Christophe Leroy --- sound/soc/codecs/Kconfig| 15 ++ sound/soc/codecs/Makefile | 2 + sound/soc/codecs/framer-codec.c | 413 3 files changed, 430 insertions(+) create mode 100644 sound/soc/codecs

[PATCH v4 28/28] net: wan: fsl_qmc_hdlc: Add framer support

2023-08-18 Thread Christophe Leroy
according to IF_IFACE_{E1,T1} information. Signed-off-by: Herve Codina Reviewed-by: Christophe Leroy Signed-off-by: Christophe Leroy --- drivers/net/wan/fsl_qmc_hdlc.c | 239 - 1 file changed, 235 insertions(+), 4 deletions(-) diff --git a/drivers/net/wan/fsl_qmc_hdlc.c

[PATCH v4 22/28] dt-bindings: net: Add the Lantiq PEF2256 E1/T1/J1 framer

2023-08-18 Thread Christophe Leroy
From: Herve Codina The Lantiq PEF2256 is a framer and line interface component designed to fulfill all required interfacing between an analog E1/T1/J1 line and the digital PCM system highway/H.100 bus. Signed-off-by: Herve Codina Signed-off-by: Christophe Leroy --- .../bindings/net/lantiq

[PATCH v4 23/28] mfd: core: Ensure disabled devices are skiped without aborting

2023-08-18 Thread Christophe Leroy
disabled one fixes the issue. Fixes: 22380b65dc70 ("mfd: mfd-core: Ensure disabled devices are ignored without error") Signed-off-by: Herve Codina Reviewed-by: Christophe Leroy Signed-off-by: Christophe Leroy --- drivers/mfd/mfd-core.c | 17 - 1 file changed, 12 insert

[PATCH v4 25/28] pinctrl: Add support for the Lantic PEF2256 pinmux

2023-08-18 Thread Christophe Leroy
-by: Christophe Leroy Signed-off-by: Christophe Leroy --- drivers/pinctrl/Kconfig| 14 ++ drivers/pinctrl/Makefile | 1 + drivers/pinctrl/pinctrl-pef2256-regs.h | 65 ++ drivers/pinctrl/pinctrl-pef2256.c | 308 + 4 files changed, 388

[PATCH v4 26/28] MAINTAINERS: Add the Lantiq PEF2256 driver entry

2023-08-18 Thread Christophe Leroy
From: Herve Codina After contributing the driver, add myself as the maintainer for the Lantiq PEF2256 driver. Signed-off-by: Herve Codina Reviewed-by: Christophe Leroy Signed-off-by: Christophe Leroy --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b

[PATCH v4 15/28] soc: fsl: cpm1: qmc: Split Tx and Rx TSA entries setup

2023-08-18 Thread Christophe Leroy
From: Herve Codina The Tx and Rx entries for a given channel are set in one function. In order to modify Rx entries and Tx entries independently of one other, split this function in one for the Rx part and one for the Tx part. Signed-off-by: Herve Codina Reviewed-by: Christophe Leroy Signed

[PATCH v4 13/28] soc: fsl: cpm1: qmc: Check available timeslots in qmc_check_chans()

2023-08-18 Thread Christophe Leroy
and check the available timeslots instead of the used timeslots in qmc_check_chans(). Signed-off-by: Herve Codina Reviewed-by: Christophe Leroy Signed-off-by: Christophe Leroy --- drivers/soc/fsl/qe/qmc.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/soc

[PATCH v4 14/28] soc: fsl: cpm1: qmc: Add support for disabling channel TSA entries

2023-08-18 Thread Christophe Leroy
From: Herve Codina In order to allow runtime timeslot route changes, disabling channel TSA entries needs to be supported. Add support for this new feature. Signed-off-by: Herve Codina Reviewed-by: Christophe Leroy Signed-off-by: Christophe Leroy --- drivers/soc/fsl/qe/qmc.c | 20

[PATCH v4 18/28] soc: fsl: cpm1: qmc: Remove timeslots handling from setup_chan()

2023-08-18 Thread Christophe Leroy
From: Herve Codina Timeslots setting is done at channel start() and stop(). There is no more need to do that during setup_chan(). Simply remove timeslot setting from setup_chan(). Signed-off-by: Herve Codina Reviewed-by: Christophe Leroy Signed-off-by: Christophe Leroy --- drivers/soc/fsl

[PATCH v4 10/28] soc: fsl: cpm1: qmc: Rename qmc_setup_tsa* to qmc_init_tsa*

2023-08-18 Thread Christophe Leroy
From: Herve Codina qmc_setup_tsa* are called once at initialisation. They initialize the QMC TSA table. In order to introduce setup function later on for dynamic timeslots management, rename the function to avoid later confusion. Signed-off-by: Herve Codina Reviewed-by: Christophe Leroy

[PATCH v4 04/28] soc: fsl: cpm1: qmc: Extend the API to provide Rx status

2023-08-18 Thread Christophe Leroy
, these flags have no meaning. Keep only one read complete() API and update the consumers working in transparent mode. In this case, the newly introduced flags parameter is simply unused. Signed-off-by: Herve Codina Reviewed-by: Christophe Leroy Signed-off-by: Christophe Leroy --- drivers/soc/fsl/qe

[PATCH v4 06/28] dt-bindings: net: Add support for QMC HDLC

2023-08-18 Thread Christophe Leroy
bus used by the QMC HDLC and the E1/T1 line. The QMC HDLC can use this framer to get information about the E1/T1 line and configure the E1/T1 line. Signed-off-by: Herve Codina Signed-off-by: Christophe Leroy --- .../devicetree/bindings/net/fsl,qmc-hdlc.yaml | 46 +++ 1 file

[PATCH v4 16/28] soc: fsl: cpm1: qmc: Introduce is_tsa_64rxtx flag

2023-08-18 Thread Christophe Leroy
each time we need it. It is set once at initialization. Signed-off-by: Herve Codina Reviewed-by: Christophe Leroy Signed-off-by: Christophe Leroy --- drivers/soc/fsl/qe/qmc.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/soc/fsl/qe/qmc.c b/drivers/soc/fsl/qe

[PATCH v4 19/28] soc: fsl: cpm1: qmc: Introduce functions to change timeslots at runtime

2023-08-18 Thread Christophe Leroy
. Signed-off-by: Herve Codina Reviewed-by: Christophe Leroy Signed-off-by: Christophe Leroy --- drivers/soc/fsl/qe/qmc.c | 51 include/soc/fsl/qe/qmc.h | 10 2 files changed, 61 insertions(+) diff --git a/drivers/soc/fsl/qe/qmc.c b/drivers/soc/fsl

[PATCH v4 03/28] soc: fsl: cpm1: qmc: Fix rx channel reset

2023-08-18 Thread Christophe Leroy
the channel from stopped state to started state. Fix the issue removing the is_rx_stopped flag setting from qmc_chan_reset() Fixes: 3178d58e0b97 ("soc: fsl: cpm1: Add support for QMC") Signed-off-by: Herve Codina Reviewed-by: Christophe Leroy Signed-off-by: Christophe Leroy --- drivers/

[PATCH v4 12/28] soc: fsl: cpm1: qmc: Remove no more needed checks from qmc_check_chans()

2023-08-18 Thread Christophe Leroy
From: Herve Codina The newly introduced qmc_chan_setup_tsa* functions check that the channel entries are not already used. These checks are also performed by qmc_check_chans() and are no more needed. Remove them from qmc_check_chans(). Signed-off-by: Herve Codina Reviewed-by: Christophe Leroy

[PATCH v4 09/28] soc: fsl: cpm1: qmc: Introduce available timeslots masks

2023-08-18 Thread Christophe Leroy
. changing timeslots at runtime). Signed-off-by: Herve Codina Reviewed-by: Christophe Leroy Signed-off-by: Christophe Leroy --- drivers/soc/fsl/qe/qmc.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/soc/fsl/qe/qmc.c b/drivers/soc/fsl/qe/qmc.c index

[PATCH v4 05/28] soc: fsl: cpm1: qmc: Remove inline function specifiers

2023-08-18 Thread Christophe Leroy
by: Andrew Lunn Reviewed-by: Christophe Leroy Signed-off-by: Christophe Leroy --- drivers/soc/fsl/qe/qmc.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/soc/fsl/qe/qmc.c b/drivers/soc/fsl/qe/qmc.c index 2d2a9d88ba6c..459e0bbd723d 100644 --- a/drivers/

[PATCH v4 17/28] soc: fsl: cpm1: qmc: Handle timeslot entries at channel start() and stop()

2023-08-18 Thread Christophe Leroy
From: Herve Codina In order to support runtime timeslot route changes, enable the channel timeslot entries at channel start() and disable them at channel stop(). Signed-off-by: Herve Codina Reviewed-by: Christophe Leroy Signed-off-by: Christophe Leroy --- drivers/soc/fsl/qe/qmc.c | 175

[PATCH v4 07/28] net: wan: Add support for QMC HDLC

2023-08-18 Thread Christophe Leroy
From: Herve Codina The QMC HDLC driver provides support for HDLC using the QMC (QUICC Multichannel Controller) to transfer the HDLC data. Signed-off-by: Herve Codina Reviewed-by: Christophe Leroy Signed-off-by: Christophe Leroy --- drivers/net/wan/Kconfig| 12 + drivers/net/wan

[PATCH v4 11/28] soc: fsl: cpm1: qmc: Introduce qmc_chan_setup_tsa*

2023-08-18 Thread Christophe Leroy
From: Herve Codina Introduce the qmc_chan_setup_tsa* functions to setup entries related to the given channel. Use them during QMC channels setup. Signed-off-by: Herve Codina Reviewed-by: Christophe Leroy Signed-off-by: Christophe Leroy --- drivers/soc/fsl/qe/qmc.c | 161

[PATCH v4 08/28] MAINTAINERS: Add the Freescale QMC HDLC driver entry

2023-08-18 Thread Christophe Leroy
From: Herve Codina After contributing the driver, add myself as the maintainer for the Freescale QMC HDLC driver. Signed-off-by: Herve Codina Signed-off-by: Christophe Leroy --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index

[PATCH v4 00/28] Add support for QMC HDLC, framer infrastruture and PEF2256 framer (v4)

2023-08-18 Thread Christophe Leroy
20230323103154.264546-1-herve.cod...@bootlin.com/ Changes v3 -> v4 - Fixes build failure with CONFIG_MODULES in patch 21 (net: wan: Add framer framework support) Changes v2 -> v3 - Patches 1, 2, 3, 4 Add 'Reviewed-by: Christophe Leroy ' - New patch Remove inline keyword from the exis

[PATCH v4 02/28] soc: fsl: cpm1: qmc: Fix __iomem addresses declaration

2023-08-18 Thread Christophe Leroy
... Indeed, some variable were declared 'type *__iomem var' instead of 'type __iomem *var'. Use the correct declaration to remove these warnings. Fixes: 3178d58e0b97 ("soc: fsl: cpm1: Add support for QMC") Signed-off-by: Herve Codina Reviewed-by: Christophe Leroy Signed-off-by:

[PATCH v4 01/28] soc: fsl: cpm1: tsa: Fix __iomem addresses declaration

2023-08-18 Thread Christophe Leroy
'type *__iomem var' instead of 'type __iomem *var'. Use the correct declaration to remove these warnings. Fixes: 1d4ba0b81c1c ("soc: fsl: cpm1: Add support for TSA") Signed-off-by: Herve Codina Reviewed-by: Christophe Leroy Signed-off-by: Christophe Leroy --- drivers/soc/f

[PATCH 1/2] powerpc: Introduce PAGE_NONE_X to replace PAGE_EXECONLY

2023-08-18 Thread Christophe Leroy
-Radix. And update access_error() so that a non exec fault on a VM_EXEC only mapping is always invalid, even when the underlying layer don't always generate a fault for that. Signed-off-by: Christophe Leroy Cc: Russell Currey Cc: Kees Cook --- arch/powerpc/include/asm/book3s/32/pgtable.h | 1

[PATCH 2/2] powerpc/8xx: Honor execonly protection

2023-08-18 Thread Christophe Leroy
On powerpc 8xx, exec does not imply read so redefine PAGE_NONE_X as PAGE_NONE + X Signed-off-by: Christophe Leroy Cc: Russell Currey Cc: Kees Cook --- arch/powerpc/include/asm/nohash/32/pte-8xx.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/include/asm

Re: KASAN debug kernel fails to boot at early stage when CONFIG_SMP=y is set (kernel 6.5-rc5, PowerMac G4 3,6)

2023-08-18 Thread Christophe Leroy
Le 18/08/2023 à 11:16, Erhard Furtner a écrit : > On Fri, 18 Aug 2023 09:13:21 +1000 > Michael Ellerman wrote: > >> Try just removing the call to btext_unmap() entirely and see how far it goes? >> >> cheers > > Ok, I commented out btext_unmap() in MMU_init() and the freeze just happens >

[PATCH] powerpc/perf: Convert fsl_emb notifier to state machine callbacks

2023-08-18 Thread Christophe Leroy
t;perf: Rework and fix the arch CPU-hotplug hooks") Cc: Peter Zijlstra Cc: Thomas Gleixner Signed-off-by: Christophe Leroy Cc: Arnd Bergmann --- arch/powerpc/perf/core-fsl-emb.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/perf/core-fsl-emb.c

[PATCH] dma-mapping, powerpc: Move arch_dma_set_mask() prototype into dma-map-ops.h

2023-08-18 Thread Christophe Leroy
arch_dma_set_mask() definition into dma-map-ops.h and include it in arch/powerpc/kernel/dma-mask.c Signed-off-by: Christophe Leroy Cc: Arnd Bergmann --- arch/powerpc/kernel/dma-mask.c | 1 + include/linux/dma-map-ops.h| 6 ++ kernel/dma/mapping.c | 6 -- 3 files changed, 7

[PATCH v2] powerpc/512x: Make mpc512x_select_reset_compat() static

2023-08-18 Thread Christophe Leroy
mpc512x_select_reset_compat() is only used in the file it is defined. Make it static. Move mpc512x_restart_init() after mpc512x_select_reset_compat(). Signed-off-by: Christophe Leroy --- v2: Move mpc512x_restart_init() after mpc512x_select_reset_compat(). --- arch/powerpc/platforms/512x

[PATCH] powerpc/4xx: Add missing includes to fix no previous prototype errors

2023-08-17 Thread Christophe Leroy
/platforms/4xx/soc.c:193:6: warning: no previous prototype for 'ppc4xx_reset_system' [-Wmissing-prototypes] 193 | void ppc4xx_reset_system(char *cmd) | ^~~ Add missing includes to get the missing prototypes. Signed-off-by: Christophe Leroy Cc: Arnd Bergmann --- arch

[PATCH v2] powerpc/47x: Remove early_init_mmu_47x() to fix no previous prototype

2023-08-17 Thread Christophe Leroy
) | ^~ early_init_mmu_47x() is used only at one place and only locally. Fold it into its only caller and remove it. Signed-off-by: Christophe Leroy Cc: Arnd Bergmann --- v2: Remove prototype mmu_init_secondary() belonging to another patch --- arch/powerpc/mm/nohash/tlb.c | 19 +-- 1 file changed, 5

[PATCH] powerpc/47x: Add prototype for mmu_init_secondary()

2023-08-17 Thread Christophe Leroy
Add a prototype in mmu_decl.h Signed-off-by: Christophe Leroy Cc: Arnd Bergmann --- arch/powerpc/mm/mmu_decl.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/mm/mmu_decl.h b/arch/powerpc/mm/mmu_decl.h index c6dccb4f06dc..7f9ff0640124 100644 --- a/arch/powerpc/mm/mmu_decl.h

[PATCH] powerpc/47x: Remove early_init_mmu_47x() to fix no previous prototype

2023-08-17 Thread Christophe Leroy
) | ^~ early_init_mmu_47x() is used only at one place and only locally. Fold it into its only caller and remove it. Signed-off-by: Christophe Leroy Cc: Arnd Bergmann --- arch/powerpc/mm/mmu_decl.h | 1 + arch/powerpc/mm/nohash/tlb.c | 19 +-- 2 files changed, 6 insertions(+), 14 deletions(-) diff

[PATCH] powerpc/4xx: Remove pika_dtm_[un]register_shutdown() to fix no previous prototype

2023-08-17 Thread Christophe Leroy
iated list as it will now remain empty hence becomes useless. Signed-off-by: Christophe Leroy Cc: Arnd Bergmann --- arch/powerpc/platforms/44x/warp.c | 55 --- 1 file changed, 55 deletions(-) diff --git a/arch/powerpc/platforms/44x/warp.c b/arch/powerpc/platforms/44x/wa

[PATCH] powerpc/4xx: Remove WatchdogHandler() to fix no previous prototype error

2023-08-17 Thread Christophe Leroy
Signed-off-by: Christophe Leroy Cc: Arnd Bergmann --- arch/powerpc/kernel/traps.c | 13 + 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/arch/powerpc/kernel/traps.c b/arch/powerpc/kernel/traps.c index f5ce282dc4b8..eeff136b83d9 100644 --- a/arch/powerpc/kernel/traps.c +++ b/ar

[PATCH] powerpc/8xx: Remove init_internal_rtc() to fix no previous prototype error

2023-08-17 Thread Christophe Leroy
Signed-off-by: Christophe Leroy Cc: Arnd Bergmann --- arch/powerpc/platforms/8xx/m8xx_setup.c | 17 + 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/arch/powerpc/platforms/8xx/m8xx_setup.c b/arch/powerpc/platforms/8xx/m8xx_setup.c index 3c5c4e08b6a9..2336b687b

[PATCH] powerpc/82xx: Remove CONFIG_8260 and CONFIG_8272

2023-08-17 Thread Christophe Leroy
CONFIG_8272 is never used, remove it. CONFIG_8260 is redundant with CONFIG_PPC_82xx, remove it. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/cputable.h | 2 +- arch/powerpc/platforms/82xx/Kconfig | 25 - arch/powerpc/platforms/Kconfig | 2 +- 3

[PATCH] powerpc/82xx: Remove pq2_init_pci

2023-08-17 Thread Christophe Leroy
Commit 859b21a008eb ("powerpc: drop PowerQUICC II Family ADS platform support") removed last user of pq2_init_pci. Remove it. Signed-off-by: Christophe Leroy --- arch/powerpc/platforms/82xx/pq2.c | 46 --- 1 file changed, 46 deletions(-) diff --git a/ar

Re: KASAN debug kernel fails to boot at early stage when CONFIG_SMP=y is set (kernel 6.5-rc5, PowerMac G4 3,6)

2023-08-16 Thread Christophe Leroy
Le 15/08/2023 à 22:01, Erhard Furtner a écrit : > On Tue, 15 Aug 2023 17:25:13 + > Christophe Leroy wrote: > >> I just sent a patch with additional pr_info() in order to help locate >> the issue, please provide output with that patch. >> >> Thanks >>

[PATCH 2/2] powerpc/83xx: Split usb.c

2023-08-16 Thread Christophe Leroy
usb.c contains three independent parts with no common part. Split it. Signed-off-by: Christophe Leroy --- arch/powerpc/platforms/83xx/Makefile | 3 + .../platforms/83xx/{usb.c => usb_831x.c} | 118 -- arch/powerpc/platforms/83xx/usb_834x.c|

[PATCH 1/2] powerpc/83xx: Fix style problems in usb.c and remove unneccessary includes from mpc83xx.h

2023-08-16 Thread Christophe Leroy
Replace printk(KERN_WARN with pr_warn( Remove a couple of blank lines Re-align multi-line code. Replace asm/io.h by linux/io.h mpc83xx.h doesn't need linux/device.h or asm/pci-bridge.h Signed-off-by: Christophe Leroy --- arch/powerpc/platforms/83xx/mpc83xx.h | 2 -- arch/powerpc/platforms

[PATCH] powerpc/512x: Make mpc512x_select_reset_compat() static

2023-08-16 Thread Christophe Leroy
mpc512x_select_reset_compat() is only used in the file it is defined. Make it static. Signed-off-by: Christophe Leroy --- arch/powerpc/platforms/512x/mpc512x.h| 1 - arch/powerpc/platforms/512x/mpc512x_shared.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/arch

[PATCH] powerpc/fsl_pci: Make fsl_add_bridge() static

2023-08-16 Thread Christophe Leroy
Since commit 905e75c46dba ("powerpc/fsl-pci: Unify pci/pcie initialization code") fsl_add_bridge() is not used anymore outside of fsl_pci.c Make it static. Signed-off-by: Christophe Leroy --- arch/powerpc/sysdev/fsl_pci.c | 2 +- arch/powerpc/sysdev/fsl_pci.h | 1 - 2 files

[PATCH v2] powerpc/32s: Cleanup the mess in __set_pte_at()

2023-08-15 Thread Christophe Leroy
__set_pte_at() handles 3 main cases with #ifdefs plus the 'percpu' subcase which leads to code duplication. Rewrite the function using IS_ENABLED() to minimise the total number of cases and remove duplicated code. Signed-off-by: Christophe Leroy --- v2: Reorganise comments, first case becomes

Re: KASAN debug kernel fails to boot at early stage when CONFIG_SMP=y is set (kernel 6.5-rc5, PowerMac G4 3,6)

2023-08-15 Thread Christophe Leroy
Le 14/08/2023 à 19:27, Erhard Furtner a écrit : > On Mon, 14 Aug 2023 09:40:44 + > Christophe Leroy wrote: > >> Interesting. That means we get stuck somewhere around MMU_init() >> >> We know that MMU_init_hw() is called and runs at least until: >> >&

[PATCH] Add pr_info() traces for investigation

2023-08-15 Thread Christophe Leroy
Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/btext.c | 2 ++ arch/powerpc/mm/book3s32/kuap.c | 5 + arch/powerpc/mm/book3s32/mmu.c | 3 +++ arch/powerpc/mm/kasan/init_32.c | 3 +++ arch/powerpc/mm/pgtable_32.c| 4 5 files changed, 17 insertions(+) diff --git a/arch

[PATCH] powerpc: Move zalloc_maybe_bootmem() into pci-common.c

2023-08-15 Thread Christophe Leroy
zalloc_maybe_bootmem() is only used by PCI related functions. Move it into pci-common.c and remove the always built alloc.c Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/pci.h | 2 ++ arch/powerpc/include/asm/setup.h | 1 - arch/powerpc/kernel/pci-common.c | 16

Re: [PATCH] powerpc: Make virt_to_pfn() a static inline

2023-08-14 Thread Christophe Leroy
Le 14/08/2023 à 14:37, Michael Ellerman a écrit : > Linus Walleij writes: >> Making virt_to_pfn() a static inline taking a strongly typed >> (const void *) makes the contract of a passing a pointer of that >> type to the function explicit and exposes any misuse of the >> macro virt_to_pfn()

Re: KASAN debug kernel fails to boot at early stage when CONFIG_SMP=y is set (kernel 6.5-rc5, PowerMac G4 3,6)

2023-08-14 Thread Christophe Leroy
Le 13/08/2023 à 21:38, Erhard Furtner a écrit : > On Fri, 11 Aug 2023 06:45:14 + > Christophe Leroy wrote: > >> Le 11/08/2023 à 01:48, Erhard Furtner a écrit : >>> I wanted to fire up my PowerMac G4 MDD (Dual CPU) with a KASAN debug build >>> of ke

Re: [PATCH] powerpc/radix: Move some functions into #ifdef CONFIG_KVM_BOOK3S_HV_POSSIBLE

2023-08-14 Thread Christophe Leroy
Le 14/08/2023 à 08:24, Nicholas Piggin a écrit : > On Wed Aug 9, 2023 at 6:01 PM AEST, Christophe Leroy wrote: >> With skiboot_defconfig, Clang reports: >> >>CC arch/powerpc/mm/book3s64/radix_tlb.o >> arch/powerpc/mm/book3s64/radix_tlb.c:419

Re: [PATCH v3 00/28] Add support for QMC HDLC, framer infrastruture and PEF2256 framer

2023-08-11 Thread Christophe Leroy
Le 10/08/2023 à 17:47, Jakub Kicinski a écrit : > On Wed, 9 Aug 2023 15:27:27 +0200 Herve Codina wrote: >> The series contains the full story and detailed modifications. >> If needed, the series can be split and/or commmits can be squashed. >> Let me know. > > Are there any dependencies in one

Re: KASAN debug kernel fails to boot at early stage when CONFIG_SMP=y is set (kernel 6.5-rc5, PowerMac G4 3,6)

2023-08-11 Thread Christophe Leroy
Le 11/08/2023 à 01:48, Erhard Furtner a écrit : > I wanted to fire up my PowerMac G4 MDD (Dual CPU) with a KASAN debug build of > kernel 6.5-rc5 for testing purposes. But the kernel fails to boot at a very > early stage. I only get a white screen reading > "done > found display:

Re: [PATCH 06/17] macintosh/ams: mark ams_init() static

2023-08-10 Thread Christophe Leroy
; 'ams_init' [-Werror=missing-prototypes] > > Signed-off-by: Arnd Bergmann Reviewed-by: Christophe Leroy > --- > drivers/macintosh/ams/ams-core.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/macintosh/ams/ams-core.c > b/drivers/m

Re: [PATCH v3 05/28] soc: fsl: cpm1: qmc: Remove inline function specifiers

2023-08-09 Thread Christophe Leroy
ve inline specifiers. > > Fixes: 3178d58e0b97 ("soc: fsl: cpm1: Add support for QMC") > Signed-off-by: Herve Codina > Suggested-by: Andrew Lunn Reviewed-by: Christophe Leroy > --- > drivers/soc/fsl/qe/qmc.c | 14 +++--- > 1 file changed, 7 insertions(+), 7 deleti

Re: [PATCH 1/2] powerpc: mark more local variables as volatile

2023-08-09 Thread Christophe Leroy
Le 09/08/2023 à 15:10, Arnd Bergmann a écrit : > From: Arnd Bergmann > > A while ago I created a2305e3de8193 ("powerpc: mark local variables > around longjmp as volatile") in order to allow building powerpc with > -Wextra enabled on gcc-11. Should this be explained in

[PATCH] spi: fsl-cpm: Properly define and use IO pointers

2023-08-09 Thread Christophe Leroy
/ Signed-off-by: Christophe Leroy --- drivers/spi/spi-fsl-cpm.c | 74 +++ 1 file changed, 37 insertions(+), 37 deletions(-) diff --git a/drivers/spi/spi-fsl-cpm.c b/drivers/spi/spi-fsl-cpm.c index 38452089e8f3..47c7a5c6257f 100644 --- a/drivers/spi/spi-fsl-cpm.c

[PATCH] powerpc/radix: Move some functions into #ifdef CONFIG_KVM_BOOK3S_HV_POSSIBLE

2023-08-09 Thread Christophe Leroy
es: https://lore.kernel.org/oe-kbuild-all/202307260802.mjr99p5o-...@intel.com/ Signed-off-by: Christophe Leroy --- arch/powerpc/mm/book3s64/radix_tlb.c | 240 ++- 1 file changed, 121 insertions(+), 119 deletions(-) diff --git a/arch/powerpc/mm/book3s64/radix_tlb.c b/arch/powerpc/m

Re: [PATCH v2 28/28] net: wan: fsl_qmc_hdlc: Add framer support

2023-08-08 Thread Christophe Leroy
IF_GET_IFACE and configure the line interface according to > IF_IFACE_{E1,T1} information. > > Signed-off-by: Herve Codina Reviewed-by: Christophe Leroy > --- > drivers/net/wan/fsl_qmc_hdlc.c | 239 - > 1 file changed, 235 insertions(+), 4 deletion

Re: [PATCH v2 26/28] ASoC: codecs: Add support for the framer codec

2023-08-08 Thread Christophe Leroy
> detection feature. > > Signed-off-by: Herve Codina Reviewed-by: Christophe Leroy See below > +static int framer_dai_hw_rule_channels_by_format(struct snd_soc_dai *dai, > + struct s

Re: [PATCH v2 25/28] MAINTAINERS: Add the Lantiq PEF2256 driver entry

2023-08-08 Thread Christophe Leroy
Le 26/07/2023 à 17:02, Herve Codina a écrit : > After contributing the driver, add myself as the maintainer for the > Lantiq PEF2256 driver. > > Signed-off-by: Herve Codina Reviewed-by: Christophe Leroy > --- > MAINTAINERS | 9 + > 1 file changed, 9 insertio

Re: [PATCH v2 24/28] pinctrl: Add support for the Lantic PEF2256 pinmux

2023-08-08 Thread Christophe Leroy
g part (pins RP(A..D) and pins > XP(A..D)) of the PEF2256. > > Signed-off-by: Herve Codina Reviewed-by: Christophe Leroy > --- > drivers/pinctrl/Kconfig| 14 ++ > drivers/pinctrl/Makefile | 1 + > drivers/pinctrl/pinctrl-pef2256-reg

Re: [PATCH v2 23/28] net: wan: framer: Add support for the Lantiq PEF2256 framer

2023-08-08 Thread Christophe Leroy
Le 26/07/2023 à 17:02, Herve Codina a écrit : > The Lantiq PEF2256 is a framer and line interface component designed to > fulfill all required interfacing between an analog E1/T1/J1 line and the > digital PCM system highway/H.100 bus. > > Signed-off-by: Herve Codina Reviewed

Re: [PATCH v2 22/28] mfd: core: Ensure disabled devices are skiped without aborting

2023-08-08 Thread Christophe Leroy
Continue searching for an other device instead of aborting on the > first disabled one fixes the issue. > > Fixes: 22380b65dc70 ("mfd: mfd-core: Ensure disabled devices are ignored > without error") > Signed-off-by: Herve Codina Reviewed-by: Christophe Le

Re: [PATCH v2 20/28] net: wan: Add framer framework support

2023-08-08 Thread Christophe Leroy
f the framer > - get the framer status (line state) > - be notified on framer status changes > - get/set the framer configuration > > Signed-off-by: Herve Codina Reviewed-by: Christophe Leroy > --- > drivers/net/wan/Kconfig| 2 + > drivers/net/wan/

Re: [PATCH v2 19/28] wan: qmc_hdlc: Add runtime timeslots changes support

2023-08-08 Thread Christophe Leroy
Codina Reviewed-by: Christophe Leroy > --- > drivers/net/wan/fsl_qmc_hdlc.c | 169 - > 1 file changed, 168 insertions(+), 1 deletion(-) > > diff --git a/drivers/net/wan/fsl_qmc_hdlc.c b/drivers/net/wan/fsl_qmc_hdlc.c > index b4ebae963d39..c449edf

Re: [PATCH v2 18/28] soc: fsl: cpm1: qmc: Introduce functions to change timeslots at runtime

2023-08-08 Thread Christophe Leroy
o() must be called with the channel rx and/or tx > stopped. > > Signed-off-by: Herve Codina Reviewed-by: Christophe Leroy > --- > drivers/soc/fsl/qe/qmc.c | 51 > include/soc/fsl/qe/qmc.h | 10 > 2 files changed, 61 insertio

Re: [PATCH v2 17/28] soc: fsl: cpm1: qmc: Remove timeslots handling from setup_chan()

2023-08-08 Thread Christophe Leroy
Le 26/07/2023 à 17:02, Herve Codina a écrit : > Timeslots setting is done at channel start() and stop(). > There is no more need to do that during setup_chan(). > > Simply remove timeslot setting from setup_chan(). > > Signed-off-by: Herve Codina Reviewed-by

Re: [PATCH v2 16/28] soc: fsl: cpm1: qmc: Handle timeslot entries at channel start() and stop()

2023-08-08 Thread Christophe Leroy
Le 26/07/2023 à 17:02, Herve Codina a écrit : > In order to support runtime timeslot route changes, enable the > channel timeslot entries at channel start() and disable them at > channel stop(). > > Signed-off-by: Herve Codina Reviewed-by: Christophe Leroy > --- > dri

Re: [PATCH v2 15/28] soc: fsl: cpm1: qmc: Introduce is_tsa_64rxtx flag

2023-08-08 Thread Christophe Leroy
to avoid extra computation to > determine the table format each time we need it. > It is set once at initialization. > > Signed-off-by: Herve Codina Reviewed-by: Christophe Leroy > --- > drivers/soc/fsl/qe/qmc.c | 5 - > 1 file changed, 4 insertions(+), 1 deletion(-) >

Re: [PATCH v2 14/28] soc: fsl: cpm1: qmc: Split Tx and Rx TSA entries setup

2023-08-08 Thread Christophe Leroy
f-by: Herve Codina Reviewed-by: Christophe Leroy > --- > drivers/soc/fsl/qe/qmc.c | 49 > 1 file changed, 35 insertions(+), 14 deletions(-) > > diff --git a/drivers/soc/fsl/qe/qmc.c b/drivers/soc/fsl/qe/qmc.c > index 146eebc12737..c8d

Re: [PATCH v2 13/28] soc: fsl: cpm1: qmc: Add support for disabling channel TSA entries

2023-08-08 Thread Christophe Leroy
Le 26/07/2023 à 17:02, Herve Codina a écrit : > In order to allow runtime timeslot route changes, disabling channel TSA > entries needs to be supported. > > Add support for this new feature. > > Signed-off-by: Herve Codina Reviewed-by: Christophe Leroy > --- >

Re: [PATCH v2 12/28] soc: fsl: cpm1: qmc: Check available timeslots in qmc_check_chans()

2023-08-08 Thread Christophe Leroy
call should be the available ones. > > Simply update and check the available timeslots instead of the used > timeslots in qmc_check_chans(). > > Signed-off-by: Herve Codina Reviewed-by: Christophe Leroy > --- > drivers/soc/fsl/qe/qmc.c | 8 > 1 file c

Re: [PATCH v2 11/28] soc: fsl: cpm1: qmc: Remove no more needed checks from qmc_check_chans()

2023-08-08 Thread Christophe Leroy
). > > Signed-off-by: Herve Codina Reviewed-by: Christophe Leroy > --- > drivers/soc/fsl/qe/qmc.c | 20 > 1 file changed, 20 deletions(-) > > diff --git a/drivers/soc/fsl/qe/qmc.c b/drivers/soc/fsl/qe/qmc.c > index c5552a0b5b19..33761c39aee1 10064

Re: [PATCH v2 10/28] soc: fsl: cpm1: qmc: Introduce qmc_chan_setup_tsa*

2023-08-08 Thread Christophe Leroy
Le 26/07/2023 à 17:02, Herve Codina a écrit : > Introduce the qmc_chan_setup_tsa* functions to setup entries related > to the given channel. > Use them during QMC channels setup. > > Signed-off-by: Herve Codina Reviewed-by: Christophe Leroy > --- > drivers/s

Re: [PATCH v2 09/28] soc: fsl: cpm1: qmc: Rename qmc_setup_tsa* to qmc_init_tsa*

2023-08-08 Thread Christophe Leroy
gned-off-by: Herve Codina Reviewed-by: Christophe Leroy > --- > drivers/soc/fsl/qe/qmc.c | 16 > 1 file changed, 8 insertions(+), 8 deletions(-) > > diff --git a/drivers/soc/fsl/qe/qmc.c b/drivers/soc/fsl/qe/qmc.c > index 21ad7e79e7bd..64a11f5c6f85 100644 >

Re: [PATCH v2 08/28] soc: fsl: cpm1: qmc: Introduce available timeslots masks

2023-08-08 Thread Christophe Leroy
> This prepares the dynamic timeslots management (ie. changing timeslots > at runtime). > > Signed-off-by: Herve Codina Reviewed-by: Christophe Leroy > --- > drivers/soc/fsl/qe/qmc.c | 8 ++-- > 1 file changed, 6 insertions(+), 2 deletions(-) > > diff --git a/

Re: [PATCH v2 06/28] net: wan: Add support for QMC HDLC

2023-08-08 Thread Christophe Leroy
Le 26/07/2023 à 17:02, Herve Codina a écrit : > The QMC HDLC driver provides support for HDLC using the QMC (QUICC > Multichannel Controller) to transfer the HDLC data. > > Signed-off-by: Herve Codina Reviewed-by: Christophe Leroy > diff --git a/drivers/net/wan/fsl_qmc_hdlc.

Re: [PATCH v2 04/28] soc: fsl: cpm1: qmc: Extend the API to provide Rx status

2023-08-08 Thread Christophe Leroy
> read complete() call. > > In TRANSPARENT mode, these flags have no meaning. Keep only one read > complete() API and update the consumers working in transparent mode. > In this case, the newly introduced flags parameter is simply unused. > > Signed-off-by: Herve Co

Re: [PATCH v2 03/28] soc: fsl: cpm1: qmc: Fix rx channel reset

2023-08-08 Thread Christophe Leroy
> stopped. Only a qmc_chan_start() call can move the channel from stopped > state to started state. > > Fix the issue removing the is_rx_stopped flag setting from > qmc_chan_reset() > > Fixes: 3178d58e0b97 ("soc: fsl: cpm1: Add support for QMC") > Signed-off

Re: [PATCH v2 02/28] soc: fsl: cpm1: qmc: Fix __iomem addresses declaration

2023-08-08 Thread Christophe Leroy
port for QMC") > Signed-off-by: Herve Codina Reviewed-by: Christophe Leroy > --- > drivers/soc/fsl/qe/qmc.c | 34 +- > 1 file changed, 17 insertions(+), 17 deletions(-) > > diff --git a/drivers/soc/fsl/qe/qmc.c b/drivers/soc/fsl/qe/qmc.c &

Re: [PATCH v2 01/28] soc: fsl: cpm1: tsa: Fix __iomem addresses declaration

2023-08-08 Thread Christophe Leroy
iomem * >--- 8< --- > > Indeed, some variable were declared 'type *__iomem var' instead of > 'type __iomem *var'. > > Use the correct declaration to remove these warnings. > > Fixes: 1d4ba0b81c1c ("soc: fsl: cpm1: Add support for TSA") > Signed-off-by: Herve

[PATCH v1 5/6] powerpc/8xx: Remove immr_map() and immr_unmap()

2023-08-08 Thread Christophe Leroy
And avoid going through local pointers that hide the pointed structure. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/fs_pd.h| 8 --- arch/powerpc/platforms/8xx/cpm1.c | 10 ++-- arch/powerpc/platforms/8xx/m8xx_setup.c | 66 +++-- 3 files c

[PATCH v1 6/6] powerpc/cpm2: Remove cpm2_map() and cpm2_unmap()

2023-08-08 Thread Christophe Leroy
void going through local pointers that hide the pointed structure. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/fs_pd.h | 8 arch/powerpc/sysdev/cpm2.c | 32 +++- arch/powerpc/sysdev/cpm2_pic.c | 3 +-- 3 files changed, 12 inserti

[PATCH v1 4/6] powerpc: Remove CONFIG_PCI_8260

2023-08-08 Thread Christophe Leroy
CONFIG_PCI_8260 is not used anymore, remove it. Signed-off-by: Christophe Leroy --- arch/powerpc/Kconfig| 6 -- arch/powerpc/platforms/82xx/Kconfig | 1 + 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index

[PATCH v1 3/6] powerpc/include: Remove mpc8260.h and m82xx_pci.h

2023-08-08 Thread Christophe Leroy
SIU_INT_IRQ1 is not used anywhere and __IO_BASE is defined in asm/io.h Remove m82xx_pci.h Then the only thing remaining in mpc8260.h is MPC82XX_BCR_PLDP Move MPC82XX_BCR_PLDP into asm/cpm2.h then remove mpc8260.h Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/cpm2.h

[PATCH v1 2/6] powerpc/include: Declare mpc8xx_immr in 8xx_immap.h

2023-08-08 Thread Christophe Leroy
Do the same as for cmp2_immr : declare it at the same place as its type immap_t, that is in 8xx_immap.h instead of fs_pd.h Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/8xx_immap.h | 2 ++ arch/powerpc/include/asm/fs_pd.h | 2 -- arch/powerpc/platforms/8xx

[PATCH v1 1/6] powerpc/include: Remove unneeded #include

2023-08-08 Thread Christophe Leroy
tqm8xx_setup.c and fs_enet.h don't use any items provided by fs_pd.h Remove unneeded #include Signed-off-by: Christophe Leroy --- arch/powerpc/platforms/8xx/tqm8xx_setup.c| 1 - drivers/net/ethernet/freescale/fs_enet/fs_enet.h | 1 - 2 files changed, 2 deletions(-) diff --git a/arch

Re: [PATCH] powerpc/mm: Reinstate ARCH_FORCE_MAX_ORDER ranges

2023-08-04 Thread Christophe Leroy
Le 19/05/2023 à 13:38, Michael Ellerman a écrit : > Commit 1e8fed873e74 ("powerpc: drop ranges for definition of > ARCH_FORCE_MAX_ORDER") removed the limits on the possible values for > ARCH_FORCE_MAX_ORDER. > > However removing the ranges entirely causes some common work flows to > break. For

Re: [PATCH] floppy: ERROR: that open brace { should be on the previous line

2023-08-04 Thread Christophe Leroy
Hello, Le 20/07/2023 à 12:17, zhangyongle...@208suo.com a écrit : > [Vous ne recevez pas souvent de courriers de zhangyongle...@208suo.com. > D?couvrez pourquoi ceci est important ? > https://aka.ms/LearnAboutSenderIdentification ] > > Fix twoce occurrences of the checkpatch.pl error: > ERROR:

Re: [PATCH] mm: book3s32: add require space around that '?' and ':'

2023-08-04 Thread Christophe Leroy
Hello, Le 20/07/2023 à 09:34, hanyu...@208suo.com a écrit : > Fix below checkpatch errors: > > ./arch/powerpc/mm/book3s32/tlb.c:102: ERROR: spaces required around that > '?' (ctx:VxW) > ./arch/powerpc/mm/book3s32/tlb.c:102: ERROR: spaces required around that > ':' (ctx:VxW) Can you please

[PATCH net-next v2 09/10] net: fs_enet: Remove linux/fs_enet_pd.h

2023-08-04 Thread Christophe Leroy
linux/fs_enet_pd.h is not used anymore. Remove it. Signed-off-by: Christophe Leroy --- MAINTAINERS| 1 - include/linux/fs_enet_pd.h | 118 - 2 files changed, 119 deletions(-) delete mode 100644 include/linux/fs_enet_pd.h diff --git

[PATCH net-next v2 10/10] net: fs_enet: Use cpm_muram_xxx() functions instead of cpm_dpxxx() macros

2023-08-04 Thread Christophe Leroy
cpm_dpxxx() macros are now always referring to cpm_muram_xxx() fonctions directly since commit 3dd82a1ea724 ("[POWERPC] CPM: Always use new binding.") Use cpm_muram_xxx() functions directly so that the cpm_dpxxx() macros can be removed in the near future. Signed-off-by: Christ

[PATCH net-next v2 05/10] net: fs_enet: Remove has_phy field in fs_platform_info struct

2023-08-04 Thread Christophe Leroy
Since commit 3dd82a1ea724 ("[POWERPC] CPM: Always use new binding.") has_phy field is never set. Remove dead code and remove the field. Signed-off-by: Christophe Leroy --- drivers/net/ethernet/freescale/fs_enet/mac-fec.c | 14 -- include/linux/fs

[PATCH net-next v2 08/10] net: fs_enet: Don't include fs_enet_pd.h when not needed

2023-08-04 Thread Christophe Leroy
Three platforms in arch/powerpc/platforms/8xx/ include fs_enet_pd.h but don't use anything from it. Remove the includes. Signed-off-by: Christophe Leroy --- arch/powerpc/platforms/8xx/adder875.c| 1 - arch/powerpc/platforms/8xx/mpc885ads_setup.c | 1 - arch/powerpc/platforms/8xx

[PATCH net-next v2 07/10] net: fs_enet: Move struct fs_platform_info into fs_enet.h

2023-08-04 Thread Christophe Leroy
tform_info into fs_enet.h Signed-off-by: Christophe Leroy --- .../net/ethernet/freescale/fs_enet/fs_enet.h | 19 ++- .../net/ethernet/freescale/fs_enet/mii-fec.c | 1 + include/linux/fs_enet_pd.h| 16 3 files changed, 19 insertions(+), 17

<    1   2   3   4   5   6   7   8   9   10   >