[PATCH] scsi: set dma direction to NONE for TEST UNIT READY

2023-11-12 Thread Nikita Yushchenko
SCSI device scan code was executing TEST UNIT READY command without explicitly setting dma direction in struct scsi_cmd to NONE, so command was passed to driver with dma direction set to DMA_FROM_DEVICE, inherited from older usage. With WDC SDINDDH6-64G ufs device, that caused TEST UNIT READY to

Re: [PATCH] efi_loader: Fix UEFI variable error handling

2023-11-12 Thread Weizhao Ouyang
On Fri, Nov 10, 2023 at 9:12 PM Heinrich Schuchardt wrote: > > > > Am 10. November 2023 11:04:24 MEZ schrieb Ilias Apalodimas > : > >Hi Heinrich, Weizhao > > > >On Thu, 9 Nov 2023 at 15:57, Heinrich Schuchardt wrote: > >> > >> On 11/9/23 04:55, Weizhao Ouyang wrote: > >> > Correct some UEFI

[PATCH 2/2] arm: dts: k3-j721e-*: Sync with kernel v6.7-rc1

2023-11-12 Thread Neha Malcom Francis
Sync the U-Boot DTS files with those of Kernel v6.7-rc1. Signed-off-by: Neha Malcom Francis --- arch/arm/dts/k3-j721e-main.dtsi | 2 +- arch/arm/dts/k3-j721e-mcu-wakeup.dtsi | 9 - 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/arch/arm/dts/k3-j721e-main.dtsi

[PATCH 1/2] dt-bindings: misc: Move esm-k3.txt to ti,j721e-esm.yaml

2023-11-12 Thread Neha Malcom Francis
Move esm-k3.txt to ti,j721e-esm.yaml in line with the devicetree documentation in kernel. Signed-off-by: Neha Malcom Francis --- doc/device-tree-bindings/misc/esm-k3.txt | 25 - .../misc/ti,j721e-esm.yaml| 53 +++ 2 files changed, 53

[PATCH 0/2] J721E DTS Sync with Kernel v6.7-rc1

2023-11-12 Thread Neha Malcom Francis
This series aims to sync kernel.org v6.7-rc1 DTS with that of U-Boot. It also includes inclusion of an updated devicetree documentation for ti,j721e-esm. Boot logs: https://gist.github.com/nehamalcom/0eef30308f1910eea5eafefe2c4b7bcf Neha Malcom Francis (2): dt-bindings: misc: Move esm-k3.txt

Re: [PATCH v2] usb: dwc3-generic: Use combined glue and ctrl node for RK3588

2023-11-12 Thread Marek Vasut
On 11/12/23 16:25, Jonas Karlman wrote: Like Rockchip RK3328 and RK3568, the RK3588 also have a single node to represent the glue and ctrl for USB 3.0. Use rk_ops as driver data to select correct ctrl node for RK3588 DWC3. Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang Reviewed-by:

Re: [PATCH v2 1/2] configs: rockchip: Use dwc3-generic driver on RK3328 and RK3399

2023-11-12 Thread Marek Vasut
On 11/12/23 18:48, Jonas Karlman wrote: diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig index b501ea514bca..d92d87af52ef 100644 --- a/drivers/usb/host/Kconfig +++ b/drivers/usb/host/Kconfig @@ -39,7 +39,6 @@ config USB_XHCI_DWC3 config USB_XHCI_DWC3_OF_SIMPLE bool

[PATCH 8/9] sysinfo: Allow displaying more info on startup

2023-11-12 Thread Simon Glass
At present only the model name is shown on start. Some boards want to display more information. Add some more options to allow display of the manufacturer as well as the version and date of any prior-stage firmware. This is useful for coreboot, at least. If other boards have more information to

[PATCH 9/9] x86: coreboot: Add a sysinfo driver

2023-11-12 Thread Simon Glass
Create a sysinfo driver to avoid needing a custom checkboard() function. With this the following information is printed when booting from coreboot under QEMU: Model: Standard PC (i440FX + PIIX, 1996) Manufacturer: QEMU Prior-stage version: 4.21-885-g2a87ef1eca56 Prior-stage date:

[PATCH 4/9] solidrun: Use checkboard() instead of show_board_info()

2023-11-12 Thread Simon Glass
Boards can use a sysinfo driver if a particular model name is needed. Update this board to use checkboard() directly, rather than having a weak function laid on top of a weak function. Signed-off-by: Simon Glass --- board/solidrun/mx6cuboxi/mx6cuboxi.c | 7 +-- 1 file changed, 1

[PATCH 5/9] toradex: Use checkboard() instead of show_board_info()

2023-11-12 Thread Simon Glass
Boards can use a sysinfo driver if a particular model name is needed. Update this board to use checkboard() directly, rather than having a weak function laid on top of a weak function. Make all the checkboard() functions call the new tdx_checkboard() so that the same information is displayed.

[PATCH 7/9] Revert "generic-board: make show_board_info a weak function"

2023-11-12 Thread Simon Glass
We already have: - a sysinfo driver-interface which can obtain the model - a weak function called checkboard() for showing board info The current implementation has a weak function on top of a weak function. Now that all boards have been updated to use checkboard() instead, drop the __weak on

