[PATCH] lz4: Fix unaligned accesses

2021-03-17 Thread karl . beldan
From: Karl Beldan Signed-off-by: Karl Beldan --- lib/lz4_wrapper.c | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/lib/lz4_wrapper.c b/lib/lz4_wrapper.c index e0f7d3688e..cdbcd05bd4 100644 --- a/lib/lz4_wrapper.c +++ b/lib/lz4_wrapper.c @@ -11,9 +11,18

[U-Boot] [PATCH] arm64: show_regs: Dump the LRs HW values

2018-02-20 Thread Karl Beldan
arm64 :show_regs: show the address before relocation") Signed-off-by: Karl Beldan <karl.beldan+...@gmail.com> --- arch/arm/lib/interrupts_64.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/arch/arm/lib/interrupts_64.c b/arch/arm/lib/interrupts_64.c

Re: [U-Boot] [PATCH] arm64 :show_regs: show the address before relocation

2018-02-05 Thread Karl Beldan
On Sun, Feb 4, 2018 at 1:39 PM, Simon Glass <s...@chromium.org> wrote: > Hi, > > On 22 January 2018 at 12:01, Karl Beldan <karl.bel...@gmail.com> wrote: >> >> On Tue, Nov 28, 2017 at 10:08:08AM +0800, Peng Fan wrote: >> > After relocation, when error hap

Re: [U-Boot] [PATCH] arm64 :show_regs: show the real hardware register even after relocation

2018-01-23 Thread Karl Beldan
On Tue, Jan 23, 2018 at 10:47:11AM +0800, Peng Fan wrote: > Not only show the calculated value after relocation, also show > the real hardware register value. > > Signed-off-by: Peng Fan <peng@nxp.com> > Reported-by: Karl Beldan <karl.bel...@gmail.com> > --- &

Re: [U-Boot] [PATCH] arm64 :show_regs: show the address before relocation

2018-01-22 Thread Karl Beldan
On Tue, Nov 28, 2017 at 10:08:08AM +0800, Peng Fan wrote: > After relocation, when error happends, it is hard to track > ELR and LR with asm file objdumped from elf file. > > So subtract the gd->reloc_off the reflect the compliation address. > > Signed-off-by: Peng Fan > --- >

[U-Boot] [PATCH 5/5] cmd: Kconfig: Fix CMD_UBIFS dependencies

2017-07-12 Thread Karl Beldan
From: Karl Beldan <karl.beldan-...@sagemcom.com> Remove the ARCH_SUNXI and RBTREE dependencies. CMD_UBIFS already gets RBTREE from CMD_UBI (from MTD_UBI), and should the first become independant from the latter, there would likely be a dependency on MTD_UBI anyway. Cc: Boris Bre

[U-Boot] [PATCH 3/5] ubi: Kconfig: Make MTD_UBI select MTD_PARTITIONS

2017-07-12 Thread Karl Beldan
From: Karl Beldan <karl.beldan-...@sagemcom.com> This missing dependency has probably remained under the radar because MTD_PARTITIONS is still whitelisted. Signed-off-by: Karl Beldan <karl.beldan-...@sagemcom.com> --- drivers/mtd/ubi/Kconfig | 1 + 1 file changed, 1 insertion(+)

[U-Boot] [PATCH 4/5] cmd: Kconfig: Make CMD_UBI select CMD_MTDPARTS

2017-07-12 Thread Karl Beldan
From: Karl Beldan <karl.beldan-...@sagemcom.com> Many configs still define CMD_MTDPARTS in their non-Kconfig but CMD_MTDPARTS has now moved to Kconfig. Signed-off-by: Karl Beldan <karl.beldan-...@sagemcom.com> --- cmd/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/K

[U-Boot] [PATCH 2/5] cmd: Kconfig: Fix a dependency of CMD_MTDPARTS

2017-07-12 Thread Karl Beldan
From: Karl Beldan <karl.beldan-...@sagemcom.com> Remove the ARCH_SUNXI dependency. Cc: Maxime Ripard <maxime.rip...@free-electrons.com> Cc: Jagan Teki <ja...@openedev.com> Signed-off-by: Karl Beldan <karl.beldan-...@sagemcom.com> --- cmd/Kconfig | 1 - 1 file changed, 1

