[PATCH v2 2/3] global_data.h: add Sphinx documentation

2020-09-20 Thread Heinrich Schuchardt
Add the missing Sphinx documentation for struct global_data and gd_board_type(). Signed-off-by: Heinrich Schuchardt --- v2: no change --- include/asm-generic/global_data.h | 354 ++ 1 file changed, 308 insertions(+), 46 deletions(-) diff --git

[PATCH v2 3/3] doc: global data pointer

2020-09-20 Thread Heinrich Schuchardt
Add the description of the global data pointer to the generated HTML documentation. Signed-off-by: Heinrich Schuchardt --- v2: no change --- doc/develop/global_data.rst | 53 + doc/develop/index.rst | 1 + 2 files changed, 54 insertions(+)

[RFC 1/1] doc/build/gcc.rst: required packages for Suse

2020-09-20 Thread Heinrich Schuchardt
Describe the packages required to build U-Boot on Suse. Signed-off-by: Heinrich Schuchardt --- Hello Matthias, I would like to add a sub-chapter to our documentation describing what is needed to build U-Boot on Suse. Cf. https://u-boot.readthedocs.io/en/latest/build/gcc.html Unfortunately I

[PATCH 1/1] doc/build/gcc.rst: add missing apt-get *install*

2020-09-20 Thread Heinrich Schuchardt
The install command is missing for an apt-get command. Signed-off-by: Heinrich Schuchardt --- doc/build/gcc.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/build/gcc.rst b/doc/build/gcc.rst index fcb0b1ffb3..1ceba0b699 100644 --- a/doc/build/gcc.rst +++

RE: [PATCH] net: ravb: Fix NULL pointer access

2020-09-20 Thread Biju Das
Hi Marek, Thanks for the feedback. > Subject: Re: [PATCH] net: ravb: Fix NULL pointer access > > On 9/19/20 8:14 PM, Biju Das wrote: > > Hi, > > [...] > > > By looking at [1], only this driver is using writeext. > > [1]https://elixir.bootlin.com/u-boot/v2020.10-rc4/A/ident/writeext >

[PATCH v2 1/3] global_data.h: convert GD_FLG_* to enum

2020-09-20 Thread Heinrich Schuchardt
Sphinx documentation is only available for enums not for #defines. Anyway it is better to keep related definitions in an enum. Signed-off-by: Heinrich Schuchardt --- v2: enum gd_flags must not be exposed to assembler code --- include/asm-generic/global_data.h | 106

[PATCH v2 0/3] doc: global data pointer

2020-09-20 Thread Heinrich Schuchardt
Add the description of the global data pointer to the generated HTML documentation. The first patch converts the GD_FLG_* constants to an enum. The second adds move Sphinx comments. The third finally provides the HTML documentation. v2: enum gd_flags must not be exposed to assembler

Re: RPi4 U-Boot freeze

2020-09-20 Thread Stefan Agner
On 2020-09-19 23:20, Sean Anderson wrote: > On 9/19/20 7:55 AM, Stefan Agner wrote: >> On 2020-09-14 10:15, Matthias Brugger wrote: >>> On 10/09/2020 23:12, Stefan Agner wrote: On 2020-09-07 16:36, Peter Robinson wrote: >> Any thoughts on this issue? > > Any reason why you're

[PATCH 2/2] microblaze: start.S: Use board_init_f_alloc/init in early init

2020-09-20 Thread Ovidiu Panait
Implement early init by calling generic board_init_f_alloc_reserve and board_init_f_init_reserve functions: * drop SYS_MALLOC_F_LEN related code, as allocation and gd->malloc_base assignment are taken care of by the generic functions * drop _gd logic Signed-off-by: Ovidiu Panait ---

[PATCH 1/2] microblaze: start.S: Factor out exception setup code to __setup_exceptions

2020-09-20 Thread Ovidiu Panait
Currently, the exceptions setup code is duplicated in pre-relocation and post-relocation init. Factor out this code to __setup_exceptions asm routine to get rid of the duplication. __setup_exceptions is called with a relocation offset parameter (r5) which is set to zero for pre-reloc init and