[PATCH 6/9] udoo: Use checkboard() instead of show_board_info()

2023-11-12 Thread Simon Glass
Boards can use a sysinfo driver if a particular model name is needed. Update this board to use checkboard() directly, rather than having a weak function laid on top of a weak function. Signed-off-by: Simon Glass --- board/udoo/neo/neo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH 3/9] turris: Use checkboard() instead of show_board_info()

2023-11-12 Thread Simon Glass
Boards can use a sysinfo driver if a particular model name is needed. Update this board to use checkboard() directly, rather than having a weak function laid on top of a weak function. Signed-off-by: Simon Glass --- board/CZ.NIC/turris_mox/turris_mox.c | 2 +-

[PATCH 2/9] meson: Use checkboard() instead of show_board_info()

2023-11-12 Thread Simon Glass
Boards can use a sysinfo driver if a particular model name is needed. Update this board to use checkboard() directly, rather than having a weak function laid on top of a weak function. Signed-off-by: Simon Glass --- arch/arm/mach-meson/board-info.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH 0/9] sysinfo: Expand sysinfo with some more banner information

2023-11-12 Thread Simon Glass
The show_board_info() function was adjusted to weak so that it could be entirely replaced with a board-specific implementation. The intended way for boards to provide their own information is via a sysinfo driver. But currently there is no way to show anything other than the model name. This

[PATCH 1/9] board: Move show_board_info() comment to header file

2023-11-12 Thread Simon Glass
Move this comment to its prototype and tidy it up a bit. Signed-off-by: Simon Glass --- common/board_info.c | 6 -- include/init.h | 11 +++ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/common/board_info.c b/common/board_info.c index

Re: [PATCH v2] clk: nuvoton: add read only feature for clk driver

2023-11-12 Thread Jim Liu
Hi Sean Thanks for your review. The spi clock setting is related to booting flash, it is setup by early bootloader and we don't want u-boot to change it Best regards, Jim On Thu, Nov 9, 2023 at 2:07 AM Sean Anderson wrote: > > On 11/7/23 04:01, Jim Liu wrote: > > Add a flag to set

[PATCH v2 5/5] test: dm: add scmi command test

2023-11-12 Thread AKASHI Takahiro
In this test, "scmi" command is tested against different sub-commands. Please note that scmi command is for debug purpose and is not intended in production system. Signed-off-by: AKASHI Takahiro Reviewed-by: Simon Glass Reviewed-by: Etienne Carriere --- v7 * make test assertions more flexible

[PATCH v2 4/5] doc: cmd: add documentation for scmi

2023-11-12 Thread AKASHI Takahiro
This is a help text for scmi command. Signed-off-by: AKASHI Takahiro Reviewed-by: Simon Glass Reviewed-by: Etienne Carriere --- v6 * add the manual to doc/usage/index.rst v4 * s/tranport/transport/ v2 * add more descriptions about SCMI --- doc/usage/cmd/scmi.rst | 126

[PATCH v2 3/5] cmd: add scmi command for SCMI firmware

