[PATCH v4 4/4] efi: add EFI_DEBUG_IMAGE_INFO for debug

2025-05-28 Thread Ying-Chun Liu (PaulLiu)
From: "Ying-Chun Liu (PaulLiu)" This commit adds the functionality of generate EFI_DEBUG_IMAGE_INFO while loading the image. This feature is described in UEFI Spec 2.10. Section 18.4.3. The implementation ensures support for hardware-assisted debugging and provides a standardized mec

[PATCH v4 3/4] lib: efi_loader: efi_memory.c: add efi_realloc() for realloc memory

2025-05-28 Thread Ying-Chun Liu (PaulLiu)
From: "Ying-Chun Liu (PaulLiu)" Add efi_realloc() for realloc memory that previously alloc by efi_alloc(). Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Heinrich Schuchardt Cc: Ilias Apalodimas Cc: Peter Robinson Cc: Simon Glass --- V4: Fix efi_realloc return failure code. --

[PATCH v4 2/4] efi: add EFI_DEBUG_IMAGE_INFO_TABLE for debug

2025-05-28 Thread Ying-Chun Liu (PaulLiu)
From: "Ying-Chun Liu (PaulLiu)" EFI_DEBUG_IMAGE_INFO_TABLE is used to store EFI_LOADED_IMAGE for debug purpose. This commit adds the table to the EFI_CONFIGURATION_TABLE. This feature is described in UEFI Spec version 2.10. Section 18.4. The implementation ensures support for hardwar

[PATCH v4 1/4] efi: add EFI_SYSTEM_TABLE_POINTER for debug

2025-05-28 Thread Ying-Chun Liu (PaulLiu)
From: "Ying-Chun Liu (PaulLiu)" Add EFI_SYSTEM_TABLE_POINTER structure for remote debugger to locate the address of EFI_SYSTEM_TABLE. This feature is described in UEFI SPEC version 2.10. Section 18.4.2. The implementation ensures support for hardware-assisted debugging and

[PATCH v4 0/4] Add EFI Debug Support Table feature

2025-05-28 Thread Ying-Chun Liu (PaulLiu)
From: "Ying-Chun Liu (PaulLiu)" I implemented the UEFI Specification version 2.10, specifically focusing on the functionality described in Section 18.4, which details the EFI Debug Support Table feature. This implementation ensures support for hardware-assisted debugging and

[PATCH v3 3/4] lib: efi_loader: efi_memory.c: add efi_realloc() for realloc memory

2025-05-21 Thread Ying-Chun Liu (PaulLiu)
From: "Ying-Chun Liu (PaulLiu)" Add efi_realloc() for realloc memory that previously alloc by efi_alloc(). Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Heinrich Schuchardt Cc: Ilias Apalodimas Cc: Peter Robinson --- include/efi_loader.h| 2 ++ lib/efi_loader/efi_mem

[PATCH v3 2/4] efi: add EFI_DEBUG_IMAGE_INFO_TABLE for debug

2025-05-21 Thread Ying-Chun Liu (PaulLiu)
From: "Ying-Chun Liu (PaulLiu)" EFI_DEBUG_IMAGE_INFO_TABLE is used to store EFI_LOADED_IMAGE for debug purpose. This commit adds the table to the EFI_CONFIGURATION_TABLE. This feature is described in UEFI Spec version 2.10. Section 18.4. The implementation ensures support for hardwar

[PATCH v3 4/4] efi: add EFI_DEBUG_IMAGE_INFO for debug

2025-05-21 Thread Ying-Chun Liu (PaulLiu)
From: "Ying-Chun Liu (PaulLiu)" This commit adds the functionality of generate EFI_DEBUG_IMAGE_INFO while loading the image. This feature is described in UEFI Spec 2.10. Section 18.4.3. The implementation ensures support for hardware-assisted debugging and provides a standardized mec

[PATCH v3 1/4] efi: add EFI_SYSTEM_TABLE_POINTER for debug

2025-05-21 Thread Ying-Chun Liu (PaulLiu)
From: "Ying-Chun Liu (PaulLiu)" Add EFI_SYSTEM_TABLE_POINTER structure for remote debugger to locate the address of EFI_SYSTEM_TABLE. This feature is described in UEFI SPEC version 2.10. Section 18.4.2. The implementation ensures support for hardware-assisted debugging and

[PATCH v3 0/4] Add EFI Debug Support Table feature

2025-05-21 Thread Ying-Chun Liu (PaulLiu)
From: "Ying-Chun Liu (PaulLiu)" I implemented the UEFI Specification version 2.10, specifically focusing on the functionality described in Section 18.4, which details the EFI Debug Support Table feature. This implementation ensures support for hardware-assisted debugging and

[PATCH v2 0/3] efi: Add EFI Debug Support Table feature

2025-04-24 Thread Ying-Chun Liu (PaulLiu)
From: "Ying-Chun Liu (PaulLiu)" I implemented the UEFI Specification version 2.10, specifically focusing on the functionality described in Section 18.4, which details the EFI Debug Support Table feature. This implementation ensures support for hardware-assisted debugging and

[PATCH v2 2/3] efi: add EFI_DEBUG_IMAGE_INFO_TABLE for debug

2025-04-24 Thread Ying-Chun Liu (PaulLiu)
From: "Ying-Chun Liu (PaulLiu)" EFI_DEBUG_IMAGE_INFO_TABLE is used to store EFI_LOADED_IMAGE for debug purpose. This commit adds the table to the EFI_CONFIGURATION_TABLE. This feature is described in UEFI Spec version 2.10. Section 18.4. Signed-off-by: Ying-Chun Liu (PaulLiu) Cc