[U-Boot] [PATCH 1/5] ubi: Kconfig: Fix MTD_UBI selection dependency

2017-07-12 Thread Karl Beldan
From: Karl Beldan <karl.beldan-...@sagemcom.com> Remove the ARCH_SUNXI dependency on selection of RBTREE. Cc: Boris Brezillon <boris.brezil...@free-electrons.com> Cc: Maxime Ripard <maxime.rip...@free-electrons.com> Cc: Jagan Teki <ja...@openedev.com> Signed-off-by:

Re: [U-Boot] [PATCH v2 0/5] Remove calls from net drivers to legacy miiphy_register() entry-point

2016-08-20 Thread Karl Beldan
On Fri, Aug 19, 2016 at 01:48:00PM -0500, Joe Hershberger wrote: > Hi Karl, > > On Fri, Aug 19, 2016 at 3:14 AM, Karl Beldan <kbel...@baylibre.com> wrote: > > On Mon, Aug 08, 2016 at 11:28:36AM -0500, Joe Hershberger wrote: > >> > >> This is an effort to m

[U-Boot] [PATCH] net: davinci_emac: Restore the internal MDIO accessors return values

2016-08-20 Thread Karl Beldan
-off-by: Karl Beldan <karl.beldan+...@gmail.com> --- drivers/net/davinci_emac.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/drivers/net/davinci_emac.c b/drivers/net/davinci_emac.c index ca457b8..3103441 100644 --- a/drivers/net/davinci_emac.c +++ b/drive

Re: [U-Boot] [PATCH v2 0/5] Remove calls from net drivers to legacy miiphy_register() entry-point

2016-08-19 Thread Karl Beldan
On Mon, Aug 08, 2016 at 11:28:36AM -0500, Joe Hershberger wrote: > > This is an effort to migrate closer to the phylib approach so that a > new DM approach can be developed from a single starting point. The more > of this legacy code that can be removed, the easier it will be to move > forward. >

[U-Boot] [PATCH v2 0/2] davinci emac dcache ops on buffers

2016-08-15 Thread Karl Beldan
Changes from v1: - Prefer dcache_op(base, base + ALIGN(len, PKTALIGN)) to dcache_op(base, round_up(base + len, ARCH_DMA_MINALIGN)) as suggested by Tom and Joe. - In v2_1/2, explicitly align the top tx buffers only since the rx top ones are obviously already properly aligned. Karl

[U-Boot] [PATCH v2 2/2] net: davinci_emac: Invalidate only the received portion of a buffer

2016-08-15 Thread Karl Beldan
ATM when receiving a packet the whole buffer is invalidated, this change optimizes this behaviour. Signed-off-by: Karl Beldan <karl.beldan+...@gmail.com> --- drivers/net/davinci_emac.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/net/davinci_em

[U-Boot] [PATCH v2 1/2] net: davinci_emac: Round up top tx buffer boundaries for dcache ops

2016-08-15 Thread Karl Beldan
check_cache_range() warns that the top boundaries are not properly aligned when flushing or invalidating the buffers and make these operations fail. This gets rid of the remaining warnings: CACHE: Misaligned operation at range Signed-off-by: Karl Beldan <karl.beldan+...@gmail.com> --- d

Re: [U-Boot] [PATCH 2/3] net: davinci_emac: Round up top buffer boundaries for dcache ops

2016-08-15 Thread Karl Beldan
On Sun, Aug 14, 2016 at 07:43:56PM +, Karl Beldan wrote: > On Sun, Aug 14, 2016 at 11:47:25AM -0400, Tom Rini wrote: > > On Sun, Aug 14, 2016 at 03:03:16PM +0000, Karl Beldan wrote: > > > > > check_cache_range() warns that the top boundaries are not properly >

Re: [U-Boot] [PATCH 2/3] net: davinci_emac: Round up top buffer boundaries for dcache ops

2016-08-14 Thread Karl Beldan
On Sun, Aug 14, 2016 at 11:47:25AM -0400, Tom Rini wrote: > On Sun, Aug 14, 2016 at 03:03:16PM +0000, Karl Beldan wrote: > > > check_cache_range() warns that the top boundaries are not properly > > aligned while flushing and invalidating the buffers and make these > > ope

