Re: [PATCH 2/2] event: Correct dependencies on the EVENT framework

2023-01-15 Thread AKASHI Takahiro
On Mon, Jan 16, 2023 at 01:17:53PM +0900, AKASHI Takahiro wrote: > On Sun, Jan 15, 2023 at 10:15:11PM -0500, Tom Rini wrote: > > On Mon, Jan 16, 2023 at 12:10:50PM +0900, AKASHI Takahiro wrote: > > > Hi Tom, > > > > > > On Sat, Jan 14, 2023 at 03:49:36PM -0500, Tom Rini wrote: > > > > The event

Re: [PATCH v2 u-boot 2/3] powerpc/mpc85xx: socrates: Rename u-boot-socrates.bin to u-boot.bin

2023-01-15 Thread Heiko Schocher
Hello Tom, Pali, On 14.01.23 22:24, Tom Rini wrote: > On Sat, Jan 14, 2023 at 10:12:06PM +0100, Pali Rohár wrote: >> On Friday 13 January 2023 18:16:03 Tom Rini wrote: >>> On Sat, Jan 14, 2023 at 12:11:22AM +0100, Pali Rohár wrote: U-Boot build process for socrates board produces final

Re: [PATCH v3 3/3] eficonfig: add vertical scroll support

2023-01-15 Thread Masahisa Kojima
On Sat, 14 Jan 2023 at 19:26, Heinrich Schuchardt wrote: > > On 1/14/23 11:06, Heinrich Schuchardt wrote: > > On 1/5/23 03:58, Masahisa Kojima wrote: > >> The current eficonfig menu does not support vertical scroll, > >> so it can not display the menu entries greater than > >> the console row

Re: [bug] timer: orion-timer: static variable patch breaks armada-388-clearfog boot

2023-01-15 Thread Martin Rowe
Tony, > Did you build this clearfog board as is? i.e. did you make any change > in the clearfog_defconfig? clearfog_defconfig with: CONFIG_MVEBU_SPL_BOOT_DEVICE_SATA=y CONFIG_SPL_SATA=y Plus a dts patch to sdhci@d8000 to make it work for eMMC (swap cd-gpios for non-removable) Plus a workaround

Re: [bug] timer: orion-timer: static variable patch breaks armada-388-clearfog boot

2023-01-15 Thread Tony Dinh
Hi Martin, On Sat, Jan 14, 2023 at 9:31 PM Martin Rowe wrote: > > Hi, > > Commit 5387b093 was a fix for early_init_done causing issues on Pogo > v4 [1]. The fix breaks armada-388-clearfog because the boot hangs > indefinitely. > > It appears that the cause is an infinite loop in __udelay due to

Re: [PATCH 2/2] event: Correct dependencies on the EVENT framework

2023-01-15 Thread AKASHI Takahiro
On Sun, Jan 15, 2023 at 10:15:11PM -0500, Tom Rini wrote: > On Mon, Jan 16, 2023 at 12:10:50PM +0900, AKASHI Takahiro wrote: > > Hi Tom, > > > > On Sat, Jan 14, 2023 at 03:49:36PM -0500, Tom Rini wrote: > > > The event framework is just that, a framework. Enabling it by itself > > > does nothing,

[PATCH v5 03/13] gnu: u-boot: Reduce the number of native inputs.

2023-01-15 Thread Maxim Cournoyer
The extra python inputs are only needed for running the u-boot-test-tools test suite. This lowers the requirements for cross-building the various u-boot packages. * gnu/packages/bootloaders.scm (u-boot) [native-inputs]: Delete bc. Move python-coverage, python-pycryptodomex and python-pytest

Re: [PATCH 2/2] event: Correct dependencies on the EVENT framework

2023-01-15 Thread Tom Rini
On Mon, Jan 16, 2023 at 12:10:50PM +0900, AKASHI Takahiro wrote: > Hi Tom, > > On Sat, Jan 14, 2023 at 03:49:36PM -0500, Tom Rini wrote: > > The event framework is just that, a framework. Enabling it by itself > > does nothing, so we shouldn't ask the user about it. Reword (and correct > > typos)