[PATCH v2 3/3] efi: add EFI_DEBUG_IMAGE_INFO for debug

2025-04-24 Thread Ying-Chun Liu (PaulLiu)
From: "Ying-Chun Liu (PaulLiu)" This commit adds the functionality of generate EFI_DEBUG_IMAGE_INFO while loading the image. This feature is described in UEFI Spec 2.10. Section 18.4.3. Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Heinrich Schuchardt Cc: Ilias Apalodimas --- V2: u

[PATCH v2 1/3] efi: add EFI_SYSTEM_TABLE_POINTER for debug

2025-04-24 Thread Ying-Chun Liu (PaulLiu)
From: "Ying-Chun Liu (PaulLiu)" Add EFI_SYSTEM_TABLE_POINTER structure for debugger to locate the address of EFI_SYSTEM_TABLE. This feature is described in UEFI SPEC version 2.10. Section 18.4.2. Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Heinrich Schuchardt Cc: Ilias Apalodimas -

[PATCH 3/3] efi: add EFI_DEBUG_IMAGE_INFO for debug

2025-04-23 Thread Ying-Chun Liu (PaulLiu)
From: "Ying-Chun Liu (PaulLiu)" This commit adds the functionality of generate EFI_DEBUG_IMAGE_INFO while loading the image. This feature is described in UEFI Spec 2.10. Section 18.4.3. Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Heinrich Schuchardt Cc: Ilias Apalodimas --

[PATCH 1/3] efi: add EFI_SYSTEM_TABLE_POINTER for debug

2025-04-23 Thread Ying-Chun Liu (PaulLiu)
From: "Ying-Chun Liu (PaulLiu)" Add EFI_SYSTEM_TABLE_POINTER structure for debugger to locate the address of EFI_SYSTEM_TABLE. This feature is described in UEFI SPEC version 2.10. Section 18.4.2. Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Heinrich Schuchardt Cc: Ilias

[PATCH 2/3] efi: add EFI_DEBUG_IMAGE_INFO_TABLE for debug

2025-04-23 Thread Ying-Chun Liu (PaulLiu)
From: "Ying-Chun Liu (PaulLiu)" EFI_DEBUG_IMAGE_INFO_TABLE is used to store EFI_LOADED_IMAGE for debug purpose. This commit adds the table to the EFI_CONFIGURATION_TABLE. This feature is described in UEFI Spec version 2.10. Section 18.4. Signed-off-by: Ying-Chun Liu (PaulLiu) Cc

[PATCH 0/3] efi: Add EFI Debug Support Table feature

2025-04-23 Thread Ying-Chun Liu (PaulLiu)
From: "Ying-Chun Liu (PaulLiu)" I implemented the UEFI Specification version 2.10, specifically focusing on the functionality described in Section 18.4, which details the EFI Debug Support Table feature. This implementation ensures support for hardware-assisted debugging and

[PATCH 1/1] arch: arm: dts: imx8mm-cl-iot-gate.dts: add no-mmc-hs400 to mmc2

2024-10-01 Thread Ying-Chun Liu (PaulLiu)
From: "Ying-Chun Liu (PaulLiu)" The eMMC device on imx8mm-cl-iot-gate seems not support hs400. When booting 6.1.0 kernel we got the following error. mmc2: mmc_select_hs400es failed, error -110 mmc2: error -110 whilst initialising MMC card Add no-mmc-hs400 to mmc2 node

[PATCH 0/1] arch: arm: dts: imx8mm-cl-iot-gate.dts: add no-mmc-hs400 to mmc2

2024-10-01 Thread Ying-Chun Liu (PaulLiu)
From: "Ying-Chun Liu (PaulLiu)" The eMMC device on imx8mm-cl-iot-gate seems not support hs400. When booting 6.1.0 kernel we got the following error. mmc2: mmc_select_hs400es failed, error -110 mmc2: error -110 whilst initialising MMC card Add no-mmc-hs400 to mmc2 node

Boot failure on Rock-pi-4-a when compiling with clang.

