Re: Docs for RISC-V

2023-02-08 Thread Rick Chen
Hi Zong, > From: Leo Yu-Chi Liang(梁育齊) > Sent: Monday, February 06, 2023 3:58 PM > To: Simon Glass > Cc: U-Boot Mailing List ; Rick Jian-Zhi Chen(陳建志) > ; zong...@sifive.com; vincent.c...@sifive.com > Subject: Re: Docs for RISC-V > > Hi Simon, > > On Thu, Feb 02, 2023 at 10:25:36AM -0700, Simon

Re: [PATCH v2 2/3] mmc: erase: Use TRIM erase when available

2023-02-08 Thread Loic Poulain
Hi Jaehoon, On Mon, 6 Feb 2023 at 06:05, Jaehoon Chung wrote: > > Hi, > > > -Original Message- > > From: Loic Poulain > > Sent: Thursday, January 26, 2023 6:24 PM > > To: s...@chromium.org; peng@nxp.com; jh80.ch...@samsung.com > > Cc: u-boot@lists.denx.de; Loic Poulain > > Subject:

Re: [PATCH v2 3/3] test: dm: mmc: Check block erasing boundaries

2023-02-08 Thread Loic Poulain
On Fri, 27 Jan 2023 at 15:30, Simon Glass wrote: > > Hi Loic, > > On Thu, 26 Jan 2023 at 02:24, Loic Poulain wrote: > > > > Verify that erasing blocks does not impact adjacent ones. > > - Write four blocks [0 1 2 3] > > - Erase two blocks [ 1 2 ] > > - Verify [0 1 2 3 ] > > > > Signed-off-by: Loi

Re: [PATCH] schemas: Add schema for firmware logs

2023-02-08 Thread Jan Lübbe
On Tue, 2023-02-07 at 11:39 -0700, Simon Glass wrote: > Hi Jan, > > On Tue, 7 Feb 2023 at 08:39, Jan Lübbe wrote: > > > > On Tue, 2023-02-07 at 06:38 -0700, Simon Glass wrote: > > > Hi Jan, > > > > > > On Tue, 7 Feb 2023 at 04:56, Jan Lübbe wrote: > > > [snip] > > > Thanks for the pointer. I

[RESEND PATCH v2] configs: imx8mn_bsh_smm_s2: remove console from bootargs

2023-02-08 Thread Dario Binacchi
The Linux kernel device tree already specifies the device to be used for boot console output with a stdout-path property under /chosen. Commit 36b661dc919da ("Merge branch 'next'") re-added the console setting that commit bede82f750752 ("configs: imx8mn_bsh_smm_s2: remove console from bootargs") h

Re: [PATCH 1/2] arm: cpu: Add optional CMOs by VA

2023-02-08 Thread Marc Zyngier
On Tue, 07 Feb 2023 17:18:27 +, Paul Liu wrote: > > Hi Marc, > > I think you are the author. I'm just making some minor fixes and > then upstreaming to the mailing list. What is the correct way to > make the Signed-off-by list? In general, and unless you have completely rewritten the patch

Re: [PATCH v1] RFC: rtc: rv8803: avoid bootloop on low voltage of button cell

2023-02-08 Thread Michael Walle
Am 2023-02-08 08:38, schrieb Oliver Graute: if the rtc button cell is on low voltage this can result in a permanent bootloop in u-boot because V2F Register is permanent set. ### Warning: temperature compensation has stopped ### Warning: Voltage low, data is invalid resetting ... With this patch

Re: Docs for RISC-V

2023-02-08 Thread Zong Li
On Wed, Feb 8, 2023 at 4:07 PM Rick Chen wrote: > > Hi Zong, > > > From: Leo Yu-Chi Liang(梁育齊) > > Sent: Monday, February 06, 2023 3:58 PM > > To: Simon Glass > > Cc: U-Boot Mailing List ; Rick Jian-Zhi Chen(陳建志) > > ; zong...@sifive.com; vincent.c...@sifive.com > > Subject: Re: Docs for RISC-V

Re: [PATCH v3 17/19] doc: android: add documentation for v3,v4 boot image header

2023-02-08 Thread Mattijs Korpershoek
On lun., févr. 06, 2023 at 00:50, Safae Ouajih wrote: > Update the Android documentation to describe version 3 and 4 of boot > image header. > > Signed-off-by: Safae Ouajih > --- Reviewed-by: Mattijs Korpershoek > doc/android/boot-image.rst | 13 - > 1 file changed, 12 insertions

Re: [PATCH v2 036/169] Correct SPL uses of CMD_BOOTEFI_BOOTMGR

2023-02-08 Thread Heinrich Schuchardt
On 2/7/23 15:50, Tom Rini wrote: On Tue, Feb 07, 2023 at 08:39:38AM +0100, Heinrich Schuchardt wrote: On 2/7/23 01:00, Tom Rini wrote: On Tue, Feb 07, 2023 at 12:54:03AM +0100, Heinrich Schuchardt wrote: On 2/6/23 01:53, Simon Glass wrote: This converts 3 usages of this option to the non-

RE: [PATCH v2 2/3] mmc: erase: Use TRIM erase when available

2023-02-08 Thread Jaehoon Chung
Hi Loic, > -Original Message- > From: Loic Poulain > Sent: Wednesday, February 8, 2023 5:09 PM > To: Jaehoon Chung > Cc: s...@chromium.org; peng@nxp.com; u-boot@lists.denx.de > Subject: Re: [PATCH v2 2/3] mmc: erase: Use TRIM erase when available > > Hi Jaehoon, > > On Mon, 6 Feb 2

