Re: [PATCH 1/5] x86: fsp: Use mtrr_set_next_var() for graphics memory

2023-07-23 Thread Simon Glass
Hi Bin, On Sun, 23 Jul 2023 at 09:50, Bin Meng wrote: > > Hi Simon, > > On Sun, Jul 23, 2023 at 11:43 AM Simon Glass wrote: > > > > Hi Bin, > > > > On Fri, 21 Jul 2023 at 10:12, Bin Meng wrote: > > > > > > At present this uses mtrr_add_requ

Re: [PATCH 1/1] spl: initialize PCI before booting from SATA

2023-07-23 Thread Simon Glass
Hi Heinrich, On Sat, 22 Jul 2023 at 15:56, Heinrich Schuchardt wrote: > > Many SATA controllers are PCI bus devices. Before calling scsi_scan() we > must bind the PCI devices. > > Signed-off-by: Heinrich Schuchardt > --- > common/spl/spl_sata.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff

Re: [PATCH 03/18] video: bochs: Drop the useless argument of bochs_vga_write()

2023-07-23 Thread Simon Glass
--- > > drivers/video/bochs.c | 7 --- > drivers/video/bochs.h | 5 - > 2 files changed, 8 insertions(+), 4 deletions(-) Reviewed-by: Simon Glass Tested-by: Simon Glass # qemu-x86_64

Re: [PATCH 04/18] video: bochs: Avoid using IO instructions to access VGA IO port

2023-07-23 Thread Simon Glass
, 4 insertions(+), 6 deletions(-) > Reviewed-by: Simon Glass Tested-by: Simon Glass # qemu-x86_64

Re: [PATCH 06/18] video: kconfig: Fix wrong text for the PCI default FB size

2023-07-23 Thread Simon Glass
video/Kconfig | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Reviewed-by: Simon Glass

Re: [PATCH 09/18] video: bochs: Set the frame buffer size per configuration

2023-07-23 Thread Simon Glass
4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > Reviewed-by: Simon Glass Tested-by: Simon Glass # qemu-x86_64

Re: [PATCH 08/18] video: kconfig: Set default FB size for Bochs

2023-07-23 Thread Simon Glass
config | 6 -- > 1 file changed, 4 insertions(+), 2 deletions(-) Reviewed-by: Simon Glass

Re: [PATCH 05/18] video: bochs: Remove the x86 dependency

2023-07-23 Thread Simon Glass
On Sat, 22 Jul 2023 at 22:41, Bin Meng wrote: > > Now that the driver is legacy free, remove the x86 dependency so > that it can be used on non-x86 architectures. > > Signed-off-by: Bin Meng > --- > > drivers/video/Kconfig | 1 - > 1 file changed, 1 deletion(-)

Re: [PATCH 11/18] console: kconfig: Drop the redundant VIDEO dependency

2023-07-23 Thread Simon Glass
gt; common/Kconfig | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Simon Glass

Re: [PATCH 12/18] console: Make stdio_print_current_devices() static

2023-07-23 Thread Simon Glass
On Sat, 22 Jul 2023 at 22:42, Bin Meng wrote: > > As it is only called in common/console.c > > Signed-off-by: Bin Meng > --- > > common/console.c| 2 +- > include/stdio_dev.h | 2 -- > 2 files changed, 1 insertion(+), 3 deletions(-) > Reviewed-by: Simon

Re: [PATCH 02/18] video: bochs: Drop inclusion of

2023-07-23 Thread Simon Glass
On Sat, 22 Jul 2023 at 22:41, Bin Meng wrote: > > The driver does not call any MTRR APIs. > > Signed-off-by: Bin Meng > --- > > drivers/video/bochs.c | 1 - > 1 file changed, 1 deletion(-) > Reviewed-by: Simon Glass Tested-by: Simon Glass # qemu-x86_64

Re: [PATCH 07/18] video: kconfig: Drop the superfluous dependency

2023-07-23 Thread Simon Glass
On Sat, 22 Jul 2023 at 22:41, Bin Meng wrote: > > PCI is always selected by X86 architecture hence "X86 && PCI" does > not make it better. > > Signed-off-by: Bin Meng > --- > > drivers/video/Kconfig | 8 > 1 file changed, 4 insertions

Re: [PATCH 01/18] dm: video: Cosmetic style fix

2023-07-23 Thread Simon Glass
On Sat, 22 Jul 2023 at 22:41, Bin Meng wrote: > > Some coding convention fixes for video_post_bind(). > > Signed-off-by: Bin Meng > --- > > drivers/video/video-uclass.c | 6 -- > 1 file changed, 4 insertions(+), 2 deletions(-) Reviewed-by: Simon Glass Tested-

