Re: [PATCH 1/1] cmd/sbi: format KVM version

2022-08-29 Thread Leo Liang
On Sun, Aug 14, 2022 at 09:57:14PM +0200, Heinrich Schuchardt wrote: > Format the KVM implementation number in a human readable form. > > With the patch output of the sbi command for Linux 5.19.1 looks like: > > => sbi > SBI 0.3 > KVM 5.19.1 > Machine: > Vendor ID 0 >

Re: [PATCH] drivers: mmc: Reset watchdog when accessing mmc device

2022-08-29 Thread qianfan
在 2022/7/26 16:31, Jaehoon Chung 写道: On 7/13/22 16:32, qianfangui...@163.com wrote: From: qianfan Zhao watchdog will reset when 'mmc read' or 'ext4load' a large file from mmc device. Reset watchdog when accessing mmc device. I don't know why this patch is need. Hi: maybe your's board

Re: [PATCH 1/2] dt-bindings: clock: sifive: sync FU740 PRCI clock binding header

2022-08-29 Thread Leo Liang
Hi Icenowy, On Thu, Aug 25, 2022 at 04:11:18PM +0800, Icenowy Zheng wrote: > This commit sychornizes the header file for FU740 PRCI clocks with the > one from Linux 5.19. > > The constant values are the same, but all constant names are changed > (most are just prefixed with FU740_). > >

Re: [PATCH v4 1/2] bootm: fix typo imape_comp -> image_comp

2022-08-29 Thread Daniel Golle
On Mon, Aug 29, 2022 at 08:30:14PM -0600, Simon Glass wrote: > On Fri, 26 Aug 2022 at 21:15, Daniel Golle wrote: > > > > Chage variable name 'imape_comp' to the supposedly intended name > > Change Can you fix that on-the-fly while comitting or should I repost with that typo in the patch

Re: [RFC PATCH 7/8] watchdog: Further cleanup

2022-08-29 Thread Simon Glass
On Mon, 29 Aug 2022 at 00:23, Stefan Roese wrote: > > Remove some now unused macros and #ifdef's. > > Signed-off-by: Stefan Roese > --- > include/watchdog.h | 6 ++ > 1 file changed, 2 insertions(+), 4 deletions(-) Reviewed-by: Simon Glass

Re: [RFC PATCH 6/8] watchdog: Remove WATCHDOG_RESET macro

2022-08-29 Thread Simon Glass
On Mon, 29 Aug 2022 at 00:23, Stefan Roese wrote: > > Now that we've globally replaced all WATCHDOG_RESET occurances, let's > remove the ugly macro itself in the header. > > Signed-off-by: Stefan Roese > --- > include/watchdog.h | 36 > 1 file changed, 36

Re: [RFC PATCH 4/8] cyclic: Use schedule() instead of WATCHDOG_RESET()

2022-08-29 Thread Simon Glass
On Mon, 29 Aug 2022 at 00:23, Stefan Roese wrote: > > Globally replace all occurances of WATCHDOG_RESET() with schedule(), > which handles the HW_WATCHDOG functionality and the cyclic > infrastructure. > > Signed-off-by: Stefan Roese > --- > arch/arm/mach-at91/phy.c | 2 +-

Re: [RFC PATCH 3/8] cyclic: Introduce schedule() function

2022-08-29 Thread Simon Glass
Hi Stefan, On Mon, 29 Aug 2022 at 00:23, Stefan Roese wrote: > > This patch introduces a schedule() function, which shall be used instead > of the old WATCHDOG_RESET. Follow-up patches will make sure, that this > new function is used. > > Signed-off-by: Stefan Roese > --- > common/cyclic.c |

Re: [RFC PATCH 1/8] cmd/cyclic: Use div64 macros for division and remainder