2023-11-12 Thread AKASHI Takahiro
This command, "scmi", may provide a command line interface to various SCMI protocols. It supports at least initially SCMI base protocol and is intended mainly for debug purpose. Signed-off-by: AKASHI Takahiro Reviewed-by: Simon Glass Reviewed-by: Etienne Carriere --- v8 (actually v2 as SCMI

[PATCH v2 2/5] firmware: scmi: support protocols on sandbox only if enabled

2023-11-12 Thread AKASHI Takahiro
This change will be useful when we manually test SCMI on sandbox by enabling/disabling a specific SCMI protocol. Signed-off-by: AKASHI Takahiro --- drivers/firmware/scmi/sandbox-scmi_agent.c | 27 ++- drivers/firmware/scmi/sandbox-scmi_devices.c | 78 2 files changed,

[PATCH v2 1/5] test: dm: skip scmi tests against disabled protocols

2023-11-12 Thread AKASHI Takahiro
This is a precautionary change to make scmi tests workable whether or not a specific protocol be enabled. Signed-off-by: AKASHI Takahiro --- test/dm/scmi.c | 12 1 file changed, 12 insertions(+) diff --git a/test/dm/scmi.c b/test/dm/scmi.c index da45314f2e4c..2f63f2da16fb 100644

[PATCH v2 0/5] cmd: add scmi command

2023-11-12 Thread AKASHI Takahiro
"Scmi" command will be re-introduced per Michal's request. The functionality is the same as I put it in my patch set of adding SCMI base protocol support, but made some tweak to make UT, "ut dm scmi_cmd," more flexible and tolerable when enabling/disabling a specific SCMI protocol for test

Re: [PATCH 5/5] test: dm: add scmi command test

2023-11-12 Thread AKASHI Takahiro
Hi Tom, On Fri, Nov 10, 2023 at 01:21:37PM -0500, Tom Rini wrote: > On Wed, Oct 25, 2023 at 02:14:27PM +0900, AKASHI Takahiro wrote: > > > In this test, "scmi" command is tested against different sub-commands. > > Please note that scmi command is for debug purpose and is not intended > > in

Re: [PATCH] sandbox: Fix VPL instructions

2023-11-12 Thread Heinrich Schuchardt
On 11/12/23 15:44, Simon Glass wrote: Fix the devicetree used with sandbox. This is needed because the default (full) devicetree must be used by all phases of boot, with sandbox. Signed-off-by: Simon Glass --- doc/arch/sandbox/sandbox.rst | 2 +- 1 file changed, 1 insertion(+), 1

Re: [PATCH] configs: rockpro64: Enable SPI command and full BOOTSTD

2023-11-12 Thread Shantur Rathore
Hey Jonas, This sounds like a good idea. Please implement this. Kind regards, Shantur On Sun, Nov 12, 2023 at 3:01 PM Jonas Karlman wrote: > > Hi Shantur, > > On 2023-11-12 15:21, Shantur Rathore wrote: > > Hey Jonas, > > > >> For normal generic use the full bootstd commands should not be

[PATCH v2 1/1] acpi: cannot have RSDT above 4 GiB

2023-11-12 Thread Heinrich Schuchardt
The field RsdtAddress has only 32 bit. The RSDT table cannot be located beyond 4 GiB. Signed-off-by: Heinrich Schuchardt --- v2: Avoid superfluous 0 assignment. RSDP is already zeroed out. Use constants form linux/sizes.h --- lib/acpi/base.c | 23 --- 1 file

Re: [PATCH] efi_loader: Increase default variable store size to 128K

2023-11-12 Thread Heinrich Schuchardt
On 11/6/23 16:47, Ilias Apalodimas wrote: In commit 9fd3f881c6ed ("efi_loader: Increase default variable store size to 64KiB") Alper has a detailed explanation of why the size needs to be bumped to at least 64K. However enabling Secure boot, writing db, KEK, PK etc keys will further increase

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

2023-11-12 Thread Heinrich Schuchardt
Am 12. November 2023 22:20:50 MEZ schrieb Simon Glass : >Hi Heinrich, > >On Sun, 12 Nov 2023 at 13:32, Heinrich Schuchardt wrote: >> >> >> >> Am 12. November 2023 21:02:42 MEZ schrieb Simon Glass : >> >When a USB device is unbound, it causes any bootflows attached to it to >> >be removed, via

Pull request: u-boot-sunxi/master for 2024.01

2023-11-12 Thread Andre Przywara
Hi Tom, please pull some more sunxi changes for this cycle: the first few patches are some easy refactorings and fixes, most of them actually don't change the generated binaries at all. Then there is a defconfig for a new board, for which we just gained the .dts file from the last kernel DT

Re: [PATCH 1/1] acpi: cannot have RSDT above 4 GiB

2023-11-12 Thread Simon Glass
Hi Heinrich, On Sun, 12 Nov 2023 at 13:16, Heinrich Schuchardt wrote: > > > > Simon Glass schrieb am So., 12. Nov. 2023, 21:03: >> >> Hi Heinrich, >> >> On Sat, 11 Nov 2023 at 07:28, Heinrich Schuchardt >> wrote: >> > >> > The field RsdtAddress has only 32 bit. The RSDT table cannot be located

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

2023-11-12 Thread Simon Glass
Hi Heinrich, On Sun, 12 Nov 2023 at 13:32, Heinrich Schuchardt wrote: > > > > Am 12. November 2023 21:02:42 MEZ schrieb Simon Glass : > >When a USB device is unbound, it causes any bootflows attached to it to > >be removed, via a call to bootdev_clear_bootflows() from > >bootdev_pre_unbind().

[PATCH v2 3/3] efi: Avoid using dm_scan_other()

2023-11-12 Thread Simon Glass
This function is defined by bootstd so using it precludes using that feature. Use the board_early_init_r() feature instead. This requires moving quite a lot of code into the board directory, butt this is the normal place for code called by board_early_init_r() Signed-off-by: Simon Glass ---

[PATCH v2 2/3] efi: Correct display of table GUIDs

2023-11-12 Thread Simon Glass
The printf() %pU option decodes GUIDs so it is not necessary to do this first. Drop the incorrect code. Signed-off-by: Simon Glass --- (no changes since v1) cmd/efi_common.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cmd/efi_common.c b/cmd/efi_common.c index

[PATCH v2 1/3] efi: Collect the ACPI tables in the app

2023-11-12 Thread Simon Glass
Locate these so that they can be displayed using the 'acpi' command. Signed-off-by: Simon Glass --- (no changes since v1) lib/efi/efi_app.c | 24 +--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/lib/efi/efi_app.c b/lib/efi/efi_app.c index

[PATCH v2 0/3] efi: Minor improvements for the EFI app

2023-11-12 Thread Simon Glass
This series collects a few fixes and improvements useful when booting U-Boot as an EFI app. Changes in v2: - Drop duplicate acpi_xsdt patch - Put the board_early_init_r code into board/ Simon Glass (3): efi: Collect the ACPI tables in the app efi: Correct display of table GUIDs efi: Avoid

Re: [PATCH v4 08/12] video: Drop unnecessary truetype operations from SPL

2023-11-12 Thread Anatolij Gustschin
On Sun, 12 Nov 2023 13:02:45 -0700 Simon Glass s...@chromium.org wrote: > Saving and restoring entries is used for expo and for the command line, > which we don't use in SPL. Drop these methods. > > Signed-off-by: Simon Glass > Reviewed-by: Bin Meng > --- > > (no changes since v3) > >

Re: [PATCH v4 07/12] video: Correct setting of cursor position

2023-11-12 Thread Anatolij Gustschin
On Sun, 12 Nov 2023 13:02:44 -0700 Simon Glass s...@chromium.org wrote: > The ANSI codes are not correctly handled at present, in that the > requested X position is added to the current one. > > Correct this and also call vidconsole_entry_start() to start a new text > line. > > Signed-off-by:

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

2023-11-12 Thread Heinrich Schuchardt
Am 12. November 2023 21:02:42 MEZ schrieb Simon Glass : >When a USB device is unbound, it causes any bootflows attached to it to >be removed, via a call to bootdev_clear_bootflows() from >bootdev_pre_unbind(). This obviously makes it impossible to boot the >bootflow. > >However, when booting a

Re: [PATCH v3 07/12] video: Correct setting of cursor position

2023-11-12 Thread Anatolij Gustschin
On Sun, 1 Oct 2023 19:14:42 -0600 Simon Glass s...@chromium.org wrote: > The ANSI codes are not correctly handled at present, in that the > requested X position is added to the current one. > > Correct this and also call vidconsole_entry_start() to start a new text > line. > > Signed-off-by:

Re: [PATCH 1/1] acpi: cannot have RSDT above 4 GiB

2023-11-12 Thread Heinrich Schuchardt
Simon Glass schrieb am So., 12. Nov. 2023, 21:03: > Hi Heinrich, > > On Sat, 11 Nov 2023 at 07:28, Heinrich Schuchardt > wrote: > > > > The field RsdtAddress has only 32 bit. The RSDT table cannot be located > > beyond 4 GiB. > > > > Signed-off-by: Heinrich Schuchardt > > --- > >

Re: [PATCH v3 07/12] video: Correct setting of cursor position

2023-11-12 Thread Simon Glass
Hi Anatolij, On Sun, 1 Oct 2023 at 19:15, Simon Glass wrote: > > The ANSI codes are not correctly handled at present, in that the > requested X position is added to the current one. > > Correct this and also call vidconsole_entry_start() to start a new text > line. > > Signed-off-by: Simon Glass

Re: [PATCH v2 4/6] video: Skip framebuffer reservation if already reserved

2023-11-12 Thread Simon Glass
Hi Devarsh, On Fri, 10 Nov 2023 at 08:29, Devarsh Thakkar wrote: > > Skip framebufer reservation if it was already reserved > from previous stage and whose information was passed > using a bloblist. > > Signed-off-by: Devarsh Thakkar > Reviewed-by: Simon Glass > --- > V2: > - Add debug prints

Re: [PATCH] configs: rockpro64: Enable SPI command and full BOOTSTD

2023-11-12 Thread Simon Glass
Hi Jonas, On Sun, 12 Nov 2023 at 07:53, Jonas Karlman wrote: > > Hi Simon, > > On 2023-11-12 15:22, Simon Glass wrote: > > Hi Jonas, > > > > On Sun, 12 Nov 2023 at 05:50, Jonas Karlman wrote: > >> > >> Hi Shantur, > >> > >> On 2023-11-12 13:34, Shantur Rathore wrote: > >>> Hi Jonas, > >>> >

Re: [PATCH v2 2/6] board: ti: am62x: evm: Remove video_setup from spl_board_init

2023-11-12 Thread Simon Glass
On Fri, 10 Nov 2023 at 08:29, Devarsh Thakkar wrote: > > Remove video_setup from evm_init sequence since video memory > is getting called at an earlier place to make sure > video memory is reserved at the end of RAM. > > Suggested-by: Simon Glass > Signed-off-by: Devarsh Thakkar > --- > V2: No

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

2023-11-12 Thread Simon Glass
Hi Devarsh, On Fri, 10 Nov 2023 at 08:29, Devarsh Thakkar wrote: > > Fill video handoff fields in video_post_probe > as at this point we have full framebuffer-related > information. > > Also fill all the fields available in video hand-off > struct as those were missing earlier and U-boot U-Boot

Re: [PATCH v4 4/5] dm: core: Modify default for OFNODE_MULTI_TREE

2023-11-12 Thread Simon Glass
Hi Sean, On Fri, 3 Nov 2023 at 13:38, Simon Glass wrote: > > On Fri, 3 Nov 2023 at 12:38, wrote: > > > > From: Sean Edmond > > > > There is a preference to use the "ofnode" API for FDT fixups > > moving forward. The FDT fixup will usually be for the kernel FDT. To > > fixup the kernel FDT

Re: [PATCH v2 1/2] acpi: fix struct acpi_xsdt

2023-11-12 Thread Simon Glass
On Sun, 12 Nov 2023 at 00:03, Heinrich Schuchardt wrote: > > The size of the ACPI table header is not a multiple of 8. We have to mark > struct acpi_xsdt as packed to correctly access field Entry. > > Add a unit test for the offsets of field Entry in the RSDT and XSDT tables. > > Signed-off-by:

[PATCH v3 2/2] blk: Drop reference to DM_SPL

2023-11-12 Thread Simon Glass
The intent here is to only allow SPL_LEGACY_BLK if !SPL_DM - i.e. that when driver model is enabled in SPL, legacy block cannot be used. However this combination is used by about 240 boards, so we cannot disallow it, at least not yet. So just drop the condition. Signed-off-by: Simon Glass ---

[PATCH v3 1/2] dm: core: Correct reference to DM_SPL in SPL_DM_STATS

2023-11-12 Thread Simon Glass
This does not existing anymore. Update SPL_DM_STATS to use the correct Kconfig option, which is SPL_DM Signed-off-by: Simon Glass --- Changes in v3: - Split the patch into two Changes in v2: - Add new patch to correct references to DM_SPL drivers/core/Kconfig | 2 +- 1 file changed, 1

Re: [PATCH v2 6/6] doc: spl: Add info regarding memory reservation and missing Kconfigs

2023-11-12 Thread Simon Glass
Hi Devarsh, On Fri, 10 Nov 2023 at 08:29, Devarsh Thakkar wrote: > > Add information regarding memory reservation scheme in SPL > and details regarding scheme which need to be followed while reserving > those areas which need to be preserved across bootstages. > > Also add missing CONFIG_SPL

Re: [PATCH v4 3/5] cmd: kaslrseed: Use common API to fixup FDT

2023-11-12 Thread Simon Glass
Hi Sean, On Fri, 3 Nov 2023 at 12:38, wrote: > > From: Sean Edmond > > Use the newly introduced common API fdt_fixup_kaslr_seed() in the > kaslrseed command. > > Signed-off-by: Sean Edmond > --- > cmd/kaslrseed.c | 22 -- > 1 file changed, 8 insertions(+), 14 deletions(-)

Re: [PATCH 1/4] acpi: Use __packed with struct acpi_xsdt

2023-11-12 Thread Simon Glass
Hi Heinrich, On Sun, 12 Nov 2023 at 09:46, Heinrich Schuchardt wrote: > > On 11/12/23 16:58, Simon Glass wrote: > > Since struct acpi_table_header is not a multiple of 64 bits, use the > > __packed option for struct acpi_xsdt > > > > This ensures that the entry[] array starts on the correct

Re: [PATCH 3/4] efi: Correct display of table GUIDs

2023-11-12 Thread Simon Glass
Hi Heinrich, On Sun, 12 Nov 2023 at 09:58, Heinrich Schuchardt wrote: > > On 11/12/23 16:58, Simon Glass wrote: > > The printf() %pU option decodes GUIDs so it is not necessary to do this > > first. Drop the incorrect code. > > > > Signed-off-by: Simon Glass > > --- > > > > cmd/efi_common.c |

Re: [PATCH v4 1/5] fdt: common API to populate kaslr seed

2023-11-12 Thread Simon Glass
Hi Sean, On Fri, 3 Nov 2023 at 12:39, wrote: > > From: Dhananjay Phadke > > fdt_fixup_kaslr_seed() will update given ofnode with random seed value. > Source for random seed can be TPM or RNG driver in u-boot or sec > firmware (ARM). > > Signed-off-by: Dhananjay Phadke > Signed-off-by: Sean

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

2023-11-12 Thread Simon Glass
On Sun, 12 Nov 2023 at 07:40, 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 1/1] acpi: cannot have RSDT above 4 GiB