Re: [PATCH 14/18] console: Print out complete stdio device list

2023-07-23 Thread Simon Glass
>name : > > >> > + "No error devices available!"; > > >> > + } > > >> > > >> do_coninfo() shows how to print all muxed devices irrespective of > > >> SYS_CONSOLE_IS_IN_ENV. > > > > > >Are you suggesting we refactor the codes to follow the same logic used > > >in do_coninfo()? > > > > As the coninfo command is enabled on most devices, we could use a common > > output function to reduce code size. > > > > Do we need this output at all if we hsve coninfo? > > I think so. U-Boot has been displaying the stdio devices for quite a > long time. The config option SYS_CONSOLE_INFO_QUIET was introduced for > any board who does not want this. > > config SYS_CONSOLE_INFO_QUIET > bool "Don't display the console devices on boot" > help > Normally U-Boot displays the current settings for stdout, stdin > and stderr on boot when the post-relocation console is set up. > Enable this option to suppress this output. It can be obtained by > calling stdio_print_current_devices() from board code. > > Tom, what's your idea? I agree that we should show it, since otherwise it is misleading. Reviewed-by: Simon Glass

Re: [PATCH v3 2/7] power: pmic: add the base MAX77663 PMIC support

2023-07-23 Thread Simon Glass
| 40 +++ > 5 files changed, 212 insertions(+) > create mode 100644 doc/device-tree-bindings/pmic/max77663.txt > create mode 100644 drivers/power/pmic/max77663.c > create mode 100644 include/power/max77663.h Reviewed-by: Simon Glass but see below > > diff --git a/doc/

Re: [PATCH v3 1/7] power: pmic: palmas: support TI TPS65913 PMIC

2023-07-23 Thread Simon Glass
. > > Tested-by: Svyatoslav Ryhel # NVIDIA Tegratab > Signed-off-by: Svyatoslav Ryhel > --- > drivers/power/pmic/palmas.c | 1 + > 1 file changed, 1 insertion(+) > Reviewed-by: Simon Glass > diff --git a/drivers/power/pmic/palmas.c b/drivers/power/pmic/palmas.c > i

Re: [PATCH v3 3/7] power: regulator: max77663: add regulator support

2023-07-23 Thread Simon Glass
8 + > drivers/power/regulator/Makefile | 1 + > drivers/power/regulator/max77663_regulator.c | 358 +++ > 3 files changed, 367 insertions(+) > create mode 100644 drivers/power/regulator/max77663_regulator.c Reviewed-by: Simon Glass nits below > > diff --

Re: [PATCH v3 5/7] power: regulator: tps80031: add regulator support

2023-07-23 Thread Simon Glass
8 + > drivers/power/regulator/Makefile | 1 + > drivers/power/regulator/tps80031_regulator.c | 296 +++ > 3 files changed, 305 insertions(+) > create mode 100644 drivers/power/regulator/tps80031_regulator.c Reviewed-by: Simon Glass This is quite nice

Re: [PATCH v3 4/7] power: pmic: add the base TPS80031 PMIC support

2023-07-23 Thread Simon Glass
| 42 +++ > 5 files changed, 207 insertions(+) > create mode 100644 doc/device-tree-bindings/pmic/tps80031.txt > create mode 100644 drivers/power/pmic/tps80031.c > create mode 100644 include/power/tps80031.h > Reviewed-by: Simon Glass > diff --git a/doc/device-tree-bi

Re: [PATCH v3 7/7] power: regulator: tps65911: add regulator support

2023-07-23 Thread Simon Glass
Hi Svyatoslav, On Sun, 23 Jul 2023 at 06:28, Svyatoslav Ryhel wrote: > > The driver provides regulator set/get voltage enable/disable > functions for TI TPS5911 PMIC. > > Signed-off-by: Svyatoslav Ryhel > --- > drivers/power/regulator/Kconfig | 8 + > drivers/power/regulator/Make

Re: [PATCH v4 1/9] core: read: add dev_read_addr_size_index_ptr function

2023-07-23 Thread Simon Glass
Hi Jonas, On Sat, 22 Jul 2023 at 07:30, Jonas Karlman wrote: > > Add dev_read_addr_size_index_ptr function with the same functionality as > dev_read_addr_size_index, but instead a return pointer is given. > Use map_sysmem() function as cast for the return. > > Signed-off-by: Jonas Karlman > Revi

Re: [PATCH v2 2/9] cmd: boot: implement PMIC based poweroff

