Re: [PATCH] zlib: Fix big performance regression

2024-06-30 Thread Christophe Leroy
Le 30/06/2024 à 20:28, Christophe Leroy a écrit : Le 30/06/2024 à 16:54, Tom Rini a écrit : On Sun, Jun 30, 2024 at 10:47:06AM +0200, Christophe Leroy wrote: Le 27/06/2024 à 21:40, Tom Rini a écrit : On Thu, Jun 27, 2024 at 01:34:55PM -0600, Tom Rini wrote: On Thu, Jun 27, 2024 at 10

Re: [PATCH] zlib: Fix big performance regression

2024-06-30 Thread Christophe Leroy
Le 30/06/2024 à 16:54, Tom Rini a écrit : On Sun, Jun 30, 2024 at 10:47:06AM +0200, Christophe Leroy wrote: Le 27/06/2024 à 21:40, Tom Rini a écrit : On Thu, Jun 27, 2024 at 01:34:55PM -0600, Tom Rini wrote: On Thu, Jun 27, 2024 at 10:25:21AM +0200, Christophe Leroy wrote: Commit

Re: [PATCH] zlib: Fix big performance regression

2024-06-30 Thread Christophe Leroy
Le 27/06/2024 à 21:40, Tom Rini a écrit : On Thu, Jun 27, 2024 at 01:34:55PM -0600, Tom Rini wrote: On Thu, Jun 27, 2024 at 10:25:21AM +0200, Christophe Leroy wrote: Commit 340fdf1303dc ("zlib: Port fix for CVE-2016-9841 to U-Boot") brings a big performance regression in in

Re: [PATCH] Revert "zlib: Port fix for CVE-2016-9841 to U-Boot"

2024-06-27 Thread Christophe Leroy
ly reverts commit 340fdf1303dce7e5f53ddd981471836058ff23ef. Reported-by: Christophe Leroy Signed-off-by: Tom Rini Tested-by: Christophe Leroy -- Cc: Christophe Leroy Cc: Michal Simek --- lib/zlib/inffast.c | 117 + 1 file changed, 75 inserti

[PATCH] watchdog: mpc8xxx: Fix timer value

2024-06-27 Thread Christophe Leroy
with 63770 instead of 65535. It is not a big difference in that case, but lets make the code correct and cast to u32 instead of u16. Fixes: 26e8ebcd7cb7 ("watchdog: mpc8xxx: Make it generic") Signed-off-by: Christophe Leroy --- drivers/watchdog/mpc8xxx_wdt.c | 2 +- 1 file changed, 1 inser

[PATCH] zlib: Fix big performance regression

2024-06-27 Thread Christophe Leroy
se of said commit. Fixes: 340fdf1303dc ("zlib: Port fix for CVE-2016-9841 to U-Boot") Signed-off-by: Christophe Leroy --- lib/zlib/inffast.c | 51 -- 1 file changed, 40 insertions(+), 11 deletions(-) diff --git a/lib/zlib/inffast.c b/lib/

Re: [ANN] U-Boot v2024.07-rc5 released

2024-06-27 Thread Christophe Leroy
Le 26/06/2024 à 17:01, Tom Rini a écrit : On Tue, Jun 25, 2024 at 09:20:54PM +0200, Christophe Leroy wrote: Le 25/06/2024 à 17:19, Tom Rini a écrit : On Tue, Jun 25, 2024 at 03:12:38PM +, LEROY Christophe wrote: Hi All, Le 24/06/2024 à 21:30, Tom Rini a écrit : Hey all, Well, once

Re: [ANN] U-Boot v2024.07-rc5 released

2024-06-25 Thread Christophe Leroy
Le 25/06/2024 à 17:19, Tom Rini a écrit : On Tue, Jun 25, 2024 at 03:12:38PM +, LEROY Christophe wrote: Hi All, Le 24/06/2024 à 21:30, Tom Rini a écrit : Hey all, Well, once again I need to check my calender reminders since, whoops, I'm a week late. That said, looking at the list of

Re: [PATCH 10/11] spi: Add support for ADI SC5XX-family processor SPI peripherals

