[PATCH v2 2/2] ipq40xx/snapdragon: Merge the two, more than 90% overlapping Qualcomm's Snapdrgon based arches, into one: "mach-snapdragon".

2022-11-05 Thread Andrey VOLKOV
Signed-off-by: Andrey VOLKOV --- arch/arm/Kconfig | 19 +- arch/arm/Makefile | 1 - arch/arm/mach-ipq40xx/Kconfig | 15 -- arch/arm/mach-ipq40xx/Makefile| 9 - arch/arm/mach-ipq40xx/include/mach/gpio.h

[PATCH v2 1/2] SoC: qcom: Add missing Qualcomm's SOCs definitions to the arch KConfig

2022-11-05 Thread Andrey VOLKOV
Add APQ8016/APQ8096/QCS40X decls to the KConfig, convert SDM845 declaration to the hidden one (selected by target), and update mach-snapdragon/Makefile accordingly. Also move 'CONFIG_ARM64' choice to the new declarations, since 'Snapdragon' contains Cortex A7A members too. Signed-off-by: Andrey

Re: [PATCH 1/2] mach-snapdragon/mach-ipq40xx: fix, merge and refactoring

2022-11-05 Thread Andrey VOLKOV
Hi Robert, Tom, Updated patches are following, could you review/accept them? Le 04/11/2022 à 12:05, Robert Marko a écrit : > On Tue, Oct 25, 2022 at 3:31 AM Andrey Volkov wrote: >> SoC: qcom: Add missing Qualcomm's SOCs definitions to the arch KConfig >> >> From: Andrey VOLKOV >> >> Add APQ8016/

[PATCH 1/1] efi_loader: AllocateAddress requires page address

2022-11-05 Thread Heinrich Schuchardt
AllocatePages() can be called with Type=AllocateAddress. Such a call can only succeed if *Memory points to the address of an unallocated page range. A call with *Memory being an address that is not page aligned must not succeed. The UEFI specification requires returning EFI_OUT_OF_RESOURCES if the

Re: [PATCH 1/1] sandbox: fix function descriptions in os.h

2022-11-05 Thread Heinrich Schuchardt
On 11/6/22 01:37, Pali Rohár wrote: On Sunday 06 November 2022 00:44:53 Heinrich Schuchardt wrote: alarm(), read(), write(), ... are not system calls but POSIX functions. Well, read() and write() are system calls as opposite of the printf() read() and write() are library functions on all

Re: [PATCH 1/1] sandbox: fix function descriptions in os.h

2022-11-05 Thread Pali Rohár
On Sunday 06 November 2022 00:44:53 Heinrich Schuchardt wrote: > alarm(), read(), write(), ... are not system calls but POSIX functions. Well, read() and write() are system calls as opposite of the printf() which is library function. But on every modern operating system there is wrapper function i

[BUG] efi_check_allocated() only checks start address

2022-11-05 Thread Heinrich Schuchardt
AllocatePages() and FreePages() call efi_check_allocated() to check if a memory address is allocated or not. The function should consider the number of pages in the request and either check if the full range is deallocated or the full range is allocated. https://source.denx.de/u-boot/custodi

[PATCH 1/1] sandbox: fix function descriptions in os.h

2022-11-05 Thread Heinrich Schuchardt
alarm(), read(), write(), ... are not system calls but POSIX functions. Signed-off-by: Heinrich Schuchardt --- include/os.h | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/include/os.h b/include/os.h index 54874f5e0e..b62d8bbd66 100644 --- a/include/os.h +++

Re: [PATCH 02/17] sandbox: Add missing comments for os_alarm()

2022-11-05 Thread Heinrich Schuchardt
On 10/30/22 02:47, Simon Glass wrote: Add the documentation to avoid a warning with 'make htmldocs'. Fixes: 10107efedd5 ("sandbox: add SIGALRM-based watchdog device") Signed-off-by: Simon Glass --- include/os.h | 4 1 file changed, 4 insertions(+) diff --git a/include/os.h b/include/

Re: [PATCH v3 9/9] buildman: Add --allow-missing flag to allow missing blobs

2022-11-05 Thread Heinrich Schuchardt
On 11/6/22 00:04, Simon Glass wrote: From: Tom Rini Add a new flag to buildman so that we will in turn pass BINMAN_ALLOW_MISSING=1 to 'make'. Make use of this flag in CI. Please, document all arguments of binman in doc/develop/package/binman.rst. Best regards Heinrich Allow the settings

Re: [PATCH v3 8/9] global: Do not default to faking missing binaries for buildman

2022-11-05 Thread Heinrich Schuchardt
On 11/6/22 00:04, Simon Glass wrote: From: Tom Rini While it is possible and documented on how to re-run buildman to replace faked required binary files after the fact, this behavior ends up being more confusing than helpful in practice. Switch to requiring BINMAN_ALLOW_MISSING=1 to be passed o