2023-08-02 Thread Ying-Chun Liu (PaulLiu)
Hi all, I'd like to have some ideas for debugging this conditions. When compiling with default gnu toolchain. It works great. When compiling with clang (clang-14 or clang-15), I'll get hang sometimes. The following are two boot logs: 1. U-Boot SPL 2023.10-rc1-00207-g38dedebc54-dirty (Aug 03 2

Re: [PATCH v2 5/6] net: add fastboot TCP documentation and IP6-only mode

2023-07-14 Thread Ying-Chun Liu (PaulLiu)
Reviewed-by: Ying-Chun Liu (PaulLiu) On 2023/5/11 00:59, Dmitrii Merkurev wrote: Command to start IP6 only TCP fastboot: fastboot tcp -ipv6 Signed-off-by: Dmitrii Merkurev Cc: Ying-Chun Liu (PaulLiu) Cc: Simon Glass Сс: Joe Hershberger Сс: Ramon Fried --- cmd/fastboot.c | 29

Re: [PATCH 0/1] virtio: add driver for virtio_console devices

2023-06-13 Thread Ying-Chun Liu (PaulLiu)
On 2023/6/9 17:27, Bin Meng wrote: Hi, On Tue, Jun 6, 2023 at 9:26 PM Ying-Chun Liu (PaulLiu) wrote: This is an implementation of single-character virtio-console. Part of the patch is based on barebox implementations. To test the patch, we can build qemu_arm64_defconfig target. Enable

[PATCH 1/1] virtio: add driver for virtio_console devices

2023-06-06 Thread Ying-Chun Liu (PaulLiu)
From: "A. Cody Schuffelen" This is an implementation of single-character virtio-console. Part of the patch is based on barebox implementations. Signed-off-by: A. Cody Schuffelen [ Paul: pick from the Android tree. Rebase to the upstream. Small fixes. ] Signed-off-by: Ying-Chun Li

[PATCH 0/1] virtio: add driver for virtio_console devices

2023-06-06 Thread Ying-Chun Liu (PaulLiu)
This is an implementation of single-character virtio-console. Part of the patch is based on barebox implementations. To test the patch, we can build qemu_arm64_defconfig target. Enable CONFIG_VIRTIO_CONSOLE. And run qemu-system-aarch64 with -device virtio-serial-pci,id=virtio-serial0 \ -chardev

Re: [PATCH v2 3/6] net: introduce TCP/IP6 support

2023-05-24 Thread Ying-Chun Liu (PaulLiu)
On 2023/5/11 00:59, Dmitrii Merkurev wrote: Add TCP/IP6 related headers and reuse refactored TCP/IP implementation Signed-off-by: Dmitrii Merkurev Cc: Ying-Chun Liu (PaulLiu) Cc: Simon Glass Сс: Joe Hershberger Сс: Ramon Fried --- include/net/tcp6.h | 106

Re: [PATCH v2 2/6] net: prepare existing TCP stack to be reused by IP6

2023-05-24 Thread Ying-Chun Liu (PaulLiu)
. Expose TCP state machine related functions This allows us to reuse TCP logic between IP and IP6 stack. Signed-off-by: Dmitrii Merkurev Cc: Ying-Chun Liu (PaulLiu) Cc: Simon Glass Сс: Joe Hershberger Сс: Ramon Fried --- include/net/tcp.h | 109 +-- net/net.c | 18 ++- net

Re: [PATCH v2 1/6] net: split IP_TCP header into separate IP/IP6 and TCP headers

2023-05-24 Thread Ying-Chun Liu (PaulLiu)
Reviewed-by: Ying-Chun Liu (PaulLiu) On 2023/5/11 00:59, Dmitrii Merkurev wrote: This allows us to reuse TCP logic between IP and IP6 stack. Signed-off-by: Dmitrii Merkurev Cc: Ying-Chun Liu (PaulLiu) Cc: Simon Glass Сс: Joe Hershberger Сс: Ramon Fried --- include/net/tcp.h | 54

[PATCH 5/6] virtio: Allocate bounce buffers for devices with VIRTIO_F_IOMMU_PLATFORM

2023-03-29 Thread Ying-Chun Liu (PaulLiu)
-off-by: Ying-Chun Liu (PaulLiu) Cc: Bin Meng Link: https://android.googlesource.com/platform/external/u-boot/+/3e052749e7c50c4c1a6014e645ae3b9be3710c07 --- drivers/virtio/virtio_ring.c | 25 - include/virtio_ring.h| 5 - 2 files changed, 24 insertions(+), 6

[PATCH 6/6] virtio: Use bounce buffers when VIRTIO_F_IOMMU_PLATFORM is set

2023-03-29 Thread Ying-Chun Liu (PaulLiu)
PAGE_SIZE in preparation for platform specific handling at page granularity. Signed-off-by: Will Deacon [ Paul: pick from the Android tree. Rebase to the upstream ] Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Bin Meng Link: https://android.googlesource.com/platform/external/u-boot

[PATCH 2/6] virtio: pci: Tear down VQs in virtio_pci_reset()

2023-03-29 Thread Ying-Chun Liu (PaulLiu)
eue pages before freeing the virtqueue structure itself. Signed-off-by: Will Deacon [ Paul: pick from the Android tree. Rebase to the upstream ] Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Bin Meng Link: https://android.googlesource.com/platform/external/u-boot/+/5ed54ccd83cbffd0d8719ce6

[PATCH 4/6] virtio: Add helper functions to attach/detach vring descriptors

2023-03-29 Thread Ying-Chun Liu (PaulLiu)
upstream ] Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Bin Meng Link: https://android.googlesource.com/platform/external/u-boot/+/f73258a4bfe968c5f935db45f2ec5cc0104ee796 --- drivers/virtio/virtio_ring.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/virtio/virtio_ring.c b/drivers

[PATCH 3/6] virtio: Allocate virtqueue in page-size units

2023-03-29 Thread Ying-Chun Liu (PaulLiu)
: Will Deacon [ Paul: pick from the Android tree. Rebase to the upstream ] Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Bin Meng Link: https://android.googlesource.com/platform/external/u-boot/+/b4bb5227d4cf4fdfcd8b4e1ff2692d3a54d1482a --- drivers/virtio/virtio_ring.c | 24

[PATCH 1/6] virtio: Expose VIRTIO_F_IOMMU_PLATFORM in device features

2023-03-29 Thread Ying-Chun Liu (PaulLiu)
From: Will Deacon If we detect the VIRTIO_F_IOMMU_PLATFORM transport feature for a device, then expose it in the device features. Signed-off-by: Will Deacon [ Paul: pick from the Android tree. Rebase to the upstream ] Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Bin Meng Link: https

[PATCH 0/6] virtio: Use bounce buffers when VIRTIO_F_IOMMU_PLATFORM set

2023-03-29 Thread Ying-Chun Liu (PaulLiu)
These patches will use bounce buffers when VIRTIO_F_IOMMU_PLATFORM feature is in a virtio device. This feature can be tested with qemu with -device virtio-iommu-pci. So that when a -device virtio-blk-pci with iommu_platform=true, it will uses the bounce buffer instead. Will Deacon (6): virtio:

