Re: [RFC PATCH 10/10] arm: migrate away from sections.c

2023-05-22 Thread Ilias Apalodimas
On Sat, May 20, 2023 at 02:55:47PM -0600, Sam Edwards wrote: > This patch effectively reverts 3ebd1cbc49f0005092d69cf0d9a6e64d7a1c300b. Also 47bd65ef057fb71b02b32741d5cfcaf03e2f0918 ? > > The approach taken in that commit was to have the section-marking > symbols generated into empty sections by

Re: [RFC PATCH 00/10] Improve ARM target's support for LLVM toolchain

2023-05-22 Thread Ilias Apalodimas
On Mon, May 22, 2023 at 01:37:26PM -0600, Sam Edwards wrote: > Hi Ilias, > > On 5/22/23 00:52, Ilias Apalodimas wrote: > > I can help clean up the arm architecture even further. I was toying > > with the idea of having page-aligned sections and eventually map > > u-boot with proper permissions per

Re: [PATCH v3 2/3] Boot var automatic management for removable medias

2023-05-22 Thread Ilias Apalodimas
On Tue, May 16, 2023 at 10:17:14AM -0400, Raymond Mao wrote: > Hi Ilias, > > On Tue, 16 May 2023 at 01:59, Ilias Apalodimas > wrote: > > > On Tue, May 02, 2023 at 12:12:19PM -0700, Raymond Mao wrote: > > > Changes for complying to EFI spec §3.5.1.1 > > > 'Removable Media Boot Behavior'. > > > Boot

Re: [PATCH] imx8m: soc.c: demote some printfs to debug

2023-05-22 Thread Peng Fan
On 5/22/2023 5:27 PM, Rasmus Villemoes wrote: Getting Found /vpu_g1@3830 node Modify /vpu_g1@3830:status disabled Found /vpu_g2@3831 node Modify /vpu_g2@3831:status disabled etc. on the console on every boot is needlessly verbose. Demote the "Found ..." lines to d

[PATCH] board: xilinx: Add missing prototypes

2023-05-22 Thread Ashok Reddy Soma
From: Algapally Santosh Sagar Add missing prototypes to fix the below sparse warnings 1. warning: no previous prototype for 'soc_name_decode' [-Wmissing-prototypes] 2. warning: no previous prototype for 'soc_detection' [-Wmissing-prototypes] 3. warning: no previous prototype for 'board_name_decod

Re: [RFC PATCH 07/10] arm: efi_loader: discard hash, unwind information

2023-05-22 Thread Heinrich Schuchardt
Am 22. Mai 2023 21:25:50 MESZ schrieb Sam Edwards : >Hi Ilias, > >On 5/22/23 01:00, Ilias Apalodimas wrote: >> The reason we end up with both hash and gnu.hash is because the hash >> style is set to 'both'. Should we perhaps use (and strip) only one of >> them? > >If we do keep one, it should p

Re: [PATCH] mmc: fix improper use of memset

2023-05-22 Thread Sam Edwards
Hi, Peng Fan! Thank you for your review. :) On 5/22/23 19:44, Peng Fan wrote: This looks correct to me. BTW: do you met any issues during test? I do not think I understand the question. Are you asking, "Did you send this patch because the current MMC driver was having problems on a real devi

Re: [PATCH v6 5/8] efi_loader: check lowest supported version

2023-05-22 Thread Masahisa Kojima
On Tue, 23 May 2023 at 06:36, Ilias Apalodimas wrote: > > On Fri, May 19, 2023 at 07:32:11PM +0900, Masahisa Kojima wrote: > > The FMP Payload Header which EDK II capsule generation scripts > > insert has a firmware version. > > This commit reads the lowest supported version stored in the > > devi

Re: [PATCH v6 2/8] efi_loader: store firmware version into FmpState variable

2023-05-22 Thread Masahisa Kojima
On Tue, 23 May 2023 at 06:24, Ilias Apalodimas wrote: > > Hi Kojima-san, > > On Fri, May 19, 2023 at 07:32:08PM +0900, Masahisa Kojima wrote: > > Firmware version management is not implemented in the current > > FMP protocol. > > EDK II reference implementation capsule generation script inserts >

Re: [PATCH] mmc: fix improper use of memset

2023-05-22 Thread Peng Fan
On 5/19/2023 3:47 AM, Sam Edwards wrote: Caution: This is an external email. Please take care when clicking links or opening attachments. When in doubt, report the message using the 'Report this email' button Buffers created through DEFINE_(CACHE_)ALIGN_BUFFER are actually pointers to the

