[u-boot-gitdm PATCH 2/2] Add some more employers

2023-12-02 Thread Simon Glass
This looks at the top unknowns: git log --pretty=%ae v2023.01.. |sed 's/.*@//' |sort |uniq -c | sort -nr | (while read count email; do if ! grep -q $email u-boot-config/domain-map; then echo "$count $email"; fi; done ) It reduces the (Unknown) count from a thir

[PATCH] mmc: Poll CD in case cyclic framework is enabled

2023-12-02 Thread Marek Vasut
In case the cyclic framework is enabled, poll the card detect of already initialized cards and deinitialize them in case they are removed. Since the card initialization is a longer process and card initialization is done on first access to an uninitialized card anyway, avoid initializing newly dete

[PATCH] mmc: Unconditionally call mmc_deinit()

2023-12-02 Thread Marek Vasut
Place the SDR104/HS200/HS400 checks into the mmc_deinit() and always call it. This simplifies the code and removes ifdeffery. No functional change is expected. Signed-off-by: Marek Vasut --- Cc: Jaehoon Chung Cc: Peng Fan --- drivers/mmc/mmc-uclass.c | 13 + drivers/mmc/mmc.c

Re: bootstd: Support for distro specific EFI folders

2023-12-02 Thread Shantur Rathore
Hi Simon, On Sat, Dec 2, 2023 at 6:33 PM Simon Glass wrote: > > Hi, > > On Mon, 20 Nov 2023 at 00:02, Ilias Apalodimas > wrote: > > > > Hi Mark, > > > > On Sun, 19 Nov 2023 at 19:38, Mark Kettenis wrote: > > > > > > > Date: Sat, 18 Nov 2023 23:52:11 +0100 > > > > From: Heinrich Schuchardt > >

Re: [PATCH v3 3/3] defconfig: rockpro64: Enable SF EFI var store

2023-12-02 Thread Shantur Rathore
Hi Simon, On Fri, Dec 1, 2023 at 6:44 PM Simon Glass wrote: > > Hi Shantur, > > On Sun, 26 Nov 2023 at 15:09, Shantur Rathore wrote: > > > > RockPro64 uses SPI Flash for storing env, also use it store > > EFI variables. > > > > Signed-off-by: Shantur Rathore > > --- > > > > configs/rockpro64-r

Re: efi: Set Variable Runtime implementation

2023-12-02 Thread Shantur Rathore
Hi Simon, On Fri, Dec 1, 2023 at 6:44 PM Simon Glass wrote: > > Hi Shantur, > > On Mon, 27 Nov 2023 at 10:27, Shantur Rathore wrote: > > > > + Simon as he seems to have done a lot of work in the driver model. > > > > On Mon, Nov 27, 2023 at 10:12 AM Shantur Rathore wrote: > > > > > > Hi Ilias,

Re: [PATCH v3 2/3] efi_vars: Implement SPI Flash store

2023-12-02 Thread Shantur Rathore
Hi Ilias, On Thu, Nov 30, 2023 at 10:10 PM Ilias Apalodimas wrote: > > Hi Shantur > > I have a few remarks on the architecture. > Up to now, we are supporting > 1. Variables on a file > 2. Variables on an RPMB > > The reason those two are in different files is that we generally > expect to use di

Re: [PATCH v4 1/8] spl: Enforce framebuffer reservation from end of RAM

2023-12-02 Thread Simon Glass
On Sat, 25 Nov 2023 at 09:27, Devarsh Thakkar wrote: > > Add an API which enforces framebuffer reservation from end of RAM. > This is done so that next stage can directly skip this region before > carrying out further reservations. > > Signed-off-by: Devarsh Thakkar > --- > V2: > No change. > > V

Re: [PATCH v2 1/2] common: board_f: change calculation of gd->mon_len to fix s5p4418 reloc

2023-12-02 Thread Simon Glass
On Mon, 27 Nov 2023 at 11:28, Stefan Bosch wrote: > > ARM and MICROBLAZE: Change calculation of monitor length (gd->mon_len) > to fix relocation at boards with s5p4418-SoC. At s5p4418, _start is > after the header (NSIH) therefore the monitor length has to be > calculated using __image_copy_start