Re: [PATCH 2/2] event: Correct dependencies on the EVENT framework

2023-01-15 Thread AKASHI Takahiro
Hi Tom, On Sat, Jan 14, 2023 at 03:49:36PM -0500, Tom Rini wrote: > The event framework is just that, a framework. Enabling it by itself > does nothing, so we shouldn't ask the user about it. Reword (and correct > typos) around this the option and help text. This also applies to > DM_EVENT, so

Re: [PATCH v1 15/17] riscv: dts: jh7110: Add initial u-boot device tree

2023-01-15 Thread yanhong wang
On 2023/1/5 3:19, Sean Anderson wrote: > On 12/11/22 21:50, Yanhong Wang wrote: >> Add initial u-boot device tree for the JH7110 RISC-V SoC. >> >> Signed-off-by: Yanhong Wang >> --- >>   arch/riscv/dts/jh7110-u-boot.dtsi | 86 +++ >>   1 file changed, 86

Re: [PATCH v1 10/17] board: starfive: add StarFive VisionFive v2 board support

2023-01-15 Thread yanhong wang
On 2023/1/5 3:18, Sean Anderson wrote: > On 12/11/22 21:50, Yanhong Wang wrote: >> Add board support for StarFive VisionFive v2. >> >> Signed-off-by: Yanhong Wang >> --- >>   board/starfive/visionfive2/MAINTAINERS    |   7 ++ >>   board/starfive/visionfive2/Makefile   |   7 ++ >>  

Re: [PATCH 1/3] binman: add sign option for binman

2023-01-15 Thread Ivan Mikhaylov
On Fri, 2023-01-13 at 11:00 -0700, Simon Glass wrote: > Hi Ivan, > > On Sat, 24 Dec 2022 at 15:35, Ivan Mikhaylov > wrote: > > > > On Sat, 2022-12-17 at 15:02 -0700, Simon Glass wrote: > > > Hi Ivan, > > > > > > On Tue, 13 Dec 2022 at 11:51, Ivan Mikhaylov > > > > > > wrote: > > > > > > > >

[PATCH 5/5] spmi: msm: Fix up msm_spmi_write() for ARB V5

2023-01-15 Thread Alexey Minnekhanov
In commit f5a2d6b4b03a ("spmi: msm: add arbiter version 5 support") support for arbiter V5 was introduced, and msm_spmi_read() was correctly converted to use varying channel offset depending on ARB version. But msm_spmi_write() was not fully converted. Even though ch_offset variable was

[PATCH 4/5] arm64: dts: qcom: Fix SPMI arbiter regs and reg-names

2023-01-15 Thread Alexey Minnekhanov
Now that reg-names is required, specify them, and use correct addresses for SPMI arbiter regs, taken from Linux dts [1] [2]. [1] https://elixir.bootlin.com/linux/v6.1.5/source/arch/arm64/boot/dts/qcom/qcs404.dtsi#L739 [2]

[PATCH 3/5] doc: spmi-msm: Update docs to reflect current state

2023-01-15 Thread Alexey Minnekhanov
Update spmi-msm documentation and example to reflect the current state of the driver. Signed-off-by: Alexey Minnekhanov --- doc/device-tree-bindings/spmi/spmi-msm.txt | 21 ++--- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git

[PATCH 2/5] spmi: msm: Fix parsing FDT and reading ARB version

2023-01-15 Thread Alexey Minnekhanov
First of all, use dev_read_addr_name() instead of dev_read_addr_index() to avoid confusion: most dts files have their regs specified in the wrong order, so driver is reading config reg and using it instead of core reg. Using names instead of indexes helps to avoid such errors. Second, same as

[PATCH 1/5] spmi: msm: Remove wrong and unused code

2023-01-15 Thread Alexey Minnekhanov
Variable err is never initialized and therefore not needed, as well as the whole error handler block; the mentioned "APID->PPID mapping table" is never read in the code anyways. Signed-off-by: Alexey Minnekhanov --- drivers/spmi/spmi-msm.c | 6 -- 1 file changed, 6 deletions(-) diff --git