2023-07-23 Thread Simon Glass
Hi Svyatoslav, On Sun, 23 Jul 2023 at 03:00, Svyatoslav Ryhel wrote: > > нд, 23 лип. 2023 р. о 06:48 Simon Glass пише: > > > > Hi Svyatoslav, > > > > On Thu, 20 Jul 2023 at 02:48, Svyatoslav Ryhel wrote: > > > > > > Use new PMIC ops to pe

[PATCH 1/9] x86: spl: Drop unwanted debug()

2023-07-24 Thread Simon Glass
This was left over from some previous debugging. Drop it. Signed-off-by: Simon Glass --- arch/x86/lib/spl.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/x86/lib/spl.c b/arch/x86/lib/spl.c index b6812bb8ca2b..55c061570864 100644 --- a/arch/x86/lib/spl.c +++ b/arch/x86/lib/spl.c

[PATCH 0/9] x86: Fixes for distro booting

2023-07-24 Thread Simon Glass
This series collects together various fixes found whn testing out booting of distros using QEMU on x86. Together they improve functionality, but it is not perfect yet. Some notes are included as to the current state. Simon Glass (9): x86: spl: Drop unwanted debug() video: Tidy up Makefile

[PATCH 2/9] video: Tidy up Makefile rule for video

2023-07-24 Thread Simon Glass
Drop the duplication and add a single rule which can handle SPL as well. Signed-off-by: Simon Glass --- drivers/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/Makefile b/drivers/Makefile index 3bc6d279d7cb..7272681fc741 100644 --- a/drivers/Makefile

[PATCH 3/9] x86: Run QEMU machine setup in SPL

2023-07-24 Thread Simon Glass
Call the hardware-init function from QEMU from SPL. This allows the video BIOS to operate correctly. Create an x86-wide qemu.h header to avoid having to #ifdef the header in spl.c Signed-off-by: Simon Glass --- arch/x86/cpu/qemu/qemu.c| 2 +- arch/x86/include/asm/qemu.h | 14

[PATCH 4/9] Revert "x86: Switch QEMU over to use the bochs driver"

2023-07-24 Thread Simon Glass
Unfortunately the bochs driver does not currently work with distros. It causes a hang sometime between grub menu selection and the OS displaying something. This reverts commit b8956425d525c3c25fd218f252f89a5e44df6a9f. Signed-off-by: Simon Glass --- arch/x86/cpu/qemu/Kconfig | 2

[PATCH 5/9] board_f: Fix corruption of relocaddr