2023-11-12 Thread Simon Glass
Hi Heinrich, On Sat, 11 Nov 2023 at 07:28, Heinrich Schuchardt wrote: > > The field RsdtAddress has only 32 bit. The RSDT table cannot be located > beyond 4 GiB. > > Signed-off-by: Heinrich Schuchardt > --- > lib/acpi/base.c | 26 +++--- > 1 file changed, 19 insertions(+),

Re: [PATCH v2 1/6] arm: mach-k3: common: Reserve video memory from end of the RAM

2023-11-12 Thread Simon Glass
Hi Devarsh, On Fri, 10 Nov 2023 at 08:29, Devarsh Thakkar wrote: > > Add function spl_reserve_video which is a wrapper > around video_reserve to setup video memory and update > the relocation address pointer. > > Setup video memory before page table reservation so that > framebuffer memory gets

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

2023-11-12 Thread Simon Glass
On Sun, 12 Nov 2023 at 00:03, 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

Re: [PATCH 4/4] efi: Avoid using dm_scan_other()

2023-11-12 Thread Simon Glass
Hi Tom, Heinrich, On Sun, 12 Nov 2023 at 12:20, Heinrich Schuchardt wrote: > > > > Am 12. November 2023 19:03:57 MEZ schrieb Tom Rini : > >On Sun, Nov 12, 2023 at 08:58:05AM -0700, Simon Glass wrote: > >> This function is defined by bootstd so using it precludes using that > >> feature. Use the