[PATCH 0/5] spmi:msm: Several fixes

2023-01-15 Thread Alexey Minnekhanov
In the process of porting my board to u-boot I've noticed incorrect behaviour, some things that clearly look wrong, and other strange things. Here go several fixes to MSM SPMI driver, mostly related to newer platforms support. Alexey Minnekhanov (5): spmi: msm: Remove wrong and unused code

Re: [PATCH 2/2] event: Correct dependencies on the EVENT framework

2023-01-15 Thread Tom Rini
On Sun, Jan 15, 2023 at 02:52:35PM -0700, Simon Glass wrote: > Hi Tom, > > On Sun, 15 Jan 2023 at 06:45, Tom Rini wrote: > > > > On Sat, Jan 14, 2023 at 06:31:05PM -0700, Simon Glass wrote: > > > Hi Tom, > > > > > > On Sat, 14 Jan 2023 at 13:49, Tom Rini wrote: > > > > > > > > The event

Re: [PATCH 2/2] event: Correct dependencies on the EVENT framework

2023-01-15 Thread Simon Glass
Hi Tom, On Sun, 15 Jan 2023 at 06:45, Tom Rini wrote: > > On Sat, Jan 14, 2023 at 06:31:05PM -0700, Simon Glass wrote: > > Hi Tom, > > > > On Sat, 14 Jan 2023 at 13:49, Tom Rini wrote: > > > > > > The event framework is just that, a framework. Enabling it by itself > > > does nothing, so we

Re: [PATCH 07/24] trace: Reduce the default for TRACE_EARLY_CALL_DEPTH_LIMIT

2023-01-15 Thread Heinrich Schuchardt
Am 15. Januar 2023 22:15:44 MEZ schrieb Simon Glass : >This is a silly value at present, since U-Boot's call depth never reaches >200. Fix it. > >Signed-off-by: Simon Glass >--- > > lib/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/lib/Kconfig b/lib/Kconfig

[PATCH 21/24] trace: Provide a flamegraph that uses timing

2023-01-15 Thread Simon Glass
Add a second variant of the flame graph that shows records in terms of the number of microseconds used by each call stack. This is a useful way of seeing where time is going within the execution of U-Boot. This requires a call stack that records the start time of each function, as well as a way

[PATCH 23/24] trace: Add a test

2023-01-15 Thread Simon Glass
Add a test which runs sandbox, collects a trace and makes sure it can be processed by trace-cmd. This should ensure that this feature continues to work as U-Boot and trace-cmd evolve. Signed-off-by: Simon Glass --- .azure-pipelines.yml| 8 + .gitlab-ci.yml | 12 ++

[PATCH 22/24] Docker: Support trace-cmd

2023-01-15 Thread Simon Glass
Build trace-cmd as part of the docker image, so that trace tests can be used. Unfortunately the version provided by distributions is a little old and has bugs. It also does not support specifying the time base for the trace, which is required to convert microseconds to nanaseconds. Signed-off-by:

[PATCH 20/24] trace: Support output of a flamegraph

2023-01-15 Thread Simon Glass
It is useful to see how many times each function is called, particularly in the context of its callers. A flamegraph is a way of showing this. Support output in this format which can be used by the flamegraph.pl script, to generate an SVG image for browsing. Signed-off-by: Simon Glass ---

[PATCH 17/24] trace: Drop use of objsection

2023-01-15 Thread Simon Glass
This feature was only partly implemented and serves no current purpose. Drop it. Signed-off-by: Simon Glass --- tools/proftool.c | 29 + 1 file changed, 1 insertion(+), 28 deletions(-) diff --git a/tools/proftool.c b/tools/proftool.c index feeef55c1b9..0d74e1169a9

[PATCH 18/24] trace: Use text_base from the trace header

2023-01-15 Thread Simon Glass
Use the information in the trace header instead of reading it from the trace records. Add debugging to check that System.map and the trace header agree on this value. Signed-off-by: Simon Glass --- tools/proftool.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git

