[PATCH] doc: Add UEFI supplement document

2024-05-29 Thread Jiaxun Yang
Add UEFI supplement document to define some behaviours on architectures not covered by the original specification. Signed-off-by: Jiaxun Yang --- Hi all, This document is in response to discussion at [1]. It is produced based on my attempt to port U-Boot UEFI to MIPS and Xtensa. I also plan to

Re: [PATCH 2/7] efi: Allow runtime relocate to be disabled

2024-06-04 Thread Jiaxun Yang
在2024年6月1日六月 下午5:37,Maciej W. Rozycki写道: > On Tue, 21 May 2024, Jiaxun Yang wrote: > >> It's nearly impossible to run MIPS OS in virtual (or paged) >> segment. All MIPS OS and bootloaders are running in KSEG/XKPHYS >> segment, which directly mapping lower bi

Re: [PATCH 00/16] LoongArch initial support

2024-06-04 Thread Jiaxun Yang
在2024年5月23日五月 下午4:43,Tom Rini写道: > On Thu, May 23, 2024 at 04:38:52PM +0100, Jiaxun Yang wrote: >> >> >> 在2024年5月23日五月 下午4:25,Tom Rini写道: >> > On Wed, May 22, 2024 at 04:34:43PM +0100, Jiaxun Yang wrote: >> > >> >> Hi all, >> >>

Re: [PATCH] doc: Add UEFI supplement document

2024-06-08 Thread Jiaxun Yang
在2024年6月7日六月 下午7:11,Heinrich Schuchardt写道: [...] > > This does not explain why we should bother about any non-UEFI > architecture. It does not list relevant architectures and does not > provide any evidence that this more than an academic endeavor. Hi Heinrich, As per discussion made at [1] it

Re: [PATCH 03/16] image: Take entry point as an output of setup_booti

2024-06-11 Thread Jiaxun Yang
在2024年6月11日六月 下午2:02,Heinrich Schuchardt写道: > On 22.05.24 17:34, Jiaxun Yang wrote: >> For LoongArch the start of the image is not the entry >> point to the image. > > Looking at arch/loongarch/kernel/head.S there seem to be two cases: > > * The kernel has an

Re: [PATCH 01/16] lib: fdtdec: Handle multiple memory nodes

2024-06-11 Thread Jiaxun Yang
在2024年6月11日六月 下午1:26,Heinrich Schuchardt写道: Hi Heinrich, Thanks for your comments, will fix most of them in next reversion. [...] >> -gd->bd->bi_dram[bank].start = (phys_addr_t)res.start; > > The conversion is superfluous. This is necessary as phys_addr_t can be unsigned long or u

Re: [PATCH 03/16] image: Take entry point as an output of setup_booti

2024-06-11 Thread Jiaxun Yang
在2024年6月11日六月 下午2:52,Tom Rini写道: > On Tue, Jun 11, 2024 at 02:29:38PM +0100, Jiaxun Yang wrote: >> >> >> 在2024年6月11日六月 下午2:02,Heinrich Schuchardt写道: >> > On 22.05.24 17:34, Jiaxun Yang wrote: >> >> For LoongArch the start of the image

Re: [PATCH 3/7] Makefile.lib: Preserve .rodata section for EFI file

2024-06-11 Thread Jiaxun Yang
在2024年6月11日六月 下午2:49,Ilias Apalodimas写道: > Hi Jiaxun > > > On Fri, 17 May 2024 at 19:33, Jiaxun Yang wrote: >> >> This is required in performing objcopy to MIPS EFI files. >> > > This seems not mips specific. What was missing for your case? So MIPS EFI file

Re: [PATCH 3/7] Makefile.lib: Preserve .rodata section for EFI file

2024-06-11 Thread Jiaxun Yang
在2024年6月11日六月 下午3:28,Heinrich Schuchardt写道: [...] > > We have: > > arch/arm/lib/elf_aarch64_efi.lds:26:*(.rodata*) > arch/arm/lib/elf_arm_efi.lds:26:*(.rodata*) > arch/riscv/lib/elf_riscv32_efi.lds:26: *(.rodata*) > arch/riscv/lib/elf_riscv64_efi.lds:26:

[u-boot-test-hooks PATCH 1/4] qemu-vexpress*: Pass -audio none

2024-06-11 Thread Jiaxun Yang
Those boards have build in sound card which cause problems on CI runner. Pass -audio none to disable sound card backends. Signed-off-by: Jiaxun Yang --- bin/travis-ci/conf.vexpress_ca15_tc2_qemu | 2 +- bin/travis-ci/conf.vexpress_ca9x4_qemu| 2 +- 2 files changed, 2 insertions(+), 2

[u-boot-test-hooks PATCH 0/4] QEMU Updates

2024-06-11 Thread Jiaxun Yang
Hi all, This series updated u-boot-test-hooks to adopt QEMU 9.0. It also introduced 3 new boards: qemu-arm64be, qemu-xtensa-dc233c and qemu-loongarch64. This is required for CI changes. I'm going to respin other series later to utilise those new hooks. Thanks Jiaxun Yang (4): qemu-vex

[u-boot-test-hooks PATCH 2/4] qemu-arm64be: New board