2022-08-29 Thread Simon Glass
On Mon, 29 Aug 2022 at 00:23, Stefan Roese wrote: > > Use the do_div etc for divisions to fix the compile breakage seen on > edison: > > cmd/cyclic.c:70: undefined reference to `__udivmoddi4' > > and for e.g. MIPS netgear_cg3100d_ram: > > cmd/cyclic.c:(.text.do_cyclic_list+0x180): undefined

Re: [PATCH 3/4] arm: dts: chameleonv3: Override chameleonv3 bitstream names

2022-08-29 Thread Simon Glass
On Fri, 26 Aug 2022 at 01:54, Paweł Anikiel wrote: > > Set the bitstream name per Chameleon variant. This allows the same > boot filesystem with all bitstream variants to be used on different > boards. > > Signed-off-by: Paweł Anikiel > --- >

Re: [PATCH v2 0/9] Add DM support for atmel NAND driver

2022-08-29 Thread Simon Glass
Hi, On Mon, 29 Aug 2022 at 00:41, Michael Nazzareno Trimarchi wrote: > > Hi > > On Mon, Aug 29, 2022 at 8:19 AM Balamanikandan Gunasundar > wrote: > > > > Change include: > > > > - Adapt GPIO descriptor apis for U-Boot. Use > > gpio_request_by_name_nodev, dm_gpio_get_value etc. > > - Use

Re: [PATCH v4 1/2] bootm: fix typo imape_comp -> image_comp

2022-08-29 Thread Simon Glass
On Fri, 26 Aug 2022 at 21:15, Daniel Golle wrote: > > Chage variable name 'imape_comp' to the supposedly intended name Change > 'image_comp'. > > Signed-off-by: Daniel Golle > --- > v4: add missing name replacement > > boot/bootm.c | 8 > 1 file changed, 4 insertions(+), 4

Re: [PATCH v4 2/2] image-fit: don't set compression if it can't be read

2022-08-29 Thread Simon Glass
On Fri, 26 Aug 2022 at 21:18, Daniel Golle wrote: > > fit_image_get_comp() should not set value -1 in case it can't read > the compression node. Instead, leave the value untouched in that case > as it can be absent and a default value previously defined by the > caller of fit_image_get_comp()

Re: [PATCH] arm: mvebu: Espressobin: When emmc is not present disable it also in OF_LIVE

2022-08-29 Thread Simon Glass
Hi Pali, On Sat, 27 Aug 2022 at 06:01, Pali Rohár wrote: > This patch is missing a motivation. Please always add a commit message. > Signed-off-by: Pali Rohár > --- > board/Marvell/mvebu_armada-37xx/board.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git

Re: [RFC PATCH v2] clk: fix clk_get_rate() always return ulong

2022-08-29 Thread Simon Glass
Hi Julien, On Mon, 29 Aug 2022 at 06:06, Julien Masson wrote: > > According to clk_ops struct definition, the callback `get_rate()` > return current clock rate value as ulong. > `clk_get_rate()` should handle the clock rate returned as ulong also. > > Otherwise we may have invalid/truncated

Re: [PATCH 3/3] github: Update PR template for new "Patches" content

2022-08-29 Thread Simon Glass
On Mon, 29 Aug 2022 at 11:00, Tom Rini wrote: > > The old "Patches" wiki page is not available anymore. Now that the > content has been integrated with the submitting_patches document, > reference that instead. > > Signed-off-by: Tom Rini > --- > .github/pull_request_template.md | 2 +- > 1

Re: [PATCH v2] pci: Do not enable PCIe GEN3 link retrain workaround by default

2022-08-29 Thread Simon Glass
On Sat, 27 Aug 2022 at 06:30, Pali Rohár wrote: > > PCIe GEN3 link retrain workaround, specially designed for system with PCIe > ASMedia ASM2824 Switch and other Endpoint devices, unconditionally increase > size of all SPL binaries with PCIe support, even those which do not require > it. > >

Re: [PATCH] bootm: Fix upper bound of FDT overlap checks

2022-08-29 Thread Simon Glass
On Sat, 27 Aug 2022 at 06:48, Pali Rohár wrote: > > FTD blob can be put immediately after the OS image. > So use strict inequality for start address check. > > Fixes: fbde7589ce30 ("common: bootm: add checks to verify if ramdisk / > fdtimage overlaps OS image") > Signed-off-by: Pali Rohár > ---

Re: Question about uboot initialisation

2022-08-29 Thread Simon Glass
Hi Aubin, On Mon, 29 Aug 2022 at 01:40, momo aubin wrote: > > Hi Simon, > I got what is the 'dm tree' which is a driver model. This command could be > done only in uboot stage. but i got the situation in which the initialisation > of u-boot has not finished yet as showing in the following

Re: [PATCH 1/3] doc: sending_patches.rst: Incorporate the old "Patches" wiki content

2022-08-29 Thread Simon Glass
On Mon, 29 Aug 2022 at 10:59, Tom Rini wrote: > > Import as-is much of the old "Patches" wiki page to the current > sending_patches.rst file. This means we need to move patman to being > included in the higher level ToC and add a reference for "Custodians" in > the process document. A very

Re: [PATCH] disk: part: remove dependency to ubifs for spl

2022-08-29 Thread Simon Glass
Hi Stefan, On Mon, 29 Aug 2022 at 09:53, Stefan Herbrechtsmeier wrote: > > Hi Heinrich, > > Am 29.08.2022 um 17:01 schrieb Heinrich Schuchardt: > > On 8/8/22 16:45, Stefan Herbrechtsmeier wrote: > >> From: Stefan Herbrechtsmeier > >> > >> The spl doesn't support ubifs and thereby doesn't

Re: [PATCH 4/4] arm: dts: chameleonv3: Add 270-2 variant

2022-08-29 Thread Simon Glass
Hi Paweł, On Mon, 29 Aug 2022 at 02:23, Paweł Anikiel wrote: > > On Sat, Aug 27, 2022 at 2:22 AM Simon Glass wrote: > > > > Hi Paweł, > > > > On Fri, 26 Aug 2022 at 01:54, Paweł Anikiel wrote: > > > > > > Add devicetree for chameleonv3 with the 270-2I2-D11E variant of the > > > Mercury+ AA1

Re: [PATCH 2/3] efi: ECPT add EBBRv2.0 conformance profile

2022-08-29 Thread Heinrich Schuchardt
On 1/2/22 00:56, Heinrich Schuchardt wrote: On 12/31/21 15:36, Jose Marinho wrote: Hi Heinrich, -Original Message- From: Heinrich Schuchardt Sent: 23 December 2021 18:32 To: Jose Marinho ; u-boot@lists.denx.de Cc: ilias.apalodi...@linaro.org; sughosh.g...@linaro.org;

Re: Looking for BDI2000 firmware for PowerPC 6xx/7xx/74xx.

2022-08-29 Thread Steven J. Hill
Just wanted to give a great big "Thank You!" to all of you who have shared your BDI firmware files. -Steve OpenPGP_signature Description: OpenPGP digital signature

Re: mvebu - switch to orion-timer

2022-08-29 Thread Tony Dinh
Hi Stefan, On Mon, Aug 29, 2022 at 5:50 AM Pali Rohár wrote: > > On Monday 29 August 2022 14:07:29 Stefan Roese wrote: > > Hi Michael, Pali, Tony & all, > > > > On 24.08.22 09:35, Michael Walle wrote: > > > Hi, > > > > > > > On 24.08.22 00:33, Pali Rohár wrote: > > > > > Hello Stefan! Now when

[PATCH 1/2] board: verdin-imx8mm: add call to ft_common_board_setup

2022-08-29 Thread Philippe Schenker
From: Philippe Schenker With this call the following attributes get set to the device-tree and are then accessible from linux in /proc/device-tree/ serial-number: The serial number that is stored in config-block toradex,board-rev: The version of the module (e.g. V1.1A) toradex,product-id: The

[PATCH 2/2] board: verdin-imx8mp: add call to ft_common_board_setup

2022-08-29 Thread Philippe Schenker
From: Philippe Schenker With this call the following attributes get set to the device-tree and are then accessible from linux in /proc/device-tree/ serial-number: The serial number that is stored in config-block toradex,board-rev: The version of the module (e.g. V1.1A) toradex,product-id: The

[PATCH v2 4/4] microblaze: add arch_print_bdinfo() implementation

2022-08-29 Thread Ovidiu Panait
Allow bdinfo command to print icache/dcache information: U-Boot-mONStR> bdinfo boot_params = 0x DRAM bank = 0x -> start= 0x0400 -> size = 0x0400 flashstart = 0x flashsize = 0x flashoffset = 0x baudrate= 9600 bps relocaddr =

[PATCH v2 3/4] cmd: bdinfo: introduce bdinfo_print_size() helper

2022-08-29 Thread Ovidiu Panait
Add bdinfo_print_size() helper to display size variables (such as cache sizes) in bdinfo format. The size is printed as "xxx Bytes", "xxx KiB", "xxx MiB", "xxx GiB", etc as needed; Reviewed-by: Simon Glass Signed-off-by: Ovidiu Panait --- Changes in v2: Added "Reviewed-by" tag from Simon.

[PATCH v2 2/4] cpu: microblaze: add error handling in microblaze_cpu_get_desc()

2022-08-29 Thread Ovidiu Panait
Check snprintf() return value for errors. Make microblaze_cpu_get_desc() directly return snprintf() error code if ret < 0. Otherwise, if the return value is greater than or equal to size, the resulting string is truncated, so return -ENOSPC. Fixes: 816226d27e ("cpu: add CPU driver for

[PATCH v2 1/4] microblaze: drop CONFIG_SYS_INIT_RAM_ADDR and CONFIG_SYS_INIT_RAM_SIZE

2022-08-29 Thread Ovidiu Panait
These macros are not used anymore in microblaze code since commit f113d7d303467 ("Convert CONFIG_SPL_STACK to Kconfig"), so remove them. Fixes: f113d7d303467 ("Convert CONFIG_SPL_STACK to Kconfig") Signed-off-by: Ovidiu Panait --- Changes in v2: Improved commit message, added "Fixes" tag.

[PATCH 3/3] github: Update PR template for new "Patches" content

2022-08-29 Thread Tom Rini
The old "Patches" wiki page is not available anymore. Now that the content has been integrated with the submitting_patches document, reference that instead. Signed-off-by: Tom Rini --- .github/pull_request_template.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 2/3] doc: process, sending_patches: Update and correct the old "Patches" content

2022-08-29 Thread Tom Rini
- Use gender-neutral language to refer to the user, consistently. - Reference the checkpatch document. - Move the section on commit message tags to the process document and reference this in sending_patches.rst. - Reword the custodian workflow process section to refer to this new section,

[PATCH 1/3] doc: sending_patches.rst: Incorporate the old "Patches" wiki content

2022-08-29 Thread Tom Rini
Import as-is much of the old "Patches" wiki page to the current sending_patches.rst file. This means we need to move patman to being included in the higher level ToC and add a reference for "Custodians" in the process document. A very minimal amount of content changing and rewording is done here

Re: [PATCH] doc: cmd: loady: Document new configuration

2022-08-29 Thread Pali Rohár
On Monday 29 August 2022 17:43:43 Heinrich Schuchardt wrote: > On 8/29/22 17:36, Pali Rohár wrote: > > Signed-off-by: Pali Rohár > > --- > > doc/usage/cmd/loady.rst | 7 +++ > > 1 file changed, 7 insertions(+) > > > > diff --git a/doc/usage/cmd/loady.rst b/doc/usage/cmd/loady.rst > >

[PATCH 1/1] The riscv spec has breaking change from 2.2 to 20191213. Both ZICSR and ZIFENCEI are separated extension since 20191213. Gcc bump up the riscv spec to 20191213 since 12.x. So add below 4 b

2022-08-29 Thread Pan Li
CONFIG_RISCV_ISA_F for single float point, default no. CONFIG_RISCV_ISA_D for double float point, default no. CONFIG_RISCV_ISA_ZICSR for control and status register, default no. CONFIG_RISCV_ISA_ZIFENCEI for instruction-fetch fence, default no. Example when build with gcc 12.x as below. make

[PATCH 0/1] Add 4 optional build options for riscv arch

2022-08-29 Thread Pan Li
Pan Li (1): The riscv spec has breaking change from 2.2 to 20191213. Both ZICSR and ZIFENCEI are separated extension since 20191213. Gcc bump up the riscv spec to 20191213 since 12.x. So add below 4 build option for compatibility:: arch/riscv/Kconfig | 28

Re: [PATCH] disk: part: remove dependency to ubifs for spl

2022-08-29 Thread Stefan Herbrechtsmeier
Hi Heinrich, Am 29.08.2022 um 17:01 schrieb Heinrich Schuchardt: On 8/8/22 16:45, Stefan Herbrechtsmeier wrote: From: Stefan Herbrechtsmeier The spl doesn't support ubifs and thereby doesn't provide the ubifs_is_mounted function. Remove the dependency to ubifs for the spl. Signed-off-by:

Re: [PATCH] doc: cmd: loady: Document new configuration

2022-08-29 Thread Heinrich Schuchardt
On 8/29/22 17:36, Pali Rohár wrote: Signed-off-by: Pali Rohár --- doc/usage/cmd/loady.rst | 7 +++ 1 file changed, 7 insertions(+) diff --git a/doc/usage/cmd/loady.rst b/doc/usage/cmd/loady.rst index 2819cc72aef4..718af6e128d5 100644 --- a/doc/usage/cmd/loady.rst +++

[PATCH] doc: cmd: loady: Document new configuration

2022-08-29 Thread Pali Rohár
Signed-off-by: Pali Rohár --- doc/usage/cmd/loady.rst | 7 +++ 1 file changed, 7 insertions(+) diff --git a/doc/usage/cmd/loady.rst b/doc/usage/cmd/loady.rst index 2819cc72aef4..718af6e128d5 100644 --- a/doc/usage/cmd/loady.rst +++ b/doc/usage/cmd/loady.rst @@ -61,6 +61,13 @@ Configuration

Re: [PATCH] disk: part: remove dependency to ubifs for spl

2022-08-29 Thread Heinrich Schuchardt
On 8/8/22 16:45, Stefan Herbrechtsmeier wrote: From: Stefan Herbrechtsmeier The spl doesn't support ubifs and thereby doesn't provide the ubifs_is_mounted function. Remove the dependency to ubifs for the spl. Signed-off-by: Stefan Herbrechtsmeier --- disk/part.c | 2 +- 1 file changed,

Re: [PATCH v2] xyz-modem: Allow to configure initial timeout for loadx and loady

2022-08-29 Thread Heinrich Schuchardt
On 8/27/22 13:48, Pali Rohár wrote: Now when loadx and loady commands could be aborted / cancelled by CTRL+C, allow to configure timeout for initial x/y-modem packet via env variable $loadxy_timeout and by default use value from new compile-time config option CONFIG_CMD_LOADXY_TIMEOUT. Value is

Re: [PATCH 11/15] sandbox: scsi: Move structs to header file

2022-08-29 Thread Heinrich Schuchardt
On 8/27/22 17:15, Simon Glass wrote: Move these to the SCSI header file so we can access them from multiple emulators. Signed-off-by: Simon Glass --- drivers/usb/emul/sandbox_flash.c | 26 -- include/scsi.h | 26 ++ 2 files

Re: [PATCH 03/15] scsi: Move cmd_phase enum to the header

2022-08-29 Thread Heinrich Schuchardt
On 8/27/22 17:15, Simon Glass wrote: This can be used by common files, so move it to the SCSI header and rename it. Signed-off-by: Simon Glass --- drivers/usb/emul/sandbox_flash.c | 24 +--- include/scsi.h | 6 ++ 2 files changed, 15

Re: [PATCH 01/15] scsi: Tidy up comments for struct scsi_cmd

2022-08-29 Thread Heinrich Schuchardt
On 8/27/22 17:14, Simon Glass wrote: These comments are bit of a mess. Tidy them up to match the correct coding style. Signed-off-by: Simon Glass It would be preferable to use Sphinx style comments as you already did in include/asm-generic/global_data.h. Best regards Heinrich ---

[PATCH 4/4] pylibfdt: fix with Python 3.10

2022-08-29 Thread Simon Glass
From: Ross Burton Since Python 2.5 the argument parsing functions when parsing expressions such as s# (string plus length) expect the length to be an int or a ssize_t, depending on whether PY_SSIZE_T_CLEAN is defined or not. Python 3.8 deprecated the use of int, and with Python 3.10 this symbol

[PATCH 2/4] Makefile: Switch over to the Python-based CONFIG checker

2022-08-29 Thread Simon Glass
Drop the old shell scripts and use the Python script instead. Signed-off-by: Simon Glass --- Makefile | 4 +-- scripts/build-whitelist.sh | 45 --- scripts/check-config.sh| 63 -- 3 files changed, 2

[PATCH 3/4] CI: Add kconfig checker tests to gitlab/azure

2022-08-29 Thread Simon Glass
Run this script along with the others. Signed-off-by: Simon Glass --- .azure-pipelines.yml | 1 + .gitlab-ci.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml index 0fa92479b4c..7bb70ea9eba 100644 --- a/.azure-pipelines.yml +++

[PATCH 1/4] Makefile: Add a Python-based CONFIG checker

2022-08-29 Thread Simon Glass
The existing shell script is a bit ugly. It was picked up by Chromium OS and then rewritten in Python, adding unit tests. Bring this new version into U-Boot. Signed-off-by: Simon Glass --- scripts/kconfig_check.py | 338 ++ scripts/test_kconfig_check.py |

[PATCH] arm: mvebu: turris_mox: Add support for distroboot $fdt_addr

2022-08-29 Thread Pali Rohár
$fdt_addr is mandatory for systems which provides DTB in HW (e.g. ROM) and wishes to pass that DTB to Linux. Turris Mox contains DTB binary in SPI NOR memory at "dtb" partition which starts at offset 0x7f and is 0x1 bytes long. Armada 3700 CPU does not allow mapping SPI NOR memory into

Re: [PATCH 5/5] brppt1: Update environment to support new boot concept

2022-08-29 Thread Wolfgang Wallner
From: Bernhard Messerklinger Sent: Thursday, August 25, 2022 8:54 Subject: [PATCH 5/5] brppt1: Update environment to support new boot concept   > * Drop legacy /boot/PPTImage.md5 check > * Update device tree naming > * Update t30args#0 root cmd line property to support latest kernel >   versions

Re: [PATCH 4/5] include: configs: brppt1: Fix commit 0ea4fc4dcf90

2022-08-29 Thread Wolfgang Wallner
From: Bernhard Messerklinger Sent: Thursday, August 25, 2022 8:54 Subject: [PATCH 4/5] include: configs: brppt1: Fix commit 0ea4fc4dcf90   > Commit 0ea4fc4dcf90 ("board/BuR: invalidate ${dtbaddr} before cfgscr") > destroys the boot targets b_t30lgcy#0 and b_t30lgcy#1. The reason behind > this

Re: [PATCH 3/5] brppt1: Cleanup device tree

2022-08-29 Thread Wolfgang Wallner
From: Bernhard Messerklinger Sent: Thursday, August 25, 2022 8:54 Subject: [PATCH 3/5] brppt1: Cleanup device tree   > * Remove unnecessary device tree nodes which are not needed in >   U-Boot directly. > * Move all U-Boot specific device tree properties to u-boot dtsi. > > Signed-off-by:

Re: [PATCH 2/5] brppt1: Fix SPL boot stage

2022-08-29 Thread Wolfgang Wallner
From: Bernhard Messerklinger Sent: Thursday, August 25, 2022 8:54 Subject: [PATCH 2/5] brppt1: Fix SPL boot stage   > Commit 6337d53fdf45 ("arm: dts: sync am33xx with Linux 5.9-rc7") syncs > the am335x device tree with the latest linux kernel am335x device tree. > That causes problems with

Re: [PATCH 1/5] brppt1: Remove unused board variants

2022-08-29 Thread Wolfgang Wallner
From: Bernhard Messerklinger Sent: Thursday, August 25, 2022 8:54 Subject: [PATCH 1/5] brppt1: Remove unused board variants   > The SPI and NAND board variants never went into production. > Drop those board variants. > > Signed-off-by: Bernhard Messerklinger > > --- > >  

Re: mvebu - switch to orion-timer

2022-08-29 Thread Pali Rohár
On Monday 29 August 2022 14:07:29 Stefan Roese wrote: > Hi Michael, Pali, Tony & all, > > On 24.08.22 09:35, Michael Walle wrote: > > Hi, > > > > > On 24.08.22 00:33, Pali Rohár wrote: > > > > Hello Stefan! Now when U-Boot contains new orion-timer.c driver, which > > > > Michael wrote, I think

Re: [PATCH v2] tools: mkimage: fix build with recent LibreSSL

2022-08-29 Thread Jonathan Gray
On Mon, Aug 29, 2022 at 01:34:01PM +0200, Mark Kettenis wrote: > LibreSSL 3.5.0 and later (also shipped as part of OpenBSD 7.1 and > and later) have an opaque RSA object and do provide the > RSA_get0_* functions that OpenSSL provides. > > Fixes: 2ecc354b8e46 ("tools: mkimage: fix build with

Re: mvebu - switch to orion-timer

2022-08-29 Thread Stefan Roese
Hi Michael, Pali, Tony & all, On 24.08.22 09:35, Michael Walle wrote: Hi, On 24.08.22 00:33, Pali Rohár wrote: Hello Stefan! Now when U-Boot contains new orion-timer.c driver, which Michael wrote, I think that it mvebu platform should switch to use it. Because build process for armada boards

[RFC PATCH v2] clk: fix clk_get_rate() always return ulong

2022-08-29 Thread Julien Masson
According to clk_ops struct definition, the callback `get_rate()` return current clock rate value as ulong. `clk_get_rate()` should handle the clock rate returned as ulong also. Otherwise we may have invalid/truncated clock rate value returned by `clk_get_rate()`. `log_ret` has also been removed

Re: [RFC PATCH] clk: fix clk_get_rate() always return ulong

2022-08-29 Thread Julien Masson
On Mon 29 Aug 2022 at 10:38, Simon Glass wrote: > Hi, > > On Fri, 26 Aug 2022 at 08:00, Sean Anderson wrote: >> >> On 8/26/22 6:31 AM, Julien Masson wrote: >>> According to clk_ops struct definition, the callback `get_rate()` >>> return current clock rate value as ulong. >>> `clk_get_rate()`

[PATCH 1/1] nvme: Fix multipage prp-list

2022-08-29 Thread Alexander Sowarka
The nvme driver falsely assumed that the last entry on a page of the prp-list always points to the next page of the prp-list. This potentially can lead to the illegal creation of pages on the prp-list with only a single entry. This change now ensures that splitting the prp-list into multiple

[PATCH 0/1]

2022-08-29 Thread Alexander Sowarka
I was trying to read files from a Samsung MZ-VLB1T0B NVME device, that was formatted with an ext4 filesystem. But I observed some memory corruptions for the loaded file in u-boot. Closer investigation revealed that the u-boot nvme driver can't handle large IO-operations that are not aligned with

Re: [PATCH v2 18/18] virtio: pci: Make use of dm_pci_map_bar()

2022-08-29 Thread Felix Yan
On 8/28/22 19:49, Xiang W wrote: Please try my patch and let me know the test results diff --git a/drivers/virtio/virtio_pci_modern.c b/drivers/virtio/virtio_pci_modern.c index 880a12cc28..cfde4007f5 100644 --- a/drivers/virtio/virtio_pci_modern.c +++ b/drivers/virtio/virtio_pci_modern.c @@

Looking for BDI2000 firmware for PowerPC 6xx/7xx/74xx.

2022-08-29 Thread Steven J. Hill
Like the subject line says. I am desperately trying to locate BDI2000 firmware for PowerPC 6xx/7xx/74xx with filenames that are of the form: b20copgd.1xx b20copfw.1xx If anyone has firmware files they are willing to share, please please let me know. Thanks. -Steve OpenPGP_signature

Re: [PATCH] tools: mkimage: fix build with recent LibreSSL

2022-08-29 Thread Mark Kettenis
> Date: Mon, 29 Aug 2022 00:37:55 +1000 > From: Jonathan Gray > > On Sat, Aug 27, 2022 at 07:23:44PM +0200, Mark Kettenis wrote: > > Recent versions of LibreSSL, such as those shipped as part of > > OpenBSD 7.1 and later have an opaque RSA object and do provide the > > RSA_get0_* functions that

[PATCH v2] tools: mkimage: fix build with recent LibreSSL

2022-08-29 Thread Mark Kettenis
LibreSSL 3.5.0 and later (also shipped as part of OpenBSD 7.1 and and later) have an opaque RSA object and do provide the RSA_get0_* functions that OpenSSL provides. Fixes: 2ecc354b8e46 ("tools: mkimage: fix build with LibreSSL") Signed-off-by: Mark Kettenis --- ChangeLog: v2: - Tweak version

Re: [RFC PATCH 5/8] watchdog: Get rid of ASSEMBLY hacks

2022-08-29 Thread Stefan Roese
On 29.08.22 09:50, Rasmus Villemoes wrote: On 29/08/2022 08.23, Stefan Roese wrote: Only one occurance of WATCHDOG_RESET is left in one assembler file. This patch changes this occurance to a direct call to watchdog_reset Well... and then removes all the ASSEMBLY ifdef'ery in watchdog.h, as

Re: [PATCH 4/4] arm: dts: chameleonv3: Add 270-2 variant

2022-08-29 Thread Paweł Anikiel
On Sat, Aug 27, 2022 at 2:22 AM Simon Glass wrote: > > Hi Paweł, > > On Fri, 26 Aug 2022 at 01:54, Paweł Anikiel wrote: > > > > Add devicetree for chameleonv3 with the 270-2I2-D11E variant of the > > Mercury+ AA1 module > > > > Signed-off-by: Paweł Anikiel > > --- > > arch/arm/dts/Makefile

Re: [RFC PATCH 2/8] watchdog: Integrate watchdog triggering into the cyclic framework

2022-08-29 Thread Stefan Roese
On 29.08.22 09:38, Rasmus Villemoes wrote: On 29/08/2022 08.23, Stefan Roese wrote: This patch integrates the watchdog triggering into the recently added cyclic infrastructure. Each watchdog device that shall be triggered registers it's own cyclic function. This way, multiple watchdog devices

Re: [PATCH 2/3] examples: hello_world: Drop inclusion of common header

2022-08-29 Thread Wolfgang Denk
Dear Paul, In message <20220505153242.1598807-3-paul.bar...@sancloud.com> you wrote: > The "common.h" header is not covered by the licensing exception for > standalone applications. Let's drop inclusion of this header from the > hello_world example to prove that a standalone app can be built

Re: [PATCH] Makefile: Use relative paths for debugging symbols.

2022-08-29 Thread Rasmus Villemoes
On 29/08/2022 09.15, Rasmus Villemoes wrote: > I'm inclined to say that is a bug in gcc. I'll open a bug and see what > they say. And it turns out this is already reported, with the same suggested resolution as I was thinking of, namely extending the ASM_MAP definition:

Re: [RFC PATCH 5/8] watchdog: Get rid of ASSEMBLY hacks

2022-08-29 Thread Rasmus Villemoes
On 29/08/2022 08.23, Stefan Roese wrote: > Only one occurance of WATCHDOG_RESET is left in one assembler file. > This patch changes this occurance to a direct call to watchdog_reset Well... > and then removes all the ASSEMBLY ifdef'ery in watchdog.h, as it's not > needed any more to clean this

Re: Question about uboot initialisation

2022-08-29 Thread momo aubin
Hi Simon, I got what is the 'dm tree' which is a driver model. This command could be done only in uboot stage. but i got the situation in which the initialisation of u-boot has not finished yet as showing in the following picture. [image: image.png] .i would like to know what is wrong in the

Re: [RFC PATCH 2/8] watchdog: Integrate watchdog triggering into the cyclic framework

2022-08-29 Thread Rasmus Villemoes
On 29/08/2022 08.23, Stefan Roese wrote: > This patch integrates the watchdog triggering into the recently added > cyclic infrastructure. Each watchdog device that shall be triggered > registers it's own cyclic function. This way, multiple watchdog devices > are still supported, each via a cyclic

Re: [PATCH] Makefile: Use relative paths for debugging symbols.

2022-08-29 Thread Rasmus Villemoes
On 28/08/2022 23.46, Vagrant Cascadian wrote: > On 2022-08-28, Vagrant Cascadian wrote: >> On 2022-08-28, Rasmus Villemoes wrote: >>> On 26/08/2022 22.59, Tom Rini wrote: On Thu, Aug 18, 2022 at 10:31:34AM -0700, Vagrant Cascadian wrote: > From: Vagrant Cascadian > > The

Re: [PATCH 1/1] usb: request only 8 bytes for USB_SPEED_FULL bMaxPacketSize0 discovery

2022-08-29 Thread Mark Kettenis
> From: Janne Grunau > Date: Mon, 29 Aug 2022 08:31:27 +0200 > > Fixes probing of various keyboards with DWC3 as integrated into Apple > silicon SoCs. The problem appears to be requesting more data than the > devices's bMaxPacketSize0 of 8. Older Logitech unifying receivers > (bcdDevice 12.03 or

Re: [PATCH v2 0/9] Add DM support for atmel NAND driver

2022-08-29 Thread Michael Nazzareno Trimarchi
Hi On Mon, Aug 29, 2022 at 8:19 AM Balamanikandan Gunasundar wrote: > > Change include: > > - Adapt GPIO descriptor apis for U-Boot. Use > gpio_request_by_name_nodev, dm_gpio_get_value etc. > - Use U_BOOT_DRIVER instead of platform_driver. > - Replace struct platform_device with struct udevice

[PATCH v2] tee: optee: rework TA bus scanning code

2022-08-29 Thread Ilias Apalodimas
Late versions of OP-TEE support a pseudo bus. TAs that behave as hardware blocks (e.g TPM, RNG etc) present themselves on a bus which we can scan. Unfortunately U-Boot doesn't support that yet. It's worth noting that we already have a workaround for RNG. The details are in commit 70812bb83da6

[PATCH 1/1] usb: request only 8 bytes for USB_SPEED_FULL bMaxPacketSize0 discovery

2022-08-29 Thread Janne Grunau
Fixes probing of various keyboards with DWC3 as integrated into Apple silicon SoCs. The problem appears to be requesting more data than the devices's bMaxPacketSize0 of 8. Older Logitech unifying receivers (bcdDevice 12.03 or 12.10) are for eaxample affected. Signed-off-by: Janne Grunau

Re: [PATCH] nvmem: u-boot-env: fix crc32 casting type

2022-08-29 Thread Ahmad Fatoum
Hello Rafał, On 18.08.22 06:38, Rafał Miłecki wrote: > From: Rafał Miłecki > > This fixes: > drivers/nvmem/u-boot-env.c:141:17: sparse: sparse: cast to restricted __le32 > > Reported-by: kernel test robot > Fixes: f955dc1445069 ("nvmem: add driver handling U-Boot environment > variables") >

[RFC PATCH 4/8] cyclic: Use schedule() instead of WATCHDOG_RESET()

2022-08-29 Thread Stefan Roese
Globally replace all occurances of WATCHDOG_RESET() with schedule(), which handles the HW_WATCHDOG functionality and the cyclic infrastructure. Signed-off-by: Stefan Roese --- arch/arm/mach-at91/phy.c | 2 +- arch/arm/mach-imx/i2c-mxv7.c | 2 +-

[RFC PATCH 7/8] watchdog: Further cleanup

2022-08-29 Thread Stefan Roese
Remove some now unused macros and #ifdef's. Signed-off-by: Stefan Roese --- include/watchdog.h | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/include/watchdog.h b/include/watchdog.h index 91506d3327a8..ac5f11e376fa 100644 --- a/include/watchdog.h +++

[RFC PATCH 8/8] WIP: .azure-pipelines.yml: Remove evb-ast2600

2022-08-29 Thread Stefan Roese
The evb-ast2600 target always runs into an timeout error when run via Azure CI. For test purpose only, this patch removes this CI build target so that the world build can be run. Joel, Chia-Wei, could you perhaps take a look at this and help to fix the problems that I'm seeing with this build

[RFC PATCH 5/8] watchdog: Get rid of ASSEMBLY hacks

2022-08-29 Thread Stefan Roese
Only one occurance of WATCHDOG_RESET is left in one assembler file. This patch changes this occurance to a direct call to watchdog_reset and then removes all the ASSEMBLY ifdef'ery in watchdog.h, as it's not needed any more to clean this mess a bit up. Signed-off-by: Stefan Roese ---

[RFC PATCH 6/8] watchdog: Remove WATCHDOG_RESET macro

2022-08-29 Thread Stefan Roese
Now that we've globally replaced all WATCHDOG_RESET occurances, let's remove the ugly macro itself in the header. Signed-off-by: Stefan Roese --- include/watchdog.h | 36 1 file changed, 36 deletions(-) diff --git a/include/watchdog.h b/include/watchdog.h

[RFC PATCH 3/8] cyclic: Introduce schedule() function

2022-08-29 Thread Stefan Roese
This patch introduces a schedule() function, which shall be used instead of the old WATCHDOG_RESET. Follow-up patches will make sure, that this new function is used. Signed-off-by: Stefan Roese --- common/cyclic.c | 11 +++ include/cyclic.h | 5 + 2 files changed, 16 insertions(+)

[RFC PATCH 2/8] watchdog: Integrate watchdog triggering into the cyclic framework

2022-08-29 Thread Stefan Roese
This patch integrates the watchdog triggering into the recently added cyclic infrastructure. Each watchdog device that shall be triggered registers it's own cyclic function. This way, multiple watchdog devices are still supported, each via a cyclic function with separate trigger intervals.

[RFC PATCH 0/8] Migrate watchdog reset to cyclic infrastructure

2022-08-29 Thread Stefan Roese
This patchset migrates the watchdog triggering (WATCHDOG_RESET calls) to the newly introduced cyclic execution framework. For this, the watchdog driver now registers a cyclic execution function for each WDT device that needs to get serviced. Additionally the cyclic IF is a bit extended to also

[RFC PATCH 1/8] cmd/cyclic: Use div64 macros for division and remainder

2022-08-29 Thread Stefan Roese
Use the do_div etc for divisions to fix the compile breakage seen on edison: cmd/cyclic.c:70: undefined reference to `__udivmoddi4' and for e.g. MIPS netgear_cg3100d_ram: cmd/cyclic.c:(.text.do_cyclic_list+0x180): undefined reference to `__umoddi3' Signed-off-by: Stefan Roese ---