2023-07-24 Thread Simon Glass
When the video framebuffer comes from the bloblist, we should not change relocaddr to this address, since it interfers with the normal memory allocation. This fixes a boot loop in qemu-x86_64 Signed-off-by: Simon Glass Fixes: 5bc610a7d9d ("common: board_f: Pass frame buffer info from SPL

[PATCH 6/9] x86: Correct copying of BIOS mode information

2023-07-24 Thread Simon Glass
This is copying beyond the end of the destination buffer. Correct the code by using a constant for the buffer size. This long-standing bug prevents virtio bootdevs working correctly on qemu-x86 at present. Signed-off-by: Simon Glass Fixes: 0ca2426beae ("x86: Add support for running option

[PATCH 8/9] x86: Enable useful options for qemu-86

2023-07-24 Thread Simon Glass
a similar patch for qemu-x86_64 Signed-off-by: Simon Glass --- configs/qemu-x86_defconfig | 9 + 1 file changed, 9 insertions(+) diff --git a/configs/qemu-x86_defconfig b/configs/qemu-x86_defconfig index 56788cd185fd..ff9df677ef4c 100644 --- a/configs/qemu-x86_defconfig +++ b/configs

[PATCH 7/9] video: Add a Kconfig option for SPL video handoff

2023-07-24 Thread Simon Glass
now, disable it there. Signed-off-by: Simon Glass --- common/board_f.c | 3 +-- drivers/video/Kconfig| 10 ++ drivers/video/video-uclass.c | 2 +- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/common/board_f.c b/common/board_f.c index 5c8646b22283

[PATCH 9/9] x86: Update qemu documentation

2023-07-24 Thread Simon Glass
Add some hints and observations related to booting distros on QEMU on x86. Signed-off-by: Simon Glass --- doc/board/emulation/qemu-x86.rst | 88 ++-- 1 file changed, 84 insertions(+), 4 deletions(-) diff --git a/doc/board/emulation/qemu-x86.rst b/doc/board

Re: [PATCH 1/1] spl: initialize PCI before booting from SATA

2023-07-24 Thread Simon Glass
Hi Heinrich, On Mon, 24 Jul 2023 at 02:49, Heinrich Schuchardt wrote: > > > > On 7/24/23 00:58, Simon Glass wrote: > > Hi Heinrich, > > > > On Sat, 22 Jul 2023 at 15:56, Heinrich Schuchardt > > wrote: > >> > >> Many SATA controllers are PC

Re: [PATCH] spl: CONFIG_SPL_PCI_PNP should depend on CONFIG_SPL_PCI

2023-07-24 Thread Simon Glass
; > > > Fixes: 32f5e9e5c1a7 ("nvme: pci: Enable for SPL") > > Signed-off-by: Heinrich Schuchardt > > --- > > common/spl/Kconfig | 12 > > drivers/pci/Kconfig | 11 --- > > 2 files changed, 12 insertions(+), 11 deletions(-) > > Reviewed-by: Leo Yu-Chi Liang Reviewed-by: Simon Glass

Re: [PATCH 1/1] doc: fix typo device_compat/.h

2023-07-24 Thread Simon Glass
On Mon, 24 Jul 2023 at 02:53, Heinrich Schuchardt wrote: > > %s/device_compat\/.h/device_compat.h/ > > Signed-off-by: Heinrich Schuchardt > --- > doc/develop/codingstyle.rst | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Simon Glass > &g

Re: [PATCH 1/1] doc: describe QEMU emulation of block devices

2023-07-24 Thread Simon Glass
mulation/blkdev.rst | 38 ++ > doc/board/emulation/index.rst | 4 +++- > 2 files changed, 41 insertions(+), 1 deletion(-) > create mode 100644 doc/board/emulation/blkdev.rst > Reviewed-by: Simon Glass > diff --git a/doc/board/emulation/blkdev.rst

Re: Strange construct in binman description

2023-07-24 Thread Simon Glass
Hi, On Sun, 23 Jul 2023 at 03:00, Marcel Ziswiler wrote: > > Hi Simon > > On Jul 23, 2023 05:48, Simon Glass wrote: > > Hi Marcel, > > I just noticed this in an imx8 description: > > binman_configuration: @config-SEQ { > > > I remember having stumbled ove

Re: [PATCH] dm: core: Deal with __symbols__ in devicetree

2023-07-24 Thread Simon Glass
Hi, On Wed, 12 Jul 2023 at 12:58, Simon Glass wrote: > > This node is 'special' and doesn't have a compatible string. Deal with > it is as a special case. > > Reported-by: Sahaj Sarup > Signed-off-by: Simon Glass > --- > > drivers/core/root.

[PATCH 1/4] binman: Tidy up tests for pre-load entry type

2023-07-24 Thread Simon Glass
Drop the use of a numbered key file since numbering is just for the test devicetree files. Also adjust the tests to avoid putting a hard-coded path to binman in the file, using the entry arg instead. Signed-off-by: Simon Glass --- tools/binman/etype/pre_load.py| 6 +-- tools

[PATCH 2/4] binman: Renumber 277_rockchip and 278_mkimage test files

2023-07-24 Thread Simon Glass
These have ended up with the same numbers as earlier files. Fix them. Signed-off-by: Simon Glass --- tools/binman/ftest.py | 6 +++--- .../test/{277_rockchip_tpl.dts => 291_rockchip_tpl.dts} | 0 ...issing_multiple.

[PATCH 3/4] binman: Renumber 277...289 TI test files

2023-07-24 Thread Simon Glass
These have ended up with the same numbers as earlier files. Fix them. Signed-off-by: Simon Glass --- tools/binman/ftest.py | 18 +- ...7_ti_board_cfg.dts => 293_ti_board_cfg.dts} | 0 ...bined.dts => 294_ti_board_cfg_combined.dts} | 0 ...o_ty

[PATCH 4/4] binman: Add missing ssl documentation

2023-07-24 Thread Simon Glass
Rerun 'binman bintool-docs' to regenerate bintools.rst Signed-off-by: Simon Glass --- tools/binman/bintools.rst | 11 +++ 1 file changed, 11 insertions(+) diff --git a/tools/binman/bintools.rst b/tools/binman/bintools.rst index c30e7eb9ff5c..dd2a22bd06b4 100644 --- a/to

Please pull u-boot-dm

2023-07-24 Thread Simon Glass
inman: doc: Add documentation for Xilinx Bootgen bintool binman: ftest: Add test for u_boot_spl_pubkey_dtb Simon Glass (87): binman: Tidy up tests for pre-load entry type binman: Renumber 277_rockchip and 278_mkimage test files binman: Renumber 277...289 TI test files binm

Re: [PATCH 4/4] binman: Add missing ssl documentation

2023-07-24 Thread Simon Glass
Rerun 'binman bintool-docs' to regenerate bintools.rst Signed-off-by: Simon Glass --- tools/binman/bintools.rst | 11 +++ 1 file changed, 11 insertions(+) Applied to u-boot-dm, thanks!

Re: [PATCH 3/4] binman: Renumber 277...289 TI test files

2023-07-24 Thread Simon Glass
These have ended up with the same numbers as earlier files. Fix them. Signed-off-by: Simon Glass --- tools/binman/ftest.py | 18 +- ...7_ti_board_cfg.dts => 293_ti_board_cfg.dts} | 0 ...bined.dts => 294_ti_board_cfg_combined.dts} | 0 ...o_ty

