Re: [PATCH 1/7] mmc: msm_sdhci: Match clocks through "clocks" property

2023-03-23 Thread Sumit Garg
Hi, On Fri, 24 Mar 2023 at 07:26, Konrad Dybcio wrote: > > "clocks" is the standard property used in Linux, "clock" seems to be > an U-Boot invention. Use the one that's more standardized. > > Signed-off-by: Konrad Dybcio > --- > > drivers/mmc/msm_sdhci.c | 2 +- > 1 file changed, 1

Re: [PATCH v5 2/4] configs: j721e: Merge the HS and non-HS defconfigs

2023-03-23 Thread Manorit Chawdhry
On 20:07-20230323, Bryan Brattlof wrote: > Hi Manorit! > > On March 15, 2023 thus sayeth Manorit Chawdhry: > > K3 devices have runtime type board detection. Make the default defconfig > > include the secure configuration. Then remove the HS specific config. > > >

Re: [PATCH u-boot-mvebu 0/5] mvebu: Fix UART booting

2023-03-23 Thread Martin Rowe
On Thu, 23 Mar 2023 at 19:58, Pali Rohár wrote: > > This patch series contains kwboot fixes for booting non-UART-generated > images over UART. > > Pali Rohár (5): > tools: kwbimage: Fix invalid UART kwbimage v1 headersz > tools: kwboot: Fix invalid UART kwbimage v1 headersz > tools: kwboot:

[PATCH V5] arm64: imx: Add support for imx8mp-beacon-kit

2023-03-23 Thread Adam Ford
Beacon Embedded has an i.MX8M Plus development kit which consists of a SOM + baseboard. The SOM includes Bluetooth, WiFi, QSPI, eMMC, and one Ethernet PHY. The baseboard includes audio, HDMI, USB-C Dual Role port, USB Hub with five ports, a PCIe slot, and a second Ethernet PHY. The device trees

Re: [PATCH RFC u-boot-mvebu 0/2] arm: mvebu: Fix eMMC boot

2023-03-23 Thread Martin Rowe
On Thu, 23 Mar 2023 at 19:01, Pali Rohár wrote: > > On Thursday 23 March 2023 12:24:13 Martin Rowe wrote: > > On Wed, 22 Mar 2023 at 19:09, Pali Rohár wrote: > > > > > > On Wednesday 22 March 2023 18:59:45 Pali Rohár wrote: > > > > On Wednesday 22 March 2023 13:45:56 Martin Rowe wrote: > > > > >

Re: [PATCH V4] arm64: imx: Add support for imx8mp-beacon-kit

2023-03-23 Thread Tom Rini
On Thu, Mar 23, 2023 at 07:27:04PM -0500, Adam Ford wrote: > Beacon Embedded has an i.MX8M Plus development kit which consists > of a SOM + baseboard. The SOM includes Bluetooth, WiFi, QSPI, eMMC, > and one Ethernet PHY. The baseboard includes audio, HDMI, USB-C Dual > Role port, USB Hub with

[PATCH 7/7] arm: Migrate Apple M1 to save_prev_bl_data

2023-03-23 Thread Konrad Dybcio
Mark's and Dzmitry's approaches come down to the same thing.. Let's unify them by first removing the static keyword from the common file to allow the variable to be reused, then renaming "reg0" to the more sensible fw_dtb_pointer coming from the Apple file and finally remove the mach-apple

[PATCH 6/7] serial: msm_geni: Use upstream Linux bindings

2023-03-23 Thread Konrad Dybcio
The name "se" is used in upstream Linux device trees and has been for ages, long before this U-Boot-ism was introduced. Same goes for the existing compatible. Get rid of that. Signed-off-by: Konrad Dybcio --- arch/arm/dts/sdm845.dtsi | 4 ++-- drivers/serial/serial_msm_geni.c | 6

[PATCH 5/7] arm: snapdragon: pinctrl: Always bind before relocation

2023-03-23 Thread Konrad Dybcio
In preparation for supporting upstream Linux device trees on Qualcomm platforms, make this the default behavior. Signed-off-by: Konrad Dybcio --- arch/arm/mach-snapdragon/pinctrl-snapdragon.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-snapdragon/pinctrl-snapdragon.c

[PATCH 4/7] arch: snapdragon: clock: Always bind before relocation

2023-03-23 Thread Konrad Dybcio
In preparation for supporting upstream Linux device trees on Qualcomm platforms, make this the default behavior. Signed-off-by: Konrad Dybcio --- arch/arm/mach-snapdragon/clock-snapdragon.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-snapdragon/clock-snapdragon.c

[PATCH 3/7] serial: msm: Always bind before relocation

2023-03-23 Thread Konrad Dybcio
In preparation for supporting upstream Linux device trees on Qualcomm platforms, make this the default behavior. Signed-off-by: Konrad Dybcio --- drivers/serial/serial_msm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/serial/serial_msm.c b/drivers/serial/serial_msm.c index

[PATCH 2/7] serial: msm: Match clocks through "clocks" property

2023-03-23 Thread Konrad Dybcio
"clocks" is the standard property used in Linux, "clock" seems to be an U-Boot invention. Use the one that's more standardized. Signed-off-by: Konrad Dybcio --- arch/arm/dts/qcom-ipq4019.dtsi | 2 +- drivers/serial/serial_msm.c| 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff

[PATCH 1/7] mmc: msm_sdhci: Match clocks through "clocks" property