[PATCH v2 9/9] board: sam9x60ek: remove nand init from board file

2022-08-29 Thread Balamanikandan Gunasundar
Move this out of board file as this is done by the DM based NAND flash driver. The EBI chip select configuration, iomux and timings are handled by the driver Signed-off-by: Balamanikandan Gunasundar --- board/atmel/sam9x60ek/sam9x60ek.c | 59 ---

[PATCH v2 8/9] ARM: dts: at91: sam9x60ek: Enable NAND support

2022-08-29 Thread Balamanikandan Gunasundar
Enable the EBI and NAND flash controller. Define the pinctrl and partition table Signed-off-by: Balamanikandan Gunasundar --- arch/arm/dts/sam9x60ek.dts | 103 + 1 file changed, 103 insertions(+) diff --git a/arch/arm/dts/sam9x60ek.dts

[PATCH v2 7/9] ARM: dts: at91: sam9x60: Add nodes for EBI and NAND

2022-08-29 Thread Balamanikandan Gunasundar
Add new bindings for EBI and NAND controller Signed-off-by: Balamanikandan Gunasundar --- arch/arm/dts/sam9x60.dtsi | 42 +++ 1 file changed, 42 insertions(+) diff --git a/arch/arm/dts/sam9x60.dtsi b/arch/arm/dts/sam9x60.dtsi index a5c429eb3a..17224ef771