[PATCH 3/3] armv8: enable HAFDBS for other ELx when FEAT_HAFDBS is present

2023-03-17 Thread Ying-Chun Liu (PaulLiu)
From: meitao u-boot could be run at EL1/EL2/EL3. so we set it as same as EL1 does. otherwise it will hang when enable mmu, that is what we encounter in our SOC. Signed-off-by: meitao [ Paul: pick from the Android tree. Rebase to the upstream ] Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Tom

[PATCH 2/3] arm64: Use level-2 for largest block mappings when FEAT_HAFDBS is present

2023-03-17 Thread Ying-Chun Liu (PaulLiu)
from the Android tree. Rebase to the upstream ] Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Tom Rini Link: https://android.googlesource.com/platform/external/u-boot/+/417a73581a72ff6d6ee4b0938117b8a23e32f7e8 --- arch/arm/cpu/armv8/cache_v8.c | 14 ++ arch/arm/include/asm/global_d

[PATCH 1/3] arm64: Use FEAT_HAFDBS to track dirty pages when available

2023-03-17 Thread Ying-Chun Liu (PaulLiu)
to the upstream ] Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Tom Rini Link: https://android.googlesource.com/platform/external/u-boot/+/3c433724e6f830a6b2edd5ec3d4a504794887263 --- arch/arm/cpu/armv8/cache_v8.c | 16 +++- arch/arm/include/asm/armv8/mmu.h | 14

[PATCH 0/3] Use FEAT_HAFDBS to track dirty pages

2023-03-17 Thread Ying-Chun Liu (PaulLiu)
For some ARM64 cores there is a facility that allows the page table walker to track the dirty state of a page. These commits enhances the performance of CMOs by VA. Marc Zyngier (2): arm64: Use FEAT_HAFDBS to track dirty pages when available arm64: Use level-2 for largest block mappings when F

[PATCH 1/1] compulab: imx8mm-cl-iot-gate: Fix some function declarations in ddr.h

2023-03-13 Thread Ying-Chun Liu (PaulLiu)
We have a few places here that the function declarations do not match their prototypes, correct them. Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Tom Rini Cc: Stefano Babic Cc: Fabio Estevam Cc: NXP i.MX U-Boot Team --- board/compulab/imx8mm-cl-iot-gate/ddr/ddr.h | 4 ++-- 1 file changed, 2

[PATCH 0/1] compulab: imx8mm-cl-iot-gate: Fix some function declarations in ddr.h

2023-03-13 Thread Ying-Chun Liu (PaulLiu)
We have a few places here that the function declarations do not match their prototypes, correct them. This bug was found by Tom. https://lists.denx.de/pipermail/u-boot/2023-March/511786.html And we fixes this bug by modifying ddr.h instead. Ying-Chun Liu (PaulLiu) (1): compulab: imx8mm-cl-iot

[PATCH 0/1] lib/vsprintf.c: fix integer overflow in vsprintf

2023-03-08 Thread Ying-Chun Liu (PaulLiu)
vsnprintf_internal() adds 'size' to 'buf' and vsprintf() sets 'size' to 'INT_MAX' which can overflow. This causes sprintf() to fail when initializing the environment on 8GB. Instead of using 'INT_MAX', we use SIZE_MAX - buf, which is the largest possible string that could fit without overflowing

[PATCH 1/1] lib/vsprintf.c: fix integer overflow in vsprintf

2023-03-08 Thread Ying-Chun Liu (PaulLiu)
hich is the largest possible string that could fit without overflowing 'size'. Signed-off-by: Tom Cherry [ Paul: pick from the Android tree. Rebase to the upstream ] Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Tom Rini Link: https://android.googlesource.com/platform/external/u-boot/+/

[PATCH 2/2] arm64: Reduce PT size estimation complexity

2023-02-14 Thread Ying-Chun Liu (PaulLiu)
nd make it almost instantaneous instead of taking a large amount of time if 2MB mappings are in use instead of 1GB. Signed-off-by: Marc Zyngier Signed-off-by: Pierre-Clément Tosi [ Paul: pick from the Android tree. Fixup Pierre's commit. Rebase to the upstream ] Signed-off-by: Ying-Chun Li

[PATCH 1/2] arm64: Reduce add_map() complexity

2023-02-14 Thread Ying-Chun Liu (PaulLiu)
o the upstream ] Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Tom Rini Link: https://android.googlesource.com/platform/external/u-boot/+/96ad729cf4cab53bdff8222bb3eb256f38b5c3a6 Link: https://android.googlesource.com/platform/external/u-boot/+/6be9330601d81545c7c941e3609f35bf68a09059 --- arch/ar

[PATCH 0/2] Reduce the complexity of add_map() and count_required_pts()

2023-02-14 Thread Ying-Chun Liu (PaulLiu)
Reduce the complexity of add_map() and count_required_pts() to gain better performance. Marc Zyngier (2): arm64: Reduce add_map() complexity arm64: Reduce PT size estimation complexity arch/arm/cpu/armv8/cache_v8.c | 201 +- 1 file changed, 79 insertions(+), 1

[PATCH v2 2/2] arm64: Initialize TLB memory if CMO_BY_VA_ONLY

2023-02-08 Thread Ying-Chun Liu (PaulLiu)
tables when using CMO_BY_VA_ONLY, these must be in a valid state from their allocation. Signed-off-by: Pierre-Clément Tosi [ Paul: pick from the Android tree. Fix checkpatch warnings, and rebased to the upstream. ] Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Tom Rini Link: https

