Re: [PATCH v4 2/5] lib/lz4: update LZ4 decompressor module

2024-05-28 Thread Jonathan Liu
c, size_t srcn, void *dst, size_t > *dstn) > > if (block_header & LZ4F_BLOCKUNCOMPRESSED_FLAG) { > size_t size = min((ptrdiff_t)block_size, (ptrdiff_t)(end - out)); > - memcpy(out, in, size); > + LZ4_memcpy(out, in, size); > out += size; > if (size < block_size) { &

Re: [PATCH v4 2/5] lib/lz4: update LZ4 decompressor module

2024-05-26 Thread Jonathan Liu
Hi Gao, On Sat, 25 May 2024 at 02:52, Gao Xiang wrote: > > Hi, > > On 2024/5/24 22:26, Jonathan Liu wrote: > > Hi Jianan, > > > > On Sat, 26 Feb 2022 at 18:05, Huang Jianan wrote: > >> > >> Update the LZ4 compression module bas

[PATCH] sandbox: enable support for the unlz4 command

2024-05-25 Thread Jonathan Liu
This does not work with sandbox at present. Fix it up to use map_sysmem() to convert an address to a pointer. Signed-off-by: Jonathan Liu --- cmd/unlz4.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/unlz4.c b/cmd/unlz4.c index 5f20838e899..4b66794a72c 100644

Re: [PATCH v4 2/5] lib/lz4: update LZ4 decompressor module

2024-05-24 Thread Jonathan Liu
Hi Jianan, On Sat, 26 Feb 2022 at 18:05, Huang Jianan wrote: > > Update the LZ4 compression module based on LZ4 v1.8.3 in order to > use the newest LZ4_decompress_safe_partial() which can now decode > exactly the nb of bytes requested. > > Signed-off-by: Huang Jianan I noticed after this

Re: rk3399 issue: no DMA in Linux with mainline TF-A and U-Boot SPL

2024-04-24 Thread Jonathan Liu
Hi Kever, I also see this issue when switching between Rockchip ATF and Upstream ATF. Versions: Rockchip DDR Blob - rk3399_ddr_800MHz_v1.30.bin Rockchip Miniloader - rk3399_miniloader_v1.30.bin Rockchip ATF - rk3399_bl31_v1.36.elf Upstream ATF -

Re: Loading from squashfs with zstd compression slower than ext4

2023-06-01 Thread Jonathan Liu
Hi Tom, On Fri, 2 Jun 2023 at 03:09, Tom Rini wrote: > > On Thu, Jun 01, 2023 at 02:10:21PM +1000, Jonathan Liu wrote: > > Hi Simon, > > > > On Thu, 1 Jun 2023 at 11:27, Jonathan Liu wrote: > > > > > > Hi Simon, > > > > > > On Thu,

Re: Loading from squashfs with zstd compression slower than ext4

2023-05-31 Thread Jonathan Liu
Hi Simon, On Thu, 1 Jun 2023 at 14:10, Jonathan Liu wrote: > On Thu, 1 Jun 2023 at 11:27, Jonathan Liu wrote: > > On Thu, 1 Jun 2023 at 03:13, Simon Glass wrote: > > > On Wed, 31 May 2023 at 06:52, Jonathan Liu wrote: > > > > > > > > Hi All, &

Re: Loading from squashfs with zstd compression slower than ext4

2023-05-31 Thread Jonathan Liu
Hi Simon, On Thu, 1 Jun 2023 at 11:27, Jonathan Liu wrote: > > Hi Simon, > > On Thu, 1 Jun 2023 at 03:13, Simon Glass wrote: > > > > Hi Jonathan, > > > > On Wed, 31 May 2023 at 06:52, Jonathan Liu wrote: > > > > > > Hi All, > > > &

Re: Loading from squashfs with zstd compression slower than ext4

2023-05-31 Thread Jonathan Liu
Hi Simon, On Thu, 1 Jun 2023 at 03:13, Simon Glass wrote: > > Hi Jonathan, > > On Wed, 31 May 2023 at 06:52, Jonathan Liu wrote: > > > > Hi All, > > > > I noticed that loading from squashfs with zstd compression is > > significantly slowe

Loading from squashfs with zstd compression slower than ext4

2023-05-31 Thread Jonathan Liu
Hi All, I noticed that loading from squashfs with zstd compression is significantly slower than ext4 on RK3399 using U-Boot 2022.01. The filesystem is located on eMMC. I have CONFIG_BLOCK_CACHE=y in .config and am using the generic load command. ext4: 15682578 bytes read in 366 ms (40.9 MiB/s)

Re: BTRFS Support btrload, btrls

2023-05-31 Thread Jonathan Liu
Hi Ottinger, Perhaps you can enable CONFIG_CMD_FS_GENERIC=y in your config and try to use the generic commands - size, load, save, ls, ln, fstype, fstypes? Regards, Jonathan On Tue, 30 May 2023 at 22:07, Ottinger Georg wrote: > > > Hi Everybody, > > I am currently evaluating filesystems that

[PATCH v2] sysreset: gpio: fix gpio_reboot_request return value

2023-03-28 Thread Jonathan Liu
It should return -EINPROGRESS if successful otherwise sysreset-uclass will continue to the next sysreset device. Signed-off-by: Jonathan Liu Reviewed-by: Simon Glass --- drivers/sysreset/sysreset_gpio.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/sysreset

[PATCH] sysreset: gpio: fix gpio_reboot_request return value

2023-03-27 Thread Jonathan Liu
It should return -EINPROGRESS if successful otherwise sysreset-uclass will continue to the next sysreset device. Signed-off-by: Jonathan Liu --- drivers/sysreset/sysreset_gpio.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/sysreset/sysreset_gpio.c b/drivers

[PATCH] ram: rk3399: add missing high row detection

2023-03-23 Thread Jonathan Liu
ot TPL prints Row=16, same as the Rockchip ddr init bin: "BW=32 Col=10 Bk=8 CS0 Row=16 CS=1 Die BW=16 Size=2048MB" Signed-off-by: Jonathan Liu --- drivers/ram/rockchip/sdram_rk3399.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/ram/rockchip/sdram_rk3399.c b/drivers/ram

Re: [U-Boot] [linux-sunxi] [PATCH] ARM: HYP/non-sec: Don't enable ARMV7_LPAE for old sunxi kernels

2019-03-21 Thread Jonathan Liu
Hi Jagan, On Fri., 22 Mar. 2019 at 4:05 am, Jagan Teki wrote: > On Tue, Mar 19, 2019 at 11:09 AM Jonathan Liu wrote: > > > > Old sunxi kernels fail to boot with ARMV7_LPAE enabled. > > Any idea why? I don't have relevant stuff with to test this. > I don't know why.

[U-Boot] [PATCH] ARM: HYP/non-sec: Don't enable ARMV7_LPAE for old sunxi kernels

2019-03-19 Thread Jonathan Liu
Old sunxi kernels fail to boot with ARMV7_LPAE enabled. Signed-off-by: Jonathan Liu --- arch/arm/cpu/armv7/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/cpu/armv7/Kconfig b/arch/arm/cpu/armv7/Kconfig index 73d57a2aae..cdb7e402b4 100644 --- a/arch/arm/cpu

Re: [U-Boot] [linux-sunxi] [PATCH 5/5] sunxi: doc: Add basic fastboot example

2018-10-23 Thread Jonathan Liu
Hi Priit, On Wed, 24 Oct 2018 at 04:21, Priit Laes wrote: > > From: Priit Laes > > Signed-off-by: Priit Laes > --- > board/sunxi/README.fastboot | 98 ++- > 1 file changed, 98 insertions(+) > create mode 100644 board/sunxi/README.fastboot > > diff --git

Re: [U-Boot] [linux-sunxi] [PATCHv6 12/28] net: Add ability to set MAC address via EEPROM

2017-12-04 Thread Jonathan Liu
Hi Olliver, On 15 May 2017 at 18:02, Olliver Schinagl wrote: > This patch allows Kconfig to enable and set parameters to make it > possible to read the MAC address from an EEPROM. The net core layer then > uses this information to read MAC addresses from this EEPROM. > >

Re: [U-Boot] [PATCH v2] rpi: passthrough of the firmware provided FDT blob

2016-11-08 Thread Jonathan Liu
Hi Stephen, On 8 November 2016 at 14:14, Stephen Warren wrote: > On 11/07/2016 07:44 AM, Cédric Schieli wrote: >> >> Raspberry firmware used to pass a FDT blob at a fixed address (0x100), >> but this is not true anymore. The address now depends on both the >> memory size

Re: [U-Boot] [PATCH 1/2] rpi: save firmware provided boot param for later use

2016-11-06 Thread Jonathan Liu
Hi Cédric, On 6 November 2016 at 21:06, Cédric Schieli <cschi...@gmail.com> wrote: > > 2016-11-06 1:36 GMT+01:00 Jonathan Liu <net...@gmail.com>: >> >> I did a similar patch without noticing you already submitted this series. >> The save_boot_params

Re: [U-Boot] [PATCH 1/2] rpi: save firmware provided boot param for later use

2016-11-05 Thread Jonathan Liu
Hi Cédric, On 3 November 2016 at 05:06, Cédric Schieli wrote: > At U-Boot entry point, the r2 register holds the address of the > firmware provided boot param. Let's save it for further processing. > > Signed-off-by: Cédric Schieli > --- > >

Re: [U-Boot] [PATCH 1/2] ARM: rpi: update memory layout env. var. documentation

2016-02-06 Thread Jonathan Liu
Hi Stephen, Looks good to me then. I wasn't sure how U-Boot was typically used on the RPi. Regards, Jonathan On Sunday, 7 February 2016, Stephen Warren <swar...@wwwdotorg.org> wrote: > On 02/06/2016 12:30 AM, Jonathan Liu wrote: > > Hi Stephen, > > > > I actually

[U-Boot] [PATCH 1/2] ARM: rpi: update memory layout env. var. documentation

2016-02-06 Thread Jonathan Liu
> scripts. This comment was correct when written, but not updated when some > of the values were changed. > > Fixes: 14006a567105 ("rpi: set fdt_addr_r to 0x0100 to match default > ...device_tree_address") > Cc: Jonathan Liu <net...@gmail.com> > Cc: D

[U-Boot] [PATCH] rpi: set fdt_addr_r to 0x00000100 to match default device_tree_address

2015-08-22 Thread Jonathan Liu
Raspberry Pi by default loads the FDT to 0x0100 so set fdt_addr_r to match and move scriptaddr to 0x0200 to avoid clobbering the FDT. Signed-off-by: Jonathan Liu net...@gmail.com --- include/configs/rpi-common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git