Re: [PATCH v2 17/18] qemu-arm: Get bloblist from boot arguments

2023-12-02 Thread Simon Glass
Hi Raymond, On Mon, 27 Nov 2023 at 12:53, Raymond Mao wrote: > > Add platform custom function to get bloblist from boot arguments. This should be the same for all ARM platforms. The ultimate goal is something like [1] > Check whether boot arguments aligns with the register conventions > defined

Re: [PATCH v2 16/18] bloblist: Align bloblist used_size and total_size to spec

2023-12-02 Thread Simon Glass
On Mon, 27 Nov 2023 at 12:53, Raymond Mao wrote: > > Align used_size and total_size of the bloblist header to the definition > of the FW Handoff spec v0.9. > Update the related bloblist APIs and UT testcases. > > Signed-off-by: Raymond Mao > --- > Changes in v2 > - New patch file created for v2.

[PATCH 1/2] command: Allocate history buffer using calloc()

2023-12-02 Thread Marek Vasut
The history buffer is currently a static array which can be some 10-40 kiB depending on configuration, and so adds considerably to the U-Boot binary size. Allocate it dynamically instead to reduce the U-Boot binary size. Signed-off-by: Marek Vasut --- Cc: Simon Glass --- common/cli_readline.c |

[PATCH 2/2] command: Move command completion temporary buffer to stack

2023-12-02 Thread Marek Vasut
The command completion temporary buffer seems to be only used by the argv tokenizer, move it to stack. This saves 2 kiB from the binary size (depends on configuration) per: $ aarch64-linux-gnu-readelf -s u-boot | sort -n -k 3 Signed-off-by: Marek Vasut --- Cc: Simon Glass --- common/command.c |

Re: [PATCH] doc: Replace examples of MD5 and SHA1 with SHA256

2023-12-02 Thread Sean Anderson
On 12/2/23 14:33, Sean Anderson wrote: Both SHA1 and (especially) MD5 are no longer as safe as they once were for cryptographic use. Replaces examples which use them with examples using SHA256 instead. This will provide more-secure defaults for users who use documentation examples as a base for t

[PATCH] doc: Replace examples of MD5 and SHA1 with SHA256

2023-12-02 Thread Sean Anderson
Both SHA1 and (especially) MD5 are no longer as safe as they once were for cryptographic use. Replaces examples which use them with examples using SHA256 instead. This will provide more-secure defaults for users who use documentation examples as a base for their own use. This is not too necessary f

[PULL] u-boot-sh/master-rpc-off

2023-12-02 Thread Marek Vasut
The following changes since commit 43f2873fa98b1da6eb56d756315c7bd7db63db27: MAINTAINERS: Step up as co-maintainer of Tegra SOC platform (2023-11-28 11:23:02 -0500) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-sh.git master-rpc-off for you to fetc

Re: [PATHv11 17/43] net: sandbox: fix NULL pointer derefences

2023-12-02 Thread Tom Rini
On Sat, Dec 02, 2023 at 11:33:14AM -0700, Simon Glass wrote: > Hi Maxim, > > On Mon, 27 Nov 2023 at 11:20, Tom Rini wrote: > > > > On Mon, Nov 27, 2023 at 06:57:00PM +0600, Maxim Uvarov wrote: > > > Add additional checks for NULL pointers. > > > > > > Signed-off-by: Maxim Uvarov > > > --- > > >

Re: [PATCH v2 3/6] smbios: Use SMBIOS 3.0 to support an address above 4GB

2023-12-02 Thread Tom Rini
On Sat, Dec 02, 2023 at 11:27:15AM -0700, Simon Glass wrote: > Hi, > > On Tue, 21 Nov 2023 at 13:49, Tom Rini wrote: > > > > On Tue, Nov 21, 2023 at 10:40:39PM +0200, Ilias Apalodimas wrote: > > > Hi Simon > > > > > > On Tue, 21 Nov 2023 at 04:17, Simon Glass wrote: > > > > > > > > Hi Heinrich,

Re: [PATCH v2 01/18] bloblist: Update the tag numbering