[PATCH v3 00/10] usb: dwc3: Refactor dwc3-generic and apply to dwc3-uniphier

2023-02-08 Thread Kunihiko Hayashi
This series achieves refactoring of dwc3-generic. First, dwc3-generic allows DT controller nodes to be children of glue nodes, but outside of glue nodes. To achieve this goal, define a glue-specific function to get controller node, look up more reference clocks in the controller node, and initial

[PATCH v3 02/10] usb: dwc3-generic: Allow different controller DT node pattern

2023-02-08 Thread Kunihiko Hayashi
The most of devicetree has the following USB node structure. The controller node is placed as a child node of the glue node. Current dwc3-generic driver works on this premise. glue { /* glue node */ usb { /* controller node */ }; }; However, UniPhier or

[PATCH v3 01/10] usb: dwc3: Look up reference clock DT phandle in both controller DT nodes

2023-02-08 Thread Kunihiko Hayashi
From: Marek Vasut There are currently four disparate placement possibilities of DWC3 reference clock phandle in SoC DTs: - in top level glue node, with generic subnode without clock (ZynqMP) - in top level generic node, with no subnode (i.MX8MQ) - in generic subnode, with other clock in top level

[PATCH v3 03/10] usb: dwc3-generic: Add clock initialization in child DT node

2023-02-08 Thread Kunihiko Hayashi
Same as the reset cotnrol, should add a clock initialization in child DT node, if the glue node doesn't have any clocks. Signed-off-by: Kunihiko Hayashi Reviewed-by: Marek Vasut --- drivers/usb/dwc3/dwc3-generic.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/usb/dwc3/dwc3-g

[PATCH v3 07/10] clk: uniphier: Add missing USB SS-PHY clocks

2023-02-08 Thread Kunihiko Hayashi
The USB SS-PHY needs its own clock, however, some clocks don't have clock gates. Define missing clock entries for the PHY as reference clock. Signed-off-by: Kunihiko Hayashi --- drivers/clk/uniphier/clk-uniphier-sys.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/clk/uniphier/

[PATCH v3 06/10] reset: uniphier: Add USB glue reset support