Re: [PATCH 2/4] binman: Renumber 277_rockchip and 278_mkimage test files

2023-07-24 Thread Simon Glass
These have ended up with the same numbers as earlier files. Fix them. Signed-off-by: Simon Glass --- tools/binman/ftest.py | 6 +++--- .../test/{277_rockchip_tpl.dts => 291_rockchip_tpl.dts} | 0 ...issing_multiple.

Re: [PATCH 1/4] binman: Tidy up tests for pre-load entry type

2023-07-24 Thread Simon Glass
Drop the use of a numbered key file since numbering is just for the test devicetree files. Also adjust the tests to avoid putting a hard-coded path to binman in the file, using the entry arg instead. Signed-off-by: Simon Glass --- tools/binman/etype/pre_load.py| 6 +-- tools

Re: [PATCH v4 83/83] buildman: Enable test coverage

2023-07-24 Thread Simon Glass
Enable measuring test coverage for buildman so we can see the gaps. It is currently at 68%. Signed-off-by: Simon Glass --- (no changes since v3) Changes in v3: - Fix 'bulidman' typo in three patches Changes in v2: - Drop patch to move -A logic up a little (since it breaks it) tool

Re: [PATCH v4 82/83] buildman: Add an option to check maintainers and targets

2023-07-24 Thread Simon Glass
In poking around it seems that many boards don't define a CONFIG_TARGET Kconfig variable. This is not strictly necessary, but add an option to buildman so these can be viewed. Signed-off-by: Simon Glass --- (no changes since v3) Changes in v3: - Add new patch with an option to check main

Re: [PATCH v4 80/83] buildman: Add a way to print the architecture for a board

2023-07-24 Thread Simon Glass
This is useful for some tools and is easily available for buildman. Add a new --print-arch option. Signed-off-by: Simon Glass --- (no changes since v2) Changes in v2: - Add new patch to print the architecture for a board tools/buildman/cmdline.py | 2 ++ tools/buildman/control.py | 24

Re: [PATCH v4 79/83] buildman: Move copy_files() out ot BuilderThread class

2023-07-24 Thread Simon Glass
This does not need to be in the class. Move it out to avoid a pylint warning. Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/builderthread.py | 47 + 1 file changed, 24 insertions(+), 23 deletions(-) Applied to u-boot-dm, thanks!

Re: [PATCH v4 78/83] buildman: Tidy up some comments in builderthread

2023-07-24 Thread Simon Glass
Make sure all functions have full argument documentation. Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/builderthread.py | 66 ++--- 1 file changed, 36 insertions(+), 30 deletions(-) Applied to u-boot-dm, thanks!

Re: [PATCH v4 77/83] buildman: Tidy up reporting of a toolchain error

2023-07-24 Thread Simon Glass
Provide the text of the exception when something goes wrong. Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/builderthread.py | 7 +-- tools/buildman/func_test.py | 6 -- 2 files changed, 5 insertions(+), 8 deletions(-) Applied to u-boot-dm, thanks!

Re: [PATCH v4 76/83] buildman: Avoid passing result into _read_done_file()

2023-07-24 Thread Simon Glass
Move the creating of the result object into the function which sets it up, to simplify the code. Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/builderthread.py | 19 +++ 1 file changed, 11 insertions(+), 8 deletions(-) Applied to u-boot-dm, thanks!

Re: [PATCH v4 75/83] buildman: Create a function to handle config and build

2023-07-24 Thread Simon Glass
Move this code into a _config_and_build() function, so reduce the size of run_commit(). Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/builderthread.py | 97 + 1 file changed, 61 insertions(+), 36 deletions(-) Applied to u-boot-dm, thanks!

Re: [PATCH v4 81/83] buildman: Use -D for --debug