2024-06-11 Thread Jiaxun Yang
Signed-off-by: Jiaxun Yang --- bin/travis-ci/conf.qemu_arm64be_na | 13 + py/travis-ci/u_boot_boardenv_qemu_arm64be_na.py | 10 ++ 2 files changed, 23 insertions(+) create mode 100644 bin/travis-ci/conf.qemu_arm64be_na create mode 100644 py/travis-ci

[u-boot-test-hooks PATCH 3/4] qemu-xtensa-dc233c: New board

2024-06-11 Thread Jiaxun Yang
Signed-off-by: Jiaxun Yang --- bin/travis-ci/conf.qemu-xtensa-dc233c_na | 12 .../u_boot_boardenv_qemu_xtensa_dc233c_na.py | 6 ++ 2 files changed, 18 insertions(+) create mode 100644 bin/travis-ci/conf.qemu-xtensa-dc233c_na create mode 100644 py/travis-ci

[u-boot-test-hooks PATCH 4/4] qemu-loongarch64: New board

2024-06-11 Thread Jiaxun Yang
Signed-off-by: Jiaxun Yang --- bin/travis-ci/conf.qemu-loongarch64_na | 12 py/travis-ci/u_boot_boardenv_qemu_loongarch64_na.py | 11 +++ 2 files changed, 23 insertions(+) create mode 100644 bin/travis-ci/conf.qemu-loongarch64_na create mode 100644 py/travis

[PATCH 00/20] New CI image and fixes

2024-06-11 Thread Jiaxun Yang
://flygoat.visualstudio.com/u-boot/_build/results?buildId=63&view=results Signed-off-by: Jiaxun Yang --- Jiaxun Yang (20): py: Replace deprecated unittest APIs binman: Replace pkg_resources with importlib.resources py: Replace distutils.core with setuptools py: Replace usag

[PATCH 01/20] py: Replace deprecated unittest APIs

2024-06-11 Thread Jiaxun Yang
assertEquals -> assertEqual assertRegexpMatches -> assertRegex Those APIs were deprecated long ago and being removed in latest python. Signed-off-by: Jiaxun Yang --- tools/binman/entry_test.py | 6 ++-- tools/binman/fdt_test.py| 48 ++--- tools/binman/ft

[PATCH 02/20] binman: Replace pkg_resources with importlib.resources

2024-06-11 Thread Jiaxun Yang
pkg_resources is deprecated long ago and being removed in python 3.12. Reimplement functions with importlib.resources. Link: https://docs.python.org/3/library/importlib.resources.html Signed-off-by: Jiaxun Yang --- tools/binman/control.py | 18 +- 1 file changed, 9 insertions

[PATCH 03/20] py: Replace distutils.core with setuptools

2024-06-11 Thread Jiaxun Yang
distutils is deprecated long ago and being removed in python 3.12. Signed-off-by: Jiaxun Yang --- tools/binman/setup.py | 2 +- tools/buildman/requirements.txt | 1 + tools/dtoc/setup.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/binman

[PATCH 04/20] py: Replace usage of configparser.read_fp

2024-06-11 Thread Jiaxun Yang
configparser.read_fp is deprecated long ago. Replace with relevant API. Signed-off-by: Jiaxun Yang --- tools/buildman/bsettings.py | 2 +- tools/patman/settings.py| 9 - 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/tools/buildman/bsettings.py b/tools/buildman

[PATCH 05/20] doc/sphinx: Remove usage of six

2024-06-11 Thread Jiaxun Yang
We don't support python2 any more so there is no point to use six here. Signed-off-by: Jiaxun Yang --- doc/sphinx/kfigure.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/doc/sphinx/kfigure.py b/doc/sphinx/kfigure.py index dea7f91ef5ab..9467e8d52ac0 100644 ---

[PATCH 06/20] py: Remove unused entries in requirements.txt

2024-06-11 Thread Jiaxun Yang
Many packages in requirements.txt are not actually imported/used by any test case, some of them was for python2 compatibility. Remove them to keep our environment clean. Signed-off-by: Jiaxun Yang --- doc/sphinx/requirements.txt | 1 - test/py/requirements.txt| 18 -- 2

[PATCH 07/20] py: Bump requirements versions

2024-06-11 Thread Jiaxun Yang
Bump python packages to reasonable versions to fix build error with Python 3.12. Link: https://github.com/pytest-dev/pytest/pull/11094 Link: https://github.com/yaml/pyyaml/issues/736 Link: https://github.com/pypa/setuptools/issues/4002 Signed-off-by: Jiaxun Yang --- test/py/requirements.txt

[PATCH 08/20] py: Bump pylint version and clear warnings

2024-06-11 Thread Jiaxun Yang
Bump pylint to 3.2.3 as old versions are not working with python 3.12. Clear warnings, mostly E0606: (possibly-used-before-assignment). Signed-off-by: Jiaxun Yang --- .azure-pipelines.yml | 2 +- .gitlab-ci.yml| 2 +- doc/develop/python_cq.rst

[PATCH 09/20] binman: Workaround lz4 cli padding in test cases

2024-06-11 Thread Jiaxun Yang
Newer lz4 util is not happy with any padding at end of file, it would abort with error message like: Stream followed by undecodable data at position 43. Workaround by skipping testCompUtilPadding test case and manually strip padding in testCompressSectionSize test case. Signed-off-by: Jiaxun

[PATCH 10/20] tests/test_event_dump: Relax match rule for output