Re: [PATCH] imx: imx8mp: Add support for Polyhex Debix Model A SBC

2023-05-22 Thread Peng Fan
On 5/22/2023 6:58 AM, Gilles Talis wrote: + * Copyright 2022 Ideas on Board Oy Time? This was taken as is from the kernel. Hence, the reason why the date is unchanged. Then it is fine to keep as it is. Just note this in commit log. Regards, Peng.

[PATCH 8/8] video: rockchip: dw_mipi_dsi: Fix GRF access

2023-05-22 Thread megi
From: Ondrej Jirman Use proper register base and access method to access GRF registers. GRF registers start at a completely different base, and need special access method, that sets the change mask in the 16 MSBs. Signed-off-by: Ondrej Jirman --- drivers/video/rockchip/dw_mipi_dsi_rockchip.c |

[PATCH 7/8] video: rockchip: dw_mipi_dsi: Correct check for lacking phy phandle

2023-05-22 Thread megi
From: Ondrej Jirman If phy is not defined in DT (eg. on rk3399), generic_phy_get_by_name will return -ENODATA. Handle that case correctly. Signed-off-by: Ondrej Jirman --- drivers/video/rockchip/dw_mipi_dsi_rockchip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/driv

[PATCH 6/8] video: rockchip: dw_mipi_dsi: Fix best_rate calculation

2023-05-22 Thread megi
From: Ondrej Jirman pllref_clk is unused after being retrieved. fin needs to be set to dsi->ref clock's rate for the following calculation to work. Otherwise fin is undefined, and calculation return bogus number based on undefined variable. Signed-off-by: Ondrej Jirman --- drivers/video/rockch

[PATCH 4/8] video: rockchip: dw_mipi_dsi: Fix error path checks in probe function

2023-05-22 Thread megi
From: Ondrej Jirman Wrong return codes were checked in several places. Check the proper ones. Signed-off-by: Ondrej Jirman --- drivers/video/rockchip/dw_mipi_dsi_rockchip.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/video/rockchip/dw_mipi_dsi_rockchip.c

[PATCH 5/8] video: rockchip: dw_mipi_dsi: Return 0 from dsi_phy_init on success

2023-05-22 Thread megi
From: Ondrej Jirman ret is undefined if external phy is not used resulting in bogus error being returned in that scenario. Signed-off-by: Ondrej Jirman --- drivers/video/rockchip/dw_mipi_dsi_rockchip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/rockchip/d

[PATCH 3/8] video: rockchip: dw_mipi_dsi: Fix external phy existnece check

2023-05-22 Thread megi
From: Ondrej Jirman &priv->phy is always true. Compiler warns about this loudly. Use a propper check for phy device allocation. Without this fix using this driver with SoC that doesn't use external phy (eg. RK3399) doesn't work. Signed-off-by: Ondrej Jirman --- drivers/video/rockchip/dw_mipi_

[PATCH 1/8] video: rockchip: vop: Fix whitespace

2023-05-22 Thread megi
From: Ondrej Jirman Fix confusing use of indentation. Signed-off-by: Ondrej Jirman --- drivers/video/rockchip/rk_vop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/rockchip/rk_vop.c b/drivers/video/rockchip/rk_vop.c index dab9902fda73..c514e2a0e449 100644 -

[PATCH 2/8] video: dw_mipi_dsi: Fix hsync/vsync settings

2023-05-22 Thread megi
From: Ondrej Jirman These must be read from timings->flags, like other DSI HOST drivers do. And they must not be inverted either. Low means low. Without this fix, panel drivers that set *SYNC_LOW produce corrupted output on screen (shifted horizobnntally and vertivally by back porch distance).

[PATCH 0/8] Some fixes for the rockchip dw_mipi_dsi driver

2023-05-22 Thread megi
From: Ondrej Jirman These are just random fixes for bugs I found while eyeballing the code and porting it to work with RK3399. Please take a look. Thank you and regards, Ondrej Jirman Ondrej Jirman (8): video: rockchip: vop: Fix whitespace video: dw_mipi_dsi: Fix hsync/vsync setti

Re: [PATCH v6 5/8] efi_loader: check lowest supported version

2023-05-22 Thread Ilias Apalodimas
On Fri, May 19, 2023 at 07:32:11PM +0900, Masahisa Kojima wrote: > The FMP Payload Header which EDK II capsule generation scripts > insert has a firmware version. > This commit reads the lowest supported version stored in the > device tree, then check if the firmware version in FMP payload header >