[PATCH 16/24] trace: Update proftool to use new binary format

2023-01-15 Thread Simon Glass
The old text format is not much used anymore. Instead a new trace-cmd tool has introduced a binary format for trace records. Add support for generating this format. This involves removing the old text format, adding various helpers for the new format and adjusting the code to use an output file

[PATCH 19/24] trace: Support output of funcgraph records

2023-01-15 Thread Simon Glass
Add support for writing ftrace records in the 'funcgraph' format, which shows function entry and exit points as well as the time taken by each function. Signed-off-by: Simon Glass --- tools/proftool.c | 182 ++- 1 file changed, 150 insertions(+), 32

[PATCH 15/24] trace: Rename prof to trace and improve comments

2023-01-15 Thread Simon Glass
The current use of 'profile' in some places is confusing. Update the code to use the word 'trace' consistently. Change the flags to better match their meaning and add some more comments. Signed-off-by: Simon Glass --- tools/proftool.c | 196 +-- 1

[PATCH 14/24] trace: Detect an infinite loop

2023-01-15 Thread Simon Glass
If something is wrong with a board's timer function such that it calls functions not marked with notrace, U-Boot will hang. Detect this, print a message and disable the trace. Signed-off-by: Simon Glass --- lib/trace.c | 10 ++ 1 file changed, 10 insertions(+) diff --git

[PATCH 13/24] trace: Correct the relocation handover with buffer overflow

2023-01-15 Thread Simon Glass
When the early trace buffer overflows it leaves a gap in the trace buffer between where the actual data finished and where it would have finished if there were enough buffer space. This results in corrupted output. Adjust the logic to resolve this and add a message when the buffer overflows.

[PATCH 12/24] trace: Show a few more stats about tracing

2023-01-15 Thread Simon Glass
Add a few more useful items into the output. Update the buffers to use hex consistently. Signed-off-by: Simon Glass --- lib/trace.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/trace.c b/lib/trace.c index 3551ef3a23c..c3354a256fb 100644 --- a/lib/trace.c +++

[PATCH 10/24] trace: Reduce the number of function sites

2023-01-15 Thread Simon Glass
Given that the compiler adds two function calls into each function, the current spacing is overkill. Drop it down to 16 bytes per function, which is still plenty. This saves some space in the trace buffer. Also move the calculation into a function, so it is common code. Add a check for

[PATCH 11/24] trace: Track the minimum stack depth

2023-01-15 Thread Simon Glass
The trace does not necessarily start at the top level, so we can see it go negative. Track this so that we can show an accurate value for the stack depth. Signed-off-by: Simon Glass --- lib/trace.c | 24 1 file changed, 16 insertions(+), 8 deletions(-) diff --git

[PATCH 09/24] trace: Update the file header

2023-01-15 Thread Simon Glass
It seems better to put the TEXT_BASE value in the file header rather than in an entry record. While it is true that there is a separate base for pre-relocation, this can be handled by using offsets in the file. It is useful to have a version number in case we need to change the trace format

[PATCH 06/24] time: Tidy up some unnecessary #ifdefs

2023-01-15 Thread Simon Glass
Avoid using the preprocessor with TIMER_EARLY. Signed-off-by: Simon Glass --- lib/time.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/lib/time.c b/lib/time.c index 0c95d12f614..1ef58f92cd1 100644 --- a/lib/time.c +++ b/lib/time.c @@ -70,15 +70,14 @@ extern

[PATCH 08/24] abuf: Support use from tools

2023-01-15 Thread Simon Glass
Update the code slightly so that abuf can be used in U-Boot tools. It will soon be needed for proftool. Signed-off-by: Simon Glass --- lib/abuf.c | 21 - 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/lib/abuf.c b/lib/abuf.c index 1635d58682c..bd270467dd4

[PATCH 07/24] trace: Reduce the default for TRACE_EARLY_CALL_DEPTH_LIMIT