[PATCH v2 1/2] arm: cpu: Add optional CMOs by VA

2023-02-08 Thread Ying-Chun Liu (PaulLiu)
Ying-Chun Liu (PaulLiu) Cc: Tom Rini Link: https://android.googlesource.com/platform/external/u-boot/+/db5507f47f4f57f766d52f753ff2cc761afc213b Link: https://android.googlesource.com/platform/external/u-boot/+/2baf54e743380a1e4a6bc2dbdde020a2e783ff67 --- v2: Fix the Signed-off-by list. --- arch/ar

[PATCH v2 0/2] arm: cpu: Add optional CMOs by VA

2023-02-08 Thread Ying-Chun Liu (PaulLiu)
Exposing set/way cache maintenance to a virtual machine is unsafe, not least because the instructions are not permission-checked but also because they are not broadcast between CPUs. Consequently, KVM traps and emulates such maintenance in the host kernel using by-VA operations and looping over the

[PATCH 2/2] arm64: Initialize TLB memory if CMO_BY_VA_ONLY

2023-02-07 Thread Ying-Chun Liu (PaulLiu)
, these must be in a valid state from their allocation. Signed-off-by: Ying-Chun Liu (PaulLiu) Signed-off-by: Pierre-Clément Tosi Cc: Tom Rini --- arch/arm/lib/cache.c | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/lib/cache.c b/arch/arm/lib/cache.c index 1a589c7e2a

[PATCH 1/2] arm: cpu: Add optional CMOs by VA

2023-02-07 Thread Ying-Chun Liu (PaulLiu)
instead of using the set/way instructions. Signed-off-by: Ying-Chun Liu (PaulLiu) Signed-off-by: Marc Zyngier Signed-off-by: Will Deacon Cc: Tom Rini --- arch/arm/cpu/armv8/Kconfig| 4 ++ arch/arm/cpu/armv8/cache.S| 50 +- arch/arm/cpu/armv8/cache_v8.c | 97

[PATCH 0/2] arm: cpu: Add optional CMOs by VA

2023-02-07 Thread Ying-Chun Liu (PaulLiu)
instead of using the set/way instructions. Ying-Chun Liu (PaulLiu) (2): arm: cpu: Add optional CMOs by VA arm64: Initialize TLB memory if CMO_BY_VA_ONLY arch/arm/cpu/armv8/Kconfig| 4 ++ arch/arm/cpu/armv8/cache.S| 50 +- arch/arm/cpu/armv8/cache_v8.c | 97

[PATCH v4 2/2] dts: imx8mp-rsb3720: modify configrations to load fip into memory

2023-01-17 Thread Ying-Chun Liu (PaulLiu)
The changes of commit 6a21c695213b ("arm: dts: imx8mp: add of-list support to common imx8mp-u-boot.dtsi") breaks the loading of the fip. This commit fixes the break by modify the configuration properly. Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Stefano Babic Cc: Fabio Estevam Cc:

[PATCH v4 1/2] dts: imx8mp: assign binman_configuration label to config-SEQ

2023-01-17 Thread Ying-Chun Liu (PaulLiu)
assign a label for config-SEQ so that the board dts can modify the configuration more easily. Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Stefano Babic Cc: Fabio Estevam Cc: NXP i.MX U-Boot Team --- v2: just rebase to the latest master branch. v3: rebase to the latest master branch. v4: fix

[PATCH v4 0/2] dts: imx8mp-rsb3720: modify configrations to load fip into memory

2023-01-17 Thread Ying-Chun Liu (PaulLiu)
h. v4: fix subject and commit log: node name -> label Ying-Chun Liu (PaulLiu) (2): dts: imx8mp: assign binman_configuration label to config-SEQ dts: imx8mp-rsb3720: modify configrations to load fip into memory arch/arm/dts/imx8mp-rsb3720-a1-u-boot.dtsi | 10 -- arch/arm/dts/imx8m

[PATCH v3 2/2] dts: imx8mp-rsb3720: modify configrations to load fip into memory

2023-01-17 Thread Ying-Chun Liu (PaulLiu)
The changes of commit 6a21c695213b ("arm: dts: imx8mp: add of-list support to common imx8mp-u-boot.dtsi") breaks the loading of the fip. This commit fixes the break by modify the configuration properly. Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Stefano Babic Cc: Fabio Estevam Cc:

[PATCH v3 1/2] dts: imx8mp: assign binman_configuration node name to config-SEQ

2023-01-17 Thread Ying-Chun Liu (PaulLiu)
assign a node name for config-SEQ so that the board dts can modify the configuration more easily. Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Stefano Babic Cc: Fabio Estevam Cc: NXP i.MX U-Boot Team --- v2: just rebase to the latest master branch. v3: rebase to the latest master branch

[PATCH v3 0/2] dts: imx8mp-rsb3720: modify configrations to load fip into memory

2023-01-17 Thread Ying-Chun Liu (PaulLiu)
nch. Ying-Chun Liu (PaulLiu) (2): dts: imx8mp: assign binman_configuration node name to config-SEQ dts: imx8mp-rsb3720: modify configrations to load fip into memory arch/arm/dts/imx8mp-rsb3720-a1-u-boot.dtsi | 10 -- arch/arm/dts/imx8mp-u-boot.dtsi| 2 +- 2 files changed, 5

Re: [PATCH v20 2/4] net: Add wget application