[PATCH 0/5] x86: Updates to some commands

2020-09-20 Thread Simon Glass
This series adds a few more features to some x86-specific commands. Simon Glass (5): x86: hob: Add way to show a single hob entry x86: hob: Try to show a name instead of a GUID x86: Allow showing details about a HOB entry x86: Add support for more than 8 MTRRs x86: video: Show

[PATCH 2/5] x86: hob: Try to show a name instead of a GUID

2020-09-20 Thread Simon Glass
GUIDs are one of the seven evils of the computer world. They obfuscate the meaning and require people to look up long hex strings to decode it. Luckily only a miniscule fraction of the 10^38 possible GUIDs are in use. Add a way to decode the GUIDs known to U-Boot. Add a few more to the list for

[PATCH 1/5] x86: hob: Add way to show a single hob entry

2020-09-20 Thread Simon Glass
The 'hob' command currently lists all HOB entries. Add way to list a single entry, by index. Signed-off-by: Simon Glass --- cmd/x86/hob.c | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/cmd/x86/hob.c b/cmd/x86/hob.c index 6b1f7bda5b8..e3f512beee8 100644

[PATCH 5/5] x86: video: Show information about each video device

2020-09-20 Thread Simon Glass
At present the 'bdinfo' command shows the framebuffer address, but not the address of the copy framebuffer, if present. Add support for this. Signed-off-by: Simon Glass --- cmd/bdinfo.c | 26 +- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/cmd/bdinfo.c

[PATCH 3/5] x86: Allow showing details about a HOB entry

2020-09-20 Thread Simon Glass
Some HOBs include information that can be decoded. Add a -v option to the hob command, to allow this to be displayed. Add the ability to decode a resource descriptor. Signed-off-by: Simon Glass --- cmd/x86/hob.c | 49 + 1 file changed, 45

[PATCH 4/5] x86: Add support for more than 8 MTRRs

2020-09-20 Thread Simon Glass
At present the mtrr command only support 8 MTRRs. Some SoCs have more than that. Update the implementation to support up to 10. Read the number of MTRRs dynamically instead. Signed-off-by: Simon Glass --- arch/x86/cpu/mtrr.c | 12 +++- arch/x86/include/asm/mtrr.h | 15

[PATCH 2/3] Enlarge SPL malloc area to prevent failure in lzma decompression.

2020-09-20 Thread Mauro Condarelli
Signed-off-by: Mauro Condarelli --- configs/vocore2_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/vocore2_defconfig b/configs/vocore2_defconfig index 99a1143e6e..5776aada15 100644 --- a/configs/vocore2_defconfig +++ b/configs/vocore2_defconfig @@ -6,7 +6,7

[PATCH 1/3] Small fixes to reduce size and ensure correct console output.

2020-09-20 Thread Mauro Condarelli
Signed-off-by: Mauro Condarelli --- arch/mips/dts/vocore_vocore2.dts | 2 +- include/configs/vocore2.h| 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/mips/dts/vocore_vocore2.dts b/arch/mips/dts/vocore_vocore2.dts index 3502e4b8b7..9adf39652f 100644 ---

[PATCH 3/3] Fix missing __udivdi3 in SquashFS implementation.

2020-09-20 Thread Mauro Condarelli
Signed-off-by: Mauro Condarelli --- fs/squashfs/sqfs.c| 45 +-- fs/squashfs/sqfs_inode.c | 8 +++ include/configs/vocore2.h | 2 +- 3 files changed, 34 insertions(+), 21 deletions(-) diff --git a/fs/squashfs/sqfs.c b/fs/squashfs/sqfs.c index

[PATCH 0/3] Patches to allow running u-boot on vocore2 board

2020-09-20 Thread Mauro Condarelli
There are two distinct things here: - a few small fixes specific to vocore2 board. - fixes to SquashFS to allow compilation on 32-bit architectures. Mauro Condarelli (3): Small fixes to reduce size and ensure correct console output. Enlarge SPL malloc area to prevent failure in lzma

[PATCH 0/5] x86: Updates to some commands