2023-02-08 Thread Kunihiko Hayashi
Add reset control support in USB glue logic. This needs to control the external clocks and resets for the logic before accessing the glue logic. The USB dm tree when using dwc3-generic is the following: USB glue +-- controller (need controller-reset) +-- controller-reset (need

[PATCH v3 04/10] usb: dwc3-generic: Export glue structures and functions

2023-02-08 Thread Kunihiko Hayashi
In order to allow external SoC-dependent glue drivers to use dwc3-generic functions, push the glue structures and export the functions to a header file. The exported structures and functions are: - struct dwc3_glue_data - struct dwc3_glue_ops - dwc3_glue_bind() - dwc3_glue_probe() - dwc3_glue_rem

[PATCH v3 09/10] usb: dwc3-uniphier: Use dwc3-generic instead of xhci-dwc3

2023-02-08 Thread Kunihiko Hayashi
dwc3-uniphier depends on xhci-dwc3 framework, however, it is preferable to use dwc3-generic. This driver calls the exported dwc3-generic functions and redefine the SoC-dependent operations to fit dwc3-generic. Signed-off-by: Kunihiko Hayashi Reviewed-by: Marek Vasut --- drivers/usb/dwc3/Kconfi

[PATCH v3 05/10] usb: dwc3-generic: Add the size of regs property to glue structure

2023-02-08 Thread Kunihiko Hayashi
Add the size of regs property to the glue structure to correctly specify the register region to map. Signed-off-by: Kunihiko Hayashi Reviewed-by: Marek Vasut --- drivers/usb/dwc3/dwc3-generic.c | 2 +- drivers/usb/dwc3/dwc3-generic.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff

[PATCH v3 10/10] uniphier_defconfig: Disable USB_XHCI_DWC3

2023-02-08 Thread Kunihiko Hayashi
Replacing with dwc3-generic, no need USB_XHCI_DWC3 anymore. Signed-off-by: Kunihiko Hayashi Reviewed-by: Marek Vasut --- configs/uniphier_v7_defconfig | 1 - configs/uniphier_v8_defconfig | 1 - 2 files changed, 2 deletions(-) diff --git a/configs/uniphier_v7_defconfig b/configs/uniphier_v7_de

[PATCH v3 08/10] phy: socionext: Add UniPhier USB3 PHY driver

2023-02-08 Thread Kunihiko Hayashi
Add USB3 PHY driver support to control clocks and resets for the phy. Signed-off-by: Kunihiko Hayashi --- drivers/phy/socionext/Kconfig | 8 ++ drivers/phy/socionext/Makefile| 1 + drivers/phy/socionext/phy-uniphier-usb3.c | 93 +++ 3 files changed,

Re: [PATCH v1] RFC: rtc: rv8803: avoid bootloop on low voltage of button cell

2023-02-08 Thread Oliver Graute
> Am 08.02.2023 um 09:32 schrieb Michael Walle : > > Am 2023-02-08 08:38, schrieb Oliver Graute: >> if the rtc button cell is on low voltage this can result in a permanent >> bootloop in u-boot because V2F Register is permanent set. >> ### Warning: temperature compensation has stopped >> ### Warn

[PATCH 1/2] env: mmc: Clean up macro usage

2023-02-08 Thread Marek Vasut
Consistently use 'if (CONFIG_IS_ENABLED(PARTITION_TYPE_GUID))' instead of mix of ifdef and IS_ENABLED. This deals with xPL variants of the config option and trims ifdeffery. Signed-off-by: Marek Vasut --- Cc: Patrice Chotard Cc: Patrick Delaunay Cc: Tom Rini --- env/mmc.c | 6 ++ 1 file c

[PATCH 2/2] env: mmc: Apply GPT only on eMMC user HW partition

2023-02-08 Thread Marek Vasut
Apply the GPT U-Boot environment GUID type look up only on eMMC user HW partition, do not apply the look up on eMMC boot HW partitions as mmc_offset_try_partition() assumes either SD partitions or eMMC user HW partition. This fixes environment operation on systems where CONFIG_SYS_MMC_ENV_PART is

[PATCH v2] ARM: dts: imx: Add support for Data Modul i.MX8M Plus eDM SBC

2023-02-08 Thread Marek Vasut
Add support for Data Modul i.MX8M Plus eDM SBC board. This is an evaluation board for various custom display units. Currently supported are serial console, ethernet, eMMC, SD, SPI NOR, USB. Signed-off-by: Marek Vasut --- Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic --- V2: Rebase on curren

Re: [PATCH v1] RFC: rtc: rv8803: avoid bootloop on low voltage of button cell

2023-02-08 Thread Michael Walle
Am 2023-02-08 12:29, schrieb Oliver Graute: Am 08.02.2023 um 09:32 schrieb Michael Walle : Am 2023-02-08 08:38, schrieb Oliver Graute: if the rtc button cell is on low voltage this can result in a permanent bootloop in u-boot because V2F Register is permanent set. ### Warning: temperature comp

Re: [PATCH] doc: Link to some useful talks

2023-02-08 Thread Sean Anderson
On 2/5/23 17:30, Simon Glass wrote: Talks are a great way to learn about U-Boot and have been lost now that the Denx Wiki has gone away. These are stored at elinux.org so link to that . Signed-off-by: Simon Glass --- doc/index.rst | 1 + doc/learn/index.rst | 9 + doc/lear

[PATCH 1/1] cmd: CONFIG_CMD_EFICONFIG requires CONFIG_MENU

2023-02-08 Thread Heinrich Schuchardt
The eficonfig command invokes functions implemented in common/menu.c like * menu_default_set() * menu_get_choice() * menu_destroy() * menu_item_add() Fixes: 87d791423ac6 ("eficonfig: menu-driven addition of UEFI boot option") Signed-off-by: Heinrich Schuchardt --- cmd/Kconfig | 1 + 1 file chan

Re: [PATCH] lmb: Default to not-LMB_USE_MAX_REGIONS

2023-02-08 Thread Philippe Schenker
Hi Tom, We currently face an issue on our apalis-imx8 machine, that is not able to boot with a ramdisk. What happens is that there are all 8 of 8 LMBs reserved and fdt tries to allocate one more, probably for relocation. I now stumbled on this recent patch and noticed that in my understanding thi

Re: [PATCH v2 1/2] rockchip: sdram: add basic support for sdram reg info version 3

2023-02-08 Thread Kever Yang
On 2023/2/8 01:27, Jonas Karlman wrote: Newer DRAM initialization blobs from vendor can encode sdram info in a new version 3 format. The new format makes use of more bits in sys_reg3 compared to the version 2 format. Add basic support for detecting the version 3 format and decoding the high bi

Re: [PATCH v2 2/2] rockchip: sdram: add dram bank with usable memory beyond 4GB

2023-02-08 Thread Kever Yang
On 2023/2/8 01:27, Jonas Karlman wrote: Add a second dram bank of usable memory beyond the blob of space for peripheral near 4GB. Any memory that exists beyond the 4GB mark is added to the second bank. Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang Thanks, - Kever --- v2: - Change C

Re: [PATCH 0/3] rockchip: Use external TPL binary to create a working firmware image

2023-02-08 Thread Jonas Karlman
Hi Simon, On 2023-02-07 05:02, Simon Glass wrote: > Hi Jonas, > > On Sun, 5 Feb 2023 at 13:21, Jonas Karlman wrote: >> >> Rockchip SoCs typically use U-Boot TPL to initialize DRAM, then jumps >> back to boot-rom to load the next stage of the boot flow, U-Boot SPL. >> >> For RK356x there is curre

Re: [PATCH] lmb: Default to not-LMB_USE_MAX_REGIONS

2023-02-08 Thread Tom Rini
On Wed, Feb 08, 2023 at 02:33:58PM +, Philippe Schenker wrote: > Hi Tom, > > We currently face an issue on our apalis-imx8 machine, that is not able > to boot with a ramdisk. What happens is that there are all 8 of 8 LMBs > reserved and fdt tries to allocate one more, probably for relocation.

Re: [PATCH 3/3] lmb: Treat a region which is a subset as equal

2023-02-08 Thread Tom Rini
On Wed, Feb 08, 2023 at 08:37:15AM +0100, Sjoerd Simons wrote: > On Mon, 2023-02-06 at 13:04 -0500, Tom Rini wrote: > > On Thu, Jan 19, 2023 at 09:38:19AM +0100, Sjoerd Simons wrote: > > > > > In various cases logical memory blocks are coalesced; As a result > > > doing > > > a strict check whethe

Re: [PATCH] lmb: Default to not-LMB_USE_MAX_REGIONS

2023-02-08 Thread Philippe Schenker
On Wed, 2023-02-08 at 09:54 -0500, Tom Rini wrote: > On Wed, Feb 08, 2023 at 02:33:58PM +, Philippe Schenker wrote: > > > Hi Tom, > > > > We currently face an issue on our apalis-imx8 machine, that is not > > able > > to boot with a ramdisk. What happens is that there are all 8 of 8 > > LMBs

Re: [PATCH] lmb: Default to not-LMB_USE_MAX_REGIONS

2023-02-08 Thread Tom Rini
On Wed, Feb 08, 2023 at 03:13:31PM +, Philippe Schenker wrote: > On Wed, 2023-02-08 at 09:54 -0500, Tom Rini wrote: > > On Wed, Feb 08, 2023 at 02:33:58PM +, Philippe Schenker wrote: > > > > > Hi Tom, > > > > > > We currently face an issue on our apalis-imx8 machine, that is not > > > abl

[PATCH] Revert "lmb: Default to not-LMB_USE_MAX_REGIONS"

2023-02-08 Thread Tom Rini
As explained by Philippe Schenker, I was misinterpreting what happened in the case where we do not set LMB_USE_MAX_REGIONS and so had re-introduced the problem I was attempting to more widely resolve. This reverts commit 007ae5d108a37564905ea1588cb279f3a522cc3d. Reported-by: Philippe Schenker Si

Re: [PATCH 1/2] env: mmc: Clean up macro usage

2023-02-08 Thread Tom Rini
On Wed, Feb 08, 2023 at 12:32:43PM +0100, Marek Vasut wrote: > Consistently use 'if (CONFIG_IS_ENABLED(PARTITION_TYPE_GUID))' instead of > mix of ifdef and IS_ENABLED. This deals with xPL variants of the config > option and trims ifdeffery. > > Signed-off-by: Marek Vasut > --- > Cc: Patrice Chota

Re: [PATCH 2/3] rockchip: Require an external TPL binary when TPL is missing

2023-02-08 Thread Kever Yang
Hi Quentin, On 2023/2/6 19:26, Quentin Schulz wrote: Hi Jonas, On 2/5/23 21:21, Jonas Karlman wrote: Rockchip SoCs typically use U-Boot TPL to initialize DRAM, then jumps back to boot-rom to load the next stage of the boot flow, U-Boot SPL. For RK356x there is currently no support to initiali

Re: [PATCH 2/3] rockchip: Require an external TPL binary when TPL is missing

2023-02-08 Thread Quentin Schulz
Hi Kever, On 2/8/23 16:41, Kever Yang wrote: Hi Quentin, On 2023/2/6 19:26, Quentin Schulz wrote: Hi Jonas, On 2/5/23 21:21, Jonas Karlman wrote: Rockchip SoCs typically use U-Boot TPL to initialize DRAM, then jumps back to boot-rom to load the next stage of the boot flow, U-Boot SPL. For R

[PATCH] doc: sl-mx8mm: Fix mistake in merge conflict resolution

2023-02-08 Thread Frieder Schrempf
From: Frieder Schrempf There was a conflict between the following two commits, that wasn't resolved correctly. Fix this. a93985ddfcc3 ("doc: sl-mx8mm: Update the NXP TF-A source reference") f0f461287eff ("imx: Suggest the NXP ATF github repo") Signed-off-by: Frieder Schrempf Cc: Heinrich Schuc

Re: [PATCH 1/1] cmd: CONFIG_CMD_EFICONFIG requires CONFIG_MENU

2023-02-08 Thread Simon Glass
On Wed, 8 Feb 2023 at 06:02, Heinrich Schuchardt wrote: > > The eficonfig command invokes functions implemented in common/menu.c like > > * menu_default_set() > * menu_get_choice() > * menu_destroy() > * menu_item_add() > > Fixes: 87d791423ac6 ("eficonfig: menu-driven addition of UEFI boot option"

Re: [PATCH] Revert "lmb: Default to not-LMB_USE_MAX_REGIONS"

2023-02-08 Thread Simon Glass
On Wed, 8 Feb 2023 at 08:19, Tom Rini wrote: > > As explained by Philippe Schenker, I was misinterpreting what happened > in the case where we do not set LMB_USE_MAX_REGIONS and so had > re-introduced the problem I was attempting to more widely resolve. > > This reverts commit 007ae5d108a37564905e

Re: [PATCH] doc: sl-mx8mm: Fix mistake in merge conflict resolution

2023-02-08 Thread Fabio Estevam
On 08/02/2023 13:20, Frieder Schrempf wrote: From: Frieder Schrempf There was a conflict between the following two commits, that wasn't resolved correctly. Fix this. a93985ddfcc3 ("doc: sl-mx8mm: Update the NXP TF-A source reference") f0f461287eff ("imx: Suggest the NXP ATF github repo") Sign

Re: [PATCH] lmb: Bump CONFIG_LMB_MAX_REGIONS

2023-02-08 Thread Francesco Dolcini
Hello, On Fri, Jan 27, 2023 at 08:54:55AM -0500, Tom Rini wrote: > On Fri, Jan 27, 2023 at 02:00:12PM +0100, Michal Suchanek wrote: > > It is reported that in some configurations it is not possible to boot > > because u-boot runs out of lmbs. > > > > commit 06d514d77c ("lmb: consider EFI memory m

Re: [PATCH] lmb: Bump CONFIG_LMB_MAX_REGIONS

2023-02-08 Thread Tom Rini
On Wed, Feb 08, 2023 at 07:24:25PM +0100, Francesco Dolcini wrote: > Hello, > > On Fri, Jan 27, 2023 at 08:54:55AM -0500, Tom Rini wrote: > > On Fri, Jan 27, 2023 at 02:00:12PM +0100, Michal Suchanek wrote: > > > It is reported that in some configurations it is not possible to boot > > > because u

Re: [PATCH] lmb: Bump CONFIG_LMB_MAX_REGIONS

2023-02-08 Thread Tom Rini
On Fri, Jan 27, 2023 at 02:00:12PM +0100, Michal Suchanek wrote: > It is reported that in some configurations it is not possible to boot > because u-boot runs out of lmbs. > > commit 06d514d77c ("lmb: consider EFI memory map") increases lmb usage, > hence is likely the cause of the lmb overflow.

Re: [PATCH v3] console: usb: kbd: Limit poll frequency to improve performance

2023-02-08 Thread Simon Glass
Hi Filip, On Wed, 18 Jan 2023 at 09:03, Filip Žaludek wrote: > > > > Hi Michal, > > thanks for testing! Do you consider keyboard as working once it is detected > without > 'usb_kbd usb_kbd: Timeout poll on interrupt endpoint', or judging from > subsequent > typing? Note that issue is reproduc

Re: [PATCH v2 4/5] lib: sha256: Add support for hardware specific sha256_process

2023-02-08 Thread Simon Glass
Hi Tom, On Tue, 7 Feb 2023 at 17:10, Tom Rini wrote: > > On Tue, Feb 07, 2023 at 03:25:16PM -0700, Simon Glass wrote: > > Hi Loic, > > > > On Tue, 7 Feb 2023 at 14:47, Loic Poulain wrote: > > > > > > Hi Simon, > > > > > > On Tue, 7 Feb 2023 at 05:05, Simon Glass wrote: > > > > > > > > Hi Loic,

Re: [PATCH v3 01/76] moveconfig: Add an option to compare Kconfig against source

2023-02-08 Thread Simon Glass
Hi Tom, On Tue, 7 Feb 2023 at 18:37, Tom Rini wrote: > > On Wed, Feb 01, 2023 at 01:19:12PM -0700, Simon Glass wrote: > > > Sometimes the Makefile rules or source code refers to Kconfig options > > which don't exist. Update the moveconfig tool to check this and produce > > a series of reports abo

Re: [PATCH v3 01/76] moveconfig: Add an option to compare Kconfig against source

2023-02-08 Thread Tom Rini
On Wed, Feb 08, 2023 at 11:28:22AM -0700, Simon Glass wrote: > Hi Tom, > > On Tue, 7 Feb 2023 at 18:37, Tom Rini wrote: > > > > On Wed, Feb 01, 2023 at 01:19:12PM -0700, Simon Glass wrote: > > > > > Sometimes the Makefile rules or source code refers to Kconfig options > > > which don't exist. Upd

Re: [PATCH v2 4/5] lib: sha256: Add support for hardware specific sha256_process

2023-02-08 Thread Tom Rini
On Wed, Feb 08, 2023 at 11:28:21AM -0700, Simon Glass wrote: > Hi Tom, > > On Tue, 7 Feb 2023 at 17:10, Tom Rini wrote: > > > > On Tue, Feb 07, 2023 at 03:25:16PM -0700, Simon Glass wrote: > > > Hi Loic, > > > > > > On Tue, 7 Feb 2023 at 14:47, Loic Poulain wrote: > > > > > > > > Hi Simon, > > >

[PATCH] test: lmb: Rework lib_test_lmb_max_regions test to scale

2023-02-08 Thread Tom Rini
First, this test depends on CONFIG_LMB_USE_MAX_REGIONS, so add that as a test before building. Second, instead of using a hard-coded value of 8, which is the default of CONFIG_LMB_USE_MAX_REGIONS previously, use that directly and update the comments. The only trick here is that one part of the test

Re: [PATCH v3] console: usb: kbd: Limit poll frequency to improve performance

2023-02-08 Thread Michal Suchánek
Hello, On Wed, Jan 18, 2023 at 05:01:12PM +0100, Filip Žaludek wrote: > > > Hi Michal, > > thanks for testing! Do you consider keyboard as working once it is detected > without > 'usb_kbd usb_kbd: Timeout poll on interrupt endpoint', or judging from > subsequent > typing? Note that issue is

Re: [PATCH v3] console: usb: kbd: Limit poll frequency to improve performance

2023-02-08 Thread Mark Kettenis
> Date: Wed, 8 Feb 2023 19:45:36 +0100 > From: Michal Suchánek > > Hello, > > On Wed, Jan 18, 2023 at 05:01:12PM +0100, Filip Žaludek wrote: > > > > > > Hi Michal, > > > > thanks for testing! Do you consider keyboard as working once it is > > detected without > > 'usb_kbd usb_kbd: Timeout p

[PATCH 0/2] odroid: fix boot issues on u2, xu4 and siblings

2023-02-08 Thread Henrik Grimler
Hi, Patch 1 fixes issue reported in [1], which happens on odroid-u2 and probably other devices in that family. Re-adding this quirk was discussed already by Jaehoon and Andy in the patch that (re-)introduced this issue [2], but I do not think a patch was sent for it. Patch 2 fixes issue reported

[PATCH 1/2] Revert "mmc: s5p_sdhci: unset the SDHCI_QUIRK_BROKEN_R1B"

2023-02-08 Thread Henrik Grimler
This reverts commit a034ec06ff1d558bbe11d5ee05edbb4de3ee2215. Commit 4a3ea75de4c5 ("Revert "mmc: sdhci: set to INT_DATA_END when there are data"") reverted the alternative fix that was added for Exynos 4 devices, causing an error when trying to boot from an sdcard: <...> Loading Environme

[PATCH 2/2] samsung: common: only load CROS_EC if enabled in config

2023-02-08 Thread Henrik Grimler
Otherwise non-ChromeOS samsung devices, like the odroid boards, are stuck in a bootloop if CONFIG_CROS_EC is not enabled: <...> MMC: SAMSUNG SDHCI: 2, EXYNOS DWMMC: 0 Loading Environment from MMC... *** Warning - bad CRC, using default environment cros-ec communications failure -

Re: [PATCH v3 01/76] moveconfig: Add an option to compare Kconfig against source

2023-02-08 Thread Simon Glass
Hi Tom, On Wed, 8 Feb 2023 at 11:35, Tom Rini wrote: > > On Wed, Feb 08, 2023 at 11:28:22AM -0700, Simon Glass wrote: > > Hi Tom, > > > > On Tue, 7 Feb 2023 at 18:37, Tom Rini wrote: > > > > > > On Wed, Feb 01, 2023 at 01:19:12PM -0700, Simon Glass wrote: > > > > > > > Sometimes the Makefile rul

Re: [PATCH] test: lmb: Rework lib_test_lmb_max_regions test to scale

2023-02-08 Thread Simon Glass
On Wed, 8 Feb 2023 at 11:39, Tom Rini wrote: > > First, this test depends on CONFIG_LMB_USE_MAX_REGIONS, so add that as a > test before building. Second, instead of using a hard-coded value of 8, > which is the default of CONFIG_LMB_USE_MAX_REGIONS previously, use that > directly and update the co

Re: [PATCH] test: lmb: Rework lib_test_lmb_max_regions test to scale

2023-02-08 Thread Tom Rini
On Wed, Feb 08, 2023 at 12:07:00PM -0700, Simon Glass wrote: > On Wed, 8 Feb 2023 at 11:39, Tom Rini wrote: > > > > First, this test depends on CONFIG_LMB_USE_MAX_REGIONS, so add that as a > > test before building. Second, instead of using a hard-coded value of 8, > > which is the default of CONFI

Re: [PATCH] lmb: Bump CONFIG_LMB_MAX_REGIONS

2023-02-08 Thread Michal Suchánek
Hello, On Wed, Feb 08, 2023 at 01:25:50PM -0500, Tom Rini wrote: > On Wed, Feb 08, 2023 at 07:24:25PM +0100, Francesco Dolcini wrote: > > Hello, > > > > On Fri, Jan 27, 2023 at 08:54:55AM -0500, Tom Rini wrote: > > > On Fri, Jan 27, 2023 at 02:00:12PM +0100, Michal Suchanek wrote: > > > > It is r

Re: [PATCH 0/2] odroid: fix boot issues on u2, xu4 and siblings

2023-02-08 Thread Henrik Grimler
I missed CC:ing MMC maintainer Peng Fan (CC:ed here), apologies for this. Best regards, Henrik Grimler On Wed, Feb 08, 2023 at 08:04:19PM +0100, Henrik Grimler wrote: > Hi, > > Patch 1 fixes issue reported in [1], which happens on odroid-u2 and > probably other devices in that family. Re-adding

Re: [PATCH] lmb: Bump CONFIG_LMB_MAX_REGIONS

2023-02-08 Thread Tom Rini
On Wed, Feb 08, 2023 at 08:11:34PM +0100, Michal Suchánek wrote: > Hello, > > On Wed, Feb 08, 2023 at 01:25:50PM -0500, Tom Rini wrote: > > On Wed, Feb 08, 2023 at 07:24:25PM +0100, Francesco Dolcini wrote: > > > Hello, > > > > > > On Fri, Jan 27, 2023 at 08:54:55AM -0500, Tom Rini wrote: > > > >

Re: [PATCH 1/3] Bump LMB_MAX_REGIONS default to 16

2023-02-08 Thread Tom Rini
On Thu, Jan 19, 2023 at 09:38:17AM +0100, Sjoerd Simons wrote: > Since commit 06d514d77c37 ("lmb: consider EFI memory map") the EFI regions > are also pushed into the lmb if EFI_LOADER is enabled (which is by > default on most system). Which can cause the number of entries to go > over the maximum

Re: [PATCH] test: lmb: Rework lib_test_lmb_max_regions test to scale

2023-02-08 Thread Tom Rini
On Wed, Feb 08, 2023 at 01:39:18PM -0500, Tom Rini wrote: > First, this test depends on CONFIG_LMB_USE_MAX_REGIONS, so add that as a > test before building. Second, instead of using a hard-coded value of 8, > which is the default of CONFIG_LMB_USE_MAX_REGIONS previously, use that > directly and up

Re: [PATCH] Revert "lmb: Default to not-LMB_USE_MAX_REGIONS"

2023-02-08 Thread Tom Rini
On Wed, Feb 08, 2023 at 10:19:19AM -0500, Tom Rini wrote: > As explained by Philippe Schenker, I was misinterpreting what happened > in the case where we do not set LMB_USE_MAX_REGIONS and so had > re-introduced the problem I was attempting to more widely resolve. > > This reverts commit 007ae5d1

[PATCH v2 0/2] arm: cpu: Add optional CMOs by VA

2023-02-08 Thread Ying-Chun Liu (PaulLiu)
Exposing set/way cache maintenance to a virtual machine is unsafe, not least because the instructions are not permission-checked but also because they are not broadcast between CPUs. Consequently, KVM traps and emulates such maintenance in the host kernel using by-VA operations and looping over the

[PATCH v2 1/2] arm: cpu: Add optional CMOs by VA

2023-02-08 Thread Ying-Chun Liu (PaulLiu)
From: Marc Zyngier Exposing set/way cache maintenance to a virtual machine is unsafe, not least because the instructions are not permission-checked but also because they are not broadcast between CPUs. Consequently, KVM traps and emulates such maintenance in the host kernel using by-VA operations

[PATCH v2 2/2] arm64: Initialize TLB memory if CMO_BY_VA_ONLY

2023-02-08 Thread Ying-Chun Liu (PaulLiu)
From: Pierre-Clément Tosi Memory used to hold the page tables is allocated from the top of RAM with no prior initialization and could therefore hold invalid data. As invalidate_dcache_all() will be called before the MMU has been initialized and as that function relies indirectly on the page table

Re: [PATCH 0/2] odroid: fix boot issues on u2, xu4 and siblings

2023-02-08 Thread Joost van Zwieten
On Wed, Feb 8, 2023 at 20:04, Henrik Grimler wrote: Hi, Hi Henrik, Thanks for picking this up. Patch 1 fixes issue reported in [1], which happens on odroid-u2 and probably other devices in that family. Re-adding this quirk was discussed already by Jaehoon and Andy in the patch that (re-

Re: [PATCH v2 124/169] Correct SPL use of PHY_CADENCE_TORRENT

2023-02-08 Thread Tom Rini
On Sun, Feb 05, 2023 at 03:40:33PM -0700, Simon Glass wrote: > This converts 1 usage of this option to the non-SPL form, since there is > no SPL_PHY_CADENCE_TORRENT defined in Kconfig > > Signed-off-by: Simon Glass > --- > > (no changes since v1) > > drivers/phy/cadence/Makefile | 2 +- > 1 f

Re: [PATCH v2 068/169] Correct SPL use of DM_RNG

2023-02-08 Thread Tom Rini
On Sun, Feb 05, 2023 at 03:39:37PM -0700, Simon Glass wrote: > This converts 1 usage of this option to the non-SPL form, since there is > no SPL_DM_RNG defined in Kconfig > > Signed-off-by: Simon Glass > --- > > (no changes since v1) > > boot/vbe_request.c | 2 +- > 1 file changed, 1 insertio

Re: [PATCH 2/2] samsung: common: only load CROS_EC if enabled in config

2023-02-08 Thread Simon Glass
On Wed, 8 Feb 2023 at 12:04, Henrik Grimler wrote: > > Otherwise non-ChromeOS samsung devices, like the odroid boards, are > stuck in a bootloop if CONFIG_CROS_EC is not enabled: > > <...> > MMC: SAMSUNG SDHCI: 2, EXYNOS DWMMC: 0 > Loading Environment from MMC... *** Warning - bad CRC,

Re: [PATCH v2 068/169] Correct SPL use of DM_RNG

2023-02-08 Thread Simon Glass
Hi Tom, On Wed, 8 Feb 2023 at 17:40, Tom Rini wrote: > > On Sun, Feb 05, 2023 at 03:39:37PM -0700, Simon Glass wrote: > > > This converts 1 usage of this option to the non-SPL form, since there is > > no SPL_DM_RNG defined in Kconfig > > > > Signed-off-by: Simon Glass > > --- > > > > (no changes

Re: [PATCH v2 091/169] Correct SPL uses of FSL_ISBC_KEY_EXT

2023-02-08 Thread Tom Rini
On Sun, Feb 05, 2023 at 03:40:00PM -0700, Simon Glass wrote: > This converts 9 usages of this option to the non-SPL form, since there is > no SPL_FSL_ISBC_KEY_EXT defined in Kconfig > > Signed-off-by: Simon Glass This is used to avoid including things in SPL that aren't required, in commit 3a58

Re: [PATCH v2 068/169] Correct SPL use of DM_RNG

2023-02-08 Thread Tom Rini
On Wed, Feb 08, 2023 at 06:08:11PM -0700, Simon Glass wrote: > Hi Tom, > > On Wed, 8 Feb 2023 at 17:40, Tom Rini wrote: > > > > On Sun, Feb 05, 2023 at 03:39:37PM -0700, Simon Glass wrote: > > > > > This converts 1 usage of this option to the non-SPL form, since there is > > > no SPL_DM_RNG defin

Re: [PATCH v2 137/169] Correct SPL uses of SEC_FIRMWARE_ARMV8_PSCI

2023-02-08 Thread Tom Rini
On Sun, Feb 05, 2023 at 05:55:04PM -0700, Simon Glass wrote: > This converts 2 usages of this option to the non-SPL form, since there is > no SPL_SEC_FIRMWARE_ARMV8_PSCI defined in Kconfig > > Signed-off-by: Simon Glass This usage avoids adding the fixup for arch_fixup_fdt to SPL where we don't

Re: [PATCH v2 141/169] Correct SPL use of SPI_FLASH_BAR

2023-02-08 Thread Tom Rini
On Sun, Feb 05, 2023 at 05:55:08PM -0700, Simon Glass wrote: > This converts 1 usage of this option to the non-SPL form, since there is > no SPL_SPI_FLASH_BAR defined in Kconfig > > Signed-off-by: Simon Glass This is used to avoid unused code on at least xilinx_zynqmp_virt. -- Tom signature

Re: [PATCH v2 096/169] Correct SPL uses of GMAC_ROCKCHIP

2023-02-08 Thread Tom Rini
On Sun, Feb 05, 2023 at 03:40:05PM -0700, Simon Glass wrote: > This converts 2 usages of this option to the non-SPL form, since there is > no SPL_GMAC_ROCKCHIP defined in Kconfig > > Signed-off-by: Simon Glass This is used to avoid code in SPL/TPL on these platforms. -- Tom signature.asc De

Re: [PATCH v3 1/3] net: ftmac100: change driver name from nds32_mac to ftmac100

2023-02-08 Thread Rick Chen
> From: U-Boot On Behalf Of Sergei Antonov > Sent: Saturday, February 04, 2023 3:09 AM > To: u-boot@lists.denx.de; rfried@gmail.com; joe.hershber...@ni.com > Cc: Sergei Antonov > Subject: [PATCH v3 1/3] net: ftmac100: change driver name from nds32_mac to > ftmac100 > > So it will be named si

Re: [PATCH v2 112/169] Correct SPL uses of NXP_FSPI

2023-02-08 Thread Tom Rini
On Sun, Feb 05, 2023 at 03:40:21PM -0700, Simon Glass wrote: > This converts 2 usages of this option to the non-SPL form, since there is > no SPL_NXP_FSPI defined in Kconfig > > Signed-off-by: Simon Glass This is used to avoid code in SPL. -- Tom signature.asc Description: PGP signature

U-boot not loading NVMe driver on Pi CM4

2023-02-08 Thread Ignatius Rivaldi
Hi all, I'm using U-boot 2022.07 from Yocto Langdale distribution, with the following NVMe related kconfigs manually enabled through menuconfig: CONFIG_NVME CONFIG_NVME_PCI CONFIG_CMD_NVME and logging turned into max The SSD is Kioxia SSD, and it works with Pi 4 bootloader as I can boot Raspber

Re: [PATCH v2 103/169] Correct SPL uses of IMX_RDC

2023-02-08 Thread Tom Rini
On Sun, Feb 05, 2023 at 03:40:12PM -0700, Simon Glass wrote: > This converts 2 usages of this option to the non-SPL form, since there is > no SPL_IMX_RDC defined in Kconfig > > Signed-off-by: Simon Glass This is used to avoid the code in SPL in some cases. -- Tom signature.asc Description:

Re: [PATCH v2 095/169] Correct SPL use of GENERATE_SMBIOS_TABLE

2023-02-08 Thread Tom Rini
On Sun, Feb 05, 2023 at 03:40:04PM -0700, Simon Glass wrote: > This converts 1 usage of this option to the non-SPL form, since there is > no SPL_GENERATE_SMBIOS_TABLE defined in Kconfig > > Signed-off-by: Simon Glass This is used to avoid increasing the size of SPL in some cases. -- Tom sig

Re: [PATCH v3 2/3] net: ftmac100: simplify priv->iobase casting

2023-02-08 Thread Rick Chen
> From: U-Boot On Behalf Of Sergei Antonov > Sent: Saturday, February 04, 2023 3:09 AM > To: u-boot@lists.denx.de; rfried@gmail.com; joe.hershber...@ni.com > Cc: Sergei Antonov > Subject: [PATCH v3 2/3] net: ftmac100: simplify priv->iobase casting > > Replace 'phys_addr_t iobase' with 'struct

Re: [PATCH v3 3/3] net: ftmac100: add mii read and write callbacks

2023-02-08 Thread Rick Chen
> From: U-Boot On Behalf Of Sergei Antonov > Sent: Saturday, February 04, 2023 3:09 AM > To: u-boot@lists.denx.de; rfried@gmail.com; joe.hershber...@ni.com > Cc: Sergei Antonov > Subject: [PATCH v3 3/3] net: ftmac100: add mii read and write callbacks > > Register mii_bus with read and write c

Re: [PATCH] arm: kirkwood: Enable uart0 dm-pre-reloc for Kirkwood boards

2023-02-08 Thread Tony Dinh
Hi Stefan, On Fri, Feb 3, 2023 at 4:11 PM Tony Dinh wrote: > > Hi Pali, > > On Fri, Feb 3, 2023 at 2:05 PM Pali Rohár wrote: > > > > On Thursday 02 February 2023 19:04:45 Pali Rohár wrote: > > > On Wednesday 01 February 2023 13:13:16 Tony Dinh wrote: > > > > Hi all, > > > > > > > > On Wed, Feb 1

Re: [PATCH] arm: kirkwood: Enable uart0 dm-pre-reloc for Kirkwood boards

2023-02-08 Thread Stefan Roese
Hi Tony, On 2/9/23 04:17, Tony Dinh wrote: Hi Stefan, On Fri, Feb 3, 2023 at 4:11 PM Tony Dinh wrote: Hi Pali, On Fri, Feb 3, 2023 at 2:05 PM Pali Rohár wrote: On Thursday 02 February 2023 19:04:45 Pali Rohár wrote: On Wednesday 01 February 2023 13:13:16 Tony Dinh wrote: Hi all, On We