2022-11-08 Thread Ying-Chun Liu (PaulLiu)
On 2022/11/9 05:03, Sean Anderson wrote: On 11/8/22 01:17, Ying-Chun Liu (PaulLiu) wrote: From: "Ying-Chun Liu (PaulLiu)" This commit adds a simple wget command that can download files from http server. The command syntax is wget ${loadaddr} Signed-off-by: Duncan Hare Sig

[PATCH v20 4/4] test: cmd: add test for wget command.

2022-11-07 Thread Ying-Chun Liu (PaulLiu)
From: "Ying-Chun Liu (PaulLiu)" Simulate a TCP HTTP server's response for testing wget command. Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Christian Gmeiner Cc: Joe Hershberger Cc: Michal Simek Cc: Ramon Fried Cc: Simon Glass --- test/cmd/Makefile | 1 + test/cmd

[PATCH v20 3/4] doc: cmd: wget: add documentation

2022-11-07 Thread Ying-Chun Liu (PaulLiu)
From: "Ying-Chun Liu (PaulLiu)" Add documentation for the wget command. Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Christian Gmeiner Cc: Joe Hershberger Cc: Michal Simek Cc: Ramon Fried Cc: Simon Glass --- doc/usage/cmd/wget.rst | 61 ++

[PATCH v20 2/4] net: Add wget application

2022-11-07 Thread Ying-Chun Liu (PaulLiu)
From: "Ying-Chun Liu (PaulLiu)" This commit adds a simple wget command that can download files from http server. The command syntax is wget ${loadaddr} Signed-off-by: Duncan Hare Signed-off-by: Ying-Chun Liu (PaulLiu) Reviewed-by: Simon Glass Cc: Christian Gmeiner Cc: Joe Hersh

[PATCH v20 1/4] net: Add TCP protocol

2022-11-07 Thread Ying-Chun Liu (PaulLiu)
From: "Ying-Chun Liu (PaulLiu)" Currently file transfers are done using tftp or NFS both over udp. This requires a request to be sent from client (u-boot) to the boot server. The current standard is TCP with selective acknowledgment. Signed-off-by: Duncan Hare Signed-off-by: D

[PATCH v20 0/4] add TCP and HTTP for downloading images

2022-11-07 Thread Ying-Chun Liu (PaulLiu)
From: "Ying-Chun Liu (PaulLiu)" This patch is a refresh from previous patches made by Duncan Hare . I've contacted him and continue to work on this patch. This patch introduce a TCP stack with SACK. And a simple wget command to download images from http server. v1-v12: Made by

[PATCH 1/1] imx8m: ddr_init: fix reading of DDR4 MR registers

2022-10-19 Thread Ying-Chun Liu (PaulLiu)
Accorting to commit 290ffe57886271a6 we need to read more significant bytes to get a non-zero value. However commit 7e9bd84883aeb1e2 removes it by accident. Thus we add the changes back. This is needed to let imx8mm-cl-iot-gate to boot correctly. Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Fabio

[PATCH 0/1] imx8m: ddr_init: fix reading of DDR4 MR registers

2022-10-19 Thread Ying-Chun Liu (PaulLiu)
Accorting to commit 290ffe57886271a6 we need to read more significant bytes to get a non-zero value. However commit 7e9bd84883aeb1e2 removes it by accident. Thus we add the changes back. This is needed to let imx8mm-cl-iot-gate to boot correctly. Ying-Chun Liu (PaulLiu) (1): imx8m: ddr_init

[PATCH v19 2/4] net: Add wget application

2022-10-19 Thread Ying-Chun Liu (PaulLiu)
This commit adds a simple wget command that can download files from http server. The command syntax is wget ${loadaddr} Signed-off-by: Duncan Hare Signed-off-by: Ying-Chun Liu (PaulLiu) Reviewed-by: Simon Glass Cc: Christian Gmeiner Cc: Joe Hershberger Cc: Michal Simek Cc: Ramon Fried

[PATCH v19 3/4] doc: cmd: wget: add documentation

2022-10-19 Thread Ying-Chun Liu (PaulLiu)
Add documentation for the wget command. Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Simon Glass --- doc/usage/cmd/wget.rst | 61 ++ doc/usage/index.rst| 1 + 2 files changed, 62 insertions(+) create mode 100644 doc/usage/cmd/wget.rst diff --git a

[PATCH v19 4/4] test: cmd: add test for wget command.

2022-10-19 Thread Ying-Chun Liu (PaulLiu)
Simulate a TCP HTTP server's response for testing wget command. Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Simon Glass --- test/cmd/Makefile | 1 + test/cmd/wget.c | 206 ++ 2 files changed, 207 insertions(+) create mode 100644 test/cmd/w

[PATCH v19 1/4] net: Add TCP protocol