[U-Boot] [PATCH 1/3] net: davinci_emac: Remove useless dcache ops on descriptors

2016-08-14 Thread Karl Beldan
: Misaligned operation at range Signed-off-by: Karl Beldan <karl.beldan+...@gmail.com> --- drivers/net/davinci_emac.c | 28 1 file changed, 28 deletions(-) diff --git a/drivers/net/davinci_emac.c b/drivers/net/davinci_emac.c index b030498..947bfab 100644 --- a/drive

[U-Boot] [PATCH 2/3] net: davinci_emac: Round up top buffer boundaries for dcache ops

2016-08-14 Thread Karl Beldan
are not. This gets rid of the warnings: CACHE: Misaligned operation at range Signed-off-by: Karl Beldan <karl.beldan+...@gmail.com> --- drivers/net/davinci_emac.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/davinci_emac.c b/drivers/net/davinci_emac.c index 9

[U-Boot] [PATCH 3/3] net: davinci_emac: Invalidate only the received portion of a buffer

2016-08-14 Thread Karl Beldan
ATM when receiving a packet the whole buffer is invalidated, this change optimizes this behaviour. Signed-off-by: Karl Beldan <karl.beldan+...@gmail.com> --- drivers/net/davinci_emac.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/net/davinci_em

[U-Boot] [PATCH v2] mkimage: Fix argument parsing with signature comment

2016-08-02 Thread Karl Beldan
Inform getopt that '-c' requires a parameter. Fixes: a02221f29deb ("mkimage: Convert to use getopt()") Signed-off-by: Karl Beldan <kbel...@baylibre.com> --- tools/mkimage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/mkimage.c b/tools/mkimage

[U-Boot] [PATCH] configs: Fix mmc rescan misuses

2016-08-02 Thread Karl Beldan
This follows 9fd383724cf4 ("mmc: don't allow extra cmdline arguments"), and affects omapl138_lcdk and omap3_evm_quick_mmc. Signed-off-by: Karl Beldan <kbel...@baylibre.com> --- include/configs/omap3_evm_quick_mmc.h | 2 +- include/configs/omapl138_lcdk.h | 2 +- 2

[U-Boot] [PATCH] mkimage: Fix argument parsing with signature comment

2016-08-02 Thread Karl Beldan
From: Karl Beldan <karl.bel...@baylibre.com> Signed-off-by: Karl Beldan <karl.bel...@baylibre.com> --- tools/mkimage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/mkimage.c b/tools/mkimage.c index d993958..3c594a0 100644 --- a/tools/mkimage.c +++ b/too

[U-Boot] [PATCH] mkimage: Fix argument parsing with signature comment

2016-08-02 Thread Karl Beldan
Signed-off-by: Karl Beldan <kbel...@baylibre.com> --- tools/mkimage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/mkimage.c b/tools/mkimage.c index d993958..3c594a0 100644 --- a/tools/mkimage.c +++ b/tools/mkimage.c @@ -140,7 +140,7 @@ static void process_ar

[U-Boot] [PATCH] Fix ubi part cmd re-entrancy

2010-09-23 Thread Karl Beldan
Commit 2ee951ba (UBI: Enable re-initializing of the ubi part command) reset mtd_devs in ubi_exit() but missed ubi_init()'s failure path. Signed-off-by: Karl Beldan karl.bel...@gmail.com Cc: Stefan Roese s...@denx.de --- drivers/mtd/ubi/build.c |1 + 1 files changed, 1 insertions(+), 0

[U-Boot] UBI: initialise update marker

2010-06-11 Thread Karl Beldan
I suggest someone apply commit ff99879 from Linux. Cheers, -- Karl ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] [PATCH] malloc: sbrk() should return MORECORE_FAILURE instead of NULL on failure

2010-04-06 Thread karl . beldan
Signed-off-by: Karl Beldan karl.bel...@gmail.com --- common/dlmalloc.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/common/dlmalloc.c b/common/dlmalloc.c index 205fc40..2276532 100644 --- a/common/dlmalloc.c +++ b/common/dlmalloc.c @@ -1515,7 +1515,7 @@ void *sbrk