Re: Remove WARN_ONCE for unaligned UEFI region?

2022-11-05 Thread Heinrich Schuchardt
On 11/5/22 22:54, Ard Biesheuvel wrote: (cc Heinrich and Ilias) On Sat, 5 Nov 2022 at 21:27, Linus Torvalds wrote: On Sat, Nov 5, 2022 at 1:18 PM Ard Biesheuvel wrote: Yeah just rip it out. In the beginning, we tended to make these warnings noisy so people will actually notice. Rip it

[PATCH v3 9/9] buildman: Add --allow-missing flag to allow missing blobs

2022-11-05 Thread Simon Glass
From: Tom Rini Add a new flag to buildman so that we will in turn pass BINMAN_ALLOW_MISSING=1 to 'make'. Make use of this flag in CI. Allow the settings file to control this. Cc: Rasmus Villemoes Cc: Simon Glass Signed-off-by: Tom Rini Signed-off-by: Simon Glass --- Changes in v3: - Add te

[PATCH v3 7/9] buildman: Detect binman reporting missing blobs

2022-11-05 Thread Simon Glass
Buildman should consider a build as a success (with warnings) if missing blobs have been dealt with by binman, even though buildman itself returns and error code overall. This is how other warnings are dealt with. We cannot easily access the 103 exit code, so detect the problem in the output. Wit

[PATCH v3 3/9] binman: Use an exit code when blobs are missing

2022-11-05 Thread Simon Glass
At present binman returns success when told to handle missing blobs. This is confusing this in fact the resulting image cannot work. Use exit code 103 to signal this problem, with a -W option to convert it to a warning. Add documentation about exit codes while we are here. Signed-off-by: Simon G

[PATCH v3 8/9] global: Do not default to faking missing binaries for buildman

2022-11-05 Thread Simon Glass
From: Tom Rini While it is possible and documented on how to re-run buildman to replace faked required binary files after the fact, this behavior ends up being more confusing than helpful in practice. Switch to requiring BINMAN_ALLOW_MISSING=1 to be passed on the 'make' line to enable this behavi

[PATCH v3 6/9] buildman: Drop mention of old architectures

2022-11-05 Thread Simon Glass
Support for some architectures has been removed since buildman was first written. Also all toolchains are now available at kernel.org so we don't need the links. Signed-off-by: Simon Glass --- Changes in v3: - Add new patch to drop mention of old architectures tools/buildman/bsettings.py | 2

[PATCH v3 5/9] buildman: Drop mention of MAKEALL

2022-11-05 Thread Simon Glass
This script was removed about 6 years ago so most people should be aware that it is not needed anymore. Drop mention of it. Signed-off-by: Simon Glass --- Changes in v3: - Add new patch to drop mention of MAKEALL tools/buildman/buildman.rst | 110 1 file ch

[PATCH v3 1/9] Makefile: Correct the binman rule

2022-11-05 Thread Simon Glass
This currently uses if_changed on a phony target. Use a real file as the target and add FORCE at the end, as required. Drop the 'inputs' phony since it is not needed. Signed-off-by: Simon Glass --- (no changes since v2) Changes in v2: - Use a separate rule for running binman Makefile | 11 +++

[PATCH v3 2/9] doc: Correct the path to the Makefile documentation

2022-11-05 Thread Simon Glass
This is out-of-date now. Fix it. Signed-off-by: Simon Glass --- (no changes since v1) scripts/Kbuild.include | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include index 9c14310ad40..62e0207f91b 100644 --- a/scripts/Kbuild.include ++

[PATCH v3 0/9] buildman: Correct various issues with missing blobs

2022-11-05 Thread Simon Glass
This series attempts to tidy up the problem of missing blobs, making U-Boot default to failing the build, but providing ways to configure this so that buildman can still be used for build testing by people who don't have the blobs or don't care about them. This is based on discussion in [1] as wel

Re: [PATCH 03/17] test: Split out mk_fs function into a helper

2022-11-05 Thread Simon Glass
This function is useful for other tests. Move it into common code. Signed-off-by: Simon Glass --- test/py/tests/fs_helper.py| 54 test/py/tests/test_fs/conftest.py | 58 --- 2 files changed, 60 insertions(+), 52 deletions(-) crea

Re: [PATCH 01/17] dm: sandbox: Drop non-BLK code from host implementation

2022-11-05 Thread Simon Glass
This is not used anymore. Drop it. Signed-off-by: Simon Glass --- cmd/host.c| 4 -- drivers/block/sandbox.c | 102 -- include/sandboxblockdev.h | 3 -- 3 files changed, 109 deletions(-) Applied to u-boot-dm, thanks!