2022-10-19 Thread Ying-Chun Liu (PaulLiu)
Currently file transfers are done using tftp or NFS both over udp. This requires a request to be sent from client (u-boot) to the boot server. The current standard is TCP with selective acknowledgment. Signed-off-by: Duncan Hare Signed-off-by: Duncan Hare Signed-off-by: Ying-Chun Liu (PaulLiu

[PATCH v19 0/4] add TCP and HTTP for downloading images

2022-10-19 Thread Ying-Chun Liu (PaulLiu)
umentation for wget command. v19: Add unit test for wget command. Ying-Chun Liu (PaulLiu) (4): net: Add TCP protocol net: Add wget application doc: cmd: wget: add documentation test: cmd: add test for wget command. cmd/Kconfig| 7 + cmd/net.c | 13 + doc

[PATCH v18 2/3] net: Add wget application

2022-10-17 Thread Ying-Chun Liu (PaulLiu)
This commit adds a simple wget command that can download files from http server. The command syntax is wget ${loadaddr} Signed-off-by: Duncan Hare Signed-off-by: Ying-Chun Liu (PaulLiu) Reviewed-by: Simon Glass Cc: Christian Gmeiner Cc: Joe Hershberger Cc: Michal Simek Cc: Ramon Fried

[PATCH v18 3/3] doc: cmd: wget: add documentation

2022-10-17 Thread Ying-Chun Liu (PaulLiu)
Add documentation for the wget command. Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Simon Glass --- doc/usage/cmd/wget.rst | 61 ++ doc/usage/index.rst| 1 + 2 files changed, 62 insertions(+) create mode 100644 doc/usage/cmd/wget.rst diff --git a

[PATCH v18 1/3] net: Add TCP protocol

2022-10-17 Thread Ying-Chun Liu (PaulLiu)
Currently file transfers are done using tftp or NFS both over udp. This requires a request to be sent from client (u-boot) to the boot server. The current standard is TCP with selective acknowledgment. Signed-off-by: Duncan Hare Signed-off-by: Duncan Hare Signed-off-by: Ying-Chun Liu (PaulLiu

[PATCH v18 0/3] add TCP and HTTP for downloading images

2022-10-17 Thread Ying-Chun Liu (PaulLiu)
umentation for wget command. Ying-Chun Liu (PaulLiu) (3): net: Add TCP protocol net: Add wget application doc: cmd: wget: add documentation cmd/Kconfig| 7 + cmd/net.c | 13 + doc/usage/cmd/wget.rst | 61 doc/usage/index.rst| 1 + include/net.h

[PATCH v2 2/2] dts: imx8mp-rsb3720: modify configrations to load fip into memory

2022-08-23 Thread Ying-Chun Liu (PaulLiu)
From: "Ying-Chun Liu (PaulLiu)" The changes of commit 6a21c695213b ("arm: dts: imx8mp: add of-list support to common imx8mp-u-boot.dtsi") breaks the loading of the fip. This commit fixes the break by modify the configuration properly. Signed-off-by: Ying-Chun Liu (PaulLiu

[PATCH v2 1/2] dts: imx8mp: assign binman_configuration node name to config-SEQ

2022-08-23 Thread Ying-Chun Liu (PaulLiu)
From: "Ying-Chun Liu (PaulLiu)" assign a node name for config-SEQ so that the board dts can modify the configuration more easily. Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Stefano Babic Cc: Fabio Estevam Cc: NXP i.MX U-Boot Team --- v2: just rebase to the latest master branch.

[PATCH v2 0/2] dts: imx8mp-rsb3720: modify configrations to load fip into memory

2022-08-23 Thread Ying-Chun Liu (PaulLiu)
From: "Ying-Chun Liu (PaulLiu)" The changes of commit 6a21c695213b ("arm: dts: imx8mp: add of-list support to common imx8mp-u-boot.dtsi") breaks the loading of the fip. This commit fixes the break by modify the configuration properly. v2: just rebase to the latest master br

[PATCH v17 2/2] net: Add wget application

2022-07-08 Thread Ying-Chun Liu (PaulLiu)
From: "Ying-Chun Liu (PaulLiu)" This commit adds a simple wget command that can download files from http server. The command syntax is wget ${loadaddr} Signed-off-by: Duncan Hare Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Christian Gmeiner Cc: Joe Hershberger Cc: Michal Simek

[PATCH v17 1/2] net: Add TCP protocol

2022-07-08 Thread Ying-Chun Liu (PaulLiu)
From: "Ying-Chun Liu (PaulLiu)" Currently file transfers are done using tftp or NFS both over udp. This requires a request to be sent from client (u-boot) to the boot server. The current standard is TCP with selective acknowledgment. Signed-off-by: Duncan Hare Signed-off-by: D

[PATCH v17 0/2] add TCP and HTTP for downloading images

2022-07-08 Thread Ying-Chun Liu (PaulLiu)
From: "Ying-Chun Liu (PaulLiu)" This patch is a refresh from previous patches made by Duncan Hare . I've contacted him and continue to work on this patch. This patch introduce a TCP stack with SACK. And a simple wget command to download images from http server. v1-v12: Made by

[PATCH v16 1/2] net: Add TCP protocol

2022-06-10 Thread Ying-Chun Liu (PaulLiu)
From: "Ying-Chun Liu (PaulLiu)" Currently file transfers are done using tftp or NFS both over udp. This requires a request to be sent from client (u-boot) to the boot server. The current standard is TCP with selective acknowledgment. Signed-off-by: Duncan Hare Signed-off-by: D

[PATCH v16 2/2] net: Add wget application

2022-06-10 Thread Ying-Chun Liu (PaulLiu)
From: "Ying-Chun Liu (PaulLiu)" This commit adds a simple wget command that can download files from http server. The command syntax is wget ${loadaddr} Signed-off-by: Duncan Hare Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Christian Gmeiner Cc: Joe Hershberger Cc: Michal Simek

[PATCH v16 0/2] add TCP and HTTP for downloading images

2022-06-10 Thread Ying-Chun Liu (PaulLiu)
From: "Ying-Chun Liu (PaulLiu)" This patch is a refresh from previous patches made by Duncan Hare . I've contacted him and continue to work on this patch. This patch introduce a TCP stack with SACK. And a simple wget command to download images from http server. v1-v12: Made by

[PATCH v15 1/2] net: Add TCP protocol

2022-06-10 Thread Ying-Chun Liu (PaulLiu)
From: "Ying-Chun Liu (PaulLiu)" Currently file transfers are done using tftp or NFS both over udp. This requires a request to be sent from client (u-boot) to the boot server. The current standard is TCP with selective acknowledgment. Signed-off-by: Duncan Hare Signed-off-by: D

[PATCH v15 2/2] net: Add wget application

2022-06-10 Thread Ying-Chun Liu (PaulLiu)
From: "Ying-Chun Liu (PaulLiu)" This commit adds a simple wget command that can download files from http server. The command syntax is wget ${loadaddr} Signed-off-by: Duncan Hare Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Christian Gmeiner Cc: Joe Hershberger Cc: Michal Simek

[PATCH v15 0/2] add TCP and HTTP for downloading images

2022-06-10 Thread Ying-Chun Liu (PaulLiu)
From: "Ying-Chun Liu (PaulLiu)" This patch is a refresh from previous patches made by Duncan Hare . I've contacted him and continue to work on this patch. This patch introduce a TCP stack with SACK. And a simple wget command to download images from http server. v1-v12: Made by

[PATCH 1/1] configs: imx8mm-cl-iot-gate: enable extension command

2022-05-25 Thread Ying-Chun Liu (PaulLiu)
For imx8mm-cl-iot-gate we can use extension command to scan extension boards attached on the mainboard. We enable the extension command by default for users to detect the extension boards. Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Stefano Babic Cc: Fabio Estevam Cc: NXP i.MX U-Boot Team

[PATCH 0/1] configs: imx8mm-cl-iot-gate: enable extension command

2022-05-25 Thread Ying-Chun Liu (PaulLiu)
For imx8mm-cl-iot-gate we can use extension command to scan extension boards attached on the mainboard. We enable the extension command by default for users to detect the extension boards. Ying-Chun Liu (PaulLiu) (1): configs: imx8mm-cl-iot-gate: enable extension command configs/imx8mm-cl-iot

[PATCH 2/2] dts: imx8mp-rsb3720: modify configrations to load fip into memory

2022-05-08 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" The changes of commit 6a21c695213b ("arm: dts: imx8mp: add of-list support to common imx8mp-u-boot.dtsi") breaks the loading of the fip. This commit fixes the break by modify the configuration properly. Signed-off-by: Ying-Chun Liu (PaulLiu

[PATCH 1/2] dts: imx8mp: assign binman_configuration node name to config-SEQ

2022-05-08 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" assign a node name for config-SEQ so that the board dts can modify the configuration more easily. Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Stefano Babic Cc: Fabio Estevam Cc: NXP i.MX U-Boot Team --- arch/arm/dts/imx8mp-u-boot.dtsi | 2 +- 1 fi

[PATCH 0/2] dts: imx8mp-rsb3720: modify configrations to load fip into memory

2022-05-08 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" The changes of commit 6a21c695213b ("arm: dts: imx8mp: add of-list support to common imx8mp-u-boot.dtsi") breaks the loading of the fip. This commit fixes the break by modify the configuration properly. Ying-Chun Liu (PaulLiu) (2):

[PATCH 2/2] cmd: mmc: allow to write protect single boot partition

2022-04-25 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" add arguments for mmc wp to assign which boot partition to protect. Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Peng Fan Cc: Jaehoon Chung --- cmd/mmc.c | 18 +++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/cmd/m

[PATCH 1/2] drivers: mmc: write protect single boot area

2022-04-25 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" Add features to write protect single boot area rather than all boot areas. Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Peng Fan Cc: Jaehoon Chung --- drivers/mmc/mmc.c | 27 +++ include/mmc.h | 16 2 fil

[PATCH 0/2] allow to write protect single boot partition

2022-04-25 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" Modify mmc wp command and mmc driver to allow write protect only a single boot partition. Ying-Chun Liu (PaulLiu) (2): drivers: mmc: write protect single boot area cmd: mmc: allow to write protect single boot partition cmd/mmc.c

Re: [PATCH v14 1/2] net: Add TCP protocol

2022-04-21 Thread Ying-Chun Liu (PaulLiu)
Hi Ying, You woke up an old can, Can you elaborate on the changes you did to the original patchset ? I'm reviewing this instead of Joe, so I want to get some context. I would appreciate it if you could separate the SACK support to a separate patch, preferably option based. The TCP stack is compli

[PATCH v14 2/2] net: Add wget application

2022-04-21 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" This commit adds a simple wget command that can download files from http server. Signed-off-by: Duncan Hare Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Christian Gmeiner Cc: Joe Hershberger Cc: Ramon Fried --- v13: Fix some issues which is r

[PATCH v14 1/2] net: Add TCP protocol

2022-04-21 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" Currently file transfers are done using tftp or NFS both over udp. This requires a request to be sent from client (u-boot) to the boot server. The current standard is TCP with selective acknowledgment. Signed-off-by: Duncan Hare Signed-off-by: D

[PATCH v14 0/2] add TCP and HTTP for downloading images

2022-04-21 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" This patch is a refresh from previous patches made by Duncan Hare . I've contacted him and continue to work on this patch. This patch introduce a TCP stack with SACK. And a simple wget command to download images from http server. v13: Fix some

[PATCH v2 1/1] imx8mm-cl-iot-gate: Remove redundant board_fix_fdt()

2022-04-20 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" In arch/arm/mach-imx/imx8m/soc.c there's an implementation of board_fix_fdt() introduced by commit 35bb60787b88. Remove the redundant one to avoid failed to build from source when enabling CONFIG_OF_BOARD_FIXUP. Signed-off-by: Ying-Chun Liu (Paul

  1   2   >