2023-01-15 Thread Simon Glass
This is a silly value at present, since U-Boot's call depth never reaches 200. Fix it. Signed-off-by: Simon Glass --- lib/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Kconfig b/lib/Kconfig index a83f32d82a5..11968a0c531 100644 --- a/lib/Kconfig +++

[PATCH 04/24] dm: Allow serial output during the relocation process

2023-01-15 Thread Simon Glass
Reset the serial flags so that the debug UART can be used (if enabled) in the small window where there is no serial device. This can avoid a hang in some cases. Signed-off-by: Simon Glass --- common/board_r.c | 9 + 1 file changed, 9 insertions(+) diff --git a/common/board_r.c

[PATCH 03/24] sandbox: Bring back setting mon_len in global_data

2023-01-15 Thread Simon Glass
This change was made for the benefit of RISC-V but broke other architectures also. In particular, tracing cannot work without this value. Add it back for architectures which support it. Fixes: 3c9fc23c443 ("sandbox: don't refer to symbol _init") Signed-off-by: Simon Glass --- common/board_f.c

[PATCH 05/24] timer: Tidy up use of notrace

2023-01-15 Thread Simon Glass
Tracing is typically enabled by the time driver model starts up, so there is no point in adding a 'notrace' to the timer-init function. However, once the driver model timer is enabled, we do need to be able to access the timer's private data when reading the timer, so add it to the core function

[PATCH 02/24] sandbox: Expand the space for sandbox_vpl

2023-01-15 Thread Simon Glass
This is quite near the limit so add a little more space. Signed-off-by: Simon Glass --- arch/sandbox/dts/sandbox_vpl.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/sandbox/dts/sandbox_vpl.dtsi b/arch/sandbox/dts/sandbox_vpl.dtsi index

[PATCH 01/24] .gitignore: Ignore the moveconfig database

2023-01-15 Thread Simon Glass
This file is produced by the moveconfig.py tool. It should never be added to the repo, so add it to the .gitignore file. Signed-off-by: Simon Glass --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index eb769f144c3..357bcfe9917 100644 ---

[PATCH 00/24] trace: Update the trace feature to work with trace-cmd

2023-01-15 Thread Simon Glass
Since U-Boot's tracing feature was originally written, quite a few changes have taken place in this domain. The original text format used by tracing is still emitted by Linux, but a new trace-cmd tool has invented a binary format which is now used by new tools, such as kernelshark. With recent

Re: [PATCH v2] vbe: Allow probing the VBE bootmeth to fail in OS fixup

2023-01-15 Thread Karsten Merker
On Thu, Jan 12, 2023 at 04:48:54PM -0700 Simon Glass wrote: > This device is created when there are no bootmeths defined in the device > tree. But it cannot be probed without a device tree node. > > For now, ignore a probe failure. > > Signed-off-by: Simon Glass > Reported-by: Karsten Merker

Re: [PULL] u-boot-sh/master

2023-01-15 Thread Tom Rini
On Sun, Jan 15, 2023 at 03:27:04PM +0100, Marek Vasut wrote: > The following changes since commit fe4c21de4fbf5756d354d2473ffc675e7596ccfb: > > Merge tag 'u-boot-stm32-20230113' of > https://source.denx.de/u-boot/custodians/u-boot-stm (2023-01-13 09:56:19 > -0500) > > are available in the Git

Re: [PULL] u-boot-usb/master

2023-01-15 Thread Tom Rini
On Sun, Jan 15, 2023 at 03:27:02PM +0100, Marek Vasut wrote: > The following changes since commit fe4c21de4fbf5756d354d2473ffc675e7596ccfb: > > Merge tag 'u-boot-stm32-20230113' of > https://source.denx.de/u-boot/custodians/u-boot-stm (2023-01-13 09:56:19 > -0500) > > are available in the Git

[PATCH 14/14] mtd: rawnand: brcmnand: fix OOB R/W with Hamming ECC

2023-01-15 Thread Linus Walleij
From: Álvaro Fernández Rojas Hamming ECC doesn't cover the OOB data, so reading or writing OOB shall always be done without ECC enabled. This is a problem when adding JFFS2 cleanmarkers to erased blocks. If JFFS2 clenmarkers are added to the OOB with ECC enabled, OOB bytes will be changed from