2024-06-11 Thread Jiaxun Yang
/start.c:61 EVT_TEST h_adder_simple :? Which will fail the test. Relax the source location regex to .*:.*, this is sufficent to show that addr2line is being called and returned a possible line number. Signed-off-by: Jiaxun Yang --- test/py/tests/test_event_dump.py

[PATCH 11/20] lib/charset & efi: Fix possible unaligned accesses

2024-06-11 Thread Jiaxun Yang
many platforms that didn't have translation enabled in U-Boot, and QEMU started to enforce this since 9.0. Fix by using unaligned access helper for UTF-16 memory read/write to ensure we don't do any unaligned access in U-Boot. Signed-off-by: Jiaxun Yang --- lib/charset.c

[PATCH 12/20] cyclic: Rise default CYCLIC_MAX_CPU_TIME_US to 5000

2024-06-11 Thread Jiaxun Yang
default value to 5000, which is the value already taken by octeon_nic32. This is still sufficent to maintain system responsiveness. Signed-off-by: Jiaxun Yang --- common/Kconfig | 2 +- configs/octeon_nic23_defconfig | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a

[PATCH 13/20] CI: Ensure pip install is always performed in venv

2024-06-11 Thread Jiaxun Yang
Since Ubuntu focal it's nolonger permitted to perform global pip install. Ensure that pip install is always performed in venv. For buildman alone, all dependencies are already in docker so there is no need to perform pip install. Signed-off-by: Jiaxun Yang --- .azure-pipelines.yml

[PATCH 14/20] CI: GitLab: Split build_world tasks

2024-06-11 Thread Jiaxun Yang
Current build_world task runs for too long on public gitlab runner. Split the job as what we've done to azure pipeline. Signed-off-by: Jiaxun Yang --- .gitlab-ci.yml | 103 + 1 file changed, 59 insertions(+), 44 deletions(-) diff --

[PATCH 15/20] CI: Dockerfile: Set global git name & email config

2024-06-11 Thread Jiaxun Yang
Set global git name & email config so we don't have to setup it for every project. Signed-off-by: Jiaxun Yang --- tools/docker/Dockerfile | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tools/docker/Dockerfile b/tools/docker/Dockerfile index cda

[PATCH 16/20] CI: Dockerfile: Bump various software version