[PATCH v2 6/9] configs: at91: sam9x60ek: Enable DM based nand driver

2022-08-29 Thread Balamanikandan Gunasundar
Enable Device model supported NAND driver and remove legacy Atmel NAND driver. Signed-off-by: Balamanikandan Gunasundar --- configs/sam9x60ek_mmc_defconfig | 9 ++--- configs/sam9x60ek_nandflash_defconfig | 9 ++--- configs/sam9x60ek_qspiflash_defconfig | 8 +--- 3 files

[PATCH v2 5/9] mfd: syscon: atmel-smc: Add driver for atmel SMC

2022-08-29 Thread Balamanikandan Gunasundar
Add driver for atmel Static Memory Controller. Add helper functions to configure SMC. This file is inherited from the work done by Boris Brezillon for Linux Signed-off-by: Balamanikandan Gunasundar --- drivers/Kconfig | 2 + drivers/Makefile | 1 +

[PATCH v2 4/9] memory: atmel-ebi: add Atmel EBI (External Bus Interface) driver

2022-08-29 Thread Balamanikandan Gunasundar
The EBI is used to access peripherals like NAND, SRAM, NOR etc. Add this driver to probe the nand flash controller. This is a dummy driver and not yet a complete device driver for EBI. Signed-off-by: Balamanikandan Gunasundar --- MAINTAINERS| 1 + drivers/memory/Kconfig |

