Re: [PATCH v4 32/45] fs: fat: Support reading from a larger block size

2023-09-01 Thread Simon Glass
Hi Bin, On Wed, 2 Aug 2023 at 07:18, Bin Meng wrote: > > Hi Simon, > > On Wed, Aug 2, 2023 at 8:50 PM Simon Glass wrote: > > > > Hi Bin, > > > > On Tue, 1 Aug 2023 at 07:47, Bin Meng wrote: > > > > > > Hi Simon, > > > > > > On Tue, Aug 1, 2023 at 9:26 PM Simon Glass wrote: > > > > > > > > Hi B

Re: [PATCH 6/6] stm32mp15: Use u-boot-spl-stm32.bin instead of u-boot-spl.stm32

2023-09-01 Thread Simon Glass
Hi, On Tue, 29 Aug 2023 at 10:29, Patrick DELAUNAY wrote: > > Hi Simon, > > On 8/24/23 17:14, Tom Rini wrote: > > On Thu, Aug 24, 2023 at 05:09:07PM +0200, Marek Vasut wrote: > >> On 8/24/23 16:25, Tom Rini wrote: > >>> On Thu, Aug 24, 2023 at 05:12:45AM +0200, Marek Vasut wrote: > On 8/24/2

Re: [PATCH] env: Improve ENV_OFFSET help message

2023-09-01 Thread Simon Glass
On Fri, 1 Sept 2023 at 08:29, Paul Barker wrote: > > When reading Kconfig help messages to understand ENV_OFFSET and > ENV_OFFSET_REDUND, developers may not realise that they need to also > look at the chosen ENV_IS_IN_* options to see how the offsets will be > interpreted. > > Signed-off-by: Paul

Re: [PATCH] tools: Fix patman launcher script.

2023-09-01 Thread Simon Glass
On Thu, 31 Aug 2023 at 23:05, Maxim Cournoyer wrote: > > There is no "run_patman" procedure in patman's __main__.py file, which > would cause the following error at execution: > > "AttributeError: module 'patman.__main__' has no attribute 'run_patman'" > > Signed-off-by: Maxim Cournoyer > --- >

Re: [PATCH v2 3/6] blk: blkmap: add ramdisk creation utility function

2023-09-01 Thread Simon Glass
On Fri, 1 Sept 2023 at 04:26, Masahisa Kojima wrote: > > User needs to call several functions to create the ramdisk > with blkmap. > This adds the utility function to create blkmap device and > mount the ramdisk. > > Signed-off-by: Masahisa Kojima > --- > drivers/block/Makefile| 1 + >

Re: [PATCHv7 03/15] net/lwip: implement dns cmd

2023-09-01 Thread Simon Glass
Hi Maxim, On Fri, 1 Sept 2023 at 08:49, Maxim Uvarov wrote: > > > > On Wed, 23 Aug 2023 at 00:58, Simon Glass wrote: >> >> Hi Maxim, >> >> On Tue, 22 Aug 2023 at 03:39, Maxim Uvarov wrote: >> > >> > U-Boot recently got support for an alternative network stack using LWIP. >> > Replace dns comman

Re: [PATCH v2 1/6] net: wget: prevent overwriting reserved memory

2023-09-01 Thread Simon Glass
Hi Masahisa, On Fri, 1 Sept 2023 at 04:26, Masahisa Kojima wrote: > > This introduces the valid range check to store the received > blocks using lmb. The same logic is implemented in tftp. > > Signed-off-by: Masahisa Kojima > --- > net/wget.c | 76 +++

Re: [PATCH] .gitlab-ci: Test sandbox64 board in addition to sandbox

2023-09-01 Thread Marek Vasut
On 9/1/23 15:24, Tom Rini wrote: On Fri, Sep 01, 2023 at 10:48:10AM +0200, Marek Vasut wrote: Test both 32bit and 64bit sandbox boards in CI. Signed-off-by: Marek Vasut --- Cc: Heinrich Schuchardt Cc: Simon Glass Cc: Tom Rini --- DEPENDS: - [v2] test: print: Fix hexdump test on 64bit syste

Re: [PATCH] .gitlab-ci: Test sandbox64 board in addition to sandbox

2023-09-01 Thread Marek Vasut
On 9/1/23 20:11, Tom Rini wrote: On Fri, Sep 01, 2023 at 10:48:10AM +0200, Marek Vasut wrote: Test both 32bit and 64bit sandbox boards in CI. Signed-off-by: Marek Vasut --- Cc: Heinrich Schuchardt Cc: Simon Glass Cc: Tom Rini --- DEPENDS: - [v2] test: print: Fix hexdump test on 64bit system

[PATCH 3/3] Azure: Add sandbox64 to CI

2023-09-01 Thread Tom Rini
Now that sandbox64 can run and pass the regular test.py suite, add it here as well. Signed-off-by: Tom Rini --- .azure-pipelines.yml | 5 + 1 file changed, 5 insertions(+) diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml index 72a772ce9c65..d01fa117c3a3 100644 --- a/.azure-pipelines

[PATCH 1/3] Azure: Rework test_py job to publish its wrapper script

2023-09-01 Thread Tom Rini
Both to aide in debugging of any test.py issues as well as to make it easier to split the current matrix in two, have a new job that creates and publishes the current wrapper script we use for test.py jobs. Signed-off-by: Tom Rini --- .azure-pipelines.yml | 161 --

[PATCH 2/3] Azure: Split sandbox and qemu test.py runs

2023-09-01 Thread Tom Rini
Currently, most sandbox runs take a long time (due to running so many tests) while QEMu based test.py runs are fairly short. Split the pipeline here so that we get more consistent average run times. Signed-off-by: Tom Rini --- .azure-pipelines.yml | 61 --