2024-05-15 Thread Christophe Leroy
Le 15/05/2024 à 23:57, Greg Malysa a écrit : > [Vous ne recevez pas souvent de courriers de greg.mal...@timesys.com. > Découvrez pourquoi ceci est important à > https://aka.ms/LearnAboutSenderIdentification ] > > From: Nathan Barrett-Morrison > > This adds support for the ADI-specific SPI

[GIT PULL] Please pull u-boot-mpc8xx

2024-04-18 Thread Christophe Leroy
and display MCR board address (2024-04-18 15:47:46 +0200) Christophe Leroy (13): board: cssi: Fix SPI nodes in DTS spi: mpc8xx: Add GPIO dependency spi: mpc8xx: Fix transfert when input or output buffer is NULL

[PATCH v2 17/17] board: cssi: Read and display MCR board address

2024-04-15 Thread Christophe Leroy
MCR boards are plugged in racks. The position in the rack can be read in a register. For MCR3000, that's provided by the FPGA so check it is loaded before reading the address. For the other boards, the FPGA is loaded by hardware so it can be read inconditionnaly. Signed-off-by: Christophe Leroy

[PATCH v2 16/17] board: cssi: Load FPGA on MCR3000 board

2024-04-15 Thread Christophe Leroy
, implemented the load of FPGA in U-boot. Signed-off-by: Christophe Leroy --- To avoid spamming your email boxes, the code isn't included in the emailed patch but will be present in the PULL request --- arch/powerpc/dts/mcr3000.dts | 6 - board/cssi/mcr3000/fpga_code.h | 10 +++ board/cssi

[PATCH v2 15/17] board: cssi: Use HAVE_VENDOR_COMMON_LIB logic

2024-04-15 Thread Christophe Leroy
Instead of cross using cross-directory makefile directives, add a Makefile in board/cssi/common/ directory in order to benefit from HAVE_VENDOR_COMMON_LIB logic. Signed-off-by: Christophe Leroy --- board/cssi/cmpc885/Makefile | 2 +- board/cssi/cmpcpro/Makefile | 2 +- board/cssi/common

[PATCH v2 14/17] spi: mpc8xx: Set up speed as requested

2024-04-15 Thread Christophe Leroy
Set the speed requested through mpc8xx_spi_set_speed() instead of hardcoding a fixed speed. Signed-off-by: Christophe Leroy --- drivers/spi/mpc8xx_spi.c | 19 +-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/drivers/spi/mpc8xx_spi.c b/drivers/spi/mpc8xx_spi.c

[PATCH v2 13/17] spi: mpc8xx: Use 16 bit mode for large transfers with even size

2024-04-15 Thread Christophe Leroy
in word mode for the same CPM load. For small transfers, the load reduction is not worth the CPU load required to allocate the temporary buffer, so do it only when data size is over 64 bytes. Signed-off-by: Christophe Leroy --- drivers/spi/mpc8xx_spi.c | 44

[PATCH v2 12/17] spi: mpc8xx: Allow transfer of more than MAX_BUFFER len

2024-04-15 Thread Christophe Leroy
Perform multiple transfer of size MAX_BUFFER when the data to be transferred is longer than MAX_BUFFER. Signed-off-by: Christophe Leroy --- drivers/spi/mpc8xx_spi.c | 48 1 file changed, 34 insertions(+), 14 deletions(-) diff --git a/drivers/spi

[PATCH v2 11/17] powerpc: 8xx: Set SDMA configuration register correcly

2024-04-15 Thread Christophe Leroy
SDMA configuration register needs to be set up only once and doesn't belong to drivers. Also, the value to be used is different on mpc885. So do the init in cpu_init_f() with 0x40 for mpc885 and 0x1 for others. Signed-off-by: Christophe Leroy --- arch/powerpc/cpu/mpc8xx/cpu_init.c | 6

[PATCH v2 10/17] board: cssi: add support for reading temperature

2024-04-15 Thread Christophe Leroy
All CSSI boards have an LM74 chip as temperature sensor. Enable it. Signed-off-by: Christophe Leroy --- arch/powerpc/dts/cmpc885.dts | 12 +++- arch/powerpc/dts/cmpcpro.dts | 12 +++- arch/powerpc/dts/mcr3000.dts | 6 ++ configs/CMPC885_defconfig| 3 +++ configs

[PATCH v2 09/17] board: cssi: Add support for SPI bus on MCR3000 board

2024-04-15 Thread Christophe Leroy
activates one of the 7 possible chipselects and value 0 sets all chipselets to inactive. So add a special GPIO driver that simulates GPIOs for those chipselect. Signed-off-by: Christophe Leroy --- arch/powerpc/dts/mcr3000.dts | 31 + board/cssi/mcr3000/Makefile | 1 + board

[PATCH v2 08/17] thermal: Add support for TI LM74

2024-04-15 Thread Christophe Leroy
LM74 is a SPI temperature sensor. Implement a driver to read temperature from it. Signed-off-by: Christophe Leroy --- drivers/thermal/Kconfig | 6 + drivers/thermal/Makefile | 1 + drivers/thermal/ti-lm74.c | 52 +++ 3 files changed, 59 insertions

[PATCH v2 07/17] spi: mpc8xx: Fix transfert when input or output buffer is NULL

2024-04-15 Thread Christophe Leroy
is pretty low. Signed-off-by: Christophe Leroy --- drivers/spi/mpc8xx_spi.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/spi/mpc8xx_spi.c b/drivers/spi/mpc8xx_spi.c index 5c8d760935..2aa9c7d5df 100644 --- a/drivers/spi/mpc8xx_spi.c +++ b/drivers/spi

[PATCH v2 06/17] spi: mpc8xx: Add GPIO dependency

2024-04-15 Thread Christophe Leroy
Since commit 773ad4ebb1d6 ("spi, mpc8xx: Add support for chipselect via GPIO and fixups"), DM_GPIO is required for 8xx SPI. Add the missing dependency to avoid build failures. Fixes: 773ad4ebb1d6 ("spi, mpc8xx: Add support for chipselect via GPIO and fixups") Signed-off-

[PATCH v2 05/17] board: cssi: Properly initialise MAC address for fibre on CMPC885 board

2024-04-15 Thread Christophe Leroy
From: Hugo Dubois CMPC885 board can be pluged on a mother board with fibre interface, so fibre interface MAC address must be initialised for that case. Signed-off-by: Hugo Dubois Reviewed-by: CASAUBON Jean Michel Signed-off-by: Christophe Leroy --- board/cssi/cmpc885/cmpc885.c | 4 +++- 1

[PATCH v2 04/17] board: cssi: Initialise port F on MIAE

2024-04-15 Thread Christophe Leroy
Signed-off-by: Christophe Leroy --- board/cssi/common/common.c | 36 ++-- 1 file changed, 34 insertions(+), 2 deletions(-) diff --git a/board/cssi/common/common.c b/board/cssi/common/common.c index 7ecf772620..6848efd43b 100644 --- a/board/cssi/common/common.c +++ b

[PATCH v2 03/17] board: cssi: Allow use without HUSH shell

2024-04-15 Thread Christophe Leroy
From: Jean-Michel CASAUBON HUSH shell is not always wanted/desirable. Add missing braces in environment in order to allow use without HUSH shell. Signed-off-by: Jean-Michel CASAUBON Cc: DUBOIS Hugo Signed-off-by: Christophe Leroy --- board/cssi/cmpc885/cmpc885.env | 4 ++-- board/cssi

[PATCH v2 02/17] board: cssi: Fix SPI nodes in DTS

2024-04-15 Thread Christophe Leroy
missing compatible for eeprom node. Signed-off-by: Christophe Leroy --- arch/powerpc/dts/cmpc885.dts | 6 +++--- arch/powerpc/dts/cmpcpro.dts | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/powerpc/dts/cmpc885.dts b/arch/powerpc/dts/cmpc885.dts index 7b9566a0fa

[PATCH v2 01/17] board: cssi: Fix MCR3000 board environment

2024-04-15 Thread Christophe Leroy
From: Jean-Michel CASAUBON Remove a stray semicolon in MCR3000 board environment. Signed-off-by: Jean-Michel CASAUBON Reviewed-by: DUBOIS Hugo Signed-off-by: Christophe Leroy --- board/cssi/mcr3000/mcr3000.env | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/cssi

[PATCH v2 00/17] Misc changes for CSSI boards

2024-04-15 Thread Christophe Leroy
temperature and FPGA support and SPI driver optimisation Christophe Leroy (13): board: cssi: Fix SPI nodes in DTS spi: mpc8xx: Add GPIO dependency spi: mpc8xx: Fix transfert when input or output buffer is NULL thermal: Add support for TI LM74 board: cssi: Add support for SPI bus on MCR3000

[PATCH 4/4] board: cssi: Properly initialise MAC address for fibre on CMPC885 board

2024-04-05 Thread Christophe Leroy
From: Hugo Dubois CMPC885 board can be pluged on a mother board with fibre interface, so fibre interface MAC address must be initialised for that case. Signed-off-by: Hugo Dubois Reviewed-by: CASAUBON Jean Michel Signed-off-by: Christophe Leroy --- board/cssi/cmpc885/cmpc885.c | 4 +++- 1

[PATCH 3/4] board: cssi: Initialise port F on MIAE

2024-04-05 Thread Christophe Leroy
Signed-off-by: Christophe Leroy --- board/cssi/common/common.c | 36 ++-- 1 file changed, 34 insertions(+), 2 deletions(-) diff --git a/board/cssi/common/common.c b/board/cssi/common/common.c index 7ecf772620..54e8c3cd03 100644 --- a/board/cssi/common/common.c +++ b

[PATCH 2/4] board: cssi: Allow use without HUSH shell

2024-04-05 Thread Christophe Leroy
From: Jean-Michel CASAUBON HUSH shell is not always wanted/desirable. Add missing braces in environment in order to allow use without HUSH shell. Signed-off-by: Jean-Michel CASAUBON Cc: DUBOIS Hugo Signed-off-by: Christophe Leroy --- board/cssi/cmpc885/cmpc885.env | 4 ++-- board/cssi

[PATCH 1/4] board: cssi: Fix MCR3000 board environment

2024-04-05 Thread Christophe Leroy
From: Jean-Michel CASAUBON Remove a stray semicolon in MCR3000 board environment. Signed-off-by: Jean-Michel CASAUBON Reviewed-by: DUBOIS Hugo Signed-off-by: Christophe Leroy --- board/cssi/mcr3000/mcr3000.env | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/cssi

[PATCH 0/4] Misc changes for CSSI boards

2024-04-05 Thread Christophe Leroy
This series contains misc fixes and changes for CSSI boards. I will send a pull request later before close of the merge window. Hugo Dubois (2): board: cssi: Initialise port F on MIAE board: cssi: Properly initialise MAC address for fibre on CMPC885 board Jean-Michel CASAUBON (2):

[PATCH] Fix stack-protector for powerpc

2023-11-15 Thread Christophe Leroy
: 4e9bce12432 ("Add support for stack-protector") Signed-off-by: Christophe Leroy --- Makefile | 1 + common/stackprot.c | 5 + 2 files changed, 6 insertions(+) diff --git a/Makefile b/Makefile index ac65605a26..bddccc94e6 100644 --- a/Makefile +++ b/Makefile @@ -741,6 +741,

[PATCH] powerpc: mpc8xx: Remove usage of common.h

2023-11-06 Thread Christophe Leroy
Remove inclusion of common.h and add relevant includes when necessary. Signed-off-by: Christophe Leroy --- arch/powerpc/cpu/mpc8xx/cache.c | 1 - arch/powerpc/cpu/mpc8xx/cpu.c| 1 - arch/powerpc/cpu/mpc8xx/cpu_init.c | 1 - arch/powerpc/cpu/mpc8xx/fdt.c| 1 - arch/powerpc

[PATCH] board: cssi: Remove usage of common.h

2023-11-06 Thread Christophe Leroy
Remove inclusion of common.h and add relevant includes when necessary. Signed-off-by: Christophe Leroy --- board/cssi/cmpc885/cmpc885.c | 1 - board/cssi/cmpc885/nand.c| 1 - board/cssi/cmpc885/sdram.c | 3 ++- board/cssi/cmpcpro/cmpcpro.c | 1 - board/cssi/mcr3000/mcr3000.c | 1 - board

Re: [PATCH v4 05/44] spl: mx6: powerpc: Drop the condition on timer_init()

2023-09-26 Thread Christophe Leroy
of leaving a potentially random value. That should just be fine. Therefore this change should be ok for powerpc. Acked-by: Christophe Leroy > > Signed-off-by: Simon Glass > --- > > (no changes since v3) > > Changes in v3: > - Mention testing on qemu-ppce500 > >

Re: [PATCH 05/32] spl: mx6: powerpc: Drop the condition on timer_init()

2023-09-26 Thread Christophe Leroy
fined(CONFIG_ARCH_MX6) >>>> - /* >>>> - * timer_init() does not exist on PPC systems. The timer is >>>> initialized >>>> - * and enabled (decrementer) in interrupt_init() here. >>>> - */ >>>>timer_ini

Re: [PATCH v3 04/38] spl: mx6: powerpc: Drop the condition on timer_init()

2023-09-26 Thread Christophe Leroy
fine. Therefore this change should be ok for powerpc. Acked-by: Christophe Leroy > > This has been tested on qemu-ppce500 > > > Signed-off-by: Simon Glass > --- > > Changes in v3: > - Mention testing on qemu-ppce500 > > Changes in v2: > - Exp

Re: [PATCH] lzma: Fix decompression speed regression

2023-07-07 Thread Christophe Leroy
e: >> On Wed, 5 Jul 2023 at 09:54, Christophe Leroy >> wrote: >>> >>> Uncompressing a 1.7Mbytes FIT image on U-boot 2023.04 takes >>> approx 7s on a powerpc 8xx. >>> The same on U-boot 2023.07-rc6 takes approx 28s unless watchdog >>> is

[PATCH] powerpc: Fix flush_cache() speed regression

2023-07-05 Thread Christophe Leroy
age decompression now takes 85 milliseconds on a powerpc 8xx. Fixes: 29caf9305b6 ("cyclic: Use schedule() instead of WATCHDOG_RESET()") Signed-off-by: Christophe Leroy --- arch/powerpc/lib/Kconfig | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/powerp

[PATCH] lzma: Fix decompression speed regression

2023-07-05 Thread Christophe Leroy
act on other targets. Fixes: 29caf9305b6 ("cyclic: Use schedule() instead of WATCHDOG_RESET()") Signed-off-by: Christophe Leroy --- lib/lzma/LzmaDec.c | 18 -- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/lib/lzma/LzmaDec.c b/lib/lzma/LzmaDec.c index

Re: [PATCH] Fix sparse checks processing

2023-05-16 Thread Christophe Leroy
Le 15/05/2023 à 23:12, Tom Rini a écrit : > On Fri, May 05, 2023 at 10:39:39AM +0200, Christophe Leroy wrote: > >> A lot of errors are encountered when building with sparse checking >> activated (make C=1 or make C=2). >> >> Many of them are fixed in Linux

Re: envtools lack extra settings since commit 86b9c3e4e4 ("env: Allow U-Boot scripts to be placed in

2023-05-11 Thread Christophe Leroy
Le 11/05/2023 à 14:50, Tom Rini a écrit : > On Thu, May 11, 2023 at 08:16:49AM +0200, Christophe Leroy wrote: > >> After converting my targets from CFG_EXTRA_ENV_SETTINGS to >> CONFIG_EXTRA_ENV_TEXT as suggested by Tom, I discovered that >> fw_setenv doesn't set the e

envtools lack extra settings since commit 86b9c3e4e4 ("env: Allow U-Boot scripts to be placed in

2023-05-11 Thread Christophe Leroy
/u-boot-mpc8xx/-/pipelines/16326 That's the only CI test that fails AFAICS. Could you help with a solution ? This needs to be fixed. Thanks Christophe >8 From: Christophe Leroy Subject: [RFC PATCH] envtools: Fix default environment After converting some targets f

[GIT PULL] Please pull u-boot-mpc8xx

2023-05-05 Thread Christophe Leroy
: Activate SMC relocation on CMPC885 board for MIAE device (2023-05-05 07:26:53 +0200) Christophe Leroy (11): board: cssi: Remove duplicated FPGA loading sequence on CMPC885 board: cssi: Remove stale macro from cmpcpro.c

[PATCH v2 08/11] powerpc: mpc8xx: Add SMC relocation CPM microcode

2023-05-05 Thread Christophe Leroy
to be relocated. In order to do so, a CPM microcode patch is required. Binary data for that patch is copied from Linux kernel. Signed-off-by: Christophe Leroy --- arch/powerpc/cpu/mpc8xx/Kconfig | 20 + arch/powerpc/cpu/mpc8xx/Makefile | 1 + arch/powerpc/cpu/mpc8xx

[PATCH v2 03/11] board: cssi: Load CMPC885's motherboard FPGA earlier

2023-05-05 Thread Christophe Leroy
yet so remove the printfs. Signed-off-by: Christophe Leroy --- board/cssi/cmpc885/cmpc885.c | 25 + configs/CMPC885_defconfig| 1 - 2 files changed, 5 insertions(+), 21 deletions(-) diff --git a/board/cssi/cmpc885/cmpc885.c b/board/cssi/cmpc885/cmpc885.c index

[PATCH v2 07/11] powerpc: mpc885: Add CPM USB-SOF microcode for CPM15 ERRATA

2023-05-05 Thread Christophe Leroy
will be corrupted. Add capability to load the related microcode to fix it. The microcode binary data is copied from Linux kernel. Other microcode will be added in following patch so make it a Kconfig choice. Signed-off-by: Christophe Leroy --- arch/powerpc/cpu/mpc8xx/Kconfig

[PATCH v2 09/11] spi, mpc8xx: Take parameter RAM relocation into account

2023-05-05 Thread Christophe Leroy
Instead of inhibiting parameter RAM relocation, take it into account. Signed-off-by: Christophe Leroy --- drivers/spi/mpc8xx_spi.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/spi/mpc8xx_spi.c b/drivers/spi/mpc8xx_spi.c index 734b0751a9..5c8d760935 100644

[PATCH v2 02/11] board: cssi: Remove stale macro from cmpcpro.c

2023-05-05 Thread Christophe Leroy
Three unused macros were left over. Remove them. Signed-off-by: Christophe Leroy --- board/cssi/cmpcpro/cmpcpro.c | 5 - 1 file changed, 5 deletions(-) diff --git a/board/cssi/cmpcpro/cmpcpro.c b/board/cssi/cmpcpro/cmpcpro.c index 3e9ba6a4cc..8a30c48e35 100644 --- a/board/cssi/cmpcpro

[PATCH v2 01/11] board: cssi: Remove duplicated FPGA loading sequence on CMPC885

2023-05-05 Thread Christophe Leroy
A duplicated FPGA loading sequence appears after FPGA reset. Remove it. Fixes: dac3c6f625 ("board: cssi: Add new board MCR3000_2G") Signed-off-by: Christophe Leroy --- board/cssi/cmpc885/cmpc885.c | 14 -- 1 file changed, 14 deletions(-) diff --git a/board/cssi/cmpc885/c

[PATCH v2 10/11] serial, mpc8xx: Take parameter RAM relocation into account

2023-05-05 Thread Christophe Leroy
Instead of inhibiting parameter RAM relacation, take into account the configured one. It means INIT_TRX command cannot be used and must be done manually as explained in the microcode patch application note. Signed-off-by: Christophe Leroy --- drivers/serial/serial_mpc8xx.c | 22

[PATCH v2 06/11] powerpc: Force cast on memcpy_toio()

2023-05-05 Thread Christophe Leroy
'' of expression This is because of (void *) casts for using memcpy() as a substitute. Do like other architectures, __force the cast to silence the warning Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/io.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch

[PATCH v2 04/11] powerpc: mpc8xx: CPM parameter RAM can be anywhere

2023-05-05 Thread Christophe Leroy
-by: Christophe Leroy --- arch/powerpc/cpu/mpc8xx/cpu.c| 2 +- arch/powerpc/include/asm/cpm_8xx.h | 18 +- arch/powerpc/include/asm/immap_8xx.h | 8 +--- drivers/serial/serial_mpc8xx.c | 2 +- drivers/spi/mpc8xx_spi.c | 2 +- 5 files changed, 13

[PATCH v2 05/11] powerpc: mpc8xx: Reorganise init RAM

2023-05-05 Thread Christophe Leroy
n CPM dpram") Signed-off-by: Christophe Leroy --- arch/powerpc/cpu/mpc8xx/start.S| 8 +--- arch/powerpc/include/asm/cpm_8xx.h | 16 include/configs/cmpc885.h | 1 + include/configs/mcr3000.h | 1 + 4 files changed, 15 insertions(+), 11 deletions(-)

[PATCH v2 11/11] board: cssi: Activate SMC relocation on CMPC885 board for MIAE device

2023-05-05 Thread Christophe Leroy
is unused. Signed-off-by: Christophe Leroy --- board/cssi/cmpc885/cmpc885.c | 4 configs/CMPC885_defconfig| 2 ++ 2 files changed, 6 insertions(+) diff --git a/board/cssi/cmpc885/cmpc885.c b/board/cssi/cmpc885/cmpc885.c index 40128f170a..5e6aa8b8cf 100644 --- a/board/cssi/cmpc885/cmpc885

[PATCH v2 00/11] Misc fixes + 8xx CPM relocation

2023-05-05 Thread Christophe Leroy
warnings Christophe Leroy (11): board: cssi: Remove duplicated FPGA loading sequence on CMPC885 board: cssi: Remove stale macro from cmpcpro.c board: cssi: Load CMPC885's motherboard FPGA earlier powerpc: mpc8xx: CPM parameter RAM can be anywhere powerpc: mpc8xx: Reorganise init RAM powerpc

[PATCH] Fix sparse checks processing

2023-05-05 Thread Christophe Leroy
it creates is worse than the warning it is trying to fix. Signed-off-by: Christophe Leroy --- Makefile | 6 +- include/linux/build_bug.h | 40 --- include/linux/stddef.h| 8 +--- 3 files changed, 14 insertions(+), 40 deletions(-)

Re: [PATCH] build_bug.h: Also define static_assert() when __CHECKER__ is defined

2023-05-05 Thread Christophe Leroy
Le 04/05/2023 à 21:55, Tom Rini a écrit : > On Thu, May 04, 2023 at 05:32:12PM +0000, Christophe Leroy wrote: >> >> >> Le 04/05/2023 à 19:22, Christophe Leroy a écrit : >>> >>> >>> Le 04/05/2023 à 15:54, Tom Rini a écrit : >>>> On T

Re: [PATCH] build_bug.h: Also define static_assert() when __CHECKER__ is defined

2023-05-04 Thread Christophe Leroy
Le 04/05/2023 à 19:22, Christophe Leroy a écrit : > > > Le 04/05/2023 à 15:54, Tom Rini a écrit : >> On Thu, May 04, 2023 at 06:15:13AM +0000, Christophe Leroy wrote: >>> >>> >>> Le 03/05/2023 à 22:02, Tom Rini a écrit : >>>> On Thu, Ja

Re: [PATCH] build_bug.h: Also define static_assert() when __CHECKER__ is defined

2023-05-04 Thread Christophe Leroy
Le 04/05/2023 à 15:54, Tom Rini a écrit : > On Thu, May 04, 2023 at 06:15:13AM +0000, Christophe Leroy wrote: >> >> >> Le 03/05/2023 à 22:02, Tom Rini a écrit : >>> On Thu, Jan 26, 2023 at 07:17:48PM +0100, Christophe Leroy wrote: >>> >>>>

Re: [PATCH 05/10] powerpc: mpc8xx: Reorganise init RAM

2023-05-04 Thread Christophe Leroy
Le 04/05/2023 à 12:07, Joakim Tjernlund a écrit : > On Thu, 2023-05-04 at 10:56 +0200, Christophe Leroy wrote: >> Using SMC relocation microcode patch or USB-SOF microcode patch >> will disable DPRAM memory from 0x2000 to 0x2400 and from 0x2f00 >> to 0x3000. >> >

[PATCH 09/10] serial, mpc8xx: Take parameter RAM relocation into account

2023-05-04 Thread Christophe Leroy
Instead of inhibiting parameter RAM relacation, take into account the configured one. It means INIT_TRX command cannot be used and must be done manually as explained in the microcode patch application note. Signed-off-by: Christophe Leroy --- drivers/serial/serial_mpc8xx.c | 22

[PATCH 05/10] powerpc: mpc8xx: Reorganise init RAM

2023-05-04 Thread Christophe Leroy
n CPM dpram") Signed-off-by: Christophe Leroy --- arch/powerpc/cpu/mpc8xx/start.S| 9 + arch/powerpc/include/asm/cpm_8xx.h | 16 include/configs/cmpc885.h | 1 + include/configs/mcr3000.h | 1 + 4 files changed, 15 insertions(+), 12 deletion

[PATCH 08/10] spi, mpc8xx: Take parameter RAM relocation into account

2023-05-04 Thread Christophe Leroy
Instead of inhibiting parameter RAM relocation, take it into account. Signed-off-by: Christophe Leroy --- drivers/spi/mpc8xx_spi.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/spi/mpc8xx_spi.c b/drivers/spi/mpc8xx_spi.c index 734b0751a9..5c8d760935 100644

[PATCH 07/10] powerpc: mpc8xx: Add SMC relocation CPM microcode

2023-05-04 Thread Christophe Leroy
to be relocated. In order to do so, a CPM microcode patch is required. Binary data for that patch is copied from Linux kernel. Signed-off-by: Christophe Leroy --- arch/powerpc/cpu/mpc8xx/Kconfig | 20 + arch/powerpc/cpu/mpc8xx/Makefile | 1 + arch/powerpc/cpu/mpc8xx

[PATCH 04/10] powerpc: mpc8xx: CPM parameter RAM can be anywhere

2023-05-04 Thread Christophe Leroy
-by: Christophe Leroy --- arch/powerpc/cpu/mpc8xx/cpu.c| 2 +- arch/powerpc/include/asm/cpm_8xx.h | 18 +- arch/powerpc/include/asm/immap_8xx.h | 8 +--- drivers/serial/serial_mpc8xx.c | 2 +- drivers/spi/mpc8xx_spi.c | 2 +- 5 files changed, 13

[PATCH 06/10] powerpc: mpc885: Add CPM USB-SOF microcode for CPM15 ERRATA

2023-05-04 Thread Christophe Leroy
will be corrupted. Add capability to load the related microcode to fix it. The microcode binary data is copied from Linux kernel. Other microcode will be added in following patch so make it a Kconfig choice. Signed-off-by: Christophe Leroy --- arch/powerpc/cpu/mpc8xx/Kconfig

[PATCH 03/10] board: cssi: Load CMPC885's motherboard FPGA earlier

2023-05-04 Thread Christophe Leroy
yet so remove the printfs. Signed-off-by: Christophe Leroy --- board/cssi/cmpc885/cmpc885.c | 25 + configs/CMPC885_defconfig| 1 - 2 files changed, 5 insertions(+), 21 deletions(-) diff --git a/board/cssi/cmpc885/cmpc885.c b/board/cssi/cmpc885/cmpc885.c index

[PATCH 10/10] board: cssi: Activate SMC relocation on CMPC885 board for MIAE device

2023-05-04 Thread Christophe Leroy
is unused. Signed-off-by: Christophe Leroy --- board/cssi/cmpc885/cmpc885.c | 4 configs/CMPC885_defconfig| 2 ++ 2 files changed, 6 insertions(+) diff --git a/board/cssi/cmpc885/cmpc885.c b/board/cssi/cmpc885/cmpc885.c index 40128f170a..5e6aa8b8cf 100644 --- a/board/cssi/cmpc885/cmpc885

[PATCH 00/10] Misc fixes + 8xx CPM relocation

2023-05-04 Thread Christophe Leroy
This series adds misc fixes for cssi boards and activates CPM relocation in order to enable the use of SCC4 in QMC (QUICC Multi-Channel) mode. Christophe Leroy (10): board: cssi: Remove duplicated FPGA loading sequence on CMPC885 board: cssi: Remove stale macro from cmpcpro.c board: cssi

[PATCH 01/10] board: cssi: Remove duplicated FPGA loading sequence on CMPC885

2023-05-04 Thread Christophe Leroy
A duplicated FPGA loading sequence appears after FPGA reset. Remove it. Fixes: dac3c6f625 ("board: cssi: Add new board MCR3000_2G") Signed-off-by: Christophe Leroy --- board/cssi/cmpc885/cmpc885.c | 14 -- 1 file changed, 14 deletions(-) diff --git a/board/cssi/cmpc885/c

[PATCH 02/10] board: cssi: Remove stale macro from cmpcpro.c

2023-05-04 Thread Christophe Leroy
Three unused macros were left over. Remove them. Signed-off-by: Christophe Leroy --- board/cssi/cmpcpro/cmpcpro.c | 5 - 1 file changed, 5 deletions(-) diff --git a/board/cssi/cmpcpro/cmpcpro.c b/board/cssi/cmpcpro/cmpcpro.c index 3e9ba6a4cc..8a30c48e35 100644 --- a/board/cssi/cmpcpro

Re: [PATCH] build_bug.h: Also define static_assert() when __CHECKER__ is defined

2023-05-04 Thread Christophe Leroy
Le 03/05/2023 à 22:02, Tom Rini a écrit : > On Thu, Jan 26, 2023 at 07:17:48PM +0100, Christophe Leroy wrote: > >> When doing a build with C=2, the following failure is encountered on >> several files: >> >>CHECK arch/powerpc/cpu/mpc8xxx/fsl_lbc.c &g

[GIT PULL] Please pull u-boot-mpc8xx

2023-04-29 Thread Christophe Leroy
2:23 +0200) ---- Christophe Leroy (15): powerpc: mpc8xx: Migrate to CONFIG_SYS_CLK_FREQ watchdog: mpc8xx: Rename it mpc8xxx watchdog: mpc8xxx: Make it generic watchdog: mpc8xxx: Add support for mpc83xx powerpc: mpc832x: Fix reset word powerpc: mpc83xx:

[PATCH] board: cssi: Migrate to hashed password

2023-04-28 Thread Christophe Leroy
Use a hashed password instead of clear text in order to improve board security. Signed-off-by: Christophe Leroy --- Will be part of soon to come pull request configs/CMPC885_defconfig | 5 - configs/MCR3000_defconfig | 5 - 2 files changed, 8 insertions(+), 2 deletions(-) diff --git

[PATCH v1 10/14] spi: mpc8xxx: Add support for SPI on mpc832x

2023-04-06 Thread Christophe Leroy
in the most significant byte while received data is located in second byte. So perform the necessary shifts. In order to differentiate with other CPUs, a new compatible is added for mpc832x: fsl,mpc832x-spi Signed-off-by: Christophe Leroy Cc: Rasmus Villemoes --- arch/powerpc/include/asm

[PATCH v1 12/14] board: cssi: Refactor EEPROM read

2023-04-06 Thread Christophe Leroy
then receive the content of the EEPROM so that there don't be 3 dummy bytes at the beginning of the buffer. And move the function into common.c so that it can be reused by the board that will be added in a future patch. Signed-off-by: Christophe Leroy --- board/cssi/cmpc885/cmpc885.c | 35

[PATCH v1 14/14] board: cssi: Add CPU board CMPCPRO

2023-04-06 Thread Christophe Leroy
CSSI has another CPU board, similar to the CMPC885 board that get plugged on the two base boards MCR3000_2G and MIAE. That CPU board is called CMPCPRO because it has a MPC8321E CPU, also known as Power QUICC II PRO. Signed-off-by: Christophe Leroy --- arch/powerpc/cpu/mpc83xx/Kconfig | 5

[PATCH v1 11/14] board: cssi: Create dedicated file for common sources

2023-04-06 Thread Christophe Leroy
In preparation of the new cssi board called cmpcpro which we be introduce in a future patch, move common functions into a dedicated file in a common directory. Signed-off-by: Christophe Leroy --- board/cssi/cmpc885/Makefile | 2 +- board/cssi/cmpc885/cmpc885.c | 54

[PATCH v1 09/14] gpio: Add QUICC Engine GPIOs driver

2023-04-06 Thread Christophe Leroy
The mpc832x has GPIOs handled by the QUICC Engine. The registers are different from the one for the non QE mpc83xx GPIOs. Implement a GPIO driver for those. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/arch-mpc83xx/gpio.h | 5 + drivers/gpio/Kconfig

[PATCH v1 13/14] board: cssi: Move all mother board code into common.c

2023-04-06 Thread Christophe Leroy
All the code used to manage the mother boards will be common to soon to come CPU board. Move all that code into common.c Signed-off-by: Christophe Leroy --- board/cssi/cmpc885/cmpc885.c | 152 +-- board/cssi/common/common.c | 124

[PATCH v1 02/14] watchdog: mpc8xx: Rename it mpc8xxx

2023-04-06 Thread Christophe Leroy
mpc8xx, mpc83xx and mpc86xx have similar watchdog with almost same memory registers. Rename it mpc8xxx which is the generic name used for drivers supporting several mpc families. The driver will be made more generic in following patch. Signed-off-by: Christophe Leroy --- arch/powerpc/Kconfig

[PATCH v1 04/14] watchdog: mpc8xxx: Add support for mpc83xx

2023-04-06 Thread Christophe Leroy
Introduce a new compatible "fsl,pq2pro-wdt" On mpc83xx, the prescaling factor is 0x1. Don't write the watchdog configuration register in start.S as it can be written only once. Signed-off-by: Christophe Leroy --- arch/powerpc/cpu/mpc83xx/cpu.c | 2 +- arch/powerpc/cpu/mpc83xx/s

[PATCH v1 08/14] clk: mpc83xx: Fix clocks for mpc832x

2023-04-06 Thread Christophe Leroy
gd->arch.sdhc_clk only exists when CONFIG_FSL_ESDHC is set, so enclose it inside ifdefs. gd->arch.qe_clk and gd->arch.brg_clk must be populated when CONFIG_QE is set. Signed-off-by: Christophe Leroy --- drivers/clk/mpc83xx_clk.c | 7 +++ 1 file changed, 7 insertions(+) d

[PATCH v1 06/14] powerpc: mpc83xx: Fix soc.h

2023-04-06 Thread Christophe Leroy
There are helpers included in soc.h Declare them static inline so that soc.h can be included in several places. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/arch-mpc83xx/soc.h | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/arch/powerpc

[PATCH v1 03/14] watchdog: mpc8xxx: Make it generic

2023-04-06 Thread Christophe Leroy
from Kconfig. Signed-off-by: Christophe Leroy --- arch/powerpc/cpu/mpc8xx/Kconfig| 3 +- arch/powerpc/cpu/mpc8xx/cpu_init.c | 5 +-- arch/powerpc/dts/cmpc885.dts | 12 ++--- arch/powerpc/dts/mcr3000.dts | 20 - board/cssi/mcr3000/mcr3000.c | 14 -- configs

[PATCH v1 05/14] powerpc: mpc832x: Fix reset word

2023-04-06 Thread Christophe Leroy
According to the reference manual, the Reset Configuration Word Low Register bits 2-3 must be set to 0b10. Signed-off-by: Christophe Leroy --- arch/powerpc/cpu/mpc83xx/hrcw/Kconfig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/powerpc/cpu/mpc83xx/hrcw/Kconfig b

[PATCH v1 07/14] powerpc: mpc83xx: Don't activate MMU when not necessary

2023-04-06 Thread Christophe Leroy
entries to provide initial RAM. Signed-off-by: Christophe Leroy --- arch/powerpc/cpu/mpc83xx/start.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/cpu/mpc83xx/start.S b/arch/powerpc/cpu/mpc83xx/start.S index 4329b173db..6749263da8 100644 --- a/arch/powerpc/cpu

[PATCH v1 00/14] Add new CS GROUP CPU board CMPCPRO (v1)

2023-04-06 Thread Christophe Leroy
board This series is based on today's next tree and has passed CI tests at https://source.denx.de/u-boot/custodians/u-boot-mpc8xx/-/pipelines/15928 Christophe Leroy (14): powerpc: mpc8xx: Migrate to CONFIG_SYS_CLK_FREQ watchdog: mpc8xx: Rename it mpc8xxx watchdog: mpc8xxx: Make it generic

[PATCH v1 01/14] powerpc: mpc8xx: Migrate to CONFIG_SYS_CLK_FREQ

2023-04-06 Thread Christophe Leroy
8xx has CONFIG_8xx_GCLK_FREQ which is similar to CONFIG_SYS_CLK_FREQ, and doesn't set CONFIG_SYS_CLK_FREQ. Due to that, get_board_sys_clk() returns 0. Remove CONFIG_8xx_GCLK_FREQ and use CONFIG_SYS_CLK_FREQ instead. Signed-off-by: Christophe Leroy --- arch/powerpc/cpu/mpc8xx/Kconfig | 3

[PATCH] powerpc: Suppress 'executable stack' warning at link

2023-03-24 Thread Christophe Leroy
to KBUILD_LDFLAGS in order to suppress this warning. Reported-by: Stephane Franjou Signed-off-by: Christophe Leroy --- arch/powerpc/config.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/config.mk b/arch/powerpc/config.mk index 725a4f48aa..53124f4e80 100644 --- a/arch

[PATCH 1/2] mpc83xx: Remove stale CONFIG_SYS_LBLAWBAR{4/5/6/7}_PRELIM

2023-03-14 Thread Christophe Leroy
9c5df7a2a9 ("mpc83xx: Migrate LBLAW_* to Kconfig") Signed-off-by: Christophe Leroy Fixes: 9fd9abedcc ("TQM834x: remove defines causing gcc4.4 warnings") --- arch/powerpc/cpu/mpc83xx/cpu_init.c | 16 1 file changed, 16 deletions(-) diff --git a/arch/powerpc/

[PATCH 2/2] mpc83xx: Remove CONFIG_SYS_GPIO{1/2}_PRELIM and related

2023-03-14 Thread Christophe Leroy
moved from whitelist by commit 8cca60a2cb ("Kconfig: Remove some symbols from the whitelist") Signed-off-by: Christophe Leroy Fixes: fae2ea5951 ("ppc: Remove MPC8349EMDS board and ARCH_MPC8349 support") --- arch/powerpc/cpu/mpc83xx/cpu_init.c | 8 1 file changed, 8 del

Re: [ANN] U-Boot v2023.04-rc4 released

2023-03-14 Thread Christophe Leroy
Le 14/03/2023 à 18:55, Tom Rini a écrit : > On Tue, Mar 14, 2023 at 05:27:34AM +0000, Christophe Leroy wrote: >> Hi Tom, >> >> Le 14/03/2023 à 01:53, Tom Rini a écrit : >>> Hey all, >>> >>> It's the scheduled day for -rc4, and once again it

Re: [ANN] U-Boot v2023.04-rc4 released

2023-03-13 Thread Christophe Leroy
Hi Tom, Le 14/03/2023 à 01:53, Tom Rini a écrit : > Hey all, > > It's the scheduled day for -rc4, and once again it's the end of my day. > The delta between -rc3 and -rc4 is about what I would hope for. I still > hope to see a PR to fix m68k, and to address some mpc8xx problems as > well, but

[PATCH] powerpc, mpc83xx: Remove CONFIG_ELBC_BRx_ORx

2023-02-26 Thread Christophe Leroy
d it so that you now just have to provide the raw value of each register in Kconfig. However, all fine-grained Kconfig items remained allthough they are not used anymore. Remove them all. Fixes: c7fad78ec0 ("Convert CONFIG_SYS_BR0_PRELIM et al to Kconfig") Signed-off-by: Christophe Leroy

[GIT PULL] Please pull u-boot-mpc8xx

2023-02-12 Thread Christophe Leroy
08:47:58 +0100) -------- Christophe Leroy (9): powerpc/mpc8xx: Zero boot_flags arg for calling board_init_f() board: MCR3000: Use lowercase filenames board: MCR3000: Migrate to using CONFIG_EXTRA_ENV_TEXT board: MCR3000: Modernis

[PATCH v2 7/8] board: cssi: Add new board MCR3000_2G

2023-02-11 Thread Christophe Leroy
was originally written by Charles Frey who's email address is not valid anymore as he left the company. Signed-off-by: Christophe Leroy Reviewed-by: FRANJOU Stephane --- arch/powerpc/cpu/mpc8xx/Kconfig | 4 + arch/powerpc/dts/Makefile | 1 + arch/powerpc/dts/cmpc885.dts| 94 board

  1   2   3   4   >