2023-12-02 Thread Simon Glass
On Mon, 27 Nov 2023 at 12:52, Raymond Mao wrote: > > From: Simon Glass > > Align bloblist tags with the FW handoff spec v0.9. > The most common ones are from 0. > TF related ones are from 0x100. > All non-standard ones from 0xfff000. > > Signed-off-by: Simon Glass > Co-developed-by: Raymond Mao

Re: [PATCH v2 03/18] bloblist: Change the magic value

2023-12-02 Thread Simon Glass
On Mon, 27 Nov 2023 at 12:52, Raymond Mao wrote: > > From: Simon Glass > > This uses a new value with spec v0.9 so change it. > > Signed-off-by: Simon Glass > Co-developed-by: Raymond Mao > Signed-off-by: Raymond Mao > --- > Changes in v2 > - Update the bloblist alignment to align to FW handof

Re: [PATCH v2 02/18] bloblist: Adjust API to align in powers of 2

2023-12-02 Thread Simon Glass
On Mon, 27 Nov 2023 at 12:52, Raymond Mao wrote: > > From: Simon Glass > > The updated bloblist structure stores the alignment as a power-of-two > value in its structures. Adjust the API to use this, to avoid needing to > calling ilog2(). > > Drop a stale comment while we are here. > > Signed-off

Re: bootstd: Support for distro specific EFI folders

2023-12-02 Thread Simon Glass
Hi, On Mon, 20 Nov 2023 at 00:02, Ilias Apalodimas wrote: > > Hi Mark, > > On Sun, 19 Nov 2023 at 19:38, Mark Kettenis wrote: > > > > > Date: Sat, 18 Nov 2023 23:52:11 +0100 > > > From: Heinrich Schuchardt > > > > Hi Heinrich, > > > > > On 11/18/23 22:28, Shantur Rathore wrote: > > > > Hi Heinr

Re: [PATHv11 17/43] net: sandbox: fix NULL pointer derefences

2023-12-02 Thread Simon Glass
Hi Maxim, On Mon, 27 Nov 2023 at 11:20, Tom Rini wrote: > > On Mon, Nov 27, 2023 at 06:57:00PM +0600, Maxim Uvarov wrote: > > Add additional checks for NULL pointers. > > > > Signed-off-by: Maxim Uvarov > > --- > > drivers/net/sandbox.c | 5 + > > 1 file changed, 5 insertions(+) > > > > dif

Re: [PATCH 6/7] WIP: efi: Allow helloworld to exit boot services

2023-12-02 Thread Simon Glass
Hi Ilias, On Wed, 22 Nov 2023 at 00:39, Ilias Apalodimas wrote: > > Hi Simon, > > On Wed, 22 Nov 2023 at 00:10, Simon Glass wrote: > > > > Hi Heinrich, > > > > On Tue, 21 Nov 2023 at 10:17, Heinrich Schuchardt > > wrote: > > > > > > On 11/21/23 12:35, Simon Glass wrote: > > > > This allows tes

Re: [PATCH v2 18/18] bloblist: Load the bloblist from the previous loader

2023-12-02 Thread Simon Glass
Hi Raymond, On Mon, 27 Nov 2023 at 12:53, Raymond Mao wrote: > > During bloblist initialization, when CONFIG_OF_BOARD is defined, > invoke the platform custom function to load the bloblist via boot > arguments from the previous loader. > If the bloblist exists, copy it into the fixed bloblist mem

Re: [PATCH v2 12/18] bloblist: Reduce bloblist header size

2023-12-02 Thread Simon Glass
On Mon, 27 Nov 2023 at 12:53, Raymond Mao wrote: > > From: Simon Glass > > The v0.9 spec provides for a 16-byte header with fewer fields. Update > the implementation to match this. > > This also adds an alignment field. > > Signed-off-by: Simon Glass > Signed-off-by: Raymond Mao > --- > includ

Re: [PATCH v2 11/18] bloblist: Reduce blob-header size

2023-12-02 Thread Simon Glass
On Mon, 27 Nov 2023 at 12:53, Raymond Mao wrote: > > From: Simon Glass > > The v0.9 spec provides for an 8-byte header for each blob, with fewer > fields. > The blob start address should be aligned to the alignment specified > by the bloblist header. > Update the implementation to match this. > >