Re: [PATCH v6 4/8] efi_loader: get lowest supported version from device tree

2023-05-22 Thread Ilias Apalodimas
On Fri, May 19, 2023 at 07:32:10PM +0900, Masahisa Kojima wrote: > This commit gets the lowest supported version from device tree, > then fills the lowest supported version in FMP->GetImageInfo(). > > Signed-off-by: Masahisa Kojima > --- > Changed in v6: > - fw_version is removed from device tree

Re: [PATCH v6 6/8] mkeficapsule: add FMP Payload Header

2023-05-22 Thread Ilias Apalodimas
On Fri, May 19, 2023 at 07:32:12PM +0900, Masahisa Kojima wrote: > Current mkeficapsule tool does not provide firmware > version management. EDK II reference implementation inserts > the FMP Payload Header right before the payload. > It coutains the fw_version and lowest supported version. > > This

Re: [PATCH v6 3/8] efi_loader: versioning support in GetImageInfo

2023-05-22 Thread Ilias Apalodimas
On Fri, May 19, 2023 at 07:32:09PM +0900, Masahisa Kojima wrote: > Current FMP->GetImageInfo() always return 0 for the firmware > version, user can not identify which firmware version is currently > running through the EFI interface. > > This commit reads the "FmpState" EFI variable, then fills

Re: [PATCH v6 2/8] efi_loader: store firmware version into FmpState variable

2023-05-22 Thread Ilias Apalodimas
Hi Kojima-san, On Fri, May 19, 2023 at 07:32:08PM +0900, Masahisa Kojima wrote: > Firmware version management is not implemented in the current > FMP protocol. > EDK II reference implementation capsule generation script inserts > the FMP Payload Header right before the payload, FMP Payload Header

Re: [RFC PATCH 0/5] LWIP stack integration

2023-05-22 Thread Tom Rini
On Mon, May 22, 2023 at 12:40:49PM -0400, Maxim Uvarov wrote: > On Mon, 22 May 2023 at 10:20, Tom Rini wrote: > > > On Mon, May 22, 2023 at 04:33:57PM +0300, Ilias Apalodimas wrote: > > > Hi Maxim > > > > > > On Mon, 22 May 2023 at 12:01, Maxim Uvarov > > wrote: > > > > > > > > My measurements f

Re: [RFC PATCH 00/10] Improve ARM target's support for LLVM toolchain

2023-05-22 Thread Tom Rini
On Mon, May 22, 2023 at 01:59:33PM -0600, Sam Edwards wrote: > Hi Tom, > > On 5/22/23 09:30, Tom Rini wrote: > > I think objcopy is a bit of a stretch at this > > point and it's not clear from the above if you're also making use of the > > assembler. > > I agree, since getting llvm-objcopy to pla

Re: [PATCH 3/3] arm: dts: imx8mp: Sync with Linux 6.3

2023-05-22 Thread Adam Ford
On Mon, May 22, 2023 at 3:49 PM Fabio Estevam wrote: > > Hi Tim, > > On Fri, May 19, 2023 at 8:00 PM Tim Harvey wrote: > > > Fabio, > > > > There's more to be done here also. With this patch, and with the > > spba-bus added to u-boot.dtsi, if you try to enable usb (usb start) > > you get: > > sta

Re: [PATCH 3/3] arm: dts: imx8mp: Sync with Linux 6.3

2023-05-22 Thread Fabio Estevam
Hi Tim, On Fri, May 19, 2023 at 8:00 PM Tim Harvey wrote: > Fabio, > > There's more to be done here also. With this patch, and with the > spba-bus added to u-boot.dtsi, if you try to enable usb (usb start) > you get: > starting USB... > Bus usb@3820: > Enable clock-controller@3038 failed

Re: [PATCH v6 1/8] efi_loader: add the number of image entries in efi_capsule_update_info

2023-05-22 Thread Ilias Apalodimas
On Fri, May 19, 2023 at 07:32:07PM +0900, Masahisa Kojima wrote: > The number of image array entries global variable is required > to support EFI capsule update. This information is exposed as a > num_image_type_guids variable, but this information > should be included in the efi_capsule_update_inf

Re: [PATCH 0/8] Cleanup unaligned access macros