[PATCH 13/14] mtd: rawnand: brcmnand: support v2.1-v2.2 controllers

2023-01-15 Thread Linus Walleij
From: Álvaro Fernández Rojas v2.1: tested on Netgear DGND3700v1 (BCM6368) v2.2: tested on Netgear DGND3700v2 (BCM6362) Signed-off-by: Álvaro Fernández Rojas Acked-by: Florian Fainelli Signed-off-by: Miquel Raynal Link:

[PATCH 12/14] mtd: rawnand: brcmnand: rename page sizes

2023-01-15 Thread Linus Walleij
From: Álvaro Fernández Rojas Current pages sizes apply to controllers after v3.4 Signed-off-by: Álvaro Fernández Rojas Acked-by: Florian Fainelli Signed-off-by: Miquel Raynal Link: https://lore.kernel.org/linux-mtd/20200522121524.4161539-4-nolt...@gmail.com [Ported to U-Boot from the Linux

[PATCH 11/14] mtd: rawnand: brcmnand: fix CS0 layout

2023-01-15 Thread Linus Walleij
From: Álvaro Fernández Rojas Only v3.3-v5.0 have a different CS0 layout. Controllers before v3.3 use the same layout for every CS. Fixes: 27c5b17cd1b1 ("mtd: nand: add NAND driver "library" for Broadcom STB NAND controller") Signed-off-by: Álvaro Fernández Rojas Acked-by: Florian Fainelli

[PATCH 09/14] mtd: rawnand: brcmnand: correctly verify erased pages

2023-01-15 Thread Linus Walleij
From: Álvaro Fernández Rojas The current code checks that the whole OOB area is erased. This is a problem when JFFS2 cleanmarkers are added to the OOB, since it will fail due to the usable OOB bytes not being 0xff. Correct this by only checking that data and ECC bytes aren't 0xff. Fixes:

[PATCH 10/14] mtd: rawnand: brcmnand: rename v4 registers

2023-01-15 Thread Linus Walleij
From: Álvaro Fernández Rojas These registers are also used on v3.3. Signed-off-by: Álvaro Fernández Rojas Reviewed-by: Miquel Raynal Acked-by: Florian Fainelli Signed-off-by: Miquel Raynal Link: https://lore.kernel.org/linux-mtd/20200522121524.4161539-2-nolt...@gmail.com [Ported to U-Boot

[PATCH 08/14] mtd: rawnand: brcmnand: improve hamming oob layout

2023-01-15 Thread Linus Walleij
From: Álvaro Fernández Rojas The current code generates 8 oob sections: S1 1-5 ECC 6-8 S2 9-15 S3 16-21 ECC 22-24 S4 25-31 S5 32-37 ECC 38-40 S6 41-47 S7 48-53 ECC 54-56 S8 57-63 Change it by merging continuous sections: S1 1-5 ECC

[PATCH 07/14] mtd: rawnand: brcmnand: fix hamming oob layout

2023-01-15 Thread Linus Walleij
From: Álvaro Fernández Rojas First 2 bytes are used in large-page nand. Fixes: ef5eeea6e911 ("mtd: nand: brcm: switch to mtd_ooblayout_ops") Cc: sta...@vger.kernel.org Signed-off-by: Álvaro Fernández Rojas Signed-off-by: Miquel Raynal Link:

[PATCH 06/14] mtd: nand: brcmnand: Add support for flash-dma v0

2023-01-15 Thread Linus Walleij
From: Kamal Dasu This change adds support for flash dma v0.0. Signed-off-by: Kamal Dasu Signed-off-by: Miquel Raynal [Ported to U-Boot from the Linux kernel] Signed-off-by: Linus Walleij --- drivers/mtd/nand/raw/brcmnand/brcmnand.c | 21 +++-- 1 file changed, 19

[PATCH 05/14] mtd: rawnand: brcmnand: Fix ecc chunk calculation for erased page bitfips