Re: [PATCH v2 13/18] bloblist: Add alignment to bloblist_new()

2023-12-02 Thread Simon Glass
On Mon, 27 Nov 2023 at 12:53, Raymond Mao wrote: > > From: Simon Glass > > Allow the alignment to be specified when creating a bloblist. > > Signed-off-by: Simon Glass > Signed-off-by: Raymond Mao > --- > common/bloblist.c | 5 +++-- > include/bloblist.h | 3 ++- > test/bloblist.c| 40 +

Re: [PATCH v2 14/18] bloblist: Update documentation and header comment

2023-12-02 Thread Simon Glass
On Mon, 27 Nov 2023 at 12:53, Raymond Mao wrote: > > From: Simon Glass > > Align the documentation with the v0.9 spec. > > Signed-off-by: Simon Glass > Signed-off-by: Raymond Mao > --- > doc/develop/bloblist.rst | 4 +++- > include/bloblist.h | 1 + > 2 files changed, 4 insertions(+), 1

Re: [PATCH v2 15/18] fdt: Allow the devicetree to come from a bloblist

2023-12-02 Thread Simon Glass
Hi Raymond, On Mon, 27 Nov 2023 at 12:53, Raymond Mao wrote: > > From: Simon Glass > > Standard passage provides for a bloblist to be passed from one firmware > phase to the next. That can be used to pass the devicetree along as well. > If CONFIG_OF_BOARD is defined, a board custom routine will

Re: [PATCH v2 00/18] Support Firmware Handoff spec via bloblist