[PATCH v2 6/6] doc: add documentation for gen_compile_commands.py

2023-09-01 Thread Joao Marcos Costa
This documentation briefly explains what is a compilation database, and how to use the script to generate one. This is not a portage, as there was no original documentation in the Linux sources. Acknowledge the documentation in the script's header. Signed-off-by: Joao Marcos Costa --- doc/deve

[PATCH v2 5/6] .gitignore: add compile_commands.json

2023-09-01 Thread Joao Marcos Costa
Add Clang's compilation database file (i.e. compile_commands.json) to .gitignore, at the root of the repository. Signed-off-by: Joao Marcos Costa --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index 002f95de4f..261a1d6754 100644 --- a/.gitignore +++

[PATCH v2 4/6] scripts/gen_compile_commands.py: add acknowledgments

2023-09-01 Thread Joao Marcos Costa
Add acknowledgments for porting and modifying the script. Of course, the license, author, and copyright notice remain the same as in the original script. Signed-off-by: Joao Marcos Costa --- scripts/gen_compile_commands.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/gen_compile_c

[PATCH v2 3/6] scripts/gen_compile_commands.py: fix docstring

2023-09-01 Thread Joao Marcos Costa
The referred tool is now in U-Boot. Replace "the Linux kernel" by "U-Boot" to make the docstring coherent. Signed-off-by: Joao Marcos Costa --- scripts/gen_compile_commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/gen_compile_commands.py b/scripts/gen_compil

[PATCH v2 2/6] scripts/gen_compile_commands.py: adapt _LINE_PATTERN

2023-09-01 Thread Joao Marcos Costa
For U-Boot's context, the regular expression defined by _LINE_PATTERN should be adapted. Replace 'savedcmd' by 'cmd'. Signed-off-by: Joao Marcos Costa --- scripts/gen_compile_commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/gen_compile_commands.py b/scripts

[PATCH v2 1/6] scripts: Port Linux's gen_compile_commands.py to U-Boot

2023-09-01 Thread Joao Marcos Costa
This script generates a database of compiler flags, namely compile_commands.json. It is quite useful for text editors that use clangd LSP (e.g. Vim, Neovim). It was ported from Linux's sources: - tag: v6.4 - revision 6995e2de6891c724bfeb2db33d7b87775f913ad1 Modifications for U-Boot compatibility

[PATCH v2 0/6] Port gen_compile_commands.py from Linux to U-Boot

2023-09-01 Thread Joao Marcos Costa
Hello U-Boot community, I'm submitting a patch series that ports the gen_compile_commands.py script from the Linux kernel's sources to U-Boot. This script, originally located in scripts/clang-tools/gen_compile_commands.py, enables the generation of compile_commands.json file for improved code navi

Re: [PATCH v3 5/6] docs: board: ti: Add j721s2_evm documentation

2023-09-01 Thread Nishanth Menon
On 12:32-20230901, Manorit Chawdhry wrote: > The documentation is based off J7200 documentation tailored for J721S2. You can drop the documentation based off j7200... Just state this documentation is for J721S2. > > TRM for J721S2: https://www.ti.com/lit/pdf/spruj28 > Product

Re: [PATCH 1/2] thermal: k3-j72xx-bandgap: Add support for vtm