2023-01-15 Thread Linus Walleij
From: Claire Lin In brcmstb_nand_verify_erased_page(), the ECC chunk pointer calculation while correcting erased page bitflips is wrong, fix it. Fixes: 02b88eea9f9c ("mtd: brcmnand: Add check for erased page bitflips") Signed-off-by: Claire Lin Reviewed-by: Ray Jui Signed-off-by: Kamal Dasu

[PATCH 04/14] mtd: rawnand: brcmnand: Add support for v7.3 controller

2023-01-15 Thread Linus Walleij
From: Kamal Dasu This change adds support for brcm NAND v7.3 controller. This controller uses a newer version of flash_dma engine and change mostly implements these differences. Signed-off-by: Kamal Dasu Signed-off-by: Miquel Raynal [Ported to U-Boot from the Linux kernel] Signed-off-by:

[PATCH 03/14] mtd: rawnand: brcmnand: Refactored code to introduce helper functions

2023-01-15 Thread Linus Walleij
From: Kamal Dasu Refactored NAND ECC and CMD address configuration code to use helper functions. Signed-off-by: Kamal Dasu Signed-off-by: Miquel Raynal [Ported to U-Boot from the Linux kernel] Signed-off-by: Linus Walleij --- drivers/mtd/nand/raw/brcmnand/brcmnand.c | 100

[PATCH 02/14] mtd: rawnand: brcmnand: Fix BCH ECC layout for large page NAND parts