2023-12-02 Thread Simon Glass
Hi Raymond, On Mon, 27 Nov 2023 at 12:52, Raymond Mao wrote: > > Major changes: > > Update bloblist to align to Firmware Handoff spec v0.9 > (https://github.com/FirmwareHandoff/firmware_handoff). > > Implement Qemu-Arm platform custom functions to retrieve the bloblist > (aka. Transfer List) from

Re: [PATCH v2 08/18] bloblist: Change the checksum algorithm

2023-12-02 Thread Simon Glass
On Mon, 27 Nov 2023 at 12:52, Raymond Mao wrote: > > From: Simon Glass > > Use a sinple 8-bit checksum for bloblist, as specified by the spec > version 0.9 > > Signed-off-by: Simon Glass > Signed-off-by: Raymond Mao > --- > common/bloblist.c | 14 -- > include/bloblist.h | 5 ++--

Re: [PATCH v2 07/18] bloblist: Drop the spare values

2023-12-02 Thread Simon Glass
On Mon, 27 Nov 2023 at 12:52, Raymond Mao wrote: > > From: Simon Glass > > There are no spare values in spec v0.9 so drop them. > > For now they are still present in the headers, with an underscore, so that > tests continue to pass. > > Signed-off-by: Simon Glass > Signed-off-by: Raymond Mao >

Re: [PATCH v2 06/18] bloblist: Drop the flags value

2023-12-02 Thread Simon Glass
On Mon, 27 Nov 2023 at 12:52, Raymond Mao wrote: > > From: Simon Glass > > There is no flags value in spec v0.9 so drop it. > > For now it is still present in the header, with an underscore, so that > tests continue to pass. > > Signed-off-by: Simon Glass > Signed-off-by: Raymond Mao > --- > c

Re: [PATCH v2 09/18] bloblist: Checksum the entire bloblist

2023-12-02 Thread Simon Glass
On Mon, 27 Nov 2023 at 12:52, Raymond Mao wrote: > > From: Simon Glass > > Spec v0.9 specifies that the entire bloblist area is checksummed, > including unused portions. Update the code to follow this. > > Signed-off-by: Simon Glass > Signed-off-by: Raymond Mao > --- > common/bloblist.c | 9 +

Re: [PATCH v2 10/18] bloblist: Handle alignment with a void entry

2023-12-02 Thread Simon Glass
On Mon, 27 Nov 2023 at 12:52, Raymond Mao wrote: > > From: Simon Glass > > Rather than setting the alignment using the header size, add an entirely > new entry to cover the gap left by the alignment. > > Signed-off-by: Simon Glass > Signed-off-by: Raymond Mao > --- > common/bloblist.c | 23 +++

Re: [PATCH v2 04/18] bloblist: Set version to 1

2023-12-02 Thread Simon Glass
On Mon, 27 Nov 2023 at 12:52, Raymond Mao wrote: > > From: Simon Glass > > The new bloblist for v0.9 has version 1 so update this value. > > Signed-off-by: Simon Glass > Co-developed-by: Raymond Mao > Signed-off-by: Raymond Mao > --- > Changes in v2 > - Update the bloblist alignment to align t

Re: [PATCH 4/5] sandbox: Audit config.h and common.h usage

2023-12-02 Thread Simon Glass
Hi Tom, On Sat, 18 Nov 2023 at 11:04, Tom Rini wrote: > > Splitting this in to two different threads.. > > On Sat, Nov 18, 2023 at 10:58:50AM -0700, Simon Glass wrote: > > Hi Tom, > > > > On Sat, 18 Nov 2023 at 10:45, Tom Rini wrote: > > > > > > On Sat, Nov 18, 2023 at 10:09:55AM -0700, Simon Gl

Re: [PATCH v4 7/8] doc: spl: Add info for missing Kconfigs

2023-12-02 Thread Simon Glass
On Sat, 25 Nov 2023 at 09:27, Devarsh Thakkar wrote: > > Add info regarding splash screen, video, bloblist and GPIO related > Kconfigs which were missing in the documentation. > > Signed-off-by: Devarsh Thakkar > --- > V2: No change > V3: No change > V4: Patch split from parent > --- > doc/devel

Re: [PATCH v2 3/6] smbios: Use SMBIOS 3.0 to support an address above 4GB

2023-12-02 Thread Simon Glass
Hi, On Tue, 21 Nov 2023 at 13:49, Tom Rini wrote: > > On Tue, Nov 21, 2023 at 10:40:39PM +0200, Ilias Apalodimas wrote: > > Hi Simon > > > > On Tue, 21 Nov 2023 at 04:17, Simon Glass wrote: > > > > > > Hi Heinrich, > > > > > > On Mon, 20 Nov 2023 at 19:11, Heinrich Schuchardt > > > wrote: > >

Re: [PATCH v4 2/2] cmd: acpi: fix acpi list command

2023-12-02 Thread Simon Glass
On Tue, 21 Nov 2023 at 07:41, Heinrich Schuchardt wrote: > > ACPI tables may comprise either RSDT, XSDT, or both. The current code fails > to check the presence of the RSDT table before accessing it. This leads to > an exception if the RSDT table is not provided. > > The XSDT table takes precedenc

Re: [PATCH v2 05/18] bloblist: Access record hdr_size and tag via a function

2023-12-02 Thread Simon Glass
On Mon, 27 Nov 2023 at 12:52, Raymond Mao wrote: > > From: Simon Glass > > These values currently use a simple field. With spec v0.9 they have moved > to a packed format. Convert most accesses to use functions, so this change > can be accomodated. > > Signed-off-by: Simon Glass > Signed-off-by:

Re: How to use I2C in U-Boot SPL

2023-12-02 Thread Simon Glass
kHi Thomas, On Wed, 22 Nov 2023 at 13:57, Thomas Thielemann wrote: > > Hello U-Boot, > > I was able to use the I2C commands from within U-Boot to control my I2C > device: > > Configured the Processor GPIOs for the I2C bus in device tree > Enabled the I2C bus in device tree > Added my device to t

Re: [PATCH 2/2 v2] smbios: Fallback to the default DT if sysinfo nodes are missing

2023-12-02 Thread Simon Glass
Hi Ilias, On Wed, 29 Nov 2023 at 23:50, Ilias Apalodimas wrote: > > Hi Simon, > > [...] > >> > Changes since v1: >> > - Tokenize the DT node entry and use the appropriate value instead of >> > the entire string >> > - Removed Peters tested/reviewed-by tags due to the above >> > lib/smbios.c |

Re: [PATCH 4/5] sandbox: Audit config.h and common.h usage

2023-12-02 Thread Simon Glass
Hi Tom, On Sat, 18 Nov 2023 at 11:44, Tom Rini wrote: > > On Sat, Nov 18, 2023 at 10:58:50AM -0700, Simon Glass wrote: > > [snip] > > I found these: > > > > https://patchwork.ozlabs.org/project/uboot/list/?series=262148&state=* > > http://patchwork.ozlabs.org/project/uboot/patch/20210925121958.26

Re: [PATCH 2/2] nvme: Update scan namespace to keep trying on busy

2023-12-02 Thread Simon Glass
On Wed, 22 Nov 2023 at 16:53, Moritz Fischer wrote: > > A busy controller shouldn't be game-over for all controllers, > so keep trying on hitting -EBUSY. > > This change brings the actual behavior of the routine in line > with what the descriptions says. > > Fixes: 982388eaa991 ("nvme: Add NVM Exp

Re: [PATCH v4 5/8] video: Skip framebuffer reservation if already reserved

2023-12-02 Thread Simon Glass
On Sat, 25 Nov 2023 at 09:27, Devarsh Thakkar wrote: > > Skip framebufer reservation if it was already reserved from previous > stage and whose information was passed using a bloblist. > > Return error in case framebuffer information received from bloblist is > invalid i.e NULL or empty. > > While

Re: [PATCH 1/2] nvme: Fix error code and log to indicate busy

2023-12-02 Thread Simon Glass
On Wed, 22 Nov 2023 at 16:52, Moritz Fischer wrote: > > Return -EBUSY if controller is found busy rather than -ENOMEM -ENODEV ? > and update the error message accordingly. > > Fixes: 982388eaa991 ("nvme: Add NVM Express driver support") > Signed-off-by: Moritz Fischer > --- > drivers/nvme/nvme

Re: [PATCH v5 05/12] usb: Avoid unbinding devices in use by bootflows

2023-12-02 Thread Simon Glass
Hi Shantur, On Thu, 23 Nov 2023 at 04:35, Shantur Rathore wrote: > > Hi Simon, > > On Tue, Nov 21, 2023 at 2:17 AM Simon Glass wrote: > > > > Hi Shantur, > > > > On Sun, 19 Nov 2023 at 15:47, Shantur Rathore wrote: > > > > > > Hi Simon, > > > > > > On Sun, Nov 19, 2023 at 7:12 PM Simon Glass w

Re: [PATCH] doc: Remove README.sha1 file

2023-12-02 Thread Simon Glass
On Wed, 22 Nov 2023 at 15:57, Peter Robinson wrote: > > The contents of README.sha1 only refer to process around verification > of the pcs440ep board firmware in flash. The device was removed in > commit 242836a893ae ("powerpc: ppc4xx: remove pcs440ep support") in > 2015 so this readme isn't reall

Re: [PATCH v4 8/8] doc: spl: Add info regarding memory reservation

2023-12-02 Thread Simon Glass
On Sat, 25 Nov 2023 at 09:27, Devarsh Thakkar wrote: > > Add details regarding scheme which need to be followed in SPL and > further stages for those regions which need to be preserved across > bootstages. > > Signed-off-by: Devarsh Thakkar > --- > V1->V3: > No change. > > V4: > Split this to sep

Re: [PATCH v2 6/7] riscv: allow usage of ACPI

2023-12-02 Thread Simon Glass
On Tue, 21 Nov 2023 at 08:28, Heinrich Schuchardt wrote: > > Select CONFIG_SUPPORT_ACPI to allow usage of ACPI tables with RISC-V. > > Signed-off-by: Heinrich Schuchardt > --- > v2: > no change > --- > arch/Kconfig | 1 + > 1 file changed, 1 insertion(+) Reviewed-by: Simon Glass Oh de

Re: [PATCH v2 4/7] risc-v: add support for QEMU firmware tables

2023-12-02 Thread Simon Glass
On Tue, 21 Nov 2023 at 08:28, Heinrich Schuchardt wrote: > > Enable the QEMU firmware interface if ACPI tables are to be supported on > the QEMU platform. > > Enable the QFW MMIO interface if the QEMU firmware interface is enabled. > > Signed-off-by: Heinrich Schuchardt > --- > v2: > depe

Re: [PATCH v2 5/6] video: Fill video handoff in video post probe

2023-12-02 Thread Simon Glass
Hi Devarsh, On Sat, 25 Nov 2023 at 07:27, Devarsh Thakkar wrote: > > Hi Simon, > > Thanks for the review. > > On 13/11/23 01:31, Simon Glass wrote: > > Hi Devarsh, > > > > On Fri, 10 Nov 2023 at 08:29, Devarsh Thakkar wrote: > >> > >> Fill video handoff fields in video_post_probe > >> as at this

Re: [PATCH v2 5/7] riscv: qemu: copy ACPI tables from QEMU

2023-12-02 Thread Simon Glass
On Tue, 21 Nov 2023 at 08:28, Heinrich Schuchardt wrote: > > If CONFIG_GENERATE_ACPI_TABLES=y, read the ACPI tables provided by QEMU > and make them available to U-Boot. > > Signed-off-by: Heinrich Schuchardt > --- > v2: > no change > --- > board/emulation/qemu-riscv/qemu-riscv.c | 17 ++

Re: [PATCH v2 3/7] risc-v: add ACPI fields to global data

2023-12-02 Thread Simon Glass
On Tue, 21 Nov 2023 at 08:28, Heinrich Schuchardt wrote: > > Add fields for the location of ACPI tables to the global data. > > Signed-off-by: Heinrich Schuchardt > --- > v2: > no change > --- > arch/riscv/include/asm/global_data.h | 4 > 1 file changed, 4 insertions(+) Reviewed-by

Re: [PATCH 01/11] global: Remove duplicate common.h inclusions

2023-12-02 Thread Simon Glass
On Wed, 22 Nov 2023 at 06:12, Tom Rini wrote: > > These files include twice. Start by removing the second > inclusion of the file. > > Signed-off-by: Tom Rini > --- > board/data_modul/common/common.c | 1 - > board/grinn/liteboard/board.c | 1 - > board/toradex/colibri_imx7

Re: [PATCH 06/11] lib/sha*.c: Update header list

2023-12-02 Thread Simon Glass
Hi Tom, On Wed, 22 Nov 2023 at 06:12, Tom Rini wrote: > > Cleanup the list of headers we include here. For the tools build we only > need to exclude as that's used by the target build for the > prototype for schedule(), and we don't need to get that via > . We can also make use of our intention

Re: [PATCH 05/11] global: Rework architecture global_data.h to include

2023-12-02 Thread Simon Glass
On Wed, 22 Nov 2023 at 06:12, Tom Rini wrote: > > In most cases, the architecture global data currently makes use of > assorted linux types, but does not include to provide > them. Add instead of relying on indirect inclusion. > > Signed-off-by: Tom Rini > --- > arch/mips/include/asm/global_da

Re: [PATCH 02/11] arm: Remove from asm/global_data.h

2023-12-02 Thread Simon Glass
On Wed, 22 Nov 2023 at 06:12, Tom Rini wrote: > > We need and include and this in turn already includes > , so drop it here. > > Signed-off-by: Tom Rini > --- > arch/arm/include/asm/global_data.h | 1 - > 1 file changed, 1 deletion(-) Reviewed-by: Simon Glass

Re: [PATCH 10/11] include: Further cleanup includes

2023-12-02 Thread Simon Glass
On Wed, 22 Nov 2023 at 06:13, Tom Rini wrote: > > Add some missing headers such as or or > to header files that make direct usage of things > provided by these headers. > > Signed-off-by: Tom Rini > --- > include/atmel_lcd.h | 2 ++ > include/getopt.h| 2 ++ > include/mapmem.h| 2 ++ >

Re: [PATCH 5/5] sysreset: Support reset via Renesas RAA215300 PMIC

2023-12-02 Thread Marek Vasut
On 11/19/23 21:52, Paul Barker wrote: On Sun, Nov 19, 2023 at 09:17:40PM +0100, Marek Vasut wrote: On 11/15/23 18:40, Paul Barker wrote: This patch allows us to reset the RZ/G2L board via the RAA215300 PMIC. Note that the RAA215300 documentation names the available reset types differently to u

Re: [PATCH 3/5] i2c: rzg2l: Add I2C driver for RZ/G2L family

2023-12-02 Thread Marek Vasut
On 11/19/23 21:48, Paul Barker wrote: On Sun, Nov 19, 2023 at 09:15:36PM +0100, Marek Vasut wrote: On 11/15/23 18:40, Paul Barker wrote: This driver supports the I2C module on the Renesas RZ/G2L (R9A07G044) SoC, also known as the RIIC module. This patch is based on both the u-boot driver in th

Re: [PATCH v7 2/2] arm64: boot: Support Flat Image Tree

2023-12-02 Thread Simon Glass
Hi Ahmad, On Thu, 30 Nov 2023 at 19:04, Ahmad Fatoum wrote: > > Hello Simon, > > On 30.11.23 21:30, Simon Glass wrote: > > On Wed, 29 Nov 2023 at 12:54, Ahmad Fatoum wrote: > >> On 29.11.23 20:44, Simon Glass wrote: > >>> On Wed, 29 Nov 2023 at 12:33, Ahmad Fatoum > >>> wrote: > > On

Re: [PATCH v2 1/9] cmd: bdinfo: Optionally use getopt and implement bdinfo -a

2023-12-02 Thread Marek Vasut
On 10/7/23 23:40, Marek Vasut wrote: Add optional support for getopt() and in case this is enabled via GETOPT configuration option, implement support for 'bdinfo -a'. The 'bdinfo -a' behaves exactly like bdinfo and prints 'all' the bdinfo information. This is implemented in preparation for other

[PATCH v2 5/5] sandbox: Drop video-sync in serial driver

2023-12-02 Thread Simon Glass
With sandbox, when U-Boot is waiting for input it syncs the video display, since presumably the user has finished typing. Now that cyclic is used for video syncing, we can drop this. Cyclic will automatically call the video_idle() function when idle. Signed-off-by: Simon Glass --- Changes in v2

[PATCH v2 4/5] sandbox: Increase cyclic CPU-time limit

2023-12-02 Thread Simon Glass
Now that sandbox is using cyclic for video, it trips the 1us time limit. Updating the sandbox display often takes 20ms or more. Increase the limit to 100ms to avoid a warning. Signed-off-by: Simon Glass --- (no changes since v1) common/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v2 3/5] video: Use cyclic to handle video sync

