Re: [PATCH 1/5] DFU: Do not copy the entity name over the buffer size

2022-01-02 Thread Ilias Apalodimas
On Mon, 6 Dec 2021 at 07:44, Masami Hiramatsu wrote: > > Use strlcpy() instead of strcpy() to prevent copying the > entity name over the name buffer size. > > Signed-off-by: Masami Hiramatsu > --- > drivers/dfu/dfu.c |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/dri

Re: [PATCH v2] efi_loader: Get rid of kaslr-seed

2022-01-02 Thread Ilias Apalodimas
Hi Mark, On Sun, Jan 02, 2022 at 10:27:50PM +0100, Mark Kettenis wrote: > > Date: Sun, 02 Jan 2022 22:06:11 +0100 > > From: Heinrich Schuchardt > > > > Am 2. Januar 2022 21:50:35 MEZ schrieb Ilias Apalodimas > > : > > >Hi Heinrich, > > > > > >> > > > > > > > > > >[...] > > > > > >> > > > > di

Re: [PATCH v2] efi_loader: Get rid of kaslr-seed

2022-01-02 Thread Ilias Apalodimas
On Sun, Jan 02, 2022 at 10:06:11PM +0100, Heinrich Schuchardt wrote: > Am 2. Januar 2022 21:50:35 MEZ schrieb Ilias Apalodimas > : > >Hi Heinrich, > > > >> > > > > > > > >[...] > > > >> > > > > diff --git a/cmd/bootefi.c b/cmd/bootefi.c > >> > > > > index d77d3b6e943d..57f13ce701ec 100644 > >> >

Re: [PATCH v2] udoo_neo: fix udoo neo UNDEFINED

2022-01-02 Thread Fabio Estevam
Hi Tommaso, On Sun, Jan 2, 2022 at 8:54 PM Tommaso Merciai wrote: > > get_board_value function fails to get the right board configuration on > second time that is call. This patch move get_board_value function at > spl level, once is call, store the right configuration into gd static > variable g

[PATCH v1] rockchip: timer: add OF_PLATDATA support for dw-apb-timer

2022-01-02 Thread Johan Jonker
The Rockchip rk3066 SoC has 3 dw-apb-timer nodes. U-boot is compiled with OF_PLATDATA TPL/SPL options, so add OF_PLATDATA support for the dw-apb-timer. Also change driver name to be able to compile with U-boot scripts. No reset OF_PLATDATA support was added, because the rk3066 nodes don't need/have

Re: [PATCH] udoo_neo: fix udoo neo UNDEFINED

2022-01-02 Thread Tommaso Merciai
On Sun, Jan 02, 2022 at 04:28:35PM -0300, Fabio Estevam wrote: > Hi Tommaso, > > On Sun, Jan 2, 2022 at 3:27 PM Tommaso Merciai wrote: > > > > get_board_value function fails to get the right board configuration on > > second time that is call. This patch move get_board_value function at > > spl l

[PATCH v2] udoo_neo: fix udoo neo UNDEFINED

2022-01-02 Thread Tommaso Merciai
get_board_value function fails to get the right board configuration on second time that is call. This patch move get_board_value function at spl level, once is call, store the right configuration into gd static variable gd->board_type and fix the previous error. get_board_value is now call only one

[PING][PATCH v3] pci: Work around PCIe link training failures

2022-01-02 Thread Maciej W. Rozycki
On Sat, 20 Nov 2021, Maciej W. Rozycki wrote: > Attempt to handle cases with a downstream port of a PCIe switch where > link training never completes and the link continues switching between > speeds indefinitely with the data link layer never reaching the active > state. Ping for:

Re: [PATCH] udoo_neo: fix udoo neo UNDEFINED

2022-01-02 Thread Tommaso Merciai
On Sun, Jan 02, 2022 at 04:28:35PM -0300, Fabio Estevam wrote: > Hi Tommaso, > > On Sun, Jan 2, 2022 at 3:27 PM Tommaso Merciai wrote: > > > > get_board_value function fails to get the right board configuration on > > second time that is call. This patch move get_board_value function at > > spl l

Re: [PATCH v2] efi_loader: Get rid of kaslr-seed

2022-01-02 Thread Mark Kettenis
> Date: Sun, 02 Jan 2022 22:06:11 +0100 > From: Heinrich Schuchardt > > Am 2. Januar 2022 21:50:35 MEZ schrieb Ilias Apalodimas > : > >Hi Heinrich, > > > >> > > > > > > > >[...] > > > >> > > > > diff --git a/cmd/bootefi.c b/cmd/bootefi.c > >> > > > > index d77d3b6e943d..57f13ce701ec 100644 > >>

