Re: [PATCH v3 2/2] efi_loader: fix use after free in receive path

2020-11-20 Thread Patrick Wildt
On Fri, Nov 20, 2020 at 06:31:52PM -0500, Tom Rini wrote: > On Fri, Nov 20, 2020 at 11:56:27PM +0100, Patrick Wildt wrote: > > Am Wed, Oct 07, 2020 at 03:26:38PM +0200 schrieb Heinrich Schuchardt: > > > On 07.10.20 11:04, Patrick Wildt wrote: > > > > With DM enabled the ethernet code will receive

Re: [PATCH v2] Add optional salt to AUTOBOOT_STOP_STR_SHA256

2020-11-20 Thread Joel Peshkin
Hi Heinrich, Thank you for the review. I increased the max size to 64 characters. The size, in the end, is the size of the salt plus the size of the password the human user would type. In most places I have seen salt used, it is only a few characters (modern Linux password databases use

Re: [PATCH v3 2/2] efi_loader: fix use after free in receive path

2020-11-20 Thread Tom Rini
On Fri, Nov 20, 2020 at 11:56:27PM +0100, Patrick Wildt wrote: > Am Wed, Oct 07, 2020 at 03:26:38PM +0200 schrieb Heinrich Schuchardt: > > On 07.10.20 11:04, Patrick Wildt wrote: > > > With DM enabled the ethernet code will receive a packet, call > > > the push method that's set by the EFI network

[RFC] regarding Uboot AUTOBOOT_STOP_STR_SHA256

2020-11-20 Thread Joel Peshkin
Hi Stefan, I have a patch ( https://patchwork.ozlabs.org/project/uboot/patch/20201120180524.30251-1-jp933...@xl-irv-13.lvn.broadcom.net/ ) under review that adds optional SALT to AUTOBOOT_STOP_STR_SHA256 without breaking backward compatibility. As I see that you were involved with the

Re: [PATCH v3 2/2] efi_loader: fix use after free in receive path

2020-11-20 Thread Patrick Wildt
Am Wed, Oct 07, 2020 at 03:26:38PM +0200 schrieb Heinrich Schuchardt: > On 07.10.20 11:04, Patrick Wildt wrote: > > With DM enabled the ethernet code will receive a packet, call > > the push method that's set by the EFI network implementation > > and then free the packet. Unfortunately the push

[PATCH v2] Add optional salt to AUTOBOOT_STOP_STR_SHA256

2020-11-20 Thread Joel Peshkin
From: Joel Peshkin Adds an optional SALT value to AUTOBOOT_STOP_STR_SHA256. If a string followed by a ":" is prepended to the sha256, the portion to the left of the colon will be used as a salt and the password will be appended to the salt before the sha256 is computed and compared.

Re: [PATCH] Add optional salt to AUTOBOOT_STOP_STR_SHA256

2020-11-20 Thread Heinrich Schuchardt
On 11/20/20 2:41 AM, Joel Peshkin wrote: From: Joel Peshkin Adds an optional SALT value to AUTOBOOT_STOP_STR_SHA256. If a string followed by a ":" is prepended to the sha256, the portion to the left of the colon will be used as a salt and the password will be appended to the salt before the

[PATCH 3/3] dts: am654-base-board-uboot: Add aliases for USB subsystems

2020-11-20 Thread Aswath Govindraju
The sequence number assigned for USB subsystem in a uclass is dependent on the order of occurrence in the device tree. If the dr_mode of USB3SS0 controller is varied then the sequence number of USB3SS1 controller also changes. If aliases are added then sequence numbers are assigned using the alias

[PATCH 2/3] dts: am654-base-board-uboot: Set USB0 dr_mode to host

2020-11-20 Thread Aswath Govindraju
USB3SS0 controller is to be used as a host in U-boot. Fix it by changing the dr_mode to host. Signed-off-by: Aswath Govindraju --- arch/arm/dts/k3-am654-base-board-u-boot.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/dts/k3-am654-base-board-u-boot.dtsi

[PATCH 1/3] board: ti: am65x: Set SERDES0 mux to PCIe to use USB 2.0 interface

2020-11-20 Thread Aswath Govindraju
It has been observed that setting SERDES0 lane mux to USB prevents USB 2.0 operation on USB0. Setting SERDES0 lane mux to non-USB when USB0 is used in USB 2.0 only mode solves this issue. However, for USB3.0+2.0 operation this issue is not present. Implement this workaround by writing 1 to

[PATCH 0/3] usb: am654: Add support for host mode to the USB port on overlay board

2020-11-20 Thread Aswath Govindraju
The following series of patches - adds support for host mode to USB3SS0 controller - adds aliases for USB subsystems - adds a workaround to use USB0 in USB 2.0 only mode Aswath Govindraju (3): board: ti: am65x: Set SERDES0 mux to PCIe to use USB 2.0 interface dts: am654-base-board-uboot:

Re: [PATCH v2 0/9] spl: atf: add support for LOAD_IMAGE_V2

2020-11-20 Thread Tom Rini
On Fri, Nov 20, 2020 at 02:35:33PM +0100, Michal Simek wrote: > > > On 20. 11. 20 14:25, Michael Walle wrote: > > Am 2020-11-20 14:16, schrieb Michal Simek: > >> On 20. 11. 20 12:27, Michael Walle wrote: > >>> Am 2020-11-20 12:15, schrieb Michal Simek: > On 20. 11. 20 11:48, Michael Walle

Re: [PATCH v2 22/28] fs/squashfs: sqfs_close/sqfs_read_sblk: set ctxt.sblk to NULL after free

2020-11-20 Thread Richard Genoud
Le 20/11/2020 à 02:35, Tom Rini a écrit : On Tue, Nov 03, 2020 at 12:11:20PM +0100, Richard Genoud wrote: This will prevent a double free error if sqfs_close() is called twice. Signed-off-by: Richard Genoud This change causes the test.py squashfs tests to fail. I am unsure if the problem

[PATCH v1] doc: board: imx8qm-rom7720-a1.rst: convert readme to reST

2020-11-20 Thread Oliver Graute
Convert README to reStructuredText format. Signed-off-by: Oliver Graute --- board/advantech/imx8qm_rom7720_a1/README | 61 -- doc/board/advantech/imx8qm-rom7720-a1.rst | 75 +++ doc/board/advantech/index.rst | 9 +++ 3 files changed, 84

Re: [BUG] U-boot does not detect emmc card in odroid-c2 for newer U-boot as 2020.04

2020-11-20 Thread Otto Meier
Hi Anand, Am 19.11.20 um 18:53 schrieb Anand Moon: Hi Otto, On Thu, 19 Nov 2020 at 21:23, Otto Meier wrote: Hi, I have extended the previous post. with these modifications i get: U-Boot 2021.01-rc2-00047-g9324c9a823-dirty (Nov 19 2020 - 15:33:00 +0100) odroid-c2 Model: Hardkernel

Re: [PATCH v2 0/9] spl: atf: add support for LOAD_IMAGE_V2

2020-11-20 Thread Michael Walle
Am 2020-11-20 14:35, schrieb Michal Simek: On 20. 11. 20 14:25, Michael Walle wrote: Am 2020-11-20 14:16, schrieb Michal Simek: On 20. 11. 20 12:27, Michael Walle wrote: Am 2020-11-20 12:15, schrieb Michal Simek: [..] Please get this reviewed by people who are using current blX code. What

Re: [PATCH v1] linux/compat.h: Remove debug() from spin_lock_irqsave()

2020-11-20 Thread Oleksandr Andrushchenko
Hi, Andy On 11/19/20 10:21 PM, Andy Shevchenko wrote: > Update Tom's address > > On Thu, Nov 19, 2020 at 9:26 PM Andy Shevchenko > wrote: >> It seems nobody tested the debug() option in spin_lock_irqsave(). >> Currently, when #define DEBUG, it spoils the compiler with >> >> In file included from

[GIT PULL] xilinx patches for v2021.01-rc3

2020-11-20 Thread Michal Simek
Hi Tom, please pull these patches to your tree. CI builds look good. Especially fru fixes are needed but enabling microblaze GC with other fixes are also good. Thanks, Michal The following changes since commit b80680633dc954d32f81f3afacd3d1f2f3d290b0: Merge branch '2020-11-18-assorted-fixes'

Re: [PATCH v2 0/9] spl: atf: add support for LOAD_IMAGE_V2

2020-11-20 Thread Michal Simek
On 20. 11. 20 14:25, Michael Walle wrote: > Am 2020-11-20 14:16, schrieb Michal Simek: >> On 20. 11. 20 12:27, Michael Walle wrote: >>> Am 2020-11-20 12:15, schrieb Michal Simek: On 20. 11. 20 11:48, Michael Walle wrote: > Am 2020-11-20 11:14, schrieb Michal Simek: >> Hi, >>

[patch v3 7/9] rockchip: video: vop: Fix format of fbbase in debug string

2020-11-20 Thread Rtp
The debug string printing the device name, framebuffer address and of node is using %lu as format for the framebuffer address, which is not so nice. Change it to %lx. Signed-off-by: Arnaud Patard Index: u-boot/drivers/video/rockchip/rk_vop.c

[patch v3 0/9] rk3399 (Pinebook pro) EDP support

2020-11-20 Thread Rtp
This patchset add support for the rk3399 eDP. It has been tested on the pinebook pro and Google Kevin chromeos devices. The changes have been written by studying the linux code, since I didn't find any manual for theses part of the RK3399 SoC. On the linux kernel side, on recent kernels, it

[patch v3 2/9] rockchip: video: edp: Add rk3399 support

2020-11-20 Thread Rtp
According to linux commit "drm/rockchip: analogix_dp: add rk3399 eDP support" (82872e42bb1501dd9e60ca430f4bae45a469aa64), rk3288 and rk3399 eDP IPs are nearly the same, the difference is in the grf register (SOC_CON6 versus SOC_CON20). So, change the code to use the right register on each IP. The

[patch v3 9/9] rockchip: videp: vop: Add reset support

2020-11-20 Thread Rtp
In order to ensure that the VOP registers are in correct state, add missing support for the VOP reset lines found in the device-tree Signed-off-by: Arnaud Patard Index: u-boot/drivers/video/rockchip/rk_vop.c === ---

[patch v3 8/9] rockchip: video: edp: Add missing reset support

2020-11-20 Thread Rtp
In order to ensure that the eDP registers are in correct state, add missing support for the eDP reset lines found in the device-tree. Signed-off-by: Arnaud Patard Index: u-boot/drivers/video/rockchip/rk_edp.c === ---

[patch v3 4/9] ockchip: video: vop: Reserve efi fb memory

2020-11-20 Thread Rtp
When booting with EFI and graphics, the memory used for framebuffer has to be reserved, otherwise it may leads to kernel memory overwrite. Signed-off-by: Arnaud Patard Index: u-boot/drivers/video/rockchip/rk_vop.c === ---

[patch v3 6/9] rockchip: pwm: Fix default polarity

2020-11-20 Thread Rtp
In the code, the default polarity is set to positive/positive, which is neither normal polarity or inverted polarity. It's only the hardware default. This leads to booting linux with wrong polarity setting. Update the code to use PWM_DUTY_POSTIVE | PWM_INACTIVE_NEGATIVE by default instead.

[patch v3 5/9] rockchip: Pinebook Pro: Enable edp

2020-11-20 Thread Rtp
- uboot rockchip edp code is looking for a rockchip,panel property for the edp dts node, so add it. Signed-off-by: Arnaud Patard Index: u-boot/arch/arm/dts/rk3399-pinebook-pro-u-boot.dtsi === ---

[patch v3 3/9] ockchip: video: edp: Change interrupt polarity configuration

2020-11-20 Thread Rtp
The linux code is setting polarity configuration to 3 but uboot code is setting it to 1. Change the configuration to match the linux configuration Signed-off-by: Arnaud Patard Index: u-boot/arch/arm/include/asm/arch-rockchip/edp_rk3288.h

[patch v3 1/9] rockchip: video: vop: Use endpoint compatible string to find VOP mode

2020-11-20 Thread Rtp
The current code is using an hard coded enum and the of node reg value of endpoint to find out if the endpoint is mipi/hdmi/lvds/edp/dp. The order is different between rk3288, rk3399 vop little, rk3399 vop big. A possible solution would be to make sure that the rk3288.dtsi and rk3399.dtsi files

Re: [PATCH v2 0/9] spl: atf: add support for LOAD_IMAGE_V2

2020-11-20 Thread Michael Walle
Am 2020-11-20 14:16, schrieb Michal Simek: On 20. 11. 20 12:27, Michael Walle wrote: Am 2020-11-20 12:15, schrieb Michal Simek: On 20. 11. 20 11:48, Michael Walle wrote: Am 2020-11-20 11:14, schrieb Michal Simek: Hi, On 18. 11. 20 17:45, Michael Walle wrote: Newer TF-A versions provide a

Re: [PATCH v1 2/2] imx: imx8qm_rom7720_a1: fix broken fsl_esdhc_imx conversion

2020-11-20 Thread Oliver Graute
On 10/03/20, Stefano Babic wrote: > On 19.12.19 15:27, Oliver Graute wrote: > > Fix broken fsl_esdhc_imx conversion > > > > Signed-off-by: Oliver Graute > > Cc: Stefano Babic > > Cc: Fabio Estevam > > Cc: Peng Fan > > Cc: Simon Glass > > Cc: Ye Li > > Cc: uboot-imx > > --- > >

Re: [PATCH v2 0/9] spl: atf: add support for LOAD_IMAGE_V2

2020-11-20 Thread Michal Simek
On 20. 11. 20 12:27, Michael Walle wrote: > Am 2020-11-20 12:15, schrieb Michal Simek: >> On 20. 11. 20 11:48, Michael Walle wrote: >>> Am 2020-11-20 11:14, schrieb Michal Simek: Hi, On 18. 11. 20 17:45, Michael Walle wrote: > Newer TF-A versions provide a new image loading

RPi4 hang when booting from USB mass storage

2020-11-20 Thread Stefan Agner
Hi, When trying to boot rpi_4_32b_defconfig of U-Boot 2020.10 (or master) using a USB flash drive, U-Boot hangs early at: U-Boot 2020.10 (Nov 20 2020 - 10:25:26 +0100) DRAM: 3.9 GiB The weird thing is that at this point U-Boot does not access USB/SD card at all, still it matters if it got

Re: [PATCH v2 0/9] spl: atf: add support for LOAD_IMAGE_V2

2020-11-20 Thread Michael Walle
Am 2020-11-20 11:48, schrieb Michael Walle: Am 2020-11-20 11:14, schrieb Michal Simek: Hi, On 18. 11. 20 17:45, Michael Walle wrote: Newer TF-A versions provide a new image loading protocol. This is used on (newer?) NXP's SoCs. Normally, the bootflow is bl1 -> bl2 -> bl31 -> u-boot. With

Re: [PATCH v2 0/9] spl: atf: add support for LOAD_IMAGE_V2

2020-11-20 Thread Michael Walle
Am 2020-11-20 12:15, schrieb Michal Simek: On 20. 11. 20 11:48, Michael Walle wrote: Am 2020-11-20 11:14, schrieb Michal Simek: Hi, On 18. 11. 20 17:45, Michael Walle wrote: Newer TF-A versions provide a new image loading protocol. This is used on (newer?) NXP's SoCs. Normally, the bootflow

[PATCHv2 25/25] board: ti: j72xx: README: update build instructions and image formats

2020-11-20 Thread Tero Kristo
Update build instructions and image formats based on HSM rearch. A new DM image is added into the build, which gets executed right after R5 SPL finishes its job. Signed-off-by: Tero Kristo --- board/ti/j721e/README | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git

[PATCHv2 18/25] arm: mach-k3: Add platform data for j721e and j7200

2020-11-20 Thread Tero Kristo
From: Dave Gerlach Add platform clock and powerdomain data for J721e and J7200. This data is used by the corresponding drivers to register all the required device clocks and powerdomains. Signed-off-by: Dave Gerlach --- arch/arm/mach-k3/Makefile | 2 +-

[PATCHv2 24/25] configs: j7200_evm_r5: Enable raw access power management features

2020-11-20 Thread Tero Kristo
From: Dave Gerlach Sysfw is not going to provide access to power management features in the new architecture, so SPL must implement these itself. Enable all the raw register access based clock + power domain drivers. Signed-off-by: Dave Gerlach --- configs/j7200_evm_r5_defconfig | 14

[PATCHv2 23/25] configs: j721e_evm_r5: Enable raw access power management features

2020-11-20 Thread Tero Kristo
Sysfw is not going to provide access to power management features in the new architecture, so SPL must implement these itself. Enable all the raw register access based clock + power domain drivers. Signed-off-by: Tero Kristo --- configs/j721e_evm_r5_defconfig | 12 ++-- 1 file changed,

[PATCHv2 19/25] arm: mach-k3: add support for detecting firmware images from FIT

2020-11-20 Thread Tero Kristo
Add callback routines for parsing the firmware info from FIT image, and use the data to boot up ATF and the MCU R5 firmware. Signed-off-by: Tero Kristo --- arch/arm/mach-k3/common.c | 80 + arch/arm/mach-k3/common.h | 1 + arch/arm/mach-k3/security.c |

[PATCHv2 22/25] arm: mach-k3: sysfw-loader: pass boardcfg to sciserver

2020-11-20 Thread Tero Kristo
Copy the contents of the board config loaded from sysfw.itb into an EXTBOOT shared memory buffer that gets passed to sciserver. This only needs to be done if EXTBOOT area has not been populated by ROM code yet. Signed-off-by: Tero Kristo --- arch/arm/mach-k3/sysfw-loader.c | 98

[PATCHv2 21/25] arm: mach-k3: common: Drop main r5 start

2020-11-20 Thread Tero Kristo
From: Dave Gerlach Only start-up the non-linux remote cores if we are running in legacy boot mode. HSM rearch is not yet supporting this. Signed-off-by: Dave Gerlach Signed-off-by: Tero Kristo --- arch/arm/mach-k3/common.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff

[PATCHv2 15/25] power: domain: Introduce driver for raw TI K3 PDs

2020-11-20 Thread Tero Kristo
Normally, power domains are handled via TI-SCI in K3 SoCs. However, SPL is not going to have access to sysfw resources, so it must control them directly. Add driver for supporting this. Signed-off-by: Tero Kristo --- drivers/power/domain/Kconfig | 7 + drivers/power/domain/Makefile

[PATCHv2 13/25] clk: add support for TI K3 SoC PLL

2020-11-20 Thread Tero Kristo
Add support for TI K3 SoC PLLs. This clock type supports enabling/disabling/setting and querying the clock rate for the PLL. The euclidean library routine is used to calculate divider/multiplier rates for the PLLs. Signed-off-by: Tero Kristo --- drivers/clk/Kconfig | 12 ++

[PATCHv2 17/25] tools: k3_fit_atf: add DM binary to the FIT image

2020-11-20 Thread Tero Kristo
Add DM (device manager) firmware image to the fit image that is loaded by R5 SPL. This is needed with the HSM rearch where the firmware allocation has been changed slightly. Signed-off-by: Tero Kristo --- arch/arm/mach-k3/config.mk | 4 tools/k3_fit_atf.sh| 19 ++-

[PATCHv2 20/25] arm: mach-k3: do board config for PM and RM only if supported

2020-11-20 Thread Tero Kristo
If the raw PM support is built in, we are operating in the split firmware approach mode where RM and PM support is not available. In this case, skip the board config for these two. Signed-off-by: Tero Kristo --- arch/arm/mach-k3/sysfw-loader.c | 4 1 file changed, 4 insertions(+) diff

[PATCHv2 16/25] cmd: ti: pd: Add debug command for K3 power domains

2020-11-20 Thread Tero Kristo
Add support command for debugging K3 power domains. This is useful with the HSM rearch setup, where power domains are directly controlled by SPL instead of going through the TI SCI layer. The debugging support is only available in the u-boot codebase though, so the raw register access power domain

[PATCHv2 11/25] clk: fix assigned-clocks to pass with deferring provider

2020-11-20 Thread Tero Kristo
If a clock provider is not ready for assigning default rates/parents during its probe, it may return -EPROBE_DEFER directly from xlate. Handle this special case properly by skipping the entry and adjusting the return value to pass. The defaults will be handled properly in post probe phase then.

[PATCHv2 12/25] clk: fix set_rate to clean up cached rates for the hierarchy

2020-11-20 Thread Tero Kristo
Clock rates are cached within the individual clock nodes, and right now if one changes a clock rate somewhere in the middle of the tree, none of its child clocks notice the change. To fix this, clear up all the cached rates for us and our child clocks. Signed-off-by: Tero Kristo ---

[PATCHv2 14/25] clk: add support for TI K3 SoC clocks

2020-11-20 Thread Tero Kristo
Add driver to support TI K3 generation SoC clocks. This driver registers the clocks provided via platform data, and adds support for controlling the clocks via DT handles. Signed-off-by: Tero Kristo --- drivers/clk/Kconfig | 10 ++ drivers/clk/Makefile | 1 + drivers/clk/clk-k3.c | 340

[PATCHv2 09/25] clk: add support for setting clk rate from cmdline

2020-11-20 Thread Tero Kristo
Add new clk subcommand "clk setfreq", for setting up a clock rate directly from u-boot cmdline. This is handy for any debugging purposes towards clocks. Acked-by: Lukasz Majewski Signed-off-by: Tero Kristo --- cmd/clk.c | 49 +++-- 1 file changed, 47

[PATCHv2 07/25] clk: fix clock tree dump to properly dump out every registered clock

2020-11-20 Thread Tero Kristo
Some clocks are not associated to a DM node, so just parsing the DM is not enough. This is especially true for root clocks, which typically don't have any parents. Instead, fetch every registered UCLASS_CLK instance, and dump these out. Signed-off-by: Tero Kristo --- cmd/clk.c | 27

[PATCHv2 10/25] clk: sci-clk: fix return value of set_rate

2020-11-20 Thread Tero Kristo
Set rate should return the new clock rate on success, and negative error value on failure. Fix this, as currently set_rate returns 0 on success. Signed-off-by: Tero Kristo --- drivers/clk/clk-ti-sci.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git

[PATCHv2 08/25] clk: do not attempt to fetch clock pointer with null device

2020-11-20 Thread Tero Kristo
Bail out early if device returned for the parent clock is null. This avoids warning prints like this when doing clk dump: dev_get_uclass_priv: null device Signed-off-by: Tero Kristo --- drivers/clk/clk-uclass.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/clk-uclass.c

[PATCHv2 06/25] clk: fixed_rate: add API for directly registering fixed rate clocks

2020-11-20 Thread Tero Kristo
Current driver only supports registering fixed rate clocks from DT. Add new API which makes it possible to register fixed rate clocks directly from e.g. platform specific clock drivers. Reviewed-by: Peng Fan Signed-off-by: Tero Kristo --- drivers/clk/clk_fixed_rate.c | 45

[PATCHv2 04/25] remoteproc: k3-r5: remove sysfw PM calls if not supported

2020-11-20 Thread Tero Kristo
With the sysfw rearch, sysfw PM calls are no longer available from SPL level. To properly support this, remove the is_on checks and the reset assertion from the R5 remoteproc driver as these are not supported. Attempting to access unavailable services will cause the device to hang. Signed-off-by:

[PATCHv2 02/25] ram: k3-j721e: fix clk_set_rate API usage

2020-11-20 Thread Tero Kristo
clk_set_rate returns the new clock rate for the clock, not 0 in success. Fix the error checks to reflect proper API usage. Signed-off-by: Tero Kristo --- drivers/ram/k3-j721e/k3-j721e-ddrss.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git

[PATCHv2 03/25] arm: mach-k3: introduce new config option for sysfw split

2020-11-20 Thread Tero Kristo
On J7 family of SoCs (J721E and J7200), sysfw is being split to be run under two cores, TIFS portion on DMSC core, and DM firmware under MCU R5. As MCU R5 is also used to run one phase of the bootloader, we must prevent access from here towards sysfw services. To support this, add new config

[PATCHv2 01/25] lib: rational: copy the rational fraction lib routines from Linux

2020-11-20 Thread Tero Kristo
Copy the best rational approximation calculation routines from Linux. Typical usecase for these routines is to calculate the M/N divider values for PLLs to reach a specific clock rate. This is based on linux kernel commit: "lib/math/rational.c: fix possible incorrect result from rational

[PATCHv2 05/25] common: fit: Update board_fit_image_post_process() to pass fit and node_offset

2020-11-20 Thread Tero Kristo
From: Lokesh Vutla board_fit_image_post_process() passes only start and size of the image, but type of the image is not passed. So pass fit and node_offset, to derive information about image to be processed. Signed-off-by: Lokesh Vutla --- arch/arm/mach-k3/security.c | 3 ++-

[PATCHv2 00/25] J72xx: HSM rearch support series

2020-11-20 Thread Tero Kristo
Hi, Version 2 of this series has the review comments fixed received so far. Added Lukasz also to delivery, as the series contains quite a few clock driver patches in it. Main changes in v2: - Added new patch at #3 for the new config option (K3_DM_FW) - Squashed the defconfig patches into one -

Re: [PATCH v2 0/9] spl: atf: add support for LOAD_IMAGE_V2

2020-11-20 Thread Michal Simek
On 20. 11. 20 11:48, Michael Walle wrote: > Am 2020-11-20 11:14, schrieb Michal Simek: >> Hi, >> >> On 18. 11. 20 17:45, Michael Walle wrote: >>> Newer TF-A versions provide a new image loading protocol. This is >>> used on >>> (newer?) NXP's SoCs. Normally, the bootflow is bl1 -> bl2 -> bl31

Re: [PATCH 4/5] env: allow default environment to be amended from control dtb

2020-11-20 Thread Wolfgang Denk
Dear Rasmus, In message <2edc1fb5-e723-fbd6-56da-bc0dea282...@prevas.dk> you wrote: > > >> set CONFIG_ENV_IS_NOWHERE, I'd get what I have now. The only problem > > > > Can't you see that this is not logical? If the environment is > > nowhere, then how can you add something to it? > > That's

Re: [PATCH v2 0/9] spl: atf: add support for LOAD_IMAGE_V2

2020-11-20 Thread Michael Walle
Am 2020-11-20 11:14, schrieb Michal Simek: Hi, On 18. 11. 20 17:45, Michael Walle wrote: Newer TF-A versions provide a new image loading protocol. This is used on (newer?) NXP's SoCs. Normally, the bootflow is bl1 -> bl2 -> bl31 -> u-boot. With this series it is possible that U-Boot SPL loads

[PATCH 2/3] doc/README.gpt: define partition type GUID for U-Boot environment

2020-11-20 Thread Rasmus Villemoes
When setting aside a GPT partition for holding the U-Boot environment, having a partition type GUID [1] indicating "Linux filesystem" (as most tools default to) is somewhat misleading - and there's no other well-known type GUID that is better suited. So to have a canonical value to put into the

[PATCH 3/3] doc/README.gpt: reflow partition type GUID table

2020-11-20 Thread Rasmus Villemoes
The previous patch made the table look bad. Fix it, and leave some space for a future element being a bit longer than the current maximum. Signed-off-by: Rasmus Villemoes --- doc/README.gpt | 32 1 file changed, 16 insertions(+), 16 deletions(-) diff --git

[PATCH 1/3] lib/uuid.c: change prototype of uuid_guid_get_str()

2020-11-20 Thread Rasmus Villemoes
There's no reason to require an appropriately sized output parameter for the string, that's error-prone should the table ever grow an element with a longer string. We can just return the const char* pointer directly. Update the only caller accordingly, and get rid of pointless ifdeffery in the

[PATCH 0/3] add partition type GUID for U-Boot environment

2020-11-20 Thread Rasmus Villemoes
Adding the GUID to README.gpt and hooking it up in code turned out to require two other, mostly janitorial, patches, the first and last here. I've tested that "part list host 0" does show the type: u-boot-env for a test image I generated with one partition's type guid set to the value

Re: [PATCH 4/5] env: allow default environment to be amended from control dtb

2020-11-20 Thread Rasmus Villemoes
On 20/11/2020 11.13, Wolfgang Denk wrote: > Dear Rasmus, > > In message <76615995-6700-1b3e-b598-4913e9882...@prevas.dk> you wrote: >> >> Sure. So would you be ok with some /config/extra-environment node which >> gets appended after the normal environment has been loaded? Then if I > > In

Re: [PATCH 4/5] env: allow default environment to be amended from control dtb

2020-11-20 Thread Wolfgang Denk
Dear Simon, In message you wrote: > > Some years ago I did a series to allow the environment to come from a > text file, thus avoiding the \0 stuff. "env import -t" does that, you know? > Now binman has a 'u-boot-env' > entry type, allowing creating an environment from a text file, with >

Re: [PATCH 4/5] env: allow default environment to be amended from control dtb

2020-11-20 Thread Wolfgang Denk
Dear Tom, In message <20201117182353.GB5340@bill-the-cat> you wrote: > > Adding in Marek as well since I believe he's been doing things with > append-only environment, and it would be good to make sure we have > something that fits everyones needs, and doesn't break what people are > already

Re: [PATCH v2 0/9] spl: atf: add support for LOAD_IMAGE_V2

2020-11-20 Thread Michal Simek
Hi, On 18. 11. 20 17:45, Michael Walle wrote: > Newer TF-A versions provide a new image loading protocol. This is used on > (newer?) NXP's SoCs. Normally, the bootflow is bl1 -> bl2 -> bl31 -> > u-boot. With this series it is possible that U-Boot SPL loads the bl31 > directly and thus replacing

Re: [PATCH 4/5] env: allow default environment to be amended from control dtb

2020-11-20 Thread Wolfgang Denk
Dear Rasmus, In message <76615995-6700-1b3e-b598-4913e9882...@prevas.dk> you wrote: > > >> The default environment is something which is NOT INTENDED for > >> regular use. it is what you will fall back to in case (and ONLY in > >> that case) when your regular persistent environment cannot be

Re: [PATCH 0/3] xilinx: fru: Small update and fixes

2020-11-20 Thread Michal Simek
út 10. 11. 2020 v 13:21 odesílatel Michal Simek napsal: > > Hi, > > I am sending 3 more patches for fru code. Especially the second patch is > important because it ensures that data in .data section is not overwritten > based on parsed structures. > > Thanks, > Michal > > > Michal Simek (3): >

Re: [PATCH] arm64: zynqmp: Enable TPM for xilinx platforms

2020-11-20 Thread Michal Simek
út 10. 11. 2020 v 13:16 odesílatel Michal Simek napsal: > > TPMs are becoming popular that's why enable drivers and command for it. > > Signed-off-by: Michal Simek > --- > > configs/xilinx_zynqmp_virt_defconfig | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git

Re: [PATCH] arm64: zynqmp: Get rid of unused macros

2020-11-20 Thread Michal Simek
út 10. 11. 2020 v 13:16 odesílatel Michal Simek napsal: > > There is no reason to have these macros. But record offsets of missing > register in the structure for future use. > > Signed-off-by: Michal Simek > --- > > arch/arm/mach-zynqmp/include/mach/hardware.h | 6 ++ > 1 file changed, 2

Re: [PATCH] tpm: spi: Cleanup source code

2020-11-20 Thread Michal Simek
po 9. 11. 2020 v 15:46 odesílatel Michal Simek napsal: > > There is no need for GD to be used and priv variable is unused. > > Signed-off-by: Michal Simek > --- > > drivers/tpm/tpm2_tis_spi.c | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/drivers/tpm/tpm2_tis_spi.c

Re: [PATCH v2 0/6] microblaze: Cleanup series

2020-11-20 Thread Michal Simek
po 16. 11. 2020 v 16:02 odesílatel Michal Simek napsal: > > Hi, > > I looked at microblaze configs and clean up some things. All changes were > done in connection to detect nor flash based on information taken from DT. > > Thanks > Michal > > Changes in v2: > - Rework the whole patch because

Re: [PATCH] microblaze: Enable GCC garbage collector for full U-Boot

2020-11-20 Thread Michal Simek
st 4. 11. 2020 v 14:55 odesílatel Michal Simek napsal: > > GCC's garbage collector works for Microblaze for quite a long time but none > has enabled it. > The same change has be done for example by commit fac4790491f6 ("arc: > Eliminate unused code and data with GCC's garbage collector"). > >

Re: [linux-sunxi] [PATCH] sunxi: Add arm64 FEL support

2020-11-20 Thread André Przywara
On 19/11/2020 19:59, Priit Laes wrote: > On Thu, Nov 19, 2020 at 10:54:42AM +, Andre Przywara wrote: >> So far we did not support the BootROM based FEL USB debug mode on the >> 64-bit builds for Allwinner SoCs: The BootROM is using AArch32, but the >> SPL runs in AArch64. >> Returning back to

RE: [RESEND v2 10/22] drivers: clk: dm: Add clock driver for Diamond Mesa

2020-11-20 Thread Tan, Ley Foon
> -Original Message- > From: Lim, Elly Siew Chin > Sent: Tuesday, November 10, 2020 2:44 PM > To: u-boot@lists.denx.de > Cc: Marek Vasut ; Tan, Ley Foon > ; See, Chin Liang ; > Simon Goldschmidt ; Chee, Tien Fong > ; Westergreen, Dalon > ; Simon Glass ; Gan, > Yau Wai ; Lim, Elly Siew

Re: [PATCH 2/8] rpi: Add identifier for the new CM4

2020-11-20 Thread Nicolas Saenz Julienne
On Thu, 2020-11-19 at 18:48 +0100, Nicolas Saenz Julienne wrote: > The Raspberry Pi Foundation released the new Compute Module 4which we > want to detect, so we can enable Ethernet on it and know the correct > device tree file name. > > Note that this sets the Ethernet option to true since the

Re: RFC: Partition type GUID for U-Boot environment

2020-11-20 Thread Rasmus Villemoes
On 17/11/2020 19.27, Tom Rini wrote: > On Tue, Nov 17, 2020 at 11:05:36AM +0100, Rasmus Villemoes wrote: > >> Hi, >> >> Would it make sense to choose a canonical "Partition type GUID" [1] for >> partitions used to store a U-Boot environment? >> >> The partition type is mostly informational, but

Re: [PATCH 7/8] xhci: translate virtual addresses into the bus's address space

2020-11-20 Thread Nicolas Saenz Julienne
On Fri, 2020-11-20 at 07:15 +0100, Stefan Roese wrote: > Hi Bin, > Hi Nicolas, > > On 20.11.20 01:31, Bin Meng wrote: > > +Stefan > > > > On Fri, Nov 20, 2020 at 1:49 AM Nicolas Saenz Julienne > > wrote: > > > So far we've been content with passing physical addresses when > > > configuring

[PATCH] sandbox: remove ram buffer file when U-Boot is loaded by SPL

2020-11-20 Thread Patrick Delaunay
Update management of "--rm_memory" sandbox's option and force this option when U-Boot is loaded by SPL in os_spl_to_uboot() and remove the ram file after reading in main() as described in option help message: "Remove memory file after reading". This patch avoids that the file