[PATCH v4 11/12] x86: qemu: Expand ROM size

2023-11-12 Thread Simon Glass
Expand the ROM for x86_64 to 2MB to make space for the font, as it is already on the edge. Signed-off-by: Simon Glass --- (no changes since v1) board/emulation/qemu-x86/Kconfig | 3 ++- configs/qemu-x86_64_defconfig| 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git

[PATCH v4 10/12] x86: coreboot: Enable truetype fonts

2023-11-12 Thread Simon Glass
Truetype fonts look better in the menu, so enable them. Signed-off-by: Simon Glass --- (no changes since v3) Changes in v3: - Add new patch to enable truetype fonts in coreboot arch/x86/dts/coreboot.dts| 10 ++ configs/coreboot64_defconfig | 1 + configs/coreboot_defconfig |

[PATCH v4 12/12] x86: qemu: Enable truetype fonts

2023-11-12 Thread Simon Glass
Enable this feature to provide a larger font choice and more attractive menus. Expand the ROM for x86_64 to 2MB to make space for the font. Signed-off-by: Simon Glass --- (no changes since v3) Changes in v3: - Add new patch to enable truetype fonts in qemu-x86 and qemu-x86_64

[PATCH v4 09/12] x86: Enable SSE in 64-bit mode

2023-11-12 Thread Simon Glass
This is needed to support Truetype fonts. In any case, the compiler expects SSE to be available in 64-bit mode. Provide an option to enable SSE so that hardware floating-point arithmetic works. Signed-off-by: Simon Glass Suggested-by: Bin Meng --- Changes in v4: - Use a Kconfig option