[PATCH v2 3/9] mfd: syscon: Add atmel-matrix registers definition

2022-08-29 Thread Balamanikandan Gunasundar
This file is copied from Linux. AT91 SoCs have a memory range reserved for internal bus configuration. Expose those registers so that drivers can make use of the matrix syscon declared in at91 DTs. Signed-off-by: Balamanikandan Gunasundar --- include/linux/mfd/syscon/atmel-matrix.h | 112

[PATCH v2 2/9] nand: atmel: Add pmecc driver

2022-08-29 Thread Balamanikandan Gunasundar
Add driver for atmel pmecc. This implementation is ported from Linux. The reference taken is linux-5.4-at91. Signed-off-by: Balamanikandan Gunasundar --- drivers/mtd/nand/raw/atmel/Makefile | 3 +- drivers/mtd/nand/raw/atmel/pmecc.c | 965

[PATCH v2 1/9] nand: atmel: Add DM based NAND driver

2022-08-29 Thread Balamanikandan Gunasundar
This implementation is ported from the rework done by Boris Brezillon in Linux. This porting is done based on linux-5.4-at91. The driver is tested in sam9x60ek, sama5d3_xplained, sam9x75eb and sama7g54-ddr3-eb. Changes done includes - Adapt GPIO descriptor apis for U-Boot. Use

[PATCH v2 0/9] Add DM support for atmel NAND driver

2022-08-29 Thread Balamanikandan Gunasundar
Change include: - Adapt GPIO descriptor apis for U-Boot. Use gpio_request_by_name_nodev, dm_gpio_get_value etc. - Use U_BOOT_DRIVER instead of platform_driver. - Replace struct platform_device with struct udevice - Check the status of nfc exec operation by polling the status register instead