2023-05-22 Thread Ilias Apalodimas
Hi Jens On Mon, May 22, 2023 at 02:22:30PM +0200, Jens Wiklander wrote: > Hi, > > There are two versions of get/set_unaligned, get_unaligned_be64, > put_unaligned_le64 etc in U-Boot causing confusion (and bugs). > > In this patch-set, I'm trying to fix that with a single unified version of > the a

Re: [RFC PATCH 07/10] arm: efi_loader: discard hash, unwind information

2023-05-22 Thread Ilias Apalodimas
Hi Sam, On Mon, 22 May 2023 at 22:25, Sam Edwards wrote: > > Hi Ilias, > > On 5/22/23 01:00, Ilias Apalodimas wrote: > > The reason we end up with both hash and gnu.hash is because the hash > > style is set to 'both'. Should we perhaps use (and strip) only one of > > them? > > If we do keep one,

Re: [RFC PATCH 00/10] Improve ARM target's support for LLVM toolchain

2023-05-22 Thread Heinrich Schuchardt
Am 22. Mai 2023 21:37:26 MESZ schrieb Sam Edwards : >Hi Ilias, > >On 5/22/23 00:52, Ilias Apalodimas wrote: >> I can help clean up the arm architecture even further. I was toying >> with the idea of having page-aligned sections and eventually map >> u-boot with proper permissions per section.

Re: [RFC PATCH 00/10] Improve ARM target's support for LLVM toolchain

2023-05-22 Thread Sam Edwards
Hi Tom, On 5/22/23 09:30, Tom Rini wrote: I think objcopy is a bit of a stretch at this point and it's not clear from the above if you're also making use of the assembler. I agree, since getting llvm-objcopy to play nice with this currently requires that I make a handful of small hack edits t

Re: [RFC PATCH 00/10] Improve ARM target's support for LLVM toolchain

2023-05-22 Thread Sam Edwards
Hi Ilias, On 5/22/23 00:52, Ilias Apalodimas wrote: I can help clean up the arm architecture even further. I was toying with the idea of having page-aligned sections and eventually map u-boot with proper permissions per section. Right now (at least for the majority of arm platforms) we are doi

Re: [RFC PATCH 07/10] arm: efi_loader: discard hash, unwind information

2023-05-22 Thread Sam Edwards
Hi Ilias, On 5/22/23 01:00, Ilias Apalodimas wrote: The reason we end up with both hash and gnu.hash is because the hash style is set to 'both'. Should we perhaps use (and strip) only one of them? If we do keep one, it should probably be .hash -- see commit b02bfc4dfc. I admit I'm completely

Re: [RFC PATCH 08/10] arm: efi_loader: move .dynamic out of .text in EFI

2023-05-22 Thread Sam Edwards
On 5/22/23 02:10, Heinrich Schuchardt wrote: Hi Heinrich, .dynamic should be aligned. Structure Elf64_Dyn requires at least 8 byte alignment. As best as I can tell, linkers (certainly lld[1], apparently also GNU ld judging by its default linker scripts) themselves set the proper word alignm

Re: [RFC PATCH 0/5] LWIP stack integration

2023-05-22 Thread Maxim Uvarov
On Mon, 22 May 2023 at 10:20, Tom Rini wrote: > On Mon, May 22, 2023 at 04:33:57PM +0300, Ilias Apalodimas wrote: > > Hi Maxim > > > > On Mon, 22 May 2023 at 12:01, Maxim Uvarov > wrote: > > > > > > My measurements for binary after LTO looks like: > > > > > > U-boot WGET | LWIP WGET + ping | L

Re: Pull request: u-boot-rockchip-20230519

2023-05-22 Thread Tom Rini
On Fri, May 19, 2023 at 06:09:51PM +0800, Kever Yang wrote: > Hi Tom, > > Please pull the updates for rockchip platform: > rk3588 driver: > - Sync the reset driver with kernel code; > - Enable pcie controller and phy support; > - Enable USB controller and phy support; > Board level dts and config

Re: [RFC PATCH 00/10] Improve ARM target's support for LLVM toolchain

2023-05-22 Thread Tom Rini
On Mon, May 22, 2023 at 12:39:04PM +0200, Michal Simek wrote: > Hi > > On 5/21/23 06:59, Sam Edwards wrote: > > On 5/20/23 22:26, Heinrich Schuchardt wrote: > > > Hello Sam, > > > > Hi Heinrich! Good to hear from you. > > > > > I guess the documentation and the CI testing would also have to be

Re: [PATCH v4 23/23] configs: am64x: Enable TI_SECURE_DEV options