2023-01-15 Thread Linus Walleij
From: Kamal Dasu The way oobregion->offset is derived for large page NAND parts is wrong, fixes it. Fixes: ef5eeea6e911 ("mtd: nand: brcm: switch to mtd_ooblayout_ops") Signed-off-by: Kamal Dasu Reviewed-by: Florian Fainelli Signed-off-by: Miquel Raynal [Ported to U-Boot from the Linux

[PATCH 01/14] mtd: nand: brcm: switch to mtd_ooblayout_ops

2023-01-15 Thread Linus Walleij
From: Boris Brezillon Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon [Ported to U-Boot from the Linux kernel] Signed-off-by: Linus Walleij --- drivers/mtd/nand/raw/brcmnand/brcmnand.c | 260

[PATCH 00/14] Backport BRCMNAND changes from Linux

2023-01-15 Thread Linus Walleij
Hunting down a bug on my system I took to back-porting all reasonable changes from the Linux brcmnand driver that were not yet in the U-Boot derivative. I noticed that a simple diff -ur between brcmnand.c between the file in Linux and U-Boot was possible to see what differs. Combining this with

Re: v2023.01: u-boot-tools build failure

2023-01-15 Thread Fabio Estevam
Hi Vagrant, On Fri, Jan 13, 2023 at 8:37 PM Vagrant Cascadian wrote: > FWIW, we have not shipped bmp_logo in Debian's u-boot-tools package, so > we have managed without it, though curious what the use-case might be. > > It is disabled in Debian for now: > > >

SPL_FIT_GENERATOR series

2023-01-15 Thread Simon Glass
Hi Kever, Do you think we could apply this series[1] ? I am happy to do this myself if you would like it to go through the driver model tree. Regards, Simon [1] https://patchwork.ozlabs.org/project/uboot/list/?series=335487

Re: [PATCH 7/8] [DO NOT MERGE, DIRTY HACK] sunxi: use UBI for environement storage

2023-01-15 Thread Icenowy Zheng
在 2022-10-14星期五的 11:05 +0800,Icenowy Zheng写道: > Signed-off-by: Icenowy Zheng By the way should we have some better way to handle the placement of environments? > --- >  board/sunxi/board.c | 1 + >  1 file changed, 1 insertion(+) > > diff --git a/board/sunxi/board.c b/board/sunxi/board.c >

Re: [PATCH v9 14/14] treewide: Disable USE_SPL_FIT_GENERATOR by default

2023-01-15 Thread Simon Glass
Hi Michal, On Tue, 10 Jan 2023 at 08:16, Michal Simek wrote: > > Hi Simon, > > On 1/9/23 16:34, Simon Glass wrote: > > Hi Michal, > > > > On Mon, 9 Jan 2023 at 04:07, Michal Simek > > wrote: > > > > > > Hi, > > > > > > On 1/8/23 20:36, Simon Glass wrote: > > >

Re: [PATCH v1 1/3] fdt: validate/fix cells count on mtdpart fixup

2023-01-15 Thread Marek Vasut
On 1/13/23 19:45, Francesco Dolcini wrote: From: Francesco Dolcini Fixup #size-cells value when updating the MTD partitions, this is required to prevent issues in case the MTD parent set #size-cells to zero. This could happen for example in the legacy case in which the partitions are created

Re: [PATCH v1 2/3] colibri-imx7: specify MTD partitions on command line

2023-01-15 Thread Marek Vasut
On 1/13/23 19:45, Francesco Dolcini wrote: From: Francesco Dolcini Disable fdt_fixup_mtdparts(), instead pass MTD partition on the command line. This is the preferred method to be used when partitions are not statically defined into the DTS according the Linux MTD subsystem maintainer. Do we

[PULL] u-boot-sh/master

2023-01-15 Thread Marek Vasut
The following changes since commit fe4c21de4fbf5756d354d2473ffc675e7596ccfb: Merge tag 'u-boot-stm32-20230113' of https://source.denx.de/u-boot/custodians/u-boot-stm (2023-01-13 09:56:19 -0500) are available in the Git repository at: git://source.denx.de/u-boot-sh.git master for you to

[PULL] u-boot-usb/master

2023-01-15 Thread Marek Vasut
The following changes since commit fe4c21de4fbf5756d354d2473ffc675e7596ccfb: Merge tag 'u-boot-stm32-20230113' of https://source.denx.de/u-boot/custodians/u-boot-stm (2023-01-13 09:56:19 -0500) are available in the Git repository at: git://source.denx.de/u-boot-usb.git master for you

Re: [PATCH 2/2] event: Correct dependencies on the EVENT framework

2023-01-15 Thread Tom Rini
On Sat, Jan 14, 2023 at 06:31:05PM -0700, Simon Glass wrote: > Hi Tom, > > On Sat, 14 Jan 2023 at 13:49, Tom Rini wrote: > > > > The event framework is just that, a framework. Enabling it by itself > > does nothing, so we shouldn't ask the user about it. Reword (and correct > > typos) around

Re: [PATCH 2/2] event: Correct dependencies on the EVENT framework

2023-01-15 Thread Fabio Estevam
Hi Tom, On Sat, Jan 14, 2023 at 5:50 PM Tom Rini wrote: > > The event framework is just that, a framework. Enabling it by itself > does nothing, so we shouldn't ask the user about it. Reword (and correct > typos) around this the option and help text. This also applies to > DM_EVENT, so reword as

[PATCH 1/1] doc: man-page for bdinfo

2023-01-15 Thread Heinrich Schuchardt
Provide a man-page for the bdinfo command Signed-off-by: Heinrich Schuchardt --- doc/usage/cmd/bdinfo.rst | 119 +++ doc/usage/index.rst | 1 + 2 files changed, 120 insertions(+) create mode 100644 doc/usage/cmd/bdinfo.rst diff --git

[PATCH 1/1] doc: man-page for blkcache

2023-01-15 Thread Heinrich Schuchardt
Provide a man-page for the blkcache command. Signed-off-by: Heinrich Schuchardt --- doc/usage/cmd/blkcache.rst | 74 ++ doc/usage/index.rst| 1 + 2 files changed, 75 insertions(+) create mode 100644 doc/usage/cmd/blkcache.rst diff --git

Re: [PATCH v6 1/6] rockchip: px30: fix possibly unused grf and cru variables

2023-01-15 Thread Kever Yang
On 2023/1/9 18:36, Quentin Schulz wrote: From: Quentin Schulz The grf and cru are only used when no UART base is provided by the user (defaults to UART2) or for UART1, UART3 and UART5 to be used for the debug UART. Therefore, let's surround those variable definitions with the proper checks.