[PATCH v4 07/12] video: Correct setting of cursor position

2023-11-12 Thread Simon Glass
The ANSI codes are not correctly handled at present, in that the requested X position is added to the current one. Correct this and also call vidconsole_entry_start() to start a new text line. Signed-off-by: Simon Glass --- (no changes since v1) drivers/video/vidconsole-uclass.c | 15

[PATCH v4 08/12] video: Drop unnecessary truetype operations from SPL

2023-11-12 Thread Simon Glass
Saving and restoring entries is used for expo and for the command line, which we don't use in SPL. Drop these methods. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- (no changes since v3) Changes in v3: - Add new patch to drop unnecessary truetype operations from SPL

[PATCH v4 03/12] bootstd: Add a return code to bootflow menu

2023-11-12 Thread Simon Glass
Return an error when the user does not select an OS, so we know whether to boot or not. Move calling of bootflow_menu_run() into a separate function so we can call it from other places. Expand the test to cover these cases. Add some documentation also, while we are here. Signed-off-by: Simon

[PATCH v4 01/12] efi: Correct handling of frame buffer

2023-11-12 Thread Simon Glass
The efi_gop driver uses private fields from the video uclass to obtain a pointer to the frame buffer. Use the platform data instead. Check the VIDEO_COPY setting to determine which frame buffer to use. Once the next stage is running (and making use of U-Boot's EFI boot services) U-Boot does not

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

2023-11-12 Thread Simon Glass
When a USB device is unbound, it causes any bootflows attached to it to be removed, via a call to bootdev_clear_bootflows() from bootdev_pre_unbind(). This obviously makes it impossible to boot the bootflow. However, when booting a bootflow that relies on USB, usb_stop() is called, which unbinds

[PATCH v4 06/12] expo: Correct background colour

2023-11-12 Thread Simon Glass
Use the correct background colour when using white-on-black. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- (no changes since v1) boot/expo.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/boot/expo.c b/boot/expo.c index 139d684f8e6e..cadb6a0ad6e3 100644 ---

[PATCH v4 04/12] x86: coreboot: Add a boot script

2023-11-12 Thread Simon Glass
Provide the user with a list of available boot options. Selecting one causes it to be booted. Pressing causes U-Boot to return to the command-line prompt. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- (no changes since v3) Changes in v3: - Clear the screen before booting Changes in

[PATCH v4 02/12] bootstd: Refactor mmc prep to allow a different scan

2023-11-12 Thread Simon Glass
Adjust scan_mmc4_bootdev() and related function so that the caller can do its own 'bootflow scan' command. This allows it to change the flags if needed. Signed-off-by: Simon Glass --- (no changes since v3) Changes in v3: - Add new patch to refactor mmc prep to allow a different scan

[PATCH v4 00/12] Resolve issues with booting distros on x86

2023-11-12 Thread Simon Glass
This little series reprises the EFI-video fix, fixes a USB problem and enables a boot script for coreboot. It also moves to truetype fonts for coreboot and qemu-x86, since the menus look much better and there are no strong size constraints. With these changes it is possible to boot a Linux

Re: [PATCH v2 3/6] common/board_f: Catch bloblist before starting resevations

2023-11-12 Thread Simon Glass
On Fri, 10 Nov 2023 at 08:29, Devarsh Thakkar wrote: > > Start reservations needed for init sequence only after catching > bloblists from previous stage. > > This is to avoid catching bloblists in the middle causing > gaps while u-boot is reserving. > > Adjust the relocaddr as per video hand-off

Re: [PATCH v2 4/4] usb: Avoid unbinding devices in use by bootflows

2023-11-12 Thread Simon Glass
Hi Mattijs, On Sat, 23 Sept 2023 at 10:39, Mattijs Korpershoek wrote: > > Hi Simon, > > Thank you for your patch. Thanks for reviewing it! > > On ven., sept. 22, 2023 at 15:38, Simon Glass wrote: > > > When a USB device is unbound, it causes any bootflows attached to it to > > be removed, via

Re: [PATCH v3 09/12] x86: Enable SSE in 64-bit mode

2023-11-12 Thread Simon Glass
Hi Bin, On Mon, 6 Nov 2023 at 08:36, Tom Rini wrote: > > On Mon, Nov 06, 2023 at 06:26:15PM +0800, Bin Meng wrote: > > + Tom, > > > > Hi Simon, > > > > On Mon, Nov 6, 2023 at 12:29 AM Simon Glass wrote: > > > > > > Hi Bin, > > > > > > On Sun, 5 Nov 2023 at 14:05, Bin Meng wrote: > > > > > > >

Re: [PATCH 2/4] efi: Collect the ACPI tables in the app

2023-11-12 Thread Simon Glass
Hi Heinrich, On Sun, 12 Nov 2023 at 09:22, Heinrich Schuchardt wrote: > > On 11/12/23 16:58, Simon Glass wrote: > > Locate these so that they can be displayed using the 'acpi' command. > > > > Signed-off-by: Simon Glass > > --- > > > > lib/efi/efi_app.c | 24 +--- > > 1

Re: [PATCH 4/4] efi: Avoid using dm_scan_other()

2023-11-12 Thread Tom Rini
On Sun, Nov 12, 2023 at 08:19:57PM +0100, Heinrich Schuchardt wrote: > > > Am 12. November 2023 19:03:57 MEZ schrieb Tom Rini : > >On Sun, Nov 12, 2023 at 08:58:05AM -0700, Simon Glass wrote: > >> This function is defined by bootstd so using it precludes using that > >> feature. Use the

Re: [PATCH 4/4] efi: Avoid using dm_scan_other()

2023-11-12 Thread Heinrich Schuchardt
Am 12. November 2023 19:03:57 MEZ schrieb Tom Rini : >On Sun, Nov 12, 2023 at 08:58:05AM -0700, Simon Glass wrote: >> This function is defined by bootstd so using it precludes using that >> feature. Use the board_early_init_r() feature instead. >> >> Signed-off-by: Simon Glass >> --- >> >>

Re: Pull request doc-2024-01-rc3

2023-11-12 Thread Tom Rini
On Sat, Nov 11, 2023 at 04:34:49AM +0100, Heinrich Schuchardt wrote: > Dear Tom, > > The following changes since commit da2e3196e4dc28298b58a018ace07f85eecd1652: > > Merge patch series "arm: dts: k3-am6: Fix Ethernet/DMA" (2023-11-10 > 15:25:47 -0500) > > are available in the Git repository

Re: [PATCH 1/7] boot: Drop size parameter from image_setup_libfdt()

2023-11-12 Thread Tom Rini
On Sun, Nov 12, 2023 at 08:27:44AM -0700, Simon Glass wrote: > The of_size parameter is not used, so remove it. > > Signed-off-by: Simon Glass Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature

Re: [PATCH 4/7] fdt: ppc: Drop extra size for ramdisk

2023-11-12 Thread Tom Rini
On Sun, Nov 12, 2023 at 08:27:47AM -0700, Simon Glass wrote: > This code dates from around 2008: > >56844a22b76 powerpc: Fix bootm to boot up again with a Ramdisk > > Since then we have added FDT relocation which provides enough space > for expansion. We have also added all sorts of fixups

Re: [PATCH 4/4] efi: Avoid using dm_scan_other()

2023-11-12 Thread Tom Rini
On Sun, Nov 12, 2023 at 08:58:05AM -0700, Simon Glass wrote: > This function is defined by bootstd so using it precludes using that > feature. Use the board_early_init_r() feature instead. > > Signed-off-by: Simon Glass > --- > > configs/efi-x86_app64_defconfig | 1 + > lib/efi/efi_app.c

[PATCH v2 1/2] configs: rockchip: Use dwc3-generic driver on RK3328 and RK3399

2023-11-12 Thread Jonas Karlman
Complete the transition away from xhci-dwc3 and dwc3-of-simple drivers and change to use the dwc3-generic driver on remaining RK3328 and RK3399 boards. MISC, USB_DWC3 and USB_DWC3_GENERIC is enabled on boards that used to enable USB_XHCI_DWC3. USB_XHCI_DWC3 is dropped from updated boards along

[PATCH v2 2/2] rockchip: board: Remove dwc3 usb init and gadget handler functions

2023-11-12 Thread Jonas Karlman
Remove board_usb_init() and dm_usb_gadget_handle_interrupts() functions related to dwc3, they use e.g. a hard-coded reg address for RK3399 and are obsolete with use of DM_USB_GADGET. Use of DM_USB_GADGET, USB_DWC3_GENERIC and USB_DWC3_GADGET have replaced same feature provided by the removed

[PATCH v2 0/2] rockchip: Use dwc3-generic driver on RK3328 and RK3399

2023-11-12 Thread Jonas Karlman
This series change to use the dwc3-generic driver on all RK3328 and RK3399 boards. Also switch to use DM_USB_GADGET and remove then obsolete board_usb_init() and dm_usb_gadget_handle_interrupts() functions. First patch change all RK33xx boards to use dwc3-generic driver. Second patch remove

Re: [PATCH 3/4] efi: Correct display of table GUIDs

2023-11-12 Thread Heinrich Schuchardt
On 11/12/23 16:58, Simon Glass wrote: The printf() %pU option decodes GUIDs so it is not necessary to do this first. Drop the incorrect code. Signed-off-by: Simon Glass --- cmd/efi_common.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cmd/efi_common.c

Re: [PATCH v4 1/1] sunxi: H616: add LPDDR4 DRAM support

2023-11-12 Thread Andre Przywara
On Sat, 11 Nov 2023 12:10:00 +0300 Mikhail Kalashnikov wrote: Hi Mikhail, > From: iuncuim > > The H616 SoC family has support for several types of DRAM: DDR3, > LPDDR3, DDR4 and LPDDR4. > At the moment, the driver only supports DDR3 and LPDDR3 memory. > Let's extend the driver to support the

Re: [PATCH 1/4] acpi: Use __packed with struct acpi_xsdt

2023-11-12 Thread Heinrich Schuchardt
On 11/12/23 16:58, Simon Glass wrote: Since struct acpi_table_header is not a multiple of 64 bits, use the __packed option for struct acpi_xsdt This ensures that the entry[] array starts on the correct boundary. Typically we keep the original signed-off-by when reposting patches. Thanks for

Re: ARMv8.5 RNG driver (was :Re: [PATCH] virtio: rng: gracefully handle 0 byte returns)

2023-11-12 Thread Heinrich Schuchardt
On 11/12/23 12:53, Andre Przywara wrote: On Sat, 11 Nov 2023 20:08:36 -0700 Simon Glass wrote: Hi, On Fri, 10 Nov 2023 at 07:16, Andre Przywara wrote: On Fri, 10 Nov 2023 05:53:59 -0700 Simon Glass wrote: Hi Simon, On Tue, 7 Nov 2023 at 09:09, Andre Przywara wrote: According to the

Re: [PATCH 2/4] efi: Collect the ACPI tables in the app

2023-11-12 Thread Heinrich Schuchardt
On 11/12/23 16:58, Simon Glass wrote: Locate these so that they can be displayed using the 'acpi' command. Signed-off-by: Simon Glass --- lib/efi/efi_app.c | 24 +--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/lib/efi/efi_app.c b/lib/efi/efi_app.c

[PATCH 3/4] efi: Correct display of table GUIDs

2023-11-12 Thread Simon Glass
The printf() %pU option decodes GUIDs so it is not necessary to do this first. Drop the incorrect code. Signed-off-by: Simon Glass --- cmd/efi_common.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cmd/efi_common.c b/cmd/efi_common.c index f4056096cd3f..1aa2351fcdfd

[PATCH 4/4] efi: Avoid using dm_scan_other()

2023-11-12 Thread Simon Glass
This function is defined by bootstd so using it precludes using that feature. Use the board_early_init_r() feature instead. Signed-off-by: Simon Glass --- configs/efi-x86_app64_defconfig | 1 + lib/efi/efi_app.c | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff

[PATCH 2/4] efi: Collect the ACPI tables in the app

2023-11-12 Thread Simon Glass
Locate these so that they can be displayed using the 'acpi' command. Signed-off-by: Simon Glass --- lib/efi/efi_app.c | 24 +--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/lib/efi/efi_app.c b/lib/efi/efi_app.c index 2209410f35b5..c5eb816655ea 100644 ---

[PATCH 1/4] acpi: Use __packed with struct acpi_xsdt

2023-11-12 Thread Simon Glass
Since struct acpi_table_header is not a multiple of 64 bits, use the __packed option for struct acpi_xsdt This ensures that the entry[] array starts on the correct boundary. Signed-off-by: Simon Glass --- include/acpi/acpi_table.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH 0/4] efi: Minor improvements for the EFI app