2020-09-20 Thread Simon Glass
This series adds a few more features to some x86-specific commands. Simon Glass (5): x86: hob: Add way to show a single hob entry x86: hob: Try to show a name instead of a GUID x86: Allow showing details about a HOB entry x86: Add support for more than 8 MTRRs x86: video: Show

[PATCH] usb: storage: increase retries to 20

2020-09-20 Thread Stefan Agner
A JMicron JMS583 based NVMe to USB 3.1 enclosure connected to a Raspberry Pi 4 fails to enumerate as a USB Mass Storage device on first try: ... startig USB... Bus xhci_pci: Register 5000420 NbrPorts 5 Starting the controller USB XHCI 1.00 scanning bus xhci_pci for devces... Device

Pending x86 patches

2020-09-20 Thread Simon Glass
Hi Bin, At present I have a lot of x86 patches pending, such that it is very difficult to make further progress. I'd like to suggest that we get these into a 'next' branch ASAP so I can finalise the coral ACPI support. I'm happy to do this if you are busy. If there are review comments we can

Re: Pull request for UEFI sub-system for efi-2020-10-rc5 (2)

2020-09-20 Thread Tom Rini
On Sat, Sep 19, 2020 at 07:24:22AM +0200, Heinrich Schuchardt wrote: > Hello Tom, > > The following changes since commit 9de3126e80cdac7ee15b6671065a952184533dda: > > Merge branch '2020-09-16-assorted-fixes' (2020-09-17 09:53:57 -0400) > > are available in the Git repository at: > >

Re: [PATCH] usb: storage: increase retries to 20

2020-09-20 Thread Stefan Agner
On 2020-09-20 21:01, Stefan Agner wrote: > A JMicron JMS583 based NVMe to USB 3.1 enclosure connected to a Raspberry > Pi 4 fails to enumerate as a USB Mass Storage device on first try: > > ... > startig USB... > Bus xhci_pci: Register 5000420 NbrPorts 5 > Starting the controller > USB

Re: [PATCH v2 2/2] x86: acpi: Add memset to initialize SPCR table

2020-09-20 Thread Bin Meng
On Wed, Sep 16, 2020 at 11:12 PM Andy Shevchenko wrote: > > On Wed, Sep 16, 2020 at 04:57:53PM +0200, Wolfgang Wallner wrote: > > Add a missing memset to acpi_create_spcr(). > > > > The other acpi_create_() functions perform a memset on their > > structures, acpi_create_spcr() does not and as

Re: [PATCH v2 1/2] x86: acpi: Fix calculation of DSDT length

2020-09-20 Thread Bin Meng
On Wed, Sep 16, 2020 at 10:57 PM Wolfgang Wallner wrote: > > Currently, the calculation for the length of the DSDT table includes any > bytes that are added for alignment, but those bytes are not initialized. > > This is because the DSDT length is calculated after a call to > acpi_inc_align().

Re: [PATCH 3/3] Fix missing __udivdi3 in SquashFS implementation.

2020-09-20 Thread Tom Rini
On Sun, Sep 20, 2020 at 06:29:01PM +0200, Mauro Condarelli wrote: > Signed-off-by: Mauro Condarelli > --- > fs/squashfs/sqfs.c| 45 +-- > fs/squashfs/sqfs_inode.c | 8 +++ > include/configs/vocore2.h | 2 +- > 3 files changed, 34 insertions(+),

Re: [PATCH v1] cmd: acpi: Print revisions in hex format

2020-09-20 Thread Bin Meng
Hi Andy, On Tue, Sep 8, 2020 at 10:30 PM Andy Shevchenko wrote: > > The revisions are usually dates in hex-decimal format representing > mmdd. Print them in hex to see this clearly. > > Before: > ... > FACP 000e5420 f4 (v06 U-BOOT U-BOOTBL 538970376 INTL 0) > DSDT 000e4780 000ba0

RE: [PATCH 2/2] ram: add ddr4 dual x8 configuration