2024-06-11 Thread Jiaxun Yang
Bump base OS to Ubuntu noble, grub to 2.12, QEMU to 9.0 (drop cherry-pick for m68k as it's already in 9.0) and other tools to latest version. Remove unsupported python2. Install some required python packages for buildman/binman. Signed-off-by: Jiaxun Yang --- tools/docker/Dockerfile

[PATCH 17/20] CI: Dockerfile: Add LoongArch64 support

2024-06-11 Thread Jiaxun Yang
Install LoongArch64 toolchains, build LoongArch64 QEMU, build LoongArch64 GRUB. Signed-off-by: Jiaxun Yang --- tools/docker/Dockerfile | 21 +++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/tools/docker/Dockerfile b/tools/docker/Dockerfile index e3b2c2d57555

[PATCH 18/20] doc: ci: Document how to run pipeline on gitlab.com

2024-06-11 Thread Jiaxun Yang
It's now possible to run CI job on gitlab.com. Document the process. Signed-off-by: Jiaxun Yang --- doc/develop/ci_testing.rst | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/doc/develop/ci_testing.rst b/doc/develop/ci_testing.rst index ffaaced

[PATCH NFC 19/20] Use Jiaxun's CI Image

2024-06-11 Thread Jiaxun Yang
Use Jiaxun's CI Image for demonstration. NOT FOR COMMIT! Signed-off-by: Jiaxun Yang --- .azure-pipelines.yml| 4 ++-- .gitlab-ci.yml | 4 ++-- tools/docker/Dockerfile | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.azure-pipelines.yml b/.

[PATCH NFC 20/20] CI: Dockerfile: Replace some URL with mirror sites

2024-06-11 Thread Jiaxun Yang
Somehow when I'm trying to build dockerimage on 11 June 2024 multiple upstream sites are down. Arm site is returning 500 error, nasm.us domain expired, ftpmirror.gnu.org is down worldwide. I belive those problems are not permanent so made this change NFC. NOT FOR COMMIT! Signed-off-by: J

Re: [PATCH 12/20] cyclic: Rise default CYCLIC_MAX_CPU_TIME_US to 5000

2024-06-12 Thread Jiaxun Yang
在2024年6月12日六月 下午5:00,Tom Rini写道: [...] >> configs/octeon_nic23_defconfig | 1 - >> 2 files changed, 1 insertion(+), 2 deletions(-) > > This seems similar to: > https://patchwork.ozlabs.org/project/uboot/patch/20240524210817.1953298-1-rasmus.villem...@prevas.dk/ > > at least for CI. And for outs

Re: [PATCH 14/20] CI: GitLab: Split build_world tasks

2024-06-12 Thread Jiaxun Yang
在2024年6月12日六月 下午5:01,Tom Rini写道: > On Tue, Jun 11, 2024 at 10:04:13PM +0100, Jiaxun Yang wrote: > >> Current build_world task runs for too long on public gitlab >> runner. >> >> Split the job as what we've done to azure pipeline. >> >> Signed

Re: [PATCH 16/20] CI: Dockerfile: Bump various software version

2024-06-12 Thread Jiaxun Yang
在2024年6月12日六月 下午5:02,Tom Rini写道: [...] >> --- a/tools/docker/Dockerfile >> +++ b/tools/docker/Dockerfile >> @@ -2,7 +2,7 @@ >> # This Dockerfile is used to build an image containing basic stuff to be >> used >> # to build U-Boot and run our test suites. >> >> -FROM ubuntu:jammy-20240227 >>

Re: [PATCH 07/16] LoongArch: lib: General routines

2024-06-16 Thread Jiaxun Yang
在2024年6月16日六月 下午12:01,Heinrich Schuchardt写道: > On 5/22/24 17:34, Jiaxun Yang wrote: >> Add some common library routines for the architecture. >> >> Signed-off-by: Jiaxun Yang >> --- >> arch/loongarch/lib/Makefile | 7 >>

[PATCH v3 00/12] xtensa: Enable qemu-xtensa board

2024-06-18 Thread Jiaxun Yang
64-2020.07-xtensa-dc232b-elf.tar.gz Signed-off-by: Jiaxun Yang --- Changes in v3: - Wire up CI - Switch to dc233c CPU, which does not have PA != VA issue, to get CI pass first. - Link to v2: https://lore.kernel.org/r/20240522-qemu-xtensa-v2-0-04bf7e42b...@flygoat.com Changes in v2: - Fix no

[PATCH v3 02/12] xtensa: Correct define of _end symbol

2024-06-18 Thread Jiaxun Yang
So U-Boot is using _end symbol to detect location of devicetree appended at the end of the ROM. It needs to be calculated based on end of .data load address, as in our lds .current address is address in RAM. Tested-by: Max Filippov Signed-off-by: Jiaxun Yang --- arch/xtensa/cpu/u-boot.lds

[PATCH v3 01/12] xtensa: Move dram_init to xtfpga board file

2024-06-18 Thread Jiaxun Yang
This is a board level stuff. Tested-by: Max Filippov Signed-off-by: Jiaxun Yang --- arch/xtensa/cpu/cpu.c | 5 - board/cadence/xtfpga/xtfpga.c | 5 + 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/xtensa/cpu/cpu.c b/arch/xtensa/cpu/cpu.c index abcd8f7984fa

[PATCH v3 03/12] xtensa: Implement phys virt conversion for PTP_MMU

2024-06-18 Thread Jiaxun Yang
For PTP_MMU our physical address is not directly mapped into virtual address space, we need to access physical memory from those fixed map segments. Implement phys_to_virt and virt_to_phys hook to reflect this setting. Tested-by: Max Filippov Signed-off-by: Jiaxun Yang --- arch/xtensa/include

[PATCH v3 04/12] xtensa: Define PLATFORM_ELFFLAGS

2024-06-18 Thread Jiaxun Yang
u-boot.elf target requires it to work. Tested-by: Max Filippov Signed-off-by: Jiaxun Yang --- v2: - Concerning big endian CPU Note: CONFIG_SYS_BIG_ENDIAN will never be set for xtensa for now, but as we don't have big endian headers for xtensa core either I think it's fine for

[PATCH v3 05/12] xtensa: Bring in semihosting headers and config options

2024-06-18 Thread Jiaxun Yang
They are all directly imported from Linux kernel. Reviewed-by: Max Filippov Tested-by: Max Filippov Signed-off-by: Jiaxun Yang --- arch/xtensa/Kconfig | 27 ++ arch/xtensa/include/asm/platform/simcall-gdbio.h | 34 +++ arch/xtensa/include/asm/platform

[PATCH v3 06/12] drivers: serial: Add xtensa semihosting driver

2024-06-18 Thread Jiaxun Yang
Add xtensa semihosting driver. It can't use regular semihosting driver as Xtensa's has it's own semihosting ABI. Tested-by: Max Filippov Signed-off-by: Jiaxun Yang --- v2: - Fix simc_serial_pending implementation - Get puts work --- drivers

[PATCH v3 07/12] drivers: cpu: Add xtensa CPU driver

2024-06-18 Thread Jiaxun Yang
Implement various CPU related functions. I'm actually just using it to get cpu clock frequency. Tested-by: Max Filippov Signed-off-by: Jiaxun Yang --- drivers/cpu/Kconfig | 6 +++ drivers/cpu/Makefile | 1 + drivers/cpu/xtensa_cpu.c

[PATCH v3 08/12] dts/upsteam: Add Makefile for xtensa

2024-06-18 Thread Jiaxun Yang
It is required to get it xtensa OF_UPSTREAM work. Reviewed-by: Sumit Garg Tested-by: Max Filippov Signed-off-by: Jiaxun Yang --- dts/upstream/src/xtensa/Makefile | 14 ++ 1 file changed, 14 insertions(+) diff --git a/dts/upstream/src/xtensa/Makefile b/dts/upstream/src/xtensa

[PATCH v3 09/12] board: emulation: New board qemu-xtensa

2024-06-18 Thread Jiaxun Yang
Introduce the new board, define every bits. Tested-by: Max Filippov Signed-off-by: Jiaxun Yang --- v2: - Fix maintainers entries - Refine address mapping for noMMU machine - Add a dtsi overlay to describe different memory size for noMMU system v3: - Use dc233c as

[PATCH v3 10/12] doc: New documentation for qemu-xtensa

2024-06-18 Thread Jiaxun Yang
Introduce the board and provide instructions on how to get it work. Tested-by: Max Filippov Signed-off-by: Jiaxun Yang --- doc/board/emulation/index.rst | 1 + doc/board/emulation/qemu-xtensa.rst | 33 + 2 files changed, 34 insertions(+) diff --git a/doc

[PATCH v3 11/12] ci: Wire up qemu_xtensa_dc233c

2024-06-18 Thread Jiaxun Yang
Signed-off-by: Jiaxun Yang --- .azure-pipelines.yml | 3 +++ .gitlab-ci.yml | 6 ++ 2 files changed, 9 insertions(+) diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml index 27f69583c655..b149db62798f 100644 --- a/.azure-pipelines.yml +++ b/.azure-pipelines.yml @@ -413,6 +413,9

[PATCH NFC v3 12/12] : CI Changes

2024-06-18 Thread Jiaxun Yang
Signed-off-by: Jiaxun Yang --- .azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml index b149db62798f..5cb675d3c975 100644 --- a/.azure-pipelines.yml +++ b/.azure-pipelines.yml @@ -198,7 +198,7 @@ stages

Re: [PATCH 12/20] cyclic: Rise default CYCLIC_MAX_CPU_TIME_US to 5000

2024-06-18 Thread Jiaxun Yang
在2024年6月18日六月 上午12:29,Tom Rini写道: [...] >> Acked-by: Stefan Roese > > Can we please get either this, or > https://patchwork.ozlabs.org/project/uboot/patch/20240524210817.1953298-1-rasmus.villem...@prevas.dk/ > merged for master? The number of false negatives in CI due to this is > big issue for

Re: [PATCH 07/16] LoongArch: lib: General routines

2024-06-18 Thread Jiaxun Yang
在2024年6月16日六月 下午5:00,Heinrich Schuchardt写道: [...] > The "LoongArch Reference Manual" is available at: > > https://loongson.github.io/LoongArch-Documentation/LoongArch-Vol1-EN.html#_cacop > > What irritates me in > 2.1.7.1. Cache Coherency Maintenance of Instruction Cache > is the word *can*: > >

[PATCH 0/2] Endian Kconfig improvements

2024-07-17 Thread Jiaxun Yang
This is a subset of my previous arm64_be work. I wish this could be merged first so it would be easier to work against xtensa and arm64 be support. Thanks Signed-off-by: Jiaxun Yang --- Jiaxun Yang (2): Kconfig: Unify endian support option config: Use CONFIG_SYS_BIG_ENDIAN in code

[PATCH 1/2] Kconfig: Unify endian support option

2024-07-17 Thread Jiaxun Yang
: Jiaxun Yang --- arch/Kconfig | 34 ++ arch/mips/Kconfig | 20 +++- arch/mips/mach-ath79/Kconfig | 8 arch/mips/mach-bmips/Kconfig | 20 ++-- arch/mips/mach-jz47xx/Kconfig | 2 +- arch/mips/mach

[PATCH 2/2] config: Use CONFIG_SYS_BIG_ENDIAN in code whenever possible

2024-07-17 Thread Jiaxun Yang
So CONFIG_SYS_BIG_ENDIAN is our cross architecture option for selecting machine endian, while the old CONFIG_CPU_BIG_ENDIAN is defined by Arc only. Use it whenever possible to ensure big endian code path is enabled for all possible big endian machines. Signed-off-by: Jiaxun Yang --- Makefile

[PATCH 00/18] New CI image and fixes

2024-07-17 Thread Jiaxun Yang
passed at azure [1]. Thanks [1]: https://flygoat.visualstudio.com/u-boot/_build/results?buildId=64&view=results Signed-off-by: Jiaxun Yang --- Jiaxun Yang (18): binman: Replace pkg_resources with importlib.resources py: Replace distutils.core with setuptools doc/sphinx: Remove u

[PATCH 01/18] binman: Replace pkg_resources with importlib.resources

2024-07-17 Thread Jiaxun Yang
pkg_resources is deprecated long ago and being removed in python 3.12. Reimplement functions with importlib.resources. Link: https://docs.python.org/3/library/importlib.resources.html Signed-off-by: Jiaxun Yang --- tools/binman/control.py | 18 +- 1 file changed, 9 insertions

[PATCH 02/18] py: Replace distutils.core with setuptools

2024-07-17 Thread Jiaxun Yang
distutils is deprecated long ago and being removed in python 3.12. Signed-off-by: Jiaxun Yang --- tools/binman/setup.py | 2 +- tools/buildman/requirements.txt | 1 + tools/dtoc/setup.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/binman

[PATCH 03/18] doc/sphinx: Remove usage of six

2024-07-17 Thread Jiaxun Yang
We don't support python2 any more so there is no point to use six here. Signed-off-by: Jiaxun Yang --- doc/sphinx/kfigure.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/doc/sphinx/kfigure.py b/doc/sphinx/kfigure.py index dea7f91ef5ab..9467e8d52ac0 100644 ---

[PATCH 04/18] py: Bump pylint version and clear warnings

2024-07-17 Thread Jiaxun Yang
Bump pylint to 3.2.3 as old versions are not working with python 3.12. Clear warnings, mostly E0606: (possibly-used-before-assignment). Signed-off-by: Jiaxun Yang --- .azure-pipelines.yml | 2 +- .gitlab-ci.yml| 2 +- doc/develop/python_cq.rst

[PATCH 05/18] binman: Workaround lz4 cli padding in test cases

2024-07-17 Thread Jiaxun Yang
Newer lz4 util is not happy with any padding at end of file, it would abort with error message like: Stream followed by undecodable data at position 43. Workaround by skipping testCompUtilPadding test case and manually strip padding in testCompressSectionSize test case. Signed-off-by: Jiaxun

[PATCH 06/18] tests/test_event_dump: Relax match rule for output

2024-07-17 Thread Jiaxun Yang
/start.c:61 EVT_TEST h_adder_simple :? Which will fail the test. Relax the source location regex to .*:.*, this is sufficent to show that addr2line is being called and returned a possible line number. Signed-off-by: Jiaxun Yang --- test/py/tests/test_event_dump.py

[PATCH 07/18] lib/charset & efi: Fix possible unaligned accesses

2024-07-17 Thread Jiaxun Yang
many platforms that didn't have translation enabled in U-Boot, and QEMU started to enforce this since 9.0. Fix by using unaligned access helper for UTF-16 memory read/write to ensure we don't do any unaligned access in U-Boot. Signed-off-by: Jiaxun Yang --- lib/charset.c

[PATCH 08/18] CI: Ensure pip install is always performed in venv

2024-07-17 Thread Jiaxun Yang
Since Ubuntu focal it's nolonger permitted to perform global pip install. Ensure that pip install is always performed in venv. For buildman alone, all dependencies are already in docker so there is no need to perform pip install. Signed-off-by: Jiaxun Yang --- .azure-pipelines.yml

[PATCH 09/18] CI: Dockerfile: Set global git name & email config

2024-07-17 Thread Jiaxun Yang
Set global git name & email config so we don't have to setup it for every project. Signed-off-by: Jiaxun Yang --- tools/docker/Dockerfile | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tools/docker/Dockerfile b/tools/docker/Dockerfile index cda

[PATCH 10/18] CI: Dockerfile: Bump base OS version

2024-07-17 Thread Jiaxun Yang
Bump base os to latest jammy release and install more required dependencies. Signed-off-by: Jiaxun Yang --- tools/docker/Dockerfile | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/docker/Dockerfile b/tools/docker/Dockerfile index 5824d371f259..0bf2d180e255 100644

[PATCH 11/18] CI: Dockerfile: Bump GRUB to 2.12

2024-07-17 Thread Jiaxun Yang
Signed-off-by: Jiaxun Yang --- tools/docker/Dockerfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tools/docker/Dockerfile b/tools/docker/Dockerfile index 0bf2d180e255..8e144a2b64e9 100644 --- a/tools/docker/Dockerfile +++ b/tools/docker/Dockerfile @@ -136,9 +136,7

[PATCH 12/18] CI: Dockerfile: Bump QEMU to 9.0.1

2024-07-17 Thread Jiaxun Yang
Previous patches had been applied in 9.0.1 so remove cherry-picks as well. Signed-off-by: Jiaxun Yang --- tools/docker/Dockerfile | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tools/docker/Dockerfile b/tools/docker/Dockerfile index 8e144a2b64e9..8e242d08297a 100644

[PATCH 13/18] CI: Dockerfile: Bump fiptool to 2.10.4

2024-07-17 Thread Jiaxun Yang
Signed-off-by: Jiaxun Yang --- tools/docker/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/docker/Dockerfile b/tools/docker/Dockerfile index 8e242d08297a..91256f0248e4 100644 --- a/tools/docker/Dockerfile +++ b/tools/docker/Dockerfile @@ -192,7 +192,7 @@ RUN

[PATCH 14/18] CI: Dockerfile: Bump genimage to 17

2024-07-17 Thread Jiaxun Yang
Signed-off-by: Jiaxun Yang --- tools/docker/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/docker/Dockerfile b/tools/docker/Dockerfile index 91256f0248e4..cc6e9dc4812d 100644 --- a/tools/docker/Dockerfile +++ b/tools/docker/Dockerfile @@ -200,12

[PATCH 15/18] CI: Dockerfile: Use kernel.org upstream for trace-cmd

2024-07-17 Thread Jiaxun Yang
This is project's upstream URL. Signed-off-by: Jiaxun Yang --- tools/docker/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/docker/Dockerfile b/tools/docker/Dockerfile index cc6e9dc4812d..f45283d72441 100644 --- a/tools/docker/Dockerfile +++ b/tools/d

[PATCH 16/18] CI: Dockerfile: Bump coreboot to 24.05

2024-07-17 Thread Jiaxun Yang
Signed-off-by: Jiaxun Yang --- tools/docker/Dockerfile | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tools/docker/Dockerfile b/tools/docker/Dockerfile index f45283d72441..5ff1ac449e1f 100644 --- a/tools/docker/Dockerfile +++ b/tools/docker/Dockerfile @@ -243,15

[PATCH 17/18] CI: Dockerfile: Add LoongArch64 support

2024-07-17 Thread Jiaxun Yang
Install LoongArch64 toolchains, build LoongArch64 QEMU, build LoongArch64 GRUB. Signed-off-by: Jiaxun Yang --- tools/docker/Dockerfile | 19 +-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/tools/docker/Dockerfile b/tools/docker/Dockerfile index 5ff1ac449e1f

[PATCH NFC 18/18] Use Jiaxun's CI Image

2024-07-17 Thread Jiaxun Yang
Use Jiaxun's CI Image for demonstration. NOT FOR COMMIT! Signed-off-by: Jiaxun Yang --- .azure-pipelines.yml| 4 ++-- .gitlab-ci.yml | 4 ++-- tools/docker/Dockerfile | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.azure-pipelines.yml b/.

Re: [PATCH v3 00/12] MIPS: Boston: Various enhancements

2024-07-17 Thread Jiaxun Yang
在2024年5月18日五月 上午2:14,Jiaxun Yang写道: > Hi all, > > This is a huge series which promoted MIPS/Boston target into a > usable state, with fixes to drivers and general framework issues > I found in this process. > > I also converted the target to OF_UPSTREAM. > > This ta

Re: [PATCH v2 1/2] virtio: New virtio_gpu driver

2024-07-17 Thread Jiaxun Yang
在2024年5月24日五月 下午9:02,Jiaxun Yang写道: > This driver is implemened based on latest VirtIO spec. > It follows operation prodcure as defined in the spec. > > It implemented multihead (mirroring) support as well. > > Signed-off-by: Jiaxun Yang Ping > --- > v2: >

Re: [PATCH 0/6] video: pixel format handling fixes and improvements

2024-07-17 Thread Jiaxun Yang
在2024年5月17日五月 上午6:16,Jiaxun Yang写道: > Hi all, > > This series fixes endian related problem I found in general > video system when testing my fresh virtio-gpu driver on big > endian target. > > It also removed a lot of duplicated code on pixel handling, > and make imp

[PATCH] b4-config: configure `b4` for U-Boot

2024-07-17 Thread Jiaxun Yang
`b4` is a commandline tool to make patch-based development easier[1] Provide a .b4-config file to match U-Boot's patch preference so it will be easier for people to use b4 with U-Boot development. Signed-off-by: Jiaxun Yang --- Do we want to disable git for get_maintainer.pl in auto-cc-c

Re: [PATCH] b4-config: configure `b4` for U-Boot

2024-07-17 Thread Jiaxun Yang
在2024年7月17日七月 下午11:26,Quentin Schulz写道: > Hi Juaxun, > > On 7/17/24 5:12 PM, Jiaxun Yang wrote: >> `b4` is a commandline tool to make patch-based development easier[1] >> >> Provide a .b4-config file to match U-Boot's patch preference so it will >> be e

Re: [PATCH v2 1/2] virtio: New virtio_gpu driver

2024-07-19 Thread Jiaxun Yang
在2024年7月19日七月 下午11:05,Simon Glass写道: > Hi Jiaxun, > > On Wed, 17 Jul 2024 at 15:34, Jiaxun Yang wrote: >> >> >> >> 在2024年5月24日五月 下午9:02,Jiaxun Yang写道: >> > This driver is implemened based on latest VirtIO spec. >> > It follows operation prodcu

Re: [PATCH v2 1/2] virtio: New virtio_gpu driver

2024-07-21 Thread Jiaxun Yang
在2024年7月21日七月 下午6:08,Simon Glass写道: [...] >> >> > + >> >> > + set_scanout_in = malloc(sizeof(struct virtio_gpu_set_scanout)); >> > >> > Could these structs be inside priv instead of allocating each one? >> >> Those structs are all used only once at initialization. >> >> We can save some runt

[PATCH 00/13] MIPS: Boston: Various enhancements

2024-05-13 Thread Jiaxun Yang
-system-mips64el -M boston -cpu I6500 -bios ./u-boot.bin -nographic ``` This is my first u-boot contribution, please kindly advise if you have any comments. Thanks Signed-off-by: Jiaxun Yang --- Jiaxun Yang (13): pci: xilinx: Handle size of ecam region properly pci: auto: Reduce

[PATCH 01/13] pci: xilinx: Handle size of ecam region properly

2024-05-13 Thread Jiaxun Yang
Probe size of ecam from devicetree properly and cap accessible bus number accorading to ecam region size to ensure we don't go beyond hardware address space. Also disable all interrupts to ensure errors are handled silently. Signed-off-by: Jiaxun Yang --- drivers/pci/pcie_xilinx.c

[PATCH 02/13] pci: auto: Reduce bridge mem alignment boundary for boston

2024-05-13 Thread Jiaxun Yang
Boston has a very limited memory range for PCI controllers, where 1MB can't easily fit into it. Make alignment boundary of PCI memory resource allocation a Kconfig option and default to 0x1 for boston. Signed-off-by: Jiaxun Yang --- drivers/pci/Kconfig| 9 + driver

[PATCH 03/13] pci: Enable PCI_MAP_SYSTEM_MEMORY when ARCH_MAP_SYSMEM is not set

2024-05-13 Thread Jiaxun Yang
For MIPS we are always looking gd->dram in virtual address so PCI_MAP_SYSTEM_MEMORY should always be enabled. If in future we ever want to make it physical we have to set ARCH_MAP_SYSMEM. Signed-off-by: Jiaxun Yang --- drivers/pci/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --gi

[PATCH 04/13] ahci: DMA addressing fixes

2024-05-13 Thread Jiaxun Yang
address support for dwc_ahsata, ensure higher bits are written into registers/sg properly. Use memalign for allocating aligned buffer in dwc_ahsata so we don't have to do our own alignment in driver. Signed-off-by: Jiaxun Yang --- drivers/ata/ahci.c

[PATCH 05/13] ahci: dwc_ahsata: Generalize the driver

2024-05-13 Thread Jiaxun Yang
Remove hard dependencies to arch headers, get clock from clk subsystem if arch clock function is not available, align compatible strings with devicetree binding. No functional change on existing platforms, just get it build on other platforms. Signed-off-by: Jiaxun Yang --- drivers/ata

[PATCH 06/13] MIPS: Provide dummy acpi_table.h

2024-05-13 Thread Jiaxun Yang
Some drivers needs this header. Provide this dummy header as riscv did. Signed-off-by: Jiaxun Yang --- arch/mips/include/asm/acpi_table.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/mips/include/asm/acpi_table.h b/arch/mips/include/asm/acpi_table.h new file mode 100644

[PATCH 07/13] MIPS: boston: Imply various options

2024-05-13 Thread Jiaxun Yang
This is a PC-like platform board. Enable drivers for most on-board devices to make it useful. Signed-off-by: Jiaxun Yang --- arch/mips/Kconfig | 27 +++ 1 file changed, 27 insertions(+) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index eb7f3ad23762..748b5175b2eb

[PATCH 08/13] MIPS: boston: Provide default env vars

2024-05-13 Thread Jiaxun Yang
Provide default environment variables on image loading address to make the board useful. Signed-off-by: Jiaxun Yang --- board/imgtec/boston/Kconfig| 4 board/imgtec/boston/boston.env | 9 + 2 files changed, 13 insertions(+) diff --git a/board/imgtec/boston/Kconfig b/board

[PATCH 09/13] syscon: Probe device first in syscon_get_regmap

2024-05-13 Thread Jiaxun Yang
When bootph-all is enabled for a syscon driver, the device may leave unprobed when syscon_get_regmap is called by another driver. Perform device_probe in syscon_get_regmap, there is no side affect as device_probe will return 0 quickly for an activated device. Signed-off-by: Jiaxun Yang

[PATCH 10/13] clk: boston: Allow to get regmap from parent device

2024-05-13 Thread Jiaxun Yang
In upstream devicetree, clk_boston is a child of syscon node and there is no "regmap" property for clk_boston node. Try to check parent device first to look for syscon. Signed-off-by: Jiaxun Yang --- drivers/clk/clk_boston.c | 15 ++- 1 file changed, 10 insertions(+), 5

[PATCH 11/13] dts/upstream: Add Makefile for MIPS

2024-05-13 Thread Jiaxun Yang
It is required to make OF_UPSTREAM work. Signed-off-by: Jiaxun Yang --- dts/upstream/src/mips/Makefile | 14 ++ 1 file changed, 14 insertions(+) diff --git a/dts/upstream/src/mips/Makefile b/dts/upstream/src/mips/Makefile new file mode 100644 index ..9a8f6aa35846

[PATCH 12/13] MIPS: boston: Migrate to OF_UPSTREAM

2024-05-13 Thread Jiaxun Yang
We can now boot with upstream devicetree. Signed-off-by: Jiaxun Yang --- arch/mips/Kconfig| 1 + arch/mips/dts/Makefile | 1 - arch/mips/dts/boston-u-boot.dtsi | 10 ++ arch/mips/dts/img,boston.dts | 222 --- board/imgtec

[PATCH 13/13] mailmap: Update email for Paul Burton

2024-05-13 Thread Jiaxun Yang
Paul had left MIPS a couple of years ago, his email address is no longer valid. Replace it with his kenrel.org email, which has been used in kernel and QEMU, in case we still want to reach him. Signed-off-by: Jiaxun Yang --- .mailmap| 3 ++- board/imgtec/boston

Re: [PATCH 09/13] syscon: Probe device first in syscon_get_regmap

2024-05-14 Thread Jiaxun Yang
在2024年5月14日五月 下午3:50,Jonas Karlman写道: > Hi Jiaxun, [...] >> +return ERR_PTR(ret); > > Please explain in more details what the issue this is trying to solve. > > Typically syscon_get_regmap() is called on a udevice returned from a > uclass_get_device call, and that should trigger a pr

[PATCH v2 00/12] MIPS: Boston: Various enhancements

2024-05-16 Thread Jiaxun Yang
-system-mips64el -M boston -cpu I6500 -bios ./u-boot.bin -nographic ``` This is my first u-boot contribution, please kindly advise if you have any comments. Thanks Signed-off-by: Jiaxun Yang --- Changes in v2: - Drop "[PATCH 09/13] syscon: Probe device first in syscon_get_regmap" in

[PATCH v2 01/12] pci: xilinx: Handle size of ecam region properly

2024-05-16 Thread Jiaxun Yang
Probe size of ecam from devicetree properly and cap accessible bus number accorading to ecam region size to ensure we don't go beyond hardware address space. Also disable all interrupts to ensure errors are handled silently. Signed-off-by: Jiaxun Yang --- drivers/pci/pcie_xilinx.c

  1   2   3   >