2023-03-23 Thread Konrad Dybcio
"clocks" is the standard property used in Linux, "clock" seems to be an U-Boot invention. Use the one that's more standardized. Signed-off-by: Konrad Dybcio --- drivers/mmc/msm_sdhci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/msm_sdhci.c

Re: [PATCH v5 2/4] configs: j721e: Merge the HS and non-HS defconfigs

2023-03-23 Thread Bryan Brattlof
Hi Manorit! On March 15, 2023 thus sayeth Manorit Chawdhry: > K3 devices have runtime type board detection. Make the default defconfig > include the secure configuration. Then remove the HS specific config. > > Non-HS devices will continue to boot due to runtime device type detection. > If

[PATCH V4] arm64: imx: Add support for imx8mp-beacon-kit

2023-03-23 Thread Adam Ford
Beacon Embedded has an i.MX8M Plus development kit which consists of a SOM + baseboard. The SOM includes Bluetooth, WiFi, QSPI, eMMC, and one Ethernet PHY. The baseboard includes audio, HDMI, USB-C Dual Role port, USB Hub with five ports, a PCIe slot, and a second Ethernet PHY. The device trees

Re: [PATCH] linker_lists.h: Add attribute used to ll_entry_start macro

2023-03-23 Thread appujee
I think the correct fix is to not use a zero sized array at all. AIUI, what Andrew Pinksi intended was: the `asm` fix and attribute(unused) fix aren't the same thing. Using either way to get around this is probably not going to work in future; but I'm not familiar with the codebase to do large

Re: [PATCH] linker_lists.h: Add attribute used to ll_entry_start macro

2023-03-23 Thread Tom Rini
On Thu, Mar 23, 2023 at 03:38:33PM -0700, appujee wrote: > added comments: https://lists.denx.de/pipermail/u-boot/2023-March/513078.html OK, and that references a gcc bugzilla entry where Andrew Pinski suggest a change to correct the code, and says not to do what you're suggesting here. And

Re: [PATCH] linker_lists.h: Add attribute used to ll_entry_start macro

2023-03-23 Thread appujee
added comments: https://lists.denx.de/pipermail/u-boot/2023-March/513078.html On Thu, Mar 23, 2023 at 1:31 PM Tom Rini wrote: > > On Thu, Mar 23, 2023 at 01:29:29PM -0700, appujee wrote: > > > > So, saying "unused" and then "used" doesn't seem to make any sense. > > unused and used attributes do

[PATCH] linker_lists.h: Adding comments to clarify attribute(used)

2023-03-23 Thread appujee
>From 807a20a152cbebcc70ab81de825a28da94a07ab6 Mon Sep 17 00:00:00 2001 From: AdityaK Date: Thu, 23 Mar 2023 15:30:15 -0700 Subject: [PATCH] [PATCH] linker_lists.h: Adding comments to clarify attribute(used) Change-Id: I2878f458b8955cac23acd54f4cfaafe7f132935b Signed-off-by: AdityaK Tom Rini

Re: [PATCH] linker_lists.h: Add attribute used to ll_entry_start macro

2023-03-23 Thread Tom Rini
On Thu, Mar 23, 2023 at 01:29:29PM -0700, appujee wrote: > > So, saying "unused" and then "used" doesn't seem to make any sense. > unused and used attributes do not cancel each other. They have different > semantics. I agree this part of the code needs some attention. zero sized > arrays are not

Re: [PATCH] linker_lists.h: Add attribute used to ll_entry_start macro

2023-03-23 Thread appujee
> So, saying "unused" and then "used" doesn't seem to make any sense. unused and used attributes do not cancel each other. They have different semantics. I agree this part of the code needs some attention. zero sized arrays are not C compliant as I understand it, even more so when it is declared

[PATCH u-boot-mvebu] tools: kwboot: Document information about NOR XIP

2023-03-23 Thread Pali Rohár
Signed-off-by: Pali Rohár --- tools/kwboot.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/kwboot.c b/tools/kwboot.c index 2b92966919da..db917708a8e8 100644 --- a/tools/kwboot.c +++ b/tools/kwboot.c @@ -61,7 +61,9 @@ * SPI-NOR or parallel-NOR. Despite the type

[PATCH u-boot-mvebu 1/5] tools: kwbimage: Fix invalid UART kwbimage v1 headersz

2023-03-23 Thread Pali Rohár
Armada 385 BootROM ignores low 7 bits of headersz when parsing kwbimage header of UART type, which effectively means that headersz is rounded down to multiply of 128 bytes. For all other image types BootROM reads and use all bits of headersz. Therefore fill into UART type of kwbimage v1 headersz

[PATCH u-boot-mvebu 5/5] tools: kwboot: Workaround A38x BootROM bug for images with a gap

2023-03-23 Thread Pali Rohár
A38x BootROM has a bug which cause that BootROM loads data part of UART image into RAM target address increased by one byte when source address and header size stored in the image header are not same. Workaround this bug by completely removing a gap between header and data part of the UART image.

[PATCH u-boot-mvebu 3/5] tools: kwboot: Fix inserting UART data checksum without -B option

2023-03-23 Thread Pali Rohár
Commit 7665ed2fa04e ("tools: kwboot: Fix parsing UART image without data checksum") added fixup code to insert place for data checksum if UART image does not have it. Together with option -B (change baudrate), kwboot calculates this checksum. Without option -B, it inserts only place for checksum

[PATCH u-boot-mvebu 2/5] tools: kwboot: Fix invalid UART kwbimage v1 headersz