2023-07-24 Thread Simon Glass
Change -D to mean --debug for consistency with other tools. This is not a commonly used option, so the impact should be minimal. Signed-off-by: Simon Glass --- (no changes since v3) Changes in v3: - Add new patch to use -D for --debug tools/buildman/buildman.rst | 6 +++--- tools/buildman

Re: [PATCH v4 74/83] buildman: Move checkout code to a separate function

2023-07-24 Thread Simon Glass
Put this in its own function to reduce the size of the run_commit() function Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/builderthread.py | 30 +- 1 file changed, 21 insertions(+), 9 deletions(-) Applied to u-boot-dm, thanks!

Re: [PATCH v4 73/83] buildman: Move code to decide output dirs

2023-07-24 Thread Simon Glass
Put this in its own function to reduce the size of the run_commit() function. Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/builderthread.py | 34 - 1 file changed, 25 insertions(+), 9 deletions(-) Applied to u-boot-dm, thanks!

Re: [PATCH v4 72/83] buildman: Move code to remove old outputs

2023-07-24 Thread Simon Glass
Put this in its own function to reduce the size of the run_commit() function. Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/builderthread.py | 28 +++- 1 file changed, 19 insertions(+), 9 deletions(-) Applied to u-boot-dm, thanks!

Re: [PATCH v4 70/83] buildman: Move bulid code into its own function

2023-07-24 Thread Simon Glass
Split this into its own function so reduce the size of run_commit(). Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/builderthread.py | 40 - 1 file changed, 30 insertions(+), 10 deletions(-) Applied to u-boot-dm, thanks!

Re: [PATCH v4 69/83] buildman: Move reconfigure code into its own function

2023-07-24 Thread Simon Glass
Split this into its own function so reduce the size of run_commit(). Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/builderthread.py | 41 - 1 file changed, 30 insertions(+), 11 deletions(-) Applied to u-boot-dm, thanks!

Re: [PATCH v4 71/83] buildman: Move reading of the done file into a function

2023-07-24 Thread Simon Glass
Move this logic into its own function to reduce the size of the run_commt() function. Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/builderthread.py | 66 + 1 file changed, 42 insertions(+), 24 deletions(-) Applied to u-boot-dm, thanks!

Re: [PATCH v4 68/83] buildman: Convert config_out to string IO

2023-07-24 Thread Simon Glass
This is probably a little more efficient and it allows passing the object to another function to write data. Convert config_out to use a string I/O device. Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/builderthread.py | 9 + 1 file changed, 5 insertions(+), 4

Re: [PATCH v4 66/83] buildman: Move setting of toolchain arguments to _build_args()

2023-07-24 Thread Simon Glass
Move a few more pieces to this new function. Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/builderthread.py | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) Applied to u-boot-dm, thanks!

Re: [PATCH v4 65/83] buildman: Start a function to set up the make arguments

2023-07-24 Thread Simon Glass
Move some of this code into a new funciion, to help reduce the size of the run_commits() function. Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/builderthread.py | 38 - 1 file changed, 23 insertions(+), 15 deletions(-) Applied to u-boot

Re: [PATCH v4 62/83] buildman: Export _get_output_dir() to avoid warnings

2023-07-24 Thread Simon Glass
Make this a public memory since it is used outside the class. Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/builder.py | 8 tools/buildman/builderthread.py | 2 +- tools/buildman/test.py | 2 +- 3 files changed, 6 insertions(+), 6 deletions

Re: [PATCH v4 60/83] buildman: Convert camel case in builderthread.py

2023-07-24 Thread Simon Glass
Convert this file to snake case and update all files which use it. Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/builder.py | 8 +++--- tools/buildman/builderthread.py | 50 - 2 files changed, 29 insertions(+), 29 deletions

Re: [PATCH v4 61/83] buildman: Correct most pylint warnings in builderthread

2023-07-24 Thread Simon Glass
Fix the easy warnings in this file. Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/builderthread.py | 95 ++--- 1 file changed, 51 insertions(+), 44 deletions(-) Applied to u-boot-dm, thanks!

Re: [PATCH v4 59/83] buildman: Split parser creation in two

2023-07-24 Thread Simon Glass
Split this into two functions to avoid a warning about too many statements. Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/cmdline.py | 44 +-- 1 file changed, 33 insertions(+), 11 deletions(-) Applied to u-boot-dm, thanks!

Re: [PATCH v4 58/83] buildman: Convert camel case in builder.py

2023-07-24 Thread Simon Glass
Convert this file to snake case and update all files which use it. Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/builder.py | 228 tools/buildman/builderthread.py | 26 ++-- tools/buildman/control.py | 13 +- tools/buildman