2023-05-22 Thread Kamlesh Gurudasani
Andrew Davis writes: >>> > > Depending on when we expect this binman series to go in should guide > how we handle this. My hope is that this can go into -next very > soon, but that would still mean it won't hit master branch until > v2023.10. > > Fixing the issue Kamlesh describes below in time f

Re: [RFC PATCH 0/5] LWIP stack integration

2023-05-22 Thread Tom Rini
On Mon, May 22, 2023 at 04:33:57PM +0300, Ilias Apalodimas wrote: > Hi Maxim > > On Mon, 22 May 2023 at 12:01, Maxim Uvarov wrote: > > > > My measurements for binary after LTO looks like: > > > > U-boot WGET | LWIP WGET + ping | LWIP WGET| diff bytes| diff % > > 870728| 915000

Re: [PATCH v4 23/23] configs: am64x: Enable TI_SECURE_DEV options

2023-05-22 Thread Andrew Davis
On 5/22/23 7:35 AM, Kamlesh Gurudasani wrote: Neha Malcom Francis writes: Hi Andrew On 18/05/23 22:09, Andrew Davis wrote: On 5/18/23 9:27 AM, Neha Malcom Francis wrote: From: Kamlesh Gurudasani AM64x family of SoCs by default will have some level of security enforcement checking. Enable

Re: [PATCH] global: Use proper project name U-Boot