2023-12-02 Thread Simon Glass
At present U-Boot flushes the cache after every character written to ths display. This makes the command-line slower, to the point that pasting in long strings can fail. Add a cyclic function to sync the display every 10ms. Enable this by default. Allow much longer times for sandbox, since the SD

[PATCH v2 1/5] cyclic: Add a symbol for SPL

2023-12-02 Thread Simon Glass
The cyclic subsystem is currently enabled either in all build phases or none. For tools this should not be enabled, but since lib/shc256.c and other files include watchdog.h in the host build, we must make sure that it is not enabled there. Add an SPL symbol so that there is more control of this.

[PATCH v2 2/5] video: Move last_sync to private data

2023-12-02 Thread Simon Glass
Rather than using a static variable, use the video device's private data to remember when the last video sync was completed. This allows each display to have its own sync and avoids using static data in SPL. Signed-off-by: Simon Glass --- (no changes since v1) drivers/video/video-uclass.c | 10

[PATCH v2 0/5] video: Improve syncing performance with cyclic

2023-12-02 Thread Simon Glass
Now that U-Boot has a background-processing feature, it is possible to reduce the amount of 'foreground' syncing of the display. At present this happens quite often. Foreground syncing blocks all other processing, sometimes for 10ms or more. When pasting commands into U-Boot over the UART, this ty

[PATCH v2] net: designware: Support high memory nodes

2023-12-02 Thread Nils Le Roux
Some platforms (such as the Lichee Pi 4A) have their dwmac device addressable only in high memory space. Storing the node's base address on 32 bits is not possible in such case. Use platform's physical address type to store the base address. Signed-off-by: Nils Le Roux Cc: Andre Przywara --- C