Re: [PATCH v4 57/83] buildman: Convert camel case in bsettings.py

2023-07-24 Thread Simon Glass
Convert this file to snake case and update all files which use it. Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/bsettings.py | 14 +++--- tools/buildman/control.py | 2 +- tools/buildman/func_test.py | 12 ++-- tools/buildman/main.py | 2

Re: [PATCH v4 56/83] buildman: Convert to argparse

2023-07-24 Thread Simon Glass
Use argparse to parse the arguments, since OptionParser is deprecated now. Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/cmdline.py | 130 + tools/buildman/control.py | 141 ++-- tools/buildman

Re: [PATCH v4 67/83] buildman: Move more things into _build_args()

2023-07-24 Thread Simon Glass
Move more of the argument-building code into this function. Fix a missing assignment for out_rel_dir too. Rename the function since it now builds all the arguments. Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/builderthread.py | 55 - 1

Re: [PATCH v4 64/83] buildman: Drop unnecessary assignment of config_out

2023-07-24 Thread Simon Glass
This is already set up earlier in the function, so drop the extra assignment. Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/builderthread.py | 1 - 1 file changed, 1 deletion(-) Applied to u-boot-dm, thanks!

Re: [PATCH v4 63/83] buildman: Correct invalid use of out_dir variable

2023-07-24 Thread Simon Glass
This variable has a different meaning in the outer scope. Use a different name to avoid confusion, or bugs. Signed-off-by: Simon Glass --- (no changes since v3) Changes in v3: - Fix 'scrop' typo tools/buildman/builderthread.py | 4 ++-- 1 file changed, 2 insertions(+), 2

Re: [PATCH v4 55/83] buildman: Add a test for --boards

2023-07-24 Thread Simon Glass
Add a simple functional test for the --boards option. Fix the example in the docs while we are here. Also improve the docs for Builder.count so it is clearer what it contains. Signed-off-by: Simon Glass --- (no changes since v2) Changes in v2: - Use snake case for tests tools/buildman

Re: [PATCH v4 54/83] buildman: Correct most pylint warnings in cmdline

2023-07-24 Thread Simon Glass
Tidu up warnings in this file. Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/cmdline.py | 15 +++ 1 file changed, 11 insertions(+), 4 deletions(-) Applied to u-boot-dm, thanks!

Re: [PATCH v4 53/83] buildman: Convert camel case in cmdline.py

2023-07-24 Thread Simon Glass
Convert this file to snake case and update all files which use it. Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/cmdline.py | 2 +- tools/buildman/func_test.py | 2 +- tools/buildman/main.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) Applied to u

Re: [PATCH v4 52/83] buildman: Create a function to get number of built commits

2023-07-24 Thread Simon Glass
Move this code into a function. This removes the last pylint error in the control module. Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/control.py | 34 +- 1 file changed, 25 insertions(+), 9 deletions(-) Applied to u-boot-dm, thanks!

Re: [PATCH v4 51/83] buildman: Use get_alow_missing() directly to avoid var

2023-07-24 Thread Simon Glass
Avoid an unnecessary local variable by moving this code to a function. This fixes the pylint warning about too many local variables. Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/control.py | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) Applied to u-boot

Re: [PATCH v4 50/83] buildman: Move getting the adjust_cfg into run_builder()

2023-07-24 Thread Simon Glass
Move this into its own function to reduce the size of do_buildman(). Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/control.py | 38 +++--- 1 file changed, 27 insertions(+), 11 deletions(-) Applied to u-boot-dm, thanks!

Re: [PATCH v4 49/83] buildman: Move checking for make into run_builder()

2023-07-24 Thread Simon Glass
This is not needed until the builder is run. Move it there to reduce the size of the do_buildman() function. Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/control.py | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) Applied to u-boot-dm, thanks!

Re: [PATCH v4 48/83] buildman: Adjust show_toolchain_prefix() to not return

2023-07-24 Thread Simon Glass
This function does not need to return. Simplify the code by exiting immediately. Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/control.py | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) Applied to u-boot-dm, thanks!

Re: [PATCH v4 47/83] buildman: Drop some unnecessary variables

2023-07-24 Thread Simon Glass
Drop some variables at the end of the do_bulidman() function. Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/control.py | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) Applied to u-boot-dm, thanks!

Re: [PATCH v4 46/83] buildman: Moving running of the builder into a function

2023-07-24 Thread Simon Glass
Move this code into a new function. This removes the pylint warning about too many branches. Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/control.py | 56 --- 1 file changed, 35 insertions(+), 21 deletions(-) Applied to u-boot-dm