2020-09-20 Thread Ryan Chen
> -Original Message- > From: Dylan Hung > Sent: Monday, September 7, 2020 4:25 PM > To: Ryan Chen ; u-boot@lists.denx.de > Cc: BMC-SW > Subject: [PATCH 2/2] ram: add ddr4 dual x8 configuration > > the aspeed ddr sdram controller needs to know if the memory chip mounted > on the board is

RE: [PATCH 1/2] ram: move aspeed ram driver into drivers/ directory

2020-09-20 Thread Ryan Chen
> -Original Message- > From: Dylan Hung > Sent: Monday, September 7, 2020 4:25 PM > To: Ryan Chen ; u-boot@lists.denx.de > Cc: BMC-SW > Subject: [PATCH 1/2] ram: move aspeed ram driver into drivers/ directory > > to improve the maintainability. It is more easier to modify and add >

Re: [PATCH] acpi: device: Fix check for sequence number

2020-09-20 Thread Bin Meng
Hi Wolfgang, On Thu, Sep 10, 2020 at 3:01 PM Wolfgang Wallner wrote: > > Hi Simon, > > -"Simon Glass" schrieb: - > > Betreff: Re: [PATCH] acpi: device: Fix check for sequence number > > > > Hi Wolfgang, > > > > On Thu, 13 Aug 2020 at 01:23, Wolfgang Wallner > > wrote: > > > > > > Hi

Re: x86: apl: Acessing SPI flash when booting with Coreboot/U-Boot

2020-09-20 Thread Bin Meng
Hi Simon, Wolfgang, On Sun, Aug 16, 2020 at 11:40 AM Simon Glass wrote: > > Hi Wolfgang, > > On Fri, 14 Aug 2020 at 08:04, Wolfgang Wallner > wrote: > > > > Hi Simon, > > > > Since commit 609b90a6a9c0 ("x86: spi: Rewrite logic for obtaining the SPI > > memory map") I have trouble accessing the

RE: [PATCH] pci: layerscape: Remove the shadow SVR definitiones

2020-09-20 Thread Z.q. Hou
Hi Priyanka, Thanks a lot for your comments! > -Original Message- > From: Priyanka Jain > Sent: 2020年9月18日 21:53 > To: Z.q. Hou ; u-boot@lists.denx.de; Wasim Khan > > Cc: Z.q. Hou > Subject: RE: [PATCH] pci: layerscape: Remove the shadow SVR definitiones > > >-Original

Re: [PATCH v2 01/16] x86: Update the bootparam header

2020-09-20 Thread Bin Meng
Hi Andy, On Tue, Sep 8, 2020 at 10:06 PM Andy Shevchenko wrote: > > On Tue, Sep 01, 2020 at 04:23:45PM +0800, Bin Meng wrote: > > On Sun, Aug 30, 2020 at 5:42 AM Simon Glass wrote: > > > > > > This header is missing a few of the newer features from the specification. > > > Add these as well as

Re: Pending x86 patches

2020-09-20 Thread Bin Meng
Hi Simon, On Mon, Sep 21, 2020 at 3:19 AM Simon Glass wrote: > > Hi Bin, > > At present I have a lot of x86 patches pending, such that it is very > difficult to make further progress. > > I'd like to suggest that we get these into a 'next' branch ASAP so I > can finalise the coral ACPI support.

Re: [PATCH] x86: Drop duplicate declaration of emulator state

2020-09-20 Thread Heinrich Schuchardt
Am 21. September 2020 03:58:31 MESZ schrieb Bin Meng : >Hi Simon, > >On Sun, Sep 6, 2020 at 3:15 AM Simon Glass wrote: >> >> With x86 we can execute an option ROM either natively or using the >x86 >> emulator (if enabled with CONFIG_BIOSEMU). Both of these share the >> _X86EMU_env variable, with

Re: [PATCH v2 2/2] x86: acpi: Add memset to initialize SPCR table

2020-09-20 Thread Bin Meng
On Mon, Sep 21, 2020 at 9:43 AM Bin Meng wrote: > > On Wed, Sep 16, 2020 at 11:12 PM Andy Shevchenko > wrote: > > > > On Wed, Sep 16, 2020 at 04:57:53PM +0200, Wolfgang Wallner wrote: > > > Add a missing memset to acpi_create_spcr(). > > > > > > The other acpi_create_() functions perform a