2023-03-23 Thread Pali Rohár
Ensure that UART aligned header size is always stored into kwbimage v1 header. It is needed for proper UART booting. Calculation of headersz field was broken in commit d656f5a0ee22 ("tools: kwboot: Calculate real used space in kwbimage header when calling kwboot_img_grow_hdr()") which introduced

[PATCH u-boot-mvebu 4/5] tools: kwboot: Fix sending very small images

2023-03-23 Thread Pali Rohár
Sending of very small images (smaller than 128 bytes = xmodem block size) cause out-of-bound memory read access. Fix this issue by ensuring that hdrsz when sending image is not larger than total size of the image. Issue was introduced in commit f8017c37799c ("tools: kwboot: Fix sending Kirkwood v0

[PATCH u-boot-mvebu 0/5] mvebu: Fix UART booting

2023-03-23 Thread Pali Rohár
This patch series contains kwboot fixes for booting non-UART-generated images over UART. Pali Rohár (5): tools: kwbimage: Fix invalid UART kwbimage v1 headersz tools: kwboot: Fix invalid UART kwbimage v1 headersz tools: kwboot: Fix inserting UART data checksum without -B option tools:

RE: [PATCH] net: ipv6: Add support for default gateway discovery.

2023-03-23 Thread Ehsan Mohandesi
Hi Viacheslav, > -Original Message- > From: Vyacheslav V. Mitrofanov > Sent: Thursday, March 16, 2023 3:47 AM > To: u-boot@lists.denx.de; emohand...@linux.microsoft.com > Cc: joe.hershber...@ni.com; xypron.g...@gmx.de; > dpha...@linux.microsoft.com; sap...@gmail.com;

Re: [PATCH RFC u-boot-mvebu 0/6] arm: mvebu: Fix boot mode detection

2023-03-23 Thread Pali Rohár
On Thursday 23 March 2023 19:33:27 Pali Rohár wrote: > On Thursday 23 March 2023 11:01:22 Martin Rowe wrote: > > On Wed, 22 Mar 2023 at 18:09, Pali Rohár wrote: > > > > > > On Wednesday 22 March 2023 11:14:42 Martin Rowe wrote: > > > > On Tue, 21 Mar 2023 at 17:26, Pali Rohár wrote: > > > > > >

Re: [PATCH RFC u-boot-mvebu 0/2] arm: mvebu: Fix eMMC boot

2023-03-23 Thread Pali Rohár
On Thursday 23 March 2023 12:24:13 Martin Rowe wrote: > On Wed, 22 Mar 2023 at 19:09, Pali Rohár wrote: > > > > On Wednesday 22 March 2023 18:59:45 Pali Rohár wrote: > > > On Wednesday 22 March 2023 13:45:56 Martin Rowe wrote: > > > > On Wed, 22 Mar 2023 at 12:38, Martin Rowe > > > > wrote: > >

Re: [PATCH 1/2] Dockerfile: Populate a pip cache

2023-03-23 Thread Tom Rini
On Fri, Mar 24, 2023 at 07:28:32AM +1300, Simon Glass wrote: > Hi Tom, > > On Thu, 23 Mar 2023 at 08:19, Tom Rini wrote: > > > > Given the number of jobs in CI we have which use python and pip install > > packages, we should do this once in the Dockerfile, in order to populate > > the cache. We

[v2 2/2] Dockerfile: Populate a pip cache

2023-03-23 Thread Tom Rini
Given the number of jobs in CI we have which use python and pip install packages, we should do this once in the Dockerfile, in order to populate the cache. We let each job continue to create and use the virtual environments they need to facilitate making updates to these environments easier.

[v2 1/2] pytest: Update requirements to match sphinx versions

2023-03-23 Thread Tom Rini
In order to better make use of pip caches, and also for better overall consistency, we should use the same versions of packages in each of our python requirements files. Update pytest to use the newer versions of packages we use in sphinx builds. Signed-off-by: Tom Rini --- Changes in v2: -

[PATCH v2 16/16] x86: Allow locating UARTs by device ID

2023-03-23 Thread Simon Glass
When coreboot does not pass a UART in its sysinfo struct, there is no easy way to find it out. Add a way to specify known UARTs so we can find them without needing help from coreboot. Since coreboot does not actually init the serial device when serial is disabled, it is not possible to make it

[PATCH v2 14/16] x86: nvme: coreboot: Enable NVMe

2023-03-23 Thread Simon Glass
Enable support for NVMe storage devices. Update the driver to enable the bus master bit, since coreboot does not do that automatically. Signed-off-by: Simon Glass --- Changes in v2: - Drop patch 'usb: Quieten a debug message' since it was fixed elsewhere - Drop patch 'x86: coreboot: Use a

[PATCH v2 13/16] x86: coreboot: Show unimplemented sysinfo tags

2023-03-23 Thread Simon Glass
Sometimes coreboot adds new tags that U-Boot does not know about. These are silently ignored, but it is useful to at least know what we are missing. Add a way to collect this information. For Brya it shows: Unimpl. 38 41 37 34 42 40 These are: LB_TAG_PLATFORM_BLOB_VERSION

[PATCH v2 15/16] coreboot: Enable ms command

2023-03-23 Thread Simon Glass
This is useful when looking for tables in memory. Enable it for coreboot. Signed-off-by: Simon Glass --- Changes in v2: - Add new patch to enable ms command configs/coreboot_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/coreboot_defconfig b/configs/coreboot_defconfig

[PATCH v2 12/16] x86: coreboot: Log function names and line numbers

2023-03-23 Thread Simon Glass
Turn these options on to make it easier to debug things. Also enable dhrystone so we can get some measure of performance. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- (no changes since v1) configs/coreboot_defconfig | 4 1 file changed, 4 insertions(+) diff --git

[PATCH v2 11/16] x86: coreboot: Scan PCI after relocation

2023-03-23 Thread Simon Glass
Enable this so that PCI devices can be used correctly without needing to do a manual scan. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- (no changes since v1) configs/coreboot_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/coreboot_defconfig

[PATCH v2 10/16] x86: coreboot: Document how to enable the debug UART

2023-03-23 Thread Simon Glass
This is not obvious so add a little note about how it works. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- (no changes since v1) doc/board/coreboot/coreboot.rst | 29 + 1 file changed, 29 insertions(+) diff --git a/doc/board/coreboot/coreboot.rst

[PATCH v2 09/16] x86: coreboot: Use a memory-mapped UART

2023-03-23 Thread Simon Glass
This is much more common on modern hardware, so default to using it. This does not affect the normal UART, but does allow the debug UART to work, since it uses serial_out_shift(), etc. Signed-off-by: Simon Glass --- Changes in v2: - Expand commit message to explain this is for the debug UART -

[PATCH v2 08/16] pci: coreboot: Don't read regions when booting

2023-03-23 Thread Simon Glass
When U-Boot is the second-stage bootloader, PCI is already set up. We cannot read the regions from the device tree. There is no point anyway, since PCI devices have already been allocated according to the regions and it is not safe for U-Boot to make any changes. Signed-off-by: Simon Glass

[PATCH v2 07/16] x86: Allow locating the UART from ACPI tables

2023-03-23 Thread Simon Glass
When coreboot does not pass a UART in its sysinfo struct, there is no easy way to find it out. Since coreboot does not actually init the serial device when serial is disabled, it is not possible to make it add this information to the sysinfo table. Add a way to obtain this information from the

[PATCH v2 06/16] x86: coreboot: Collect the address of the ACPI tables

2023-03-23 Thread Simon Glass
At present any ACPI tables created by prior-stage firmware are ignored. It is useful to be able to view these in U-Boot. Pick this up from the sysinfo tables and display it with the cbsysinfo command. This allows the 'acpi list' command to work when booting from coreboot. Adjust the global_data

[PATCH v2 05/16] acpi: Move the table-finding functions into the libary

2023-03-23 Thread Simon Glass
This is useful for other features. Move the function into library code so it can be used outside just the 'acpi' command. Signed-off-by: Simon Glass --- Changes in v2: - Add new patch to move acpi-table-finding functions into the library cmd/acpi.c| 40

[PATCH v2 04/16] acpi: Create a new Kconfig for ACPI

2023-03-23 Thread Simon Glass
We have several Kconfig options for ACPI, but all relate to specific functions, such as generating tables and AML code. Add a new option which controls including basic ACPI library code, including the lib/acpi directory. This will allow us to add functions which are available even if table

[PATCH v2 03/16] input: Flush the keyboard buffer before resetting it

2023-03-23 Thread Simon Glass
If U-Boot is not the first-stage bootloader the keyboard may already be set up. Make sure to flush any data before trying to reset it. This avoids a long timeout / hang. Add some comments and a log category while we are here. Signed-off-by: Simon Glass --- Changes in v2: - Flush the buffer

[PATCH v2 02/16] x86: Adjust search range for sysinfo table

2023-03-23 Thread Simon Glass
Avoid searching starting at 0 since this memory may not be available, e.g. if protection against NULL-pointer access is enabled. The table cannot be there anyway, since the first 1KB of memory was originally used for the interrupt table and coreboot avoids it. Start at 0x400 instead.

[PATCH v2 01/16] mtrr: Don't show an invalid CPU number

2023-03-23 Thread Simon Glass
When U-Boot did not do the MP init, we don't get an actual CPU number here. Skip printing it in that case. Signed-off-by: Simon Glass --- Changes in v2: - Don't show an invalid CPU number on error cmd/x86/mtrr.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git

Re: [PATCH RFC u-boot-mvebu 0/6] arm: mvebu: Fix boot mode detection

2023-03-23 Thread Pali Rohár
On Thursday 23 March 2023 11:01:22 Martin Rowe wrote: > On Wed, 22 Mar 2023 at 18:09, Pali Rohár wrote: > > > > On Wednesday 22 March 2023 11:14:42 Martin Rowe wrote: > > > On Tue, 21 Mar 2023 at 17:26, Pali Rohár wrote: > > > > > > > On Tuesday 21 March 2023 08:34:24 Martin Rowe wrote: > > > >

[PATCH v2 00/16] x86: Various minor enhancements for coreboot

2023-03-23 Thread Simon Glass
This series includes some patches generated while getting U-Boot to boot more nicely on Brya, an Adler Lake Chromebook. This includes: - show the ACPI tables with 'acpi list' - get the UART to work even if coreboot doesn't enable it - show unimplemented sysinfo tags - fix for keyboard not working

Re: [PATCH 2/2] CI: Update to have pip cache

2023-03-23 Thread Simon Glass
On Thu, 23 Mar 2023 at 08:19, Tom Rini wrote: > > Signed-off-by: Tom Rini > --- > .azure-pipelines.yml | 2 +- > .gitlab-ci.yml | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > Reviewed-by: Simon Glass

Re: [PATCH 1/2] Dockerfile: Populate a pip cache

2023-03-23 Thread Simon Glass
Hi Tom, On Thu, 23 Mar 2023 at 08:19, Tom Rini wrote: > > Given the number of jobs in CI we have which use python and pip install > packages, we should do this once in the Dockerfile, in order to populate > the cache. We let each job continue to create and use the virtual > environments they

Re: [PATCH v2 u-boot] cmd: mmc: Return CMD_RET_* from commands

2023-03-23 Thread Simon Glass
On Thu, 23 Mar 2023 at 09:07, Pali Rohár wrote: > > Numeric return values may cause strange errors line: > exit not allowed from main input shell. > > Signed-off-by: Pali Rohár > --- > Rename r to ret. > --- > cmd/mmc.c | 18 +- > 1 file changed, 13 insertions(+), 5 deletions(-)

Re: [PATCH 06/13] x86: Allow locating UARTs by device ID

2023-03-23 Thread Simon Glass
Hi Bin, On Mon, 20 Mar 2023 at 20:56, Bin Meng wrote: > > +Andy > > Hi Simon, > > On Tue, Feb 21, 2023 at 3:49 AM Simon Glass wrote: > > > > When coreboot does not pass a UART in its sysinfo struct, there is no > > easy way to find it out. Add a way to specify known UARTs so we can > > find

Re: [PATCH v2 1/3] starfive: pci: Add StarFive JH7110 pcie driver

2023-03-23 Thread Pali Rohár
On Thursday 23 March 2023 18:51:38 Minda Chen wrote: > On 2023/3/11 1:42, Pali Rohár wrote: > > On Friday 10 March 2023 18:36:44 Minda Chen wrote: > >> On 2023/3/8 15:31, Pali Rohár wrote: > >> > Hello! See few comments below. > >> > > >> > On Wednesday 08 March 2023 13:48:31 Minda Chen wrote: >

Re: [PATCH 03/13] input: Only reset the keyboard when running bare metal

2023-03-23 Thread Simon Glass
Hi Bin, On Tue, 21 Mar 2023 at 14:25, Bin Meng wrote: > > Hi Simon, > > On Tue, Mar 21, 2023 at 2:40 AM Simon Glass wrote: > > > > Hi Bin, > > > > On Mon, 20 Mar 2023 at 19:32, Bin Meng wrote: > > > > > > Hi Simon, > > > > > > On Tue, Feb 21, 2023 at 3:49 AM Simon Glass wrote: > > > > > > > >

Re: [PATCH 05/13] x86: coreboot: Collect the address of the ACPI tables

2023-03-23 Thread Simon Glass
Hi Bin, On Mon, 20 Mar 2023 at 20:44, Bin Meng wrote: > > Hi Simon, > > On Tue, Feb 21, 2023 at 3:49 AM Simon Glass wrote: > > > > Pick this up from the sysinfo tables and display it with the cbsysinfo > > command. This allows the 'acpi list' command to work when booting from > > coreboot. > >

Re: [PATCH v2] fdt: Make fdt addr -q quieter

2023-03-23 Thread Simon Glass
On Wed, 22 Mar 2023 at 04:19, Marek Vasut wrote: > > On 3/21/23 14:01, Peter Hoyes wrote: > > From: Peter Hoyes > > > > 64597346 "fdt: Add -q option to fdt addr for distro_bootcmd" introduced > > the -q option for fdt addr, which sets the current working fdt address > > without printing any

Re: [PATCH v4 1/1] cmd: ums: abort mounting by pressing any key

2023-03-23 Thread Simon Glass
On Tue, 21 Mar 2023 at 08:02, Svyatoslav Ryhel wrote: > > This patch introduses config which allows interrupt run of usb > mass storage with any key. This is especially useful on devices > with limited input capabilities like tablets and smatphones which > have only gpio keys in direct access. >

Re: [PATCH] net: ipv6: Add support for default gateway discovery.

2023-03-23 Thread Vyacheslav V. Mitrofanov
On Thu, 2023-03-23 at 16:44 +, Ehsan Mohandesi wrote: > > Hi Viacheslav, > > > -Original Message- > > From: Vyacheslav V. Mitrofanov > > Sent: Thursday, March 16, 2023 3:47 AM > > To: u-boot@lists.denx.de; emohand...@linux.microsoft.com > > Cc: joe.hershber...@ni.com;

[PATCH 2/2] spi: cadence-quadspi: Use STIG mode for all ops with small payload

2023-03-23 Thread Dhruva Gole
OSPI controller supports all types of op variants in STIG mode, only limitation being that the data payload should be less than 8 bytes when not using memory banks. STIG mode is more stable for operations that send small data payload and is more efficient than using DMA for few bytes of memory

[PATCH 1/2] spi: cadence-quadspi: Fix check condition for DTR ops

2023-03-23 Thread Dhruva Gole
buswidth and dtr fields in spi_mem_op are only valid when the corresponding spi_mem_op phase has a non-zero length. For example, SPI NAND core doesn't set buswidth when using SPI_MEM_OP_NO_ADDR phase. Fix the dtr checks in set_protocol() to ignore empty spi_mem_op phases, as checking for dtr

[PATCH 0/2] spi: cadence_qspi: Fixes for DTR ops and improve STIG support

2023-03-23 Thread Dhruva Gole
This series aims to address some critical bugs in the cadence qspi driver like the need to Flush the CMDCTRL reg after the execution due to a hardware limitation and also fixes the check conditions for DTR ops. Logs with sf read and update commands:

Re: (subset) [PATCH v2 00/14] boards: amlogic: add BananaPi/Radxa/WeTek boards

2023-03-23 Thread Neil Armstrong
Hi, On Thu, 23 Mar 2023 14:31:28 +, Christian Hewitt wrote: > This series adds support for the following boards which are > tested and booting fine with 2023.04-rc4: > > - BananaPi M2-Pro (S905X3) > - BananaPi M2S (A311D or S922X) > - Radxa Zero2 (A311D) > - WeTek Hub (S905) > - WeTek Play2

Re: [PATCH v2] renesas: rcar: Apply ATF overlay for reserved-memory

2023-03-23 Thread Detlev Casanova
Hi! ! Just bumping up this patch. On Tuesday, December 6, 2022 11:06:48 A.M. EDT Detlev Casanova wrote: > The function fdtdec_board_setup() is only called by fdtdec_setup() which > needs to be called by the board file. > > This is not the case for the renesas boards so rename the >

Re: [PATCH v2 14/14] doc: boards: amlogic: add documentation for WeTek Hub and WeTek Play2

2023-03-23 Thread Neil Armstrong
On 23/03/2023 15:31, Christian Hewitt wrote: Add build instructions for the WeTek Hub and WeTek Play2 boards. Signed-off-by: Christian Hewitt --- board/amlogic/p200/MAINTAINERS| 2 + doc/board/amlogic/index.rst | 2 + doc/board/amlogic/wetek-hub.rst | 110

Re: [PATCH v2 13/14] boards: amlogic: add WeTek Hub and WeTek Play2 defconfig

2023-03-23 Thread Neil Armstrong
On 23/03/2023 15:31, Christian Hewitt wrote: Add configurations for the WeTek Hub and WeTek Play2 boards. Signed-off-by: Christian Hewitt --- board/amlogic/p200/MAINTAINERS | 2 + configs/wetek-hub_defconfig| 70 ++ configs/wetek-play2_defconfig | 70

Re: [PATCH v2 11/14] doc: boards: amlogic: add documentation for Radxa Zero2

2023-03-23 Thread Neil Armstrong
On 23/03/2023 15:31, Christian Hewitt wrote: Add build docs for the Radxa Zero2 board. Signed-off-by: Christian Hewitt --- board/amlogic/w400/MAINTAINERS| 2 + doc/board/amlogic/index.rst | 1 + doc/board/amlogic/radxa-zero2.rst | 80 +++ 3 files

Re: [PATCH v2 08/14] docs: boards: amlogic: add documentation for BananaPi M2S

2023-03-23 Thread Neil Armstrong
On 23/03/2023 15:31, Christian Hewitt wrote: Add build docs for the BPI-M2S board. Signed-off-by: Christian Hewitt --- board/amlogic/w400/MAINTAINERS | 2 + doc/board/amlogic/bananapi-m2s.rst | 153 + doc/board/amlogic/index.rst| 1 + 3 files

Re: [PATCH v2 05/14] docs: boards: amlogic: add documentation for BananaPi M2-Pro

2023-03-23 Thread Neil Armstrong
On 23/03/2023 15:31, Christian Hewitt wrote: Add build docs for the BPI-M2-PRO board. Signed-off-by: Christian Hewitt --- board/amlogic/u200/MAINTAINERS | 2 + doc/board/amlogic/bananapi-m2pro.rst | 143 +++ doc/board/amlogic/index.rst | 1 + 3

Re: [PATCH v2] CI: Add m68k target

2023-03-23 Thread Angelo Dureghello
Acked-by: Angelo Dureghello On 23/03/23 1:22 AM, Marek Vasut wrote: Add M5208EVBE board to CI. This does not use default config due to limitations of QEMU emulation, instead the timer is switched from DMA timer to PIT timer and RAMBAR accesses are inhibited. Local QEMU launch command is as

[PATCH] xilinx: Enable virtio mmio transport and devices

2023-03-23 Thread Michal Simek
Qemu can create virtio mmio transports and passing devices through it that's why enable virtio by default on all arm64 based SoCs. Signed-off-by: Michal Simek --- configs/xilinx_versal_net_virt_defconfig | 7 ++- configs/xilinx_versal_virt_defconfig | 7 ++-

[PATCH v2 12/14] ARM: dts: add support for WeTek Hub and WeTek Play2

2023-03-23 Thread Christian Hewitt
Import the dts files from linux-amlogic/for-next (Linux 6.4-rc1) and add the old PHY reset bindings for dwmac to the u-boot.dtsi until we support the new bindings in the PHY node. Without this the PHY is not functional in u-boot or Linux. Signed-off-by: Christian Hewitt Reviewed-by: Neil

[PATCH v2 09/14] ARM: dts: add support for Radxa Zero2

2023-03-23 Thread Christian Hewitt
Import the device-tree from linux-amlogic/for-next (Linux 6.4-rc1) to support the Radxa-Zero2 board. Signed-off-by: Christian Hewitt Reviewed-by: Neil Armstrong --- arch/arm/dts/Makefile | 1 + .../dts/meson-g12b-radxa-zero2-u-boot.dtsi| 7 +

[PATCH v2 14/14] doc: boards: amlogic: add documentation for WeTek Hub and WeTek Play2

2023-03-23 Thread Christian Hewitt
Add build instructions for the WeTek Hub and WeTek Play2 boards. Signed-off-by: Christian Hewitt --- board/amlogic/p200/MAINTAINERS| 2 + doc/board/amlogic/index.rst | 2 + doc/board/amlogic/wetek-hub.rst | 110 doc/board/amlogic/wetek-play2.rst |

[PATCH v2 13/14] boards: amlogic: add WeTek Hub and WeTek Play2 defconfig

2023-03-23 Thread Christian Hewitt
Add configurations for the WeTek Hub and WeTek Play2 boards. Signed-off-by: Christian Hewitt --- board/amlogic/p200/MAINTAINERS | 2 + configs/wetek-hub_defconfig| 70 ++ configs/wetek-play2_defconfig | 70 ++ 3 files

[PATCH v2 11/14] doc: boards: amlogic: add documentation for Radxa Zero2

2023-03-23 Thread Christian Hewitt
Add build docs for the Radxa Zero2 board. Signed-off-by: Christian Hewitt --- board/amlogic/w400/MAINTAINERS| 2 + doc/board/amlogic/index.rst | 1 + doc/board/amlogic/radxa-zero2.rst | 80 +++ 3 files changed, 83 insertions(+) create mode 100644

[PATCH v2 10/14] boards: amlogic: add Radxa Zero2 defconfig

2023-03-23 Thread Christian Hewitt
Add board configuration for the Radxa Zero2. Signed-off-by: Christian Hewitt Reviewed-by: Neil Armstrong --- configs/radxa-zero2_defconfig | 77 +++ 1 file changed, 77 insertions(+) create mode 100644 configs/radxa-zero2_defconfig diff --git

[PATCH v2 08/14] docs: boards: amlogic: add documentation for BananaPi M2S

2023-03-23 Thread Christian Hewitt
Add build docs for the BPI-M2S board. Signed-off-by: Christian Hewitt --- board/amlogic/w400/MAINTAINERS | 2 + doc/board/amlogic/bananapi-m2s.rst | 153 + doc/board/amlogic/index.rst| 1 + 3 files changed, 156 insertions(+) create mode 100644

[PATCH v2 06/14] ARM: dts: add support for BananaPi M2S

2023-03-23 Thread Christian Hewitt
Import the device-tree from linux-amlogic/for-next (Linux 6.4-rc1) and omit the NPU node from the A311D board variant dts as this is not supported under U-Boot. Signed-off-by: Christian Hewitt Reviewed-by: Neil Armstrong --- arch/arm/dts/Makefile | 1 +

[PATCH v2 05/14] docs: boards: amlogic: add documentation for BananaPi M2-Pro

2023-03-23 Thread Christian Hewitt
Add build docs for the BPI-M2-PRO board. Signed-off-by: Christian Hewitt --- board/amlogic/u200/MAINTAINERS | 2 + doc/board/amlogic/bananapi-m2pro.rst | 143 +++ doc/board/amlogic/index.rst | 1 + 3 files changed, 146 insertions(+) create mode 100644

[PATCH v2 07/14] boards: add BananaPi M2S defconfig

2023-03-23 Thread Christian Hewitt
Add configuration for the Bananapi BPI-M2S. Signed-off-by: Christian Hewitt Reviewed-by: Neil Armstrong --- configs/bananapi-m2s_defconfig | 82 ++ 1 file changed, 82 insertions(+) create mode 100644 configs/bananapi-m2s_defconfig diff --git

[PATCH v2 04/14] boards: add BananaPi M2-Pro defconfig

2023-03-23 Thread Christian Hewitt
Add configuration for the BananaPi M2-Pro board. Signed-off-by: Christian Hewitt Reviewed-by: Neil Armstrong --- configs/bananapi-m2-pro_defconfig | 76 +++ 1 file changed, 76 insertions(+) create mode 100644 configs/bananapi-m2-pro_defconfig diff --git

[PATCH v2 03/14] ARM: dts: add support for BananaPi M2-Pro

2023-03-23 Thread Christian Hewitt
Import the board dts from the linux-amlogic/for-next (6.4-rc1) branch. This involves spliting the BPI-M5 dts into a dtsi and then reusing this for the M2-Pro. Signed-off-by: Christian Hewitt Reviewed-by: Neil Armstrong --- arch/arm/dts/Makefile | 5 +-

[PATCH v2 02/14] docs: boards: amlogic: fix blank-line typo in recently updated docs

2023-03-23 Thread Christian Hewitt
There needs to be a blank line between the start of the code block and the first line of content. Fix for all recently updated docs. Signed-off-by: Christian Hewitt --- doc/board/amlogic/bananapi-cm4io.rst| 1 + doc/board/amlogic/bananapi-m5.rst | 1 +

[PATCH v2 01/14] docs: boards: amlogic: add bananapi-m5 to u200 maintainer file

2023-03-23 Thread Christian Hewitt
The bananapi-m5 docs are missing from the file, so add them. Signed-off-by: Christian Hewitt Reviewed-by: Neil Armstrong --- board/amlogic/u200/MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/board/amlogic/u200/MAINTAINERS b/board/amlogic/u200/MAINTAINERS index

[PATCH v2 00/14] boards: amlogic: add BananaPi/Radxa/WeTek boards

2023-03-23 Thread Christian Hewitt
This series adds support for the following boards which are tested and booting fine with 2023.04-rc4: - BananaPi M2-Pro (S905X3) - BananaPi M2S (A311D or S922X) - Radxa Zero2 (A311D) - WeTek Hub (S905) - WeTek Play2 (S905) I also spotted that bananapi-m5 wasn't referrences in the u200 maintainer

Re: [PATCH 1/4] net: e1000: add and make use of NUM_RX_DESC macro

2023-03-23 Thread Christian Gmeiner
> > > > > The call to DEFINE_ALIGN_BUFFER for the rx_desc array > > conained an icnonsistency as 16 receive descriptors > > were allocated when the remaining code would only use > > 8 of them. > > > > Signed-off-by: Christian Gmeiner > > gentle ping > Adding some more people to CC - maybe this

Re: [PATCH RFC u-boot-mvebu 0/2] arm: mvebu: Fix eMMC boot

2023-03-23 Thread Martin Rowe
On Wed, 22 Mar 2023 at 19:09, Pali Rohár wrote: > > On Wednesday 22 March 2023 18:59:45 Pali Rohár wrote: > > On Wednesday 22 March 2023 13:45:56 Martin Rowe wrote: > > > On Wed, 22 Mar 2023 at 12:38, Martin Rowe wrote: > > > > > > > > On Tue, 21 Mar 2023 at 08:08, Pali Rohár wrote: > > > >> >

[PATCH] ram: rk3399: add missing high row detection

2023-03-23 Thread Jonathan Liu
For 2 GB LPDDR4 single-rank RAM with 16 rows, the Rockchip ddr init bin prints: "Bus Width=32 Col=10 Bank=8 Row=16 CS=1 Die Bus-Width=16 Size=2048MB" U-Boot TPL prints: "BW=32 Col=10 Bk=8 CS0 Row=16/15 CS=1 Die BW=16 Size=2048MB" Add missing high row detection so that U-Boot TPL prints Row=16,

Re: [PATCH 12/13] boards: amlogic: add WeTek Hub and WeTek Play2 defconfig

2023-03-23 Thread Christian Hewitt
> On 23 Mar 2023, at 10:54 am, Christian Hewitt via groups.io > wrote: > > Add configurations for the WeTek Hub and WeTek Play2 boards along > with files for the wetek-gxbb board family to ensure the ethernet > MAC is correctly discovered. Set myself as the maintainer for the > board family.

[PATCH 13/13] doc: boards: amlogic: add documentation for WeTek Hub and WeTek Play2

2023-03-23 Thread Christian Hewitt
Add build instructions for the WeTek Hub and WeTek Play2 boards. Signed-off-by: Christian Hewitt --- board/amlogic/p200/MAINTAINERS| 2 + doc/board/amlogic/index.rst | 2 + doc/board/amlogic/wetek-hub.rst | 109 doc/board/amlogic/wetek-play2.rst |

[PATCH 12/13] boards: amlogic: add WeTek Hub and WeTek Play2 defconfig

2023-03-23 Thread Christian Hewitt
Add configurations for the WeTek Hub and WeTek Play2 boards along with files for the wetek-gxbb board family to ensure the ethernet MAC is correctly discovered. Set myself as the maintainer for the board family. Signed-off-by: Christian Hewitt --- board/amlogic/p200/MAINTAINERS | 2 +

[PATCH 11/13] ARM: dts: add support for WeTek Hub and WeTek Play2

2023-03-23 Thread Christian Hewitt
Import the dts files from linux-amlogic/for-next (Linux 6.4-rc1) and add the old PHY reset bindings for dwmac to the u-boot.dtsi until we support the new bindings in the PHY node. Without this the PHY is not functional in u-boot or Linux. Signed-off-by: Christian Hewitt ---

[PATCH 10/13] doc: boards: amlogic: add documentation for Radxa Zero2

2023-03-23 Thread Christian Hewitt
Add build docs for the Radxa Zero2 board. Signed-off-by: Christian Hewitt --- board/amlogic/w400/MAINTAINERS| 2 + doc/board/amlogic/index.rst | 1 + doc/board/amlogic/radxa-zero2.rst | 79 +++ 3 files changed, 82 insertions(+) create mode 100644

[PATCH 09/13] boards: amlogic: add Radxa Zero2 defconfig

2023-03-23 Thread Christian Hewitt
Add board configuration for the Radxa Zero2. Signed-off-by: Christian Hewitt --- configs/radxa-zero2_defconfig | 77 +++ 1 file changed, 77 insertions(+) create mode 100644 configs/radxa-zero2_defconfig diff --git a/configs/radxa-zero2_defconfig

[PATCH 08/13] ARM: dts: add support for Radxa Zero2

2023-03-23 Thread Christian Hewitt
Import the device-tree from linux-amlogic/for-next (Linux 6.4-rc1) to support the Radxa-Zero2 board. Signed-off-by: Christian Hewitt --- arch/arm/dts/Makefile | 1 + .../dts/meson-g12b-radxa-zero2-u-boot.dtsi| 7 + arch/arm/dts/meson-g12b-radxa-zero2.dts |

[PATCH 07/13] docs: boards: amlogic: add documentation for BananaPi M2S

2023-03-23 Thread Christian Hewitt
Add build docs for the BPI-M2S board. Signed-off-by: Christian Hewitt --- board/amlogic/w400/MAINTAINERS | 2 + doc/board/amlogic/bananapi-m2s.rst | 152 + doc/board/amlogic/index.rst| 1 + 3 files changed, 155 insertions(+) create mode 100644

  1   2   >