Re: [PATCH v4 45/83] buildman: Tweak commits and show_bloat

2023-07-24 Thread Simon Glass
Move setting of show_bloat to adjust_options() and adjust how the commits variable is set. Together these remove the pylint warning about too many statements. Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/control.py | 13 + 1 file changed, 5 insertions(+), 8

Re: [PATCH v4 44/83] buildman: Move remaining builder properties to constructor

2023-07-24 Thread Simon Glass
Do these all in the constructor, so it is consistent. Move the stray builder comment into the correct place. Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/builder.py | 25 ++--- tools/buildman/control.py | 18 +++--- 2 files changed, 25

Re: [PATCH v4 43/83] buildman: Avoid too many returns in do_buildman()

2023-07-24 Thread Simon Glass
Fix the pylint warning by using a variable instead of lots of 'return' statements. Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/control.py | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) Applied to u-boot-dm, thanks!

Re: [PATCH v4 42/83] buildman: Move commit numbering into determine_series()

2023-07-24 Thread Simon Glass
Commits are numbered for use in tests. Do this in determine_series() since it is already dealing with the series. Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/control.py | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) Applied to u-boot-dm, thanks!

Re: [PATCH v4 41/83] buildman: Move setting up the output dir into a function

2023-07-24 Thread Simon Glass
Move this code into a separate function to reduce the size of the main do_buildman() directory. Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/control.py | 45 --- 1 file changed, 33 insertions(+), 12 deletions(-) Applied to u-boot-dm

Re: [PATCH v4 40/83] buildman: Move counting of commits into a function

2023-07-24 Thread Simon Glass
Move this code into a separate function to avoid a pylint warning in determine_series(). Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/control.py | 63 +-- 1 file changed, 41 insertions(+), 22 deletions(-) Applied to u-boot-dm, thanks!

Re: [PATCH v4 39/83] buildman: Build option-adjusting into a function

2023-07-24 Thread Simon Glass
Create a separate function to adjust options. Also move show_actions() up as far as we can in the function. Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/control.py | 53 --- 1 file changed, 33 insertions(+), 20 deletions(-) Applied

Re: [PATCH v4 38/83] buildman: Pass option values to show_actions()

2023-07-24 Thread Simon Glass
Pass in the individual values rather than the whole options object, so we can see what is needed. Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/control.py | 22 +- 1 file changed, 13 insertions(+), 9 deletions(-) Applied to u-boot-dm, thanks!

Re: [PATCH v4 37/83] buildman: Pass option values to get_action_summary()

2023-07-24 Thread Simon Glass
Pass in the individual values rather than the whole options object, so we can see what is needed. Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/control.py | 22 +++--- 1 file changed, 15 insertions(+), 7 deletions(-) Applied to u-boot-dm, thanks!

Re: [PATCH v4 36/83] buildman: Move output-file setup into one place

2023-07-24 Thread Simon Glass
Collect the two parts of the output-file handling into single place. Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/control.py | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) Applied to u-boot-dm, thanks!

Re: [PATCH v4 35/83] bulldman: Set up output_dir earlier

2023-07-24 Thread Simon Glass
Set up output_dir at the start of the main function, instead of updating the options.output_dir option. Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/control.py | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) Applied to u-boot-dm, thanks!

Re: [PATCH v4 34/83] bulidman: Move toolchain handling to a function

2023-07-24 Thread Simon Glass
Move the code for dealing with toolchains out into its own function, to reduce the size of the main function. Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/control.py | 53 --- 1 file changed, 38 insertions(+), 15 deletions(-) Applied

Re: [PATCH v4 33/83] buildman: Move Boards-object code into a function

2023-07-24 Thread Simon Glass
Move the code which obtains a Boards object into its own function, to reduce the size of the main function. Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/control.py | 74 +-- 1 file changed, 48 insertions(+), 26 deletions(-) Applied

Re: [PATCH v4 32/83] bulidman: Move more code to determine_series()

2023-07-24 Thread Simon Glass
Move some more series-related code here, to reduce the size of the main function. Signed-off-by: Simon Glass --- (no changes since v2) Changes in v2: - Correct operation of -A tools/buildman/control.py | 82 --- 1 file changed, 42 insertions(+), 40

Re: [PATCH v4 31/83] buildman: Move board-selection code into a function

2023-07-24 Thread Simon Glass
Create a new determine_boards() function to hold the code which selects which boards to build. Signed-off-by: Simon Glass --- (no changes since v3) Changes in v3: - Correct test failure when using incorrect variable tools/buildman/control.py | 59 --- 1

<    9   10   11   12   13   14   15   16   17   18   >