2023-05-22 Thread Qu Wenruo
On 2023/5/17 15:17, Michal Simek wrote: Use proper project name in comments, Kconfig, readmes. Signed-off-by: Michal Simek [...] diff --git a/fs/btrfs/compat.h b/fs/btrfs/compat.h index 9cf8a10c76c5..02173dea5f48 100644 --- a/fs/btrfs/compat.h +++ b/fs/btrfs/compat.h @@ -46,7 +46,7 @@ /*

Re: [PATCH] global: Use proper project name U-Boot

2023-05-22 Thread Neil Armstrong
On 17/05/2023 09:17, Michal Simek wrote: Use proper project name in comments, Kconfig, readmes. Signed-off-by: Michal Simek For amlogic changes: Reviewed-by: Neil Armstrong --- I am ignoring these for now because they can break automated scripts or user setting that's why they should b

Re: [PATCH 2/2] arm: mach-k3: j721s2: clk-data.c: Add main_uart5 clock data

2023-05-22 Thread Bhavya Kapoor
On 12/05/23 23:12, Bryan Brattlof wrote: > Hi Bhavya! > > On May 11, 2023 thus sayeth Bhavya Kapoor: >> Add main_uart5 clocks in clk-data.c for J721S2. Now, >> main_uart5 clocks will be set up while booting the J721S2 SoC. >> >> Signed-off-by: Bhavya Kapoor >> --- >> arch/arm/mach-k3/j721s2/clk

[PATCH v1 3/3] arch/arm64: meson-a1: dts: move pwrc node to bus

2023-05-22 Thread Alexey Romanov
This is necessary so that pwrc can be used together with peripherals when described in a bus node. For example, in the future, this will be USB. Signed-off-by: Alexey Romanov --- arch/arm/dts/meson-a1.dtsi | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm/

[PATCH v1 2/3] drivers: meson: introduce secure power controller driver

2023-05-22 Thread Alexey Romanov
This patch adds Power controller driver support for Amlogic A1 family using secure monitor calls. The power domains register only can access in secure world. Signed-off-by: Alexey Romanov --- drivers/power/domain/Kconfig | 7 + drivers/power/domain/Makefile | 1 +

[PATCH v1 1/3] arch/arm: meson: sm: introduce power domain functions

2023-05-22 Thread Alexey Romanov
This commit adds functions to manage secure power domain for Amlogic SoC's using smc functionality. Signed-off-by: Alexey Romanov --- arch/arm/include/asm/arch-meson/sm.h | 30 arch/arm/mach-meson/sm.c | 14 + 2 files changed, 44 insertions(+)

[PATCH v1 0/3] Meson Secure PWRC Driver

2023-05-22 Thread Alexey Romanov
Hello! This patch set adds support (driver and sm functions) for working with power domain controller using secure monitor for Amlogic A1-series. Additionally, in the future, the driver can be used for other Amlgoic SoC series, such as S4. Alexey Romanov (3): arch/arm: meson: sm: introduce powe

Re: USB mass storage gadget on SAMA5D2

2023-05-22 Thread admin LI
Hi, I think there may be some racing in the driver. (Purely assumption as a tinyusb maintainer) If I enable DBG_ALL in atmel_usba_udc.h, the block device is enermurated although with I/O error. [1337613.189788] usb 1-1: new high-speed USB device number 7 using xhci_hcd [1337613.674551] usb 1-1: N

Re: [RFC PATCH 0/5] LWIP stack integration

2023-05-22 Thread Ilias Apalodimas
Hi Maxim On Mon, 22 May 2023 at 12:01, Maxim Uvarov wrote: > > My measurements for binary after LTO looks like: > > U-boot WGET | LWIP WGET + ping | LWIP WGET| diff bytes| diff % > 870728| 915000| 912560 | 41832| > 4.8 I think you'll need to anal

Re: [EXTERNAL] Re: [PATCH v4 23/23] configs: am64x: Enable TI_SECURE_DEV options

2023-05-22 Thread Kamlesh Gurudasani
Kamlesh Gurudasani writes: > Neha Malcom Francis writes: > >> Hi Andrew >> >> On 18/05/23 22:09, Andrew Davis wrote: >>> On 5/18/23 9:27 AM, Neha Malcom Francis wrote: From: Kamlesh Gurudasani AM64x family of SoCs by default will have some level of security enforcement check

[PATCH] xilinx: versal-net: Add new versalnet loadpdi command

2023-05-22 Thread Michal Simek
From: Algapally Santosh Sagar Versal NET loadpdi command is used for loading secure & non-secure pdi images. Signed-off-by: Algapally Santosh Sagar Signed-off-by: Michal Simek --- board/xilinx/versal-net/Kconfig | 8 board/xilinx/versal-net/Makefile | 1 + board/xilinx/versal-net/cmd

Re: [PATCH v4 23/23] configs: am64x: Enable TI_SECURE_DEV options

2023-05-22 Thread Kamlesh Gurudasani
Neha Malcom Francis writes: > Hi Andrew > > On 18/05/23 22:09, Andrew Davis wrote: >> On 5/18/23 9:27 AM, Neha Malcom Francis wrote: >>> From: Kamlesh Gurudasani >>> >>> AM64x family of SoCs by default will have some level of security >>> enforcement checking. Enable CONFIG_TI_SECURE_DEVICE by d

[PATCH 8/8] asm-generic: simplify unaligned.h

2023-05-22 Thread Jens Wiklander
The get_unaligned()/put_unaligned() implementations are more complex than necessary. Move everything into one file and use a more compact implementation based on packed struct access and byte swapping macros. This patch is based on the Linux kernel commit 803f4e1eab7a ("asm-generic: simplify asm/

[PATCH 7/8] linux/unaligned: remove unused access_ok.h

2023-05-22 Thread Jens Wiklander
linux/unaligned/access_ok.h is unused, so remove it. Signed-off-by: Jens Wiklander --- include/linux/unaligned/access_ok.h | 66 - 1 file changed, 66 deletions(-) delete mode 100644 include/linux/unaligned/access_ok.h diff --git a/include/linux/unaligned/access_ok.h

[PATCH 6/8] fs/btrfs: use asm/unaligned.h

2023-05-22 Thread Jens Wiklander
Use asm/unaligned.h instead of linux/unaligned/access_ok.h for unaligned access. This is needed on architectures that doesn't handle unaligned accesses directly. Signed-off-by: Jens Wiklander --- fs/btrfs/crypto/hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/btrfs/

[PATCH 5/8] powerpc: use asm-generic/unaligned.h

2023-05-22 Thread Jens Wiklander
Powerpc configurations are apparently able to do unaligned accesses. But in an attempt to clean up and handle unaligned accesses in the same way we ignore that and use the common asm-generic/unaligned.h directly instead. Signed-off-by: Jens Wiklander --- arch/powerpc/include/asm/unaligned.h | 18

[PATCH 4/8] m68k: use asm-generic/unaligned.h

2023-05-22 Thread Jens Wiklander
M68k essentially duplicates the content of asm-generic/unaligned.h, with an exception for non-Coldfire configurations. Coldfire configurations are apparently able to do unaligned accesses. But in an attempt to clean up and handle unaligned accesses in the same way we ignore that and use the common

[PATCH 3/8] mips: use asm-generic/unaligned.h

2023-05-22 Thread Jens Wiklander
Mips essentially duplicates the content of asm-generic/unaligned.h, so use that file directly instead. Signed-off-by: Jens Wiklander --- arch/mips/include/asm/unaligned.h | 23 +-- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/arch/mips/include/asm/unaligned.h

[PATCH 2/8] sh: use asm-generic/unaligned.h

2023-05-22 Thread Jens Wiklander
Sh essentially duplicates the content of asm-generic/unaligned.h, so use that file directly instead. Signed-off-by: Jens Wiklander --- arch/sh/include/asm/unaligned.h | 22 ++ 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/arch/sh/include/asm/unaligned.h b/arc

[PATCH 0/8] Cleanup unaligned access macros

2023-05-22 Thread Jens Wiklander
Hi, There are two versions of get/set_unaligned, get_unaligned_be64, put_unaligned_le64 etc in U-Boot causing confusion (and bugs). In this patch-set, I'm trying to fix that with a single unified version of the access macros to be used across all archs. This work is inspired by similar changes in

[PATCH 1/8] arm: use asm-generic/unaligned.h

2023-05-22 Thread Jens Wiklander
Arm duplicates the content of asm-generic/unaligned.h, so use that file directly instead. Signed-off-by: Jens Wiklander --- arch/arm/include/asm/unaligned.h | 21 ++--- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/arch/arm/include/asm/unaligned.h b/arch/arm/incl

Re: [PATCH 0/2] Fix the sparse warnings

2023-05-22 Thread Michal Simek
On 5/19/23 13:38, Venkatesh Yadav Abbarapu wrote: Fix sparse warnings in below files - Add fallthrough statement in the switch case - Add missing header Algapally Santosh Sagar (2): clk: zynqmp: Add fallthrough statement in the switch case mach-zynqmp: handoff: Add missing header arc

Re: [PATCH v2] arm64: versal-net: Detect and display bootmode

2023-05-22 Thread Michal Simek
On 5/16/23 16:47, Ashok Reddy Soma wrote: Read boodmode register using versal_net_get_bootmode() in board_late_init and prepare corresponding distro boot command sequence based on it. versal_net_get_bootmode() will be changed to use smc calls later, but for now directly reads the register. S

Re: [PATCH] dt-bindings: u-boot: Add variables for bootscript location

2023-05-22 Thread Michal Simek
On 5/11/23 16:33, Michal Simek wrote: From: Algapally Santosh Sagar Add bootscr-address and offset-from-ram-start properties to help in easier picking of boot script file when automated flows are used. The bootscr-address holds the full 64 bit address of the bootscript file. The bootscr-of

Re: [PATCH v3 2/2] firmware: zynqmp: Move permission to change config object message

2023-05-22 Thread Michal Simek
Hi, On 5/22/23 12:55, Stefan Herbrechtsmeier wrote: Hi Michal, Am 18.05.2023 um 13:29 schrieb Michal Simek: On 5/17/23 16:11, Stefan Herbrechtsmeier wrote: Am 17.05.2023 um 14:12 schrieb Michal Simek: On 5/16/23 16:05, Stefan Herbrechtsmeier wrote: From: Stefan Herbrechtsmeier Move the p

[PATCH v2 1/1] arm: dts: icnova-a20-adb4006: Add board support

2023-05-22 Thread Ludwig Kormann
Add board support for ICnova A20 SomPi compute module on ICnova ADB4006 development board. Specification: SoM - Processor: Allwinner A20 Cortex-A7 Dual Core at 1GHz - 512MB DDR3 RAM - Fast Ethernet (Phy: Realtek RTL8201CP) ADB4006 - I2C - 2x USB 2.0 - 1x Fast Ethernet port - 1x SATA - 2x buttons (

Re: [PATCH v3 2/2] firmware: zynqmp: Move permission to change config object message

2023-05-22 Thread Stefan Herbrechtsmeier
Hi Michal, Am 18.05.2023 um 13:29 schrieb Michal Simek: On 5/17/23 16:11, Stefan Herbrechtsmeier wrote: Am 17.05.2023 um 14:12 schrieb Michal Simek: On 5/16/23 16:05, Stefan Herbrechtsmeier wrote: From: Stefan Herbrechtsmeier Move the permission to change a config object message from zynqm

Re: [RFC PATCH 00/10] Improve ARM target's support for LLVM toolchain

2023-05-22 Thread Michal Simek
Hi On 5/21/23 06:59, Sam Edwards wrote: On 5/20/23 22:26, Heinrich Schuchardt wrote: Hello Sam, Hi Heinrich! Good to hear from you. I guess the documentation and the CI testing would also have to be adjusted. Ah, yeah, those are going to be big things for me to look at when this series s

Re: [PATCH] imx8m: soc.c: demote some printfs to debug

2023-05-22 Thread Frieder Schrempf
On 22.05.23 11:27, Rasmus Villemoes wrote: > Getting > > Found /vpu_g1@3830 node > Modify /vpu_g1@3830:status disabled > Found /vpu_g2@3831 node > Modify /vpu_g2@3831:status disabled > > etc. on the console on every boot is needlessly verbose. Demote the > "Found ..." line

[PATCH] imx8m: soc.c: demote some printfs to debug

2023-05-22 Thread Rasmus Villemoes
Getting Found /vpu_g1@3830 node Modify /vpu_g1@3830:status disabled Found /vpu_g2@3831 node Modify /vpu_g2@3831:status disabled etc. on the console on every boot is needlessly verbose. Demote the "Found ..." lines to debug(), which is consistent with other instances in soc

Re: [PATCH v12 00/10] introduce Arm FF-A support

2023-05-22 Thread Abdellatif El Khlifi
Hi Simon, > Adding support for Arm FF-A v1.0 (Arm Firmware Framework for Armv8-A) [A]. > > FF-A specifies interfaces that enable a pair of software execution > environments aka partitions to > communicate with each other. A partition could be a VM in the Normal or > Secure world, an > applicati

Re: [RFC PATCH 0/5] LWIP stack integration

2023-05-22 Thread Maxim Uvarov
My measurements for binary after LTO looks like: U-boot WGET | LWIP WGET + ping | LWIP WGET| diff bytes| diff % 870728| 915000| 912560 | 41832 | 4.8 BR, Maxim. On Fri, 19 May 2023 at 09:52, Tom Rini wrote: > On Fri, May 19, 2023 at 04:17:06PM +0300,

[PATCH] phy: rockchip: inno-usb2: fix phy reg=0 case

2023-05-22 Thread Eugen Hristev
The support for #address-cells=2 has a loophole: if the reg is actually 0, but the #address-cells is actually 1, like in such case below: syscon { #address-cells = <1>; phy { reg = <0 0x10>; }; }; then the second u32 of the 'reg' is the size, not the addre

Re: [RFC PATCH 08/10] arm: efi_loader: move .dynamic out of .text in EFI

2023-05-22 Thread Heinrich Schuchardt
On 5/20/23 22:55, Sam Edwards wrote: This is not proper: A .text section is SHT_PROGBITS, while the .dynamic section is SHT_DYNAMIC. Attempting to combine them like this creates a section type mismatch. It does seem that GNU ld does not complain, but LLVM's lld considers this an error. Signed-o

Re: [RFC PATCH] mmc: zynq_sdhci: Dependable card detect

2023-05-22 Thread Stefan Herbrechtsmeier
Hi Ashok, Am 18.05.2023 um 08:20 schrieb Soma, Ashok Reddy: We haven't seen any instability issue so far on ZynqMP boards and no one reported any such issue till now. It isn't an instability issue. The high level at the card detect input is not marked as stable until a short low level is

Re: [PATCH v6 1/8] efi_loader: add the number of image entries in efi_capsule_update_info

2023-05-22 Thread Ilias Apalodimas
On Fri, May 19, 2023 at 07:32:07PM +0900, Masahisa Kojima wrote: > The number of image array entries global variable is required > to support EFI capsule update. This information is exposed as a > num_image_type_guids variable, but this information > should be included in the efi_capsule_update_inf

Re: [RFC PATCH 08/10] arm: efi_loader: move .dynamic out of .text in EFI

2023-05-22 Thread Ilias Apalodimas
Hi Sam, On Sat, 20 May 2023 at 23:56, Sam Edwards wrote: > > This is not proper: A .text section is SHT_PROGBITS, > while the .dynamic section is SHT_DYNAMIC. Attempting to > combine them like this creates a section type mismatch. > > It does seem that GNU ld does not complain, but LLVM's lld > c

Re: [RFC PATCH 07/10] arm: efi_loader: discard hash, unwind information

2023-05-22 Thread Ilias Apalodimas
Hi Sam On Sat, 20 May 2023 at 23:56, Sam Edwards wrote: > > LLD tends to put these at the very beginning of the file, only > for the .text 0x0 directive to end up going backward and > overlapping them, creating an error. > > Since they don't appear to be used at runtime, just discard them. > > Si