2023-11-12 Thread Simon Glass
This series collects a few fixes and improvements useful when booting U-Boot as an EFI app. Simon Glass (4): acpi: Use __packed with struct acpi_xsdt efi: Collect the ACPI tables in the app efi: Correct display of table GUIDs efi: Avoid using dm_scan_other() cmd/efi_common.c

Re: [PATCH v4 1/1] sunxi: H616: add LPDDR4 DRAM support

2023-11-12 Thread Jernej Škrabec
Dne sobota, 11. november 2023 ob 10:10:00 CET je Mikhail Kalashnikov napisal(a): > From: iuncuim > > The H616 SoC family has support for several types of DRAM: DDR3, > LPDDR3, DDR4 and LPDDR4. > At the moment, the driver only supports DDR3 and LPDDR3 memory. > Let's extend the driver to support

[PATCH 7/7] fdt: Move ft_verify_fdt() before the final fixups

2023-11-12 Thread Simon Glass
Move this check before the FDT fixups so that we can use a livetree after this point. Signed-off-by: Simon Glass --- boot/image-fdt.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/boot/image-fdt.c b/boot/image-fdt.c index 3e889be9f2b6..c2b6c5338385 100644 ---

[PATCH 6/7] fdt: Drop the confusing casts in lmb_free()

2023-11-12 Thread Simon Glass
Just use map_to_sysmem() instead of all the casting. Signed-off-by: Simon Glass --- boot/image-fdt.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/boot/image-fdt.c b/boot/image-fdt.c index ac7dc055cc9c..3e889be9f2b6 100644 --- a/boot/image-fdt.c +++

  1   2   >