Re: [PATCH v2] efi_loader: Get rid of kaslr-seed

2022-01-02 Thread Heinrich Schuchardt
Am 2. Januar 2022 21:50:35 MEZ schrieb Ilias Apalodimas : >Hi Heinrich, > >> > > > > > >[...] > >> > > > > diff --git a/cmd/bootefi.c b/cmd/bootefi.c >> > > > > index d77d3b6e943d..57f13ce701ec 100644 >> > > > > --- a/cmd/bootefi.c >> > > > > +++ b/cmd/bootefi.c >> > > > > @@ -310,6 +310,8 @@ efi

Re: [PATCH v2] efi_loader: Get rid of kaslr-seed

2022-01-02 Thread Ilias Apalodimas
Hi Heinrich, > > > > > [...] > > > > > diff --git a/cmd/bootefi.c b/cmd/bootefi.c > > > > > index d77d3b6e943d..57f13ce701ec 100644 > > > > > --- a/cmd/bootefi.c > > > > > +++ b/cmd/bootefi.c > > > > > @@ -310,6 +310,8 @@ efi_status_t efi_install_fdt(void *fdt) > > > > > /* Create memory

[PATCH v2] imx: Enable ACTLR.SMP in SPL for i.MX6/7

2022-01-02 Thread Sven Schwermer
Similar to what has been done before with c5437e5b for u-boot proper, we enable the SMP bit for SPL as well. This is necessary when SDP booting straight into Linux, i.e. falcon boot. When SDP boot mode is active, the ROM code does not set this bit which makes the caches not work once activated in L

Re: [PATCH] udoo_neo: fix udoo neo UNDEFINED

2022-01-02 Thread Fabio Estevam
Hi Tommaso, On Sun, Jan 2, 2022 at 3:27 PM Tommaso Merciai wrote: > > get_board_value function fails to get the right board configuration on > second time that is call. This patch move get_board_value function at > spl level, once is call, store the right configuration into gd static > variable g

Re: help on udoo_neo power up on mainline uboot

2022-01-02 Thread Tommaso Merciai
On Sun, Jan 02, 2022 at 02:36:07PM -0300, Fabio Estevam wrote: > Hi Tommaso, > > On Sun, Jan 2, 2022 at 2:14 PM Tommaso Merciai wrote: > > > Hi Fabio, > > I need to create a patch on top of your patch series that re-enable > > boot from uSD. Your series is already merged? just repull from master

[PATCH] udoo_neo: fix udoo neo UNDEFINED

2022-01-02 Thread Tommaso Merciai
get_board_value function fails to get the right board configuration on second time that is call. This patch move get_board_value function at spl level, once is call, store the right configuration into gd static variable gd->board_type and fix the previous error. get_board_value is now call only one

Re: help on udoo_neo power up on mainline uboot

2022-01-02 Thread Fabio Estevam
Hi Tommaso, On Sun, Jan 2, 2022 at 2:14 PM Tommaso Merciai wrote: > Hi Fabio, > I need to create a patch on top of your patch series that re-enable > boot from uSD. Your series is already merged? just repull from master? > If not, can you give me some reference of your branch? > > Or, I just sen

Re: [RFC Patch v2] binman: add support for creating dummy files for external blobs

2022-01-02 Thread Simon Glass
Hi Heiko, On Thu, 2 Dec 2021 at 19:53, Simon Glass wrote: > > Hi Heiko, > > On Mon, 29 Nov 2021 at 02:48, Heiko Thiery wrote: > > > > While converting to binman for an imx8mq board, it has been found that > > building in the u-boot CI fails. This is because an imx8mq requires an > > external bin

Re: help on udoo_neo power up on mainline uboot

2022-01-02 Thread Tommaso Merciai
On Sat, Jan 01, 2022 at 10:24:29PM -0300, Fabio Estevam wrote: > Hi Tommaso, > > On Sat, Jan 1, 2022 at 8:22 PM Tommaso Merciai wrote: > > > Hi Peter, Fabio, > > What do you think about this solution: > > > > First create new static entry in gd: > > > > +++ b/include/asm-generic/global_data.h >

Re: [PATCH v2] console: usb: kbd: Limit poll frequency to improve performance

2022-01-02 Thread Mark Kettenis
> From: Thomas Watson > Date: Wed, 22 Dec 2021 16:51:26 -0600 > > Using the XHCI driver, the function `usb_kbd_poll_for_event` takes > 30-40ms to run. The exact time is dependent on the polling interval the > keyboard requests in its descriptor, and likely cannot be significantly > reduced withou

Re: [PATCH v2] console: usb: kbd: Limit poll frequency to improve performance

2022-01-02 Thread Mark Kettenis
> From: Thomas Watson > Date: Wed, 22 Dec 2021 16:51:26 -0600 > > Using the XHCI driver, the function `usb_kbd_poll_for_event` takes > 30-40ms to run. The exact time is dependent on the polling interval the > keyboard requests in its descriptor, and likely cannot be significantly > reduced withou

[PATCH v2 2/7] common: remove bedbug debugger support

2022-01-02 Thread Ovidiu Panait
Commit 98f705c9cefd ("powerpc: remove 4xx support") removed (in 2017) the last code that made use of bedbug debugger support. Since there aren't any boards left that define either CONFIG_CMD_BEDBUG or a real bedbug_init(), drop this feature from u-boot. Signed-off-by: Ovidiu Panait --- Changes i

Re: [PATCH v3] phy: Track power-on and init counts in uclass

2022-01-02 Thread Peter Robinson
On Thu, Dec 30, 2021 at 7:37 PM Alper Nebi Yasak wrote: > > On boards using the RK3399 SoC, the USB OHCI and EHCI controllers share > the same PHY device instance. While these controllers are being stopped > they both attempt to power-off and deinitialize it, but trying to > power-off the deinitia

[PATCH] env: fat: Add new lines at the end of print statements

2022-01-02 Thread Peter Robinson
Add some new line feeds at the end of print messages to make things easier to read on the console. The other env options do this so this is just an omission for FAT env. Signed-off-by: Peter Robinson --- env/fat.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/env/fa

Re: [PATCH v2] efi_loader: Get rid of kaslr-seed

2022-01-02 Thread Heinrich Schuchardt
On 12/17/21 12:33, Mark Kettenis wrote: Date: Fri, 17 Dec 2021 13:23:59 +0200 From: Ilias Apalodimas Hi Mark, On Fri, Dec 17, 2021 at 12:13:20PM +0100, Mark Kettenis wrote: From: Ilias Apalodimas Date: Fri, 17 Dec 2021 09:06:44 +0200 Right now we unconditionally pass a 'kaslr-seed' prope

Re: [RFC v2 05/20] mmc: call device_probe() after scanning

2022-01-02 Thread Heinrich Schuchardt
On 12/10/21 07:49, AKASHI Takahiro wrote: Every time a mmc bus/port is scanned and a new device is detected, we want to call device_probe() as it will give us a chance to run additional post-processings for some purposes. In particular, support for creating partitions on a device will be adde

Re: [RFC v2 11/20] dm: add event notification

2022-01-02 Thread Heinrich Schuchardt
On 12/10/21 07:49, AKASHI Takahiro wrote: From: Simon Glass This is a draft implementation of event notification mechanism from Simon. Under this scheme, any U-Boot subsystem can register some kind of callback function to a particular event (more event types will be added later) and that functi

Re: [PATCH] net: eth-phy: Demote missing phy-handle log message to debug

2022-01-02 Thread Ramon Fried
On Sat, Jan 1, 2022 at 9:12 PM Marek Vasut wrote: > > Reduce the missing phy-handle log message to debug message. It is > possible for ethernet DT node to have no phy-handle e.g. in case > of a fixed-link connection. Furthermore, drop the FEC: prefix, > which is a copy-paste error and rather print

Re: [RFC v2 19/20] efi_loader: disk: not create BLK device for BLK(IF_TYPE_EFI) devices

2022-01-02 Thread Heinrich Schuchardt
On 12/10/21 07:49, AKASHI Takahiro wrote: When we create an efi_disk device with an UEFI application using driver binding protocol, the 'efi_driver' framework tries to create a corresponding block device(UCLASS_BLK/IF_TYPE_EFI). This will lead to I assume this is IF_TYPE_EFI_LOADER now? Best r

Re: [RFC v2 15/20] efi_loader: disk: a helper function to create efi_disk objects from udevice

2022-01-02 Thread Heinrich Schuchardt
On 12/10/21 07:49, AKASHI Takahiro wrote: Add efi_disk_probe() function. This function creates an efi_disk object for a raw disk device (UCLASS_BLK) and additional objects for related partitions (UCLASS_PARTITION). So this function is expected to be called through driver model's "probe" interfac