Re: [PATCH v2 1/2] x86: acpi: Fix calculation of DSDT length

2020-09-20 Thread Bin Meng
On Mon, Sep 21, 2020 at 9:42 AM Bin Meng wrote: > > On Wed, Sep 16, 2020 at 10:57 PM Wolfgang Wallner > wrote: > > > > Currently, the calculation for the length of the DSDT table includes any > > bytes that are added for alignment, but those bytes are not initialized. > > > > This is because the

Re: [PATCH v1] x86: edison: Move config SYS_MALLOC_LEN to Kconfig

2020-09-20 Thread Bin Meng
On Mon, Sep 21, 2020 at 9:29 AM Bin Meng wrote: > > On Tue, Sep 8, 2020 at 9:57 PM Andy Shevchenko > wrote: > > > > This patch moves the the config SYS_MALLOC_LEN to Kconfig > > as it is already done for zynq arch in commit 01aa5b8f0503 > > ("Kconfig: Move config SYS_MALLOC_LEN to Kconfig for

Re: [PATCH] x86: fsp: Replace e-mmc with emmc in devicetree bindings

2020-09-20 Thread Bin Meng
On Mon, Sep 21, 2020 at 9:33 AM Bin Meng wrote: > > On Fri, Sep 11, 2020 at 10:52 PM Wolfgang Wallner > wrote: > > > > The term eMMC is used inconsistently within the FSP devicetree > > bindigs (e-mmc and emmc), especially for "emmc-host-max-speed" > > typo: bindings > > I can fix this when

Re: [PATCH] x86: fsp: Replace e-mmc with emmc in devicetree bindings

2020-09-20 Thread Bin Meng
On Fri, Sep 11, 2020 at 10:52 PM Wolfgang Wallner wrote: > > The term eMMC is used inconsistently within the FSP devicetree > bindigs (e-mmc and emmc), especially for "emmc-host-max-speed" typo: bindings I can fix this when applying > documentation and code disagree. > > Change all eMMC

Re: [PATCH v1] cmd: acpi: Print revisions in hex format

2020-09-20 Thread Bin Meng
On Mon, Sep 21, 2020 at 9:31 AM Bin Meng wrote: > > On Tue, Sep 8, 2020 at 10:30 PM Andy Shevchenko > wrote: > > > > The revisions are usually dates in hex-decimal format representing > > mmdd. Print them in hex to see this clearly. > > > > Before: > > ... > > FACP 000e5420 f4 (v06

Re: [PATCH v1] x86: edison: Move config SYS_MALLOC_LEN to Kconfig

2020-09-20 Thread Bin Meng
On Tue, Sep 8, 2020 at 9:57 PM Andy Shevchenko wrote: > > This patch moves the the config SYS_MALLOC_LEN to Kconfig > as it is already done for zynq arch in commit 01aa5b8f0503 > ("Kconfig: Move config SYS_MALLOC_LEN to Kconfig for zynq"). > > Signed-off-by: Andy Shevchenko > --- >

Re: [PATCH v1] cmd: acpi: Print revisions in hex format

2020-09-20 Thread Bin Meng
On Tue, Sep 8, 2020 at 10:30 PM Andy Shevchenko wrote: > > The revisions are usually dates in hex-decimal format representing > mmdd. Print them in hex to see this clearly. > > Before: > ... > FACP 000e5420 f4 (v06 U-BOOT U-BOOTBL 538970376 INTL 0) > DSDT 000e4780 000ba0 (v02 U-BOOT

Re: [PATCH] x86: Drop duplicate declaration of emulator state

2020-09-20 Thread Bin Meng
Hi Simon, On Sun, Sep 6, 2020 at 3:15 AM Simon Glass wrote: > > With x86 we can execute an option ROM either natively or using the x86 > emulator (if enabled with CONFIG_BIOSEMU). Both of these share the > _X86EMU_env variable, with the native code using it to hold register state > during