2023-09-01 Thread Nishanth Menon
On 23:43-20230901, Kumar, Udit wrote: > > On 9/1/2023 11:03 PM, Nishanth Menon wrote: > > On 22:54-20230901, Kumar, Udit wrote: > > > > > +static const struct udevice_id of_k3_j72xx_bandgap_match[] = { > > > > > + { > >

Re: [PATCH 1/2] thermal: k3-j72xx-bandgap: Add support for vtm

2023-09-01 Thread Kumar, Udit
On 9/1/2023 11:03 PM, Nishanth Menon wrote: On 22:54-20230901, Kumar, Udit wrote: +static const struct udevice_id of_k3_j72xx_bandgap_match[] = { + { + .compatible = "ti,j721e-vtm", + .data = (ulong)&k3_j72xx_bandgap_j721e_data, So what happ

Re: [PATCH] .gitlab-ci: Test sandbox64 board in addition to sandbox

2023-09-01 Thread Tom Rini
On Fri, Sep 01, 2023 at 10:48:10AM +0200, Marek Vasut wrote: > Test both 32bit and 64bit sandbox boards in CI. > > Signed-off-by: Marek Vasut > --- > Cc: Heinrich Schuchardt > Cc: Simon Glass > Cc: Tom Rini > --- > DEPENDS: > - [v2] test: print: Fix hexdump test on 64bit systems > - test: dm:

[PATCH] x86: doc: Document the -cdrom issues I ran into

2023-09-01 Thread Simon Glass
Add a note about using -cdrom with QEMU. Suggested-by: Bin Meng Signed-off-by: Simon Glass --- doc/board/emulation/qemu-x86.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/board/emulation/qemu-x86.rst b/doc/board/emulation/qemu-x86.rst index 15f56b6bc70..c604e42990e 100644 --- a

Re: [PATCH v3 4/6] k3-am68: Sync from Linux tag v6.5-rc1

2023-09-01 Thread Nishanth Menon
On 12:32-20230901, Manorit Chawdhry wrote: > The following commit syncs the device tree from Linux tag > v6.5-rc1 to U-boot and fixes the following to be compatible with > the future syncs - > > - Include k3-am68-sk-base-board.dts file > > Remove the duplicated pi

Re: [PATCH v3 3/6] k3-j721s2: Sync from Linux tag v6.5-rc1

2023-09-01 Thread Nishanth Menon
On 12:32-20230901, Manorit Chawdhry wrote: > The following commit syncs the device tree from Linux tag > v6.5-rc1 to U-boot and fixes the following to be compatible with > the future syncs - > > - Include k3-j721s2-common-proc-board.dts file > > Remove the duplicated pi

Re: [PATCH v3 3/6] k3-j721s2: Sync from Linux tag v6.5-rc1

2023-09-01 Thread Nishanth Menon
On 12:32-20230901, Manorit Chawdhry wrote: > The following commit syncs the device tree from Linux tag > v6.5-rc1 to U-boot and fixes the following to be compatible with > the future syncs - > > - Include k3-j721s2-common-proc-board.dts file > > Remove the duplicated pi

Re: [PATCH 1/2] thermal: k3-j72xx-bandgap: Add support for vtm

2023-09-01 Thread Nishanth Menon
On 22:54-20230901, Kumar, Udit wrote: > > > +static const struct udevice_id of_k3_j72xx_bandgap_match[] = { > > > + { > > > + .compatible = "ti,j721e-vtm", > > > + .data = (ulong)&k3_j72xx_bandgap_j721e_data, > > So what happ

[PATCH v3 2/2] x86: Prevent from missing the FADT chaining

2023-09-01 Thread Simon Glass
From: Andy Shevchenko Recent approach with FADT writer shows that there is a room for subtle errors. Prevent this from happening again by introducing acpi_add_fadt() helper. Signed-off-by: Andy Shevchenko Signed-off-by: Simon Glass --- (no changes since v1) arch/x86/cpu/apollolake/acpi.c |

[PATCH v3 1/2] Reland "x86: Move FACP table into separate functions""

2023-09-01 Thread Simon Glass
Each board has its own way of creating this table. Rather than calling the acpi_create_fadt() function for each one from a common acpi_write_fadt() function, just move the writer into the board-specific code. Co-developed-by: Andy Shevchenko Signed-off-by: Andy Shevchenko Signed-off-by: Simon Gl

Re: [PATCH 1/2] thermal: k3-j72xx-bandgap: Add support for vtm

2023-09-01 Thread Kumar, Udit
Hi Nishanth On 9/1/2023 8:36 PM, Nishanth Menon wrote: On 11:44-20230901, Udit Kumar wrote: Add support for VTM (Voltage and Thermal Manager), which is part of TI's K3 series SOC. Signed-off-by: Udit Kumar --- drivers/thermal/Kconfig| 6 + drivers/thermal/Mak

Re: [PATCH v2] usb: check for companion controller in uclass

2023-09-01 Thread Marek Vasut
On 9/1/23 14:12, Fabrice Gasnier wrote: On 9/1/23 12:48, Marek Vasut wrote: On 9/1/23 11:52, Fabrice Gasnier wrote: EHCI is usually used with companion controller (like OHCI) as companion controller. This information on the companion is missing currently in companion drivers. So, if the usb-ucl

Re: [PATCH] usb: host: ohci-generic: Make usage of clock/reset bulk() API

2023-09-01 Thread Marek Vasut
On 9/1/23 14:05, Fabrice Gasnier wrote: On 8/30/23 17:18, Marek Vasut wrote: On 8/30/23 10:01, Fabrice Gasnier wrote: Make usage of clock and reset bulk API in order to simplify the code Signed-off-by: Fabrice Gasnier ---   drivers/usb/host/ohci-generic.c | 92 +++---

Re: [PATCH 30/32] fdt: Allow the devicetree to come from a bloblist

2023-09-01 Thread Simon Glass
Hi Ilias, On Fri, 1 Sept 2023 at 01:50, Ilias Apalodimas wrote: > > [...] > > > > > > > > +config OF_BLOBLIST > > > > + bool "DTB is provided by a bloblist" > > > > + help > > > > + Select this to read the devicetree from the bloblist. This allows > > > > + using a bloblist to

Re: [PATCH 1/2] thermal: k3-j72xx-bandgap: Add support for vtm

2023-09-01 Thread Nishanth Menon
On 11:44-20230901, Udit Kumar wrote: > Add support for VTM (Voltage and Thermal Manager), which > is part of TI's K3 series SOC. > > Signed-off-by: Udit Kumar > --- > drivers/thermal/Kconfig| 6 + > drivers/thermal/Makefile | 1 + > drive

Re: [PATCH 4/5] xilinx: zynqmp: add Beckhoff CX8200

2023-09-01 Thread Steffen Dirkwinkel
Am 01.09.23 um 13:16 schrieb Michal Simek: On 9/1/23 11:00, Steffen Dirkwinkel wrote: Am 01.09.23 um 09:36 schrieb Michal Simek: On 8/30/23 16:03, Steffen Dirkwinkel wrote: From: Steffen Dirkwinkel This adds support for the Beckhoff CX8200 series of industrial embedded PCs. There

Re: [PATCHv7 03/15] net/lwip: implement dns cmd

2023-09-01 Thread Maxim Uvarov
On Wed, 23 Aug 2023 at 00:58, Simon Glass wrote: > Hi Maxim, > > On Tue, 22 Aug 2023 at 03:39, Maxim Uvarov > wrote: > > > > U-Boot recently got support for an alternative network stack using LWIP. > > Replace dns command with the LWIP variant while keeping the output and > > error messages iden

Re: [PATCH v2 02/14] lmb: Rename interior piece to area

2023-09-01 Thread Simon Glass
Hi Heinrich, On Fri, 1 Sept 2023 at 00:16, Heinrich Schuchardt wrote: > > On 9/1/23 03:13, Simon Glass wrote: > > The lmb data structures use the word 'region' to describe the region in > > which the allocations happen, as well as the individual allocations in > > that region. The interior struct

[PATCH] env: Improve ENV_OFFSET help message

2023-09-01 Thread Paul Barker
When reading Kconfig help messages to understand ENV_OFFSET and ENV_OFFSET_REDUND, developers may not realise that they need to also look at the chosen ENV_IS_IN_* options to see how the offsets will be interpreted. Signed-off-by: Paul Barker --- env/Kconfig | 12 +++- 1 file changed, 11

Re: [PATCH 6/6] video: rockchip: dw_mipi_dsi: Use generic_phy_valid() helper

2023-09-01 Thread Jonas Karlman
Hi Kever, On 2023-09-01 09:49, Kever Yang wrote: > Hi Jonas, > >     Why is this patch 6/6 and didn't see other patches? Patch 1-3 moves a workaround made in usb dwc3 driver into generic phy core so entire series was sent to usb maintainer and cc mailing list. Patch 4-6 was trivial and had no

Re: [PATCH] .gitlab-ci: Test sandbox64 board in addition to sandbox

2023-09-01 Thread Tom Rini
On Fri, Sep 01, 2023 at 10:48:10AM +0200, Marek Vasut wrote: > Test both 32bit and 64bit sandbox boards in CI. > > Signed-off-by: Marek Vasut > --- > Cc: Heinrich Schuchardt > Cc: Simon Glass > Cc: Tom Rini > --- > DEPENDS: > - [v2] test: print: Fix hexdump test on 64bit systems > - test: dm:

Re: [PATCH v2] usb: check for companion controller in uclass

2023-09-01 Thread Fabrice Gasnier
On 9/1/23 12:48, Marek Vasut wrote: > On 9/1/23 11:52, Fabrice Gasnier wrote: >> EHCI is usually used with companion controller (like OHCI) as companion >> controller. This information on the companion is missing currently in >> companion drivers. >> So, if the usb-uclass isn't aware, it may scan b

Re: [PATCH] usb: host: ohci-generic: Make usage of clock/reset bulk() API

2023-09-01 Thread Fabrice Gasnier
On 8/30/23 17:18, Marek Vasut wrote: > On 8/30/23 10:01, Fabrice Gasnier wrote: >> Make usage of clock and reset bulk API in order to simplify the code >> >> Signed-off-by: Fabrice Gasnier >> --- >> >>   drivers/usb/host/ohci-generic.c | 92 +++-- >>   1 file changed, 29

Re: [PATCH v3 1/2] schemas: Add a schema for memory map

2023-09-01 Thread Simon Glass
Hi Ard, On Fri, 1 Sept 2023 at 04:48, Ard Biesheuvel wrote: > > On Fri, 1 Sept 2023 at 03:12, Simon Glass wrote: > > > > Hi Ard, > > > > On Thu, 31 Aug 2023 at 16:39, Ard Biesheuvel wrote: > > > > > > On Fri, 1 Sept 2023 at 00:17, Simon Glass wrote: > > > > > > > > Hi Ard, > > > > > > > > On T

Re: [PATCH 4/5] xilinx: zynqmp: add Beckhoff CX8200

2023-09-01 Thread Michal Simek
On 9/1/23 11:00, Steffen Dirkwinkel wrote: Am 01.09.23 um 09:36 schrieb Michal Simek: On 8/30/23 16:03, Steffen Dirkwinkel wrote: From: Steffen Dirkwinkel This adds support for the Beckhoff CX8200 series of industrial embedded PCs. There is some information about the device and feature

Re: [PATCH v3 1/2] schemas: Add a schema for memory map

2023-09-01 Thread Ard Biesheuvel
On Fri, 1 Sept 2023 at 03:12, Simon Glass wrote: > > Hi Ard, > > On Thu, 31 Aug 2023 at 16:39, Ard Biesheuvel wrote: > > > > On Fri, 1 Sept 2023 at 00:17, Simon Glass wrote: > > > > > > Hi Ard, > > > > > > On Thu, 31 Aug 2023 at 15:48, Ard Biesheuvel wrote: > > > > > > > > On Thu, 31 Aug 2023 a

Re: [PATCH v2] usb: check for companion controller in uclass

2023-09-01 Thread Marek Vasut
On 9/1/23 11:52, Fabrice Gasnier wrote: EHCI is usually used with companion controller (like OHCI) as companion controller. This information on the companion is missing currently in companion drivers. So, if the usb-uclass isn't aware, it may scan busses in any order: OHCI first, then EHCI. This

[PATCH] tools: logos: Rename TI logo files

2023-09-01 Thread Nikhil M Jain
Change the file name from ti.gz and ti.bmp to ti_logos_414x97_32bpp to help user understand the resolution and identify the logo files when placed in the boot partition and update the splashfile name with the same in .env file. Signed-off-by: Nikhil M Jain --- board/ti/am62x/am62x.env

Re: [PATCH] usb: gadget: sdp: Option to enable SDP read register command

2023-09-01 Thread Marek Vasut
On 9/1/23 12:03, Loic Poulain wrote: Hi Marek, On Mon, 14 Aug 2023 at 01:53, Marek Vasut wrote: On 8/13/23 10:39, Loic Poulain wrote: The SDP read register command can be used to read any memory mapped address of the device (ddr, registers...). It can then be exploited by an attacker to acce

[PATCH v2 6/6] doc: uefi: add HTTP Boot support

2023-09-01 Thread Masahisa Kojima
This adds the description about HTTP Boot. Signed-off-by: Masahisa Kojima --- doc/develop/uefi/uefi.rst | 21 + 1 file changed, 21 insertions(+) diff --git a/doc/develop/uefi/uefi.rst b/doc/develop/uefi/uefi.rst index a7a41f2fac..fd87bb1edb 100644 --- a/doc/develop/uefi/uefi

[PATCH v2 5/6] cmd: efidebug: add uri device path

2023-09-01 Thread Masahisa Kojima
This adds the URI device path option for 'boot add' subcommand. User can add the URI load option for downloading ISO image file or EFI application through network. Currently HTTP is only supported. Signed-off-by: Masahisa Kojima --- cmd/efidebug.c | 50 +++ includ

[PATCH v2 4/6] efi_loader: support boot from URI device path

2023-09-01 Thread Masahisa Kojima
This supports to boot from the URI device path. When user selects the URI device path, bootmgr downloads the file using wget into the address specified by loadaddr env variable. If the file is .iso or .img file, mount the image with blkmap then try to boot with the default file(e.g. EFI/BOOT/BOOTAA

[PATCH v2 3/6] blk: blkmap: add ramdisk creation utility function

2023-09-01 Thread Masahisa Kojima
User needs to call several functions to create the ramdisk with blkmap. This adds the utility function to create blkmap device and mount the ramdisk. Signed-off-by: Masahisa Kojima --- drivers/block/Makefile| 1 + drivers/block/blkmap.c| 15 -- drivers/block/blkmap_helpe

[PATCH v2 2/6] net: wget: add wget with dns utility function

2023-09-01 Thread Masahisa Kojima
Current wget takes the target uri in this format: ":" e.g.) 192.168.1.1:/bar The http server ip address must be resolved before calling wget. This commit adds the utility function runs wget with dhs. User can call wget with the uri like "http://foo/bar";. Signed-off-by: Masahisa Kojima --- in

[PATCH v2 1/6] net: wget: prevent overwriting reserved memory

2023-09-01 Thread Masahisa Kojima
This introduces the valid range check to store the received blocks using lmb. The same logic is implemented in tftp. Signed-off-by: Masahisa Kojima --- net/wget.c | 76 +- 1 file changed, 69 insertions(+), 7 deletions(-) diff --git a/net/wget.

[PATCH v2 0/6] Add EFI HTTP boot support

2023-09-01 Thread Masahisa Kojima
This series adds the EFI HTTP boot support. User can add the URI device path with "efidebug boot add" command. efibootmgr handles the URI device path, download the specified file using wget, mount the downloaded image with blkmap, then boot with the default file(e.g. EFI/BOOT/BOOTAA64.EFI). This v

Re: [PATCH] usb: gadget: sdp: Option to enable SDP read register command

2023-09-01 Thread Loic Poulain
Hi Marek, On Mon, 14 Aug 2023 at 01:53, Marek Vasut wrote: > > On 8/13/23 10:39, Loic Poulain wrote: > > The SDP read register command can be used to read any memory > > mapped address of the device (ddr, registers...). It can then > > be exploited by an attacker to access sensitive data/values,

Re: [PATCH] driver: rng: Add DM_RNG interface for ARMv8.5 RNDR registers

2023-09-01 Thread Andre Przywara
On Thu, 31 Aug 2023 13:01:57 -0600 Simon Glass wrote: Hi Simon, > On Thu, 31 Aug 2023 at 06:43, Andre Przywara wrote: > > > > On Wed, 30 Aug 2023 20:49:18 -0600 > > Simon Glass wrote: > > > > Hi Simon, > > > > > On Wed, 30 Aug 2023 at 05:32, Andre Przywara > > > wrote: > > > > > > > > Th

Re: [PATCH] usb: host: ehci-generic: check for companion controller

2023-09-01 Thread Marek Vasut
On 9/1/23 11:49, Fabrice Gasnier wrote: On 8/30/23 17:12, Marek Vasut wrote: On 8/30/23 10:00, Fabrice Gasnier wrote: EHCI is usually used with companion controller (like OHCI) as companion controller. This information on the companion is missing currently in companion drivers. So, if the usb

[PATCH v2] usb: check for companion controller in uclass

2023-09-01 Thread Fabrice Gasnier
EHCI is usually used with companion controller (like OHCI) as companion controller. This information on the companion is missing currently in companion drivers. So, if the usb-uclass isn't aware, it may scan busses in any order: OHCI first, then EHCI. This is seen on STM32MP1 where DT probing makes

Re: [PATCH 11/17] spl: sdp: Detach the controller on error

2023-09-01 Thread Marek Vasut
On 8/22/23 18:44, Mattijs Korpershoek wrote: On sam., août 19, 2023 at 16:24, Marek Vasut wrote: In case anything errors out during the SDP transfer, detach the controller instead of bailing out right away. This way, the controller can be reattached on next attempt. Signed-off-by: Marek Vasut

[PATCH v2 17/17] board: usb: Replace legacy usb_gadget_handle_interrupts()

2023-09-01 Thread Marek Vasut
The usb_gadget_handle_interrupts() is no longer used anywhere, replace the remaining uses with dm_usb_gadget_handle_interrupts() which takes udevice as a parameter. Some of the UDC drivers currently ignore the index parameter altogether, those also ignore the udevice and have to be reworked. Other

[PATCH v2 16/17] dm: usb: udc: Drop legacy udevice handler functions

2023-09-01 Thread Marek Vasut
Remove legacy functions limited by the dev_array array, those are no longer used anywhere, all the code uses plain udevice based access now. The usb_gadget_handle_interrupts() is doing udevice look up until all call sites use dm_usb_gadget_handle_interrupts(). Reviewed-by: Mattijs Korpershoek Si

[PATCH v2 15/17] usb: gadget: ether: Use plain udevice for UDC controller interaction

2023-09-01 Thread Marek Vasut
Convert to plain udevice interaction with UDC controller device, avoid the use of UDC uclass dev_array . Signed-off-by: Marek Vasut --- Cc: Angus Ainslie Cc: Dmitrii Merkurev Cc: Eddie Cai Cc: Kever Yang Cc: Lukasz Majewski Cc: Miquel Raynal Cc: Mattijs Korpershoek Cc: Nishanth Menon Cc:

[PATCH v2 14/17] usb: gadget: acm: Use plain udevice for UDC controller interaction

2023-09-01 Thread Marek Vasut
Convert to plain udevice interaction with UDC controller device, avoid the use of UDC uclass dev_array . Signed-off-by: Marek Vasut --- Cc: Angus Ainslie Cc: Dmitrii Merkurev Cc: Eddie Cai Cc: Kever Yang Cc: Lukasz Majewski Cc: Miquel Raynal Cc: Mattijs Korpershoek Cc: Nishanth Menon Cc:

[PATCH v2 13/17] thordown: Use plain udevice for UDC controller interaction

2023-09-01 Thread Marek Vasut
Convert to plain udevice interaction with UDC controller device, avoid the use of UDC uclass dev_array . Signed-off-by: Marek Vasut --- Cc: Angus Ainslie Cc: Dmitrii Merkurev Cc: Eddie Cai Cc: Kever Yang Cc: Lukasz Majewski Cc: Miquel Raynal Cc: Mattijs Korpershoek Cc: Nishanth Menon Cc:

[PATCH v2 12/17] sdp: Use plain udevice for UDC controller interaction

2023-09-01 Thread Marek Vasut
Convert to plain udevice interaction with UDC controller device, avoid the use of UDC uclass dev_array . Reviewed-by: Mattijs Korpershoek Signed-off-by: Marek Vasut --- Cc: Angus Ainslie Cc: Dmitrii Merkurev Cc: Eddie Cai Cc: Kever Yang Cc: Lukasz Majewski Cc: Miquel Raynal Cc: Mattijs Kor

[PATCH v2 11/17] spl: sdp: Detach the controller on error

2023-09-01 Thread Marek Vasut
In case anything errors out during the SDP transfer, detach the controller instead of bailing out right away. This way, the controller can be reattached on next attempt. Reviewed-by: Mattijs Korpershoek Signed-off-by: Marek Vasut --- Cc: Angus Ainslie Cc: Dmitrii Merkurev Cc: Eddie Cai Cc: Ke

[PATCH v2 10/17] dfu: Use plain udevice for UDC controller interaction

2023-09-01 Thread Marek Vasut
Convert to plain udevice interaction with UDC controller device, avoid the use of UDC uclass dev_array . Reviewed-by: Mattijs Korpershoek Signed-off-by: Marek Vasut --- Cc: Angus Ainslie Cc: Dmitrii Merkurev Cc: Eddie Cai Cc: Kever Yang Cc: Lukasz Majewski Cc: Miquel Raynal Cc: Mattijs Kor

[PATCH v2 09/17] dfu: Detach the controller on error

2023-09-01 Thread Marek Vasut
In case anything errors out during the DFU registration, detach the controller instead of bailing out right away. This way, the controller can be reattached on next attempt. Reviewed-by: Mattijs Korpershoek Signed-off-by: Marek Vasut --- Cc: Angus Ainslie Cc: Dmitrii Merkurev Cc: Eddie Cai Cc

[PATCH v2 08/17] cmd: ums: Use plain udevice for UDC controller interaction

2023-09-01 Thread Marek Vasut
Convert to plain udevice interaction with UDC controller device, avoid the use of UDC uclass dev_array . Reviewed-by: Mattijs Korpershoek Tested-by: Mattijs Korpershoek # on khadas vim3 Signed-off-by: Marek Vasut --- Cc: Angus Ainslie Cc: Dmitrii Merkurev Cc: Eddie Cai Cc: Kever Yang Cc: Lu

[PATCH v2 07/17] cmd: thordown: Reorder variable declaration

2023-09-01 Thread Marek Vasut
Move the variable declaration around to improve code readability. No functional change. Signed-off-by: Marek Vasut --- Cc: Angus Ainslie Cc: Dmitrii Merkurev Cc: Eddie Cai Cc: Kever Yang Cc: Lukasz Majewski Cc: Miquel Raynal Cc: Mattijs Korpershoek Cc: Nishanth Menon Cc: Patrice Chotard

[PATCH v2 06/17] cmd: sdp: Reorder variable declaration

2023-09-01 Thread Marek Vasut
Move the variable declaration around to improve code readability. No functional change. Reviewed-by: Mattijs Korpershoek Signed-off-by: Marek Vasut --- Cc: Angus Ainslie Cc: Dmitrii Merkurev Cc: Eddie Cai Cc: Kever Yang Cc: Lukasz Majewski Cc: Miquel Raynal Cc: Mattijs Korpershoek Cc: Nis

[PATCH v2 05/17] cmd: rockusb: Use plain udevice for UDC controller interaction

2023-09-01 Thread Marek Vasut
Convert to plain udevice interaction with UDC controller device, avoid the use of UDC uclass dev_array . Signed-off-by: Marek Vasut --- Cc: Angus Ainslie Cc: Dmitrii Merkurev Cc: Eddie Cai Cc: Kever Yang Cc: Lukasz Majewski Cc: Miquel Raynal Cc: Mattijs Korpershoek Cc: Nishanth Menon Cc:

[PATCH v2 04/17] cmd: fastboot: Use plain udevice for UDC controller interaction

2023-09-01 Thread Marek Vasut
Convert to plain udevice interaction with UDC controller device, avoid the use of UDC uclass dev_array . Reviewed-by: Mattijs Korpershoek Tested-by: Mattijs Korpershoek # on khadas vim3 Signed-off-by: Marek Vasut --- Cc: Angus Ainslie Cc: Dmitrii Merkurev Cc: Eddie Cai Cc: Kever Yang Cc: Lu

[PATCH v2 03/17] configs: sandbox: Enable DM_USB_GADGET

2023-09-01 Thread Marek Vasut
Switch sandbox to DM_USB_GADGET, DM is the future. Reviewed-by: Mattijs Korpershoek Reviewed-by: Simon Glass Signed-off-by: Marek Vasut --- Cc: Angus Ainslie Cc: Dmitrii Merkurev Cc: Eddie Cai Cc: Kever Yang Cc: Lukasz Majewski Cc: Miquel Raynal Cc: Mattijs Korpershoek Cc: Nishanth Menon

[PATCH v2 02/17] usb: sandbox: Add DM_USB_GADGET support

2023-09-01 Thread Marek Vasut
Remove local usb_gadget_register_driver()/usb_gadget_unregister_driver() implementation which is implemented in udc-core.c instead if DM_USB_GADGET is enabled. Add no-op dm_usb_gadget_handle_interrupts() implementation. Reviewed-by: Mattijs Korpershoek Reviewed-by: Simon Glass Signed-off-by: Mar

[PATCH v2 01/17] dm: usb: udc: Factor out plain udevice handler functions

2023-09-01 Thread Marek Vasut
Pull the functionality of UDC uclass that operates on plain udevice and does not use this dev_array array into separate functions and expose those functions, so that as much code as possible can be switched over to these functions and the dev_array can be dropped. Reviewed-by: Mattijs Korpershoek

Re: [PATCH] usb: host: ehci-generic: check for companion controller

2023-09-01 Thread Fabrice Gasnier
On 8/30/23 17:12, Marek Vasut wrote: > On 8/30/23 10:00, Fabrice Gasnier wrote: >> EHCI is usually used with companion controller (like OHCI) as companion >> controller. This information on the companion is missing currently in >> companion drivers. >> So, if the usb-uclass isn't aware, it may s

Re: [PATCH 4/5] xilinx: zynqmp: add Beckhoff CX8200

2023-09-01 Thread Steffen Dirkwinkel
Am 01.09.23 um 09:36 schrieb Michal Simek: On 8/30/23 16:03, Steffen Dirkwinkel wrote: From: Steffen Dirkwinkel This adds support for the Beckhoff CX8200 series of industrial embedded PCs. There is some information about the device and features here: https://www.beckhoff.com/en-en/produ

[PATCH] .gitlab-ci: Test sandbox64 board in addition to sandbox

2023-09-01 Thread Marek Vasut
Test both 32bit and 64bit sandbox boards in CI. Signed-off-by: Marek Vasut --- Cc: Heinrich Schuchardt Cc: Simon Glass Cc: Tom Rini --- DEPENDS: - [v2] test: print: Fix hexdump test on 64bit systems - test: dm: test-fdt: Use fdtdec_get_int() in dm_check_devices() - configs: sandbox64: Enable l

Re: [PATCH] test/py: tpm2: skip tpm2_startup when env__tpm_device_test_skip=True

2023-09-01 Thread Ilias Apalodimas
27;env__tpm_device_test_skip', False) > >>> +if skip_test: > >>> +pytest.skip('skip TPM device test') > >>>u_boot_console.run_command('tpm2 startup TPM2_SU_CLEAR') > >>>output = u_boot_console.run_command('

Re: [PATCH] test/py: tpm2: skip tpm2_startup when env__tpm_device_test_skip=True

2023-09-01 Thread Michal Simek
m2 startup TPM2_SU_CLEAR') output = u_boot_console.run_command('echo $?') assert output.endswith('0') Applied. Uhm? Applied where? I had a few minor fixes I was planning to send to Tom To my microblaze tree. https://source.denx.de/u-boot/custodians/u-boot-microblaze/-/c

Re: [PATCH v2 4/4] doc: qemu: arm: Add a section on booting Linux distros

2023-09-01 Thread Ilias Apalodimas
On Thu, 31 Aug 2023 at 12:25, Alper Nebi Yasak wrote: > > > > On 2023-08-30 10:33 +03:00, Ilias Apalodimas wrote: > > Hi Alper, > > > > On Sun, 27 Aug 2023 at 18:49, Alper Nebi Yasak > > wrote: > >> > >> On 2023-08-15 01:43 +03:00, Simon Glass wrote: > >>> Hi Alper, > >>> > >>> On Mon, 14 Aug 20

Re: [PATCH] test/py: tpm2: skip tpm2_startup when env__tpm_device_test_skip=True

2023-09-01 Thread Ilias Apalodimas
On Fri, 1 Sept 2023 at 10:09, Michal Simek wrote: > > > > On 8/30/23 18:36, Michal Simek wrote: > > All tpm2 tests should be possible to skip when > > env__tpm_device_test_skip=True but test_tpm2_startup is missing it. > > > > Signed-off-by: Michal Simek > > --- > > > > test/py/tests/test_tpm2.

Re: [PATCH 30/32] fdt: Allow the devicetree to come from a bloblist

2023-09-01 Thread Ilias Apalodimas
[...] > > > > > +config OF_BLOBLIST > > > + bool "DTB is provided by a bloblist" > > > + help > > > + Select this to read the devicetree from the bloblist. This allows > > > + using a bloblist to transfer the devicetree between U-Boot > > > phases. > > > + The devicetre

Re: [PATCH 6/6] video: rockchip: dw_mipi_dsi: Use generic_phy_valid() helper

2023-09-01 Thread Kever Yang
Hi Jonas,     Why is this patch 6/6 and didn't see other patches? On 2023/9/1 06:16, Jonas Karlman wrote: The documentation for struct phy state that "The content of the structure is managed solely by the PHY API and PHY drivers". Change to use the generic_phy_valid() helper to check if phy is

Re: [PATCH 4/5] xilinx: zynqmp: add Beckhoff CX8200

2023-09-01 Thread Michal Simek
On 8/30/23 16:03, Steffen Dirkwinkel wrote: From: Steffen Dirkwinkel This adds support for the Beckhoff CX8200 series of industrial embedded PCs. There is some information about the device and features here: https://www.beckhoff.com/en-en/products/ipc/embedded-pcs/cx8200-arm-cortex-a53/ Cur

Re: [PATCH 3/5] xilinx: zynqmp: move fdt_addr so we can use devices with less memory

2023-09-01 Thread Michal Simek
On 8/30/23 16:03, Steffen Dirkwinkel wrote: From: Steffen Dirkwinkel With the current config we'd put the fdt outside of memory. Signed-off-by: Steffen Dirkwinkel --- include/configs/xilinx_zynqmp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/xil

Re: [PATCH 2/5] drivers/usb/dwc3: zynqmp: only free reset gpio if we have one

2023-09-01 Thread Michal Simek
st 30. 8. 2023 v 20:16 odesílatel Steffen Dirkwinkel napsal: > > From: Steffen Dirkwinkel > > This gpio is optional so undonditionally freeing it will crash. > > Signed-off-by: Steffen Dirkwinkel > --- > > drivers/usb/dwc3/dwc3-generic.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-

Re: [PATCH 0/3] arm64: versal-net: Enable CMD_KASLR and TPM

2023-09-01 Thread Michal Simek
On 8/31/23 05:16, Venkatesh Yadav Abbarapu wrote: Enable the command kaslrseed and tpm. Venkatesh Yadav Abbarapu (3): arm64: versal-net: Enable TPM for xilinx platforms arm64: versal-net: Enable sha1sum command arm64: versal-net: Enable the config CMD_KASLRSEED configs/xilinx_vers

Re: [PATCH v2 0/3] arm64: versal: Enable CMD_KASLR and TPM

2023-09-01 Thread Michal Simek
On 8/31/23 05:26, Venkatesh Yadav Abbarapu wrote: Enable the command kaslrseed and tpm. Changes in v2: - Updated the commit text in the cover letter. Venkatesh Yadav Abbarapu (3): arm64: versal: Enable TPM for xilinx platforms arm64: versal: Enable sha1sum command arm64: versal: Ena

Re: [PATCH] test/py: tpm2: skip tpm2_startup when env__tpm_device_test_skip=True

2023-09-01 Thread Michal Simek
On 8/30/23 18:36, Michal Simek wrote: All tpm2 tests should be possible to skip when env__tpm_device_test_skip=True but test_tpm2_startup is missing it. Signed-off-by: Michal Simek --- test/py/tests/test_tpm2.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/py/tests/test_tp

Re: [PATCH v1 1/1] drivers/mtd/spi/spi-nor-ids.c: add mx25u25635f support

2023-09-01 Thread Michal Simek
On 8/21/23 14:45, Neal Frager wrote: This patch adds support for the MX25U25635F QSPI Flash Memory. Signed-off-by: Neal Frager --- drivers/mtd/spi/spi-nor-ids.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/spi/spi-nor-ids.c b/drivers/mtd/spi/spi-nor-ids.c index d0b49c4c

Re: [PATCH 1/1] net: axi_emac: Convert to ofnode functions

2023-09-01 Thread Michal Simek
On 8/11/23 09:43, Maxim Kochetkov wrote: FDT functions is not working when OF_LIVE is enabled. Convert fdt parsing functions to ofnode parsing functions. Signed-off-by: Maxim Kochetkov --- drivers/net/xilinx_axi_emac.c | 50 +-- 1 file changed, 24 insertion

[PATCH v3 6/6] board: ti: j721s2: MAINTAINERS: Update the MAINTAINERS File.

2023-09-01 Thread Manorit Chawdhry
Update the MAINTAINERS file and propose a new MAINTAINER for j721s2 due to the previous MAINTAINER not being associated with TI. Signed-off-by: Manorit Chawdhry --- board/ti/j721s2/MAINTAINERS | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/board/ti/j721s2/MAINTAINER

[PATCH v3 5/6] docs: board: ti: Add j721s2_evm documentation

2023-09-01 Thread Manorit Chawdhry
The documentation is based off J7200 documentation tailored for J721S2. TRM for J721S2: https://www.ti.com/lit/pdf/spruj28 Product Page: https://www.ti.com/product/TDA4AL-Q1 Reviewed-by: Neha Malcom Francis Signed-off-by: Manorit Chawdhry --- doc/board/ti/j721s2_evm.rst | 298 +

[PATCH v3 4/6] k3-am68: Sync from Linux tag v6.5-rc1

2023-09-01 Thread Manorit Chawdhry
The following commit syncs the device tree from Linux tag v6.5-rc1 to U-boot and fixes the following to be compatible with the future syncs - - Include k3-am68-sk-base-board.dts file Remove the duplicated pinmuxes from r5 and -u-boot.dtsi files and include k3-am68-sk-base-board.dts for Li

[PATCH v3 3/6] k3-j721s2: Sync from Linux tag v6.5-rc1

2023-09-01 Thread Manorit Chawdhry
The following commit syncs the device tree from Linux tag v6.5-rc1 to U-boot and fixes the following to be compatible with the future syncs - - Include k3-j721s2-common-proc-board.dts file Remove the duplicated pinmuxes from r5 and -u-boot.dtsi files and include k3-j721s2-common-proc-boar

[PATCH v3 2/6] arm: mach-k3: j721s2: Add mcu_timer0 id to the dev list

2023-09-01 Thread Manorit Chawdhry
mcu_timer0 is used by u-boot as the tick-timer. Add it to the soc devices lsit so it an be enabled via the k3 power controller. Reviewed-by: Neha Malcom Francis Reviewed-by: Nishanth Menon Signed-off-by: Manorit Chawdhry --- arch/arm/mach-k3/j721s2/dev-data.c | 1 + 1 file changed, 1 insertion

  1   2   >