Re: [PATCH 02/17] sandbox: Add missing comments for os_alarm()

2022-11-05 Thread Simon Glass
Add the documentation to avoid a warning with 'make htmldocs'. Fixes: 10107efedd5 ("sandbox: add SIGALRM-based watchdog device") Signed-off-by: Simon Glass --- include/os.h | 4 1 file changed, 4 insertions(+) Applied to u-boot-dm, thanks!

Re: [PATCH 04/17] test: Correct pylint warnings in fs_helper

2022-11-05 Thread Simon Glass
Tidy this up so that pylint is happy. Use hex for the 1MB size and make sure it is not a floating-point value. Add a little main program to allow the code to be tried out, since at present is only called from a long-running test. Signed-off-by: Simon Glass --- test/py/tests/fs_helper.py | 38 +

Re: [PATCH 05/17] dm: test: Drop the special function for running DM tests

2022-11-05 Thread Simon Glass
This is not needed since the flag takes care of all differences. Make use of the common function. Signed-off-by: Simon Glass --- test/dm/test-dm.c | 49 --- 1 file changed, 4 insertions(+), 45 deletions(-) Applied to u-boot-dm, thanks!

Re: [PATCH 06/17] dm: test: Clear the block cache after running a test

2022-11-05 Thread Simon Glass
Some tests access data in block devices and so cause the cache to fill up. This results in memory being allocated. Some tests check the malloc usage at the beginning and then again at the end, to ensure there is no memory leak caused by the test. The block cache makes this difficult, since the any

Re: [PATCH 08/17] test: Tidy up help for ut command

2022-11-05 Thread Simon Glass
Sort this and put the command summary at the top instead of the bottom. Adjust it so that the newlines are at the start of the strings, so that there is not a blank line at the end. Signed-off-by: Simon Glass --- test/cmd_ut.c | 57 +-- 1 file ch

Re: [PATCH 07/17] test: Drop an unused parameter to ut_run_test_live_flat()

2022-11-05 Thread Simon Glass
The select_name parameter is not used anymore. Drop it. Signed-off-by: Simon Glass --- test/test-main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) Applied to u-boot-dm, thanks!

Re: [PATCH 09/17] test: doc: Add documentation for ut command

2022-11-05 Thread Simon Glass
Before adding more options, document this command. Signed-off-by: Simon Glass --- doc/usage/cmd/ut.rst | 102 +++ doc/usage/index.rst | 1 + 2 files changed, 103 insertions(+) create mode 100644 doc/usage/cmd/ut.rst Applied to u-boot-dm, thanks!

Re: [PATCH 10/17] test: Allow showing basic information about tests

2022-11-05 Thread Simon Glass
Add a 'ut info' command to show the number of suites and tests. This is useful to get a feel for the scale of the tests. Signed-off-by: Simon Glass --- doc/usage/cmd/ut.rst | 6 ++ test/cmd_ut.c| 16 +++- 2 files changed, 21 insertions(+), 1 deletion(-) Applied to u-bo

Re: [PATCH 13/17] dm: sandbox: Create a new HOST uclass

2022-11-05 Thread Simon Glass
Sandbox supports block devices which can access files on the host machine. At present there is no uclass for this. The devices are attached to the root devic. The block-device type is therefore set to UCLASS_ROOT which is confusing. Block devices should be attached to a 'media' device instead, som

Re: [PATCH 11/17] test: Add a way to detect a test that breaks another

2022-11-05 Thread Simon Glass
When running unit tests, some may have side effects which cause a subsequent test to break. This can sometimes be seen when using 'ut dm' or similar. Add a new argument which allows a particular (failing) test to be run immediately after a certain number of tests have run. This allows the test cau

Re: [PATCH 12/17] dm: blk: Tidy up obtaining a block device from its parent

2022-11-05 Thread Simon Glass
This function now finds its block-device child by looking for a child device of the correct uclass (UCLASS_BLK). It cannot produce a device of any other type, so drop the superfluous check. Provide a version which does not probe the device, since that is often needed when setting up the device's p

Re: [PATCH 14/17] dm: sandbox: Create a block driver

2022-11-05 Thread Simon Glass
Create a block driver for the new HOST uclass. This handles attaching and detaching host files. For now the uclass is not used but this will be plumbed in with future patches. Signed-off-by: Simon Glass --- drivers/block/Makefile | 2 +- drivers/block/host_dev.c | 142 +

Re: [PATCH 16/17] dm: Add documentation for host command and implementation

2022-11-05 Thread Simon Glass
Document the 'host' command and also the internals of how it is implemented. Signed-off-by: Simon Glass --- doc/arch/index.rst | 2 +- doc/arch/sandbox/block_impl.rst| 39 ++ doc/arch/sandbox/index.rst | 12 +++ doc/arch/{ => sandbox}/sandbox.rst | 9 ++

Re: [PATCH 17/17] dm: Add tests for the sandbox host driver

2022-11-05 Thread Simon Glass
Add some unit tests for this. Signed-off-by: Simon Glass --- test/dm/Makefile | 1 + test/dm/host.c | 195 + test/py/tests/fs_helper.py | 6 +- test/py/tests/test_ut.py | 6 ++ 4 files changed, 206 insertions(+), 2 deletions(-)

[PATCH v4 6/8] imx8mp: synchronise device tree with linux

2022-11-05 Thread Marcel Ziswiler
From: Marcel Ziswiler Synchronise device tree with linux v6.1-rc3. Signed-off-by: Marcel Ziswiler --- Changes in v4: - Re-synched with v6.1-rc3. arch/arm/dts/imx8mp-dhcom-pdk2.dts| 29 +- arch/arm/dts/imx8mp-dhcom-som.dtsi| 20 +- arch/arm/dts/imx8mp-evk.dts

[PATCH v4 8/8] imx8mm: synchronise device tree with linux

2022-11-05 Thread Marcel Ziswiler
From: Marcel Ziswiler Synchronise device tree with linux v6.1-rc3. Signed-off-by: Marcel Ziswiler --- Changes in v4: - Re-synched with v6.1-rc3. arch/arm/dts/imx8mm-beacon-baseboard.dtsi | 4 +- arch/arm/dts/imx8mm-evk.dtsi | 43 +++ arch/arm/dts/imx8mm-icore-m

[PATCH v4 7/8] imx8mn: synchronise device tree with linux

2022-11-05 Thread Marcel Ziswiler
From: Marcel Ziswiler Synchronise device tree with linux v6.1-rc3. Signed-off-by: Marcel Ziswiler --- Changes in v4: - Re-based after Adam's common imx8mn-u-boot device tree creation. - Re-synched with v6.1-rc3. arch/arm/dts/imx8mn-beacon-baseboard.dtsi | 4 +- arch/arm/dts/imx8mn-evk.dtsi

[PATCH v4 4/8] imx8ulp: synchronise device tree with linux

2022-11-05 Thread Marcel Ziswiler
From: Marcel Ziswiler Synchronise device tree with linux v6.1-rc3. Signed-off-by: Marcel Ziswiler --- Changes in v4: - Re-synched with v6.1-rc3. Changes in v2: - imx8ulp: Re-added s400_mu device tree node. arch/arm/dts/imx8ulp-evk-u-boot.dtsi | 15 +- arch/arm/dts/imx8ulp-evk.dts

[PATCH v4 5/8] imx8mq: synchronise device tree with linux

2022-11-05 Thread Marcel Ziswiler
From: Marcel Ziswiler Synchronise device tree with linux v6.1-rc3. Signed-off-by: Marcel Ziswiler --- Changes in v4: - Re-synched with v6.1-rc3. arch/arm/dts/imx8mq-evk.dts | 43 +++ arch/arm/dts/imx8mq-librem5-r3.dtsi | 45 +++ arch/arm/dts/imx8mq-librem5-r4.dts

[PATCH v4 2/8] imxrt1020: migrate to build system included -u-boot.dtsi

2022-11-05 Thread Marcel Ziswiler
From: Marcel Ziswiler Migrate to using automatic build system included -u-boot.dtsi device tree include files. Signed-off-by: Marcel Ziswiler --- Changes in v4: - Re-named commit subject and re-worded commit message to indicate migration to automatic build system included -u-boot.dtsi devic

[PATCH v4 3/8] imxrt1050: synchronise device tree with linux

2022-11-05 Thread Marcel Ziswiler
From: Marcel Ziswiler Synchronise device tree with linux v6.1-rc3. Note: Nowadays, the intent is for them regular device trees to just be synchronised from them Linux kernel device trees and any and all U-Boot specific changes need to go into the -u-boot.dtsi device tree include files which BTW

[PATCH v4 0/8] arm: dts: imx: sync device trees with upstream linux kernel part 1

2022-11-05 Thread Marcel Ziswiler
From: Marcel Ziswiler This series synchronises them imx device trees with the upstream Linux kernel (v6.1-rc3). I split it into two parts. This is part 1. It also fixes a few issues as discussed during/after the pre-mature application of my first series [1]. I am not touching kontron-sl-mx6ul

[PATCH v4 1/8] vf610: synchronise device tree with linux

2022-11-05 Thread Marcel Ziswiler
From: Marcel Ziswiler Synchronise device tree with linux v6.1-rc3. Signed-off-by: Marcel Ziswiler --- Changes in v4: - Re-synched with v6.1-rc3 which now already contains the recent DDR pinmux addition. arch/arm/dts/vf610-pinfunc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) di