U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] configs: j784s4_evm : Increase Dynamic memory allocation size
@ 2024-07-15 17:43 Udit Kumar
  2024-07-16 20:05 ` Francesco Dolcini
  2024-07-20 17:10 ` Tom Rini
  0 siblings, 2 replies; 8+ messages in thread
From: Udit Kumar @ 2024-07-15 17:43 UTC (permalink / raw)
  To: trini
  Cc: nm, u-boot, j-humphreys, marcel.ziswiler, vigneshr, b-padhi,
	Udit Kumar

Increase malloc size to 32 MB to align with other J7
family devices.

Signed-off-by: Udit Kumar <u-kumar1@ti.com>
---
 configs/j784s4_evm_a72_defconfig | 1 +
 configs/j784s4_evm_r5_defconfig  | 1 +
 2 files changed, 2 insertions(+)

diff --git a/configs/j784s4_evm_a72_defconfig b/configs/j784s4_evm_a72_defconfig
index 3cfa006f86..520a53b12f 100644
--- a/configs/j784s4_evm_a72_defconfig
+++ b/configs/j784s4_evm_a72_defconfig
@@ -1,5 +1,6 @@
 CONFIG_ARM=y
 CONFIG_ARCH_K3=y
+CONFIG_SYS_MALLOC_LEN=0x2000000
 CONFIG_SYS_MALLOC_F_LEN=0x8000
 CONFIG_SPL_GPIO=y
 CONFIG_SPL_LIBCOMMON_SUPPORT=y
diff --git a/configs/j784s4_evm_r5_defconfig b/configs/j784s4_evm_r5_defconfig
index 7ace661526..543b0a50d7 100644
--- a/configs/j784s4_evm_r5_defconfig
+++ b/configs/j784s4_evm_r5_defconfig
@@ -1,5 +1,6 @@
 CONFIG_ARM=y
 CONFIG_ARCH_K3=y
+CONFIG_SYS_MALLOC_LEN=0x2000000
 CONFIG_SYS_MALLOC_F_LEN=0x10000
 CONFIG_SPL_GPIO=y
 CONFIG_SPL_LIBCOMMON_SUPPORT=y
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH] configs: j784s4_evm : Increase Dynamic memory allocation size
  2024-07-15 17:43 [PATCH] configs: j784s4_evm : Increase Dynamic memory allocation size Udit Kumar
@ 2024-07-16 20:05 ` Francesco Dolcini
  2024-07-17  4:10   ` Kumar, Udit
  2024-07-20 17:10 ` Tom Rini
  1 sibling, 1 reply; 8+ messages in thread
From: Francesco Dolcini @ 2024-07-16 20:05 UTC (permalink / raw)
  To: Udit Kumar
  Cc: trini, nm, u-boot, j-humphreys, marcel.ziswiler, vigneshr,
	b-padhi

Hello,

On Mon, Jul 15, 2024 at 11:13:01PM +0530, Udit Kumar wrote:
> Increase malloc size to 32 MB to align with other J7
> family devices.

Is this needed for any specific reason? I am asking to understand if
other boards using the same SOC should be updated to prevent
$random_issue.

Francesco


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] configs: j784s4_evm : Increase Dynamic memory allocation size
  2024-07-16 20:05 ` Francesco Dolcini
@ 2024-07-17  4:10   ` Kumar, Udit
  2024-07-17  7:33     ` Francesco Dolcini
  2024-07-17 14:09     ` Nishanth Menon
  0 siblings, 2 replies; 8+ messages in thread
From: Kumar, Udit @ 2024-07-17  4:10 UTC (permalink / raw)
  To: Francesco Dolcini
  Cc: trini, nm, u-boot, j-humphreys, marcel.ziswiler, vigneshr,
	b-padhi, u-kumar1

Hi Francesco

On 7/17/2024 1:35 AM, Francesco Dolcini wrote:
> Hello,
>
> On Mon, Jul 15, 2024 at 11:13:01PM +0530, Udit Kumar wrote:
>> Increase malloc size to 32 MB to align with other J7
>> family devices.
> Is this needed for any specific reason? I am asking to understand if
> other boards using the same SOC should be updated to prevent
> $random_issue.

In our downstream version, we are seeing an issue , while using DFU to MMC

Please see

https://gist.github.com/uditkumarti/b8209f61eff3154f6eb288ba63715263#file-gistfile1-txt-L82 



Since DFU is not supported yet in mainline u-boot, so I avoided to 
mention that failure.

Also this change is generic, so i thought of pushing it now instead of 
waiting for DFU series.


> Francesco
>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] configs: j784s4_evm : Increase Dynamic memory allocation size
  2024-07-17  4:10   ` Kumar, Udit
@ 2024-07-17  7:33     ` Francesco Dolcini
  2024-07-17 14:10       ` Nishanth Menon
  2024-07-17 14:09     ` Nishanth Menon
  1 sibling, 1 reply; 8+ messages in thread
From: Francesco Dolcini @ 2024-07-17  7:33 UTC (permalink / raw)
  To: Kumar, Udit
  Cc: Francesco Dolcini, trini, nm, u-boot, j-humphreys,
	marcel.ziswiler, vigneshr, b-padhi

Hello,

On Wed, Jul 17, 2024 at 09:40:11AM +0530, Kumar, Udit wrote:
> On 7/17/2024 1:35 AM, Francesco Dolcini wrote:
> > On Mon, Jul 15, 2024 at 11:13:01PM +0530, Udit Kumar wrote:
> > > Increase malloc size to 32 MB to align with other J7
> > > family devices.
> > Is this needed for any specific reason? I am asking to understand if
> > other boards using the same SOC should be updated to prevent
> > $random_issue.
> Since DFU is not supported yet in mainline u-boot, so I avoided to mention
> that failure.
> 
> Also this change is generic, so i thought of pushing it now instead of
> waiting for DFU series.

Thanks for the update, on our board DFU works fine on our j784s4 based
board (UUU or UMS are not working, but this is off topic for this
conversation ;-)

Francesco


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] configs: j784s4_evm : Increase Dynamic memory allocation size
  2024-07-17  4:10   ` Kumar, Udit
  2024-07-17  7:33     ` Francesco Dolcini
@ 2024-07-17 14:09     ` Nishanth Menon
  2024-07-17 14:22       ` Francesco Dolcini
  1 sibling, 1 reply; 8+ messages in thread
From: Nishanth Menon @ 2024-07-17 14:09 UTC (permalink / raw)
  To: Kumar, Udit
  Cc: Francesco Dolcini, trini, u-boot, j-humphreys, marcel.ziswiler,
	vigneshr, b-padhi

On 09:40-20240717, Kumar, Udit wrote:
> Hi Francesco
> 
> On 7/17/2024 1:35 AM, Francesco Dolcini wrote:
> > Hello,
> > 
> > On Mon, Jul 15, 2024 at 11:13:01PM +0530, Udit Kumar wrote:
> > > Increase malloc size to 32 MB to align with other J7
> > > family devices.
> > Is this needed for any specific reason? I am asking to understand if
> > other boards using the same SOC should be updated to prevent
> > $random_issue.
> 
> In our downstream version, we are seeing an issue , while using DFU to MMC
> 
> Please see
> 
> https://gist.github.com/uditkumarti/b8209f61eff3154f6eb288ba63715263#file-gistfile1-txt-L82
> 
> 
> 
> Since DFU is not supported yet in mainline u-boot, so I avoided to mention
> that failure.
> 
> Also this change is generic, so i thought of pushing it now instead of
> waiting for DFU series.

if we are going to repeat this over and over - does it make sense to
have this in include? so that *other* board manufacturers do not need to
re-discover this?


-- 
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] configs: j784s4_evm : Increase Dynamic memory allocation size
  2024-07-17  7:33     ` Francesco Dolcini
@ 2024-07-17 14:10       ` Nishanth Menon
  0 siblings, 0 replies; 8+ messages in thread
From: Nishanth Menon @ 2024-07-17 14:10 UTC (permalink / raw)
  To: Francesco Dolcini
  Cc: Kumar, Udit, trini, u-boot, j-humphreys, marcel.ziswiler,
	vigneshr, b-padhi

On 09:33-20240717, Francesco Dolcini wrote:
> Hello,
> 
> On Wed, Jul 17, 2024 at 09:40:11AM +0530, Kumar, Udit wrote:
> > On 7/17/2024 1:35 AM, Francesco Dolcini wrote:
> > > On Mon, Jul 15, 2024 at 11:13:01PM +0530, Udit Kumar wrote:
> > > > Increase malloc size to 32 MB to align with other J7
> > > > family devices.
> > > Is this needed for any specific reason? I am asking to understand if
> > > other boards using the same SOC should be updated to prevent
> > > $random_issue.
> > Since DFU is not supported yet in mainline u-boot, so I avoided to mention
> > that failure.
> > 
> > Also this change is generic, so i thought of pushing it now instead of
> > waiting for DFU series.
> 
> Thanks for the update, on our board DFU works fine on our j784s4 based
> board (UUU or UMS are not working, but this is off topic for this
> conversation ;-)

I still think your comment is valid - commit message does need to
explain something like "make space for future standard features such as
DFU etc.."

-- 
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] configs: j784s4_evm : Increase Dynamic memory allocation size
  2024-07-17 14:09     ` Nishanth Menon
@ 2024-07-17 14:22       ` Francesco Dolcini
  0 siblings, 0 replies; 8+ messages in thread
From: Francesco Dolcini @ 2024-07-17 14:22 UTC (permalink / raw)
  To: Nishanth Menon
  Cc: Kumar, Udit, Francesco Dolcini, trini, u-boot, j-humphreys,
	marcel.ziswiler, vigneshr, b-padhi

On Wed, Jul 17, 2024 at 09:09:13AM -0500, Nishanth Menon wrote:
> On 09:40-20240717, Kumar, Udit wrote:
> > On 7/17/2024 1:35 AM, Francesco Dolcini wrote:
> > > On Mon, Jul 15, 2024 at 11:13:01PM +0530, Udit Kumar wrote:
> > > > Increase malloc size to 32 MB to align with other J7
> > > > family devices.
> > > Is this needed for any specific reason? I am asking to understand if
> > > other boards using the same SOC should be updated to prevent
> > > $random_issue.
> > 
> > In our downstream version, we are seeing an issue , while using DFU to MMC
> > 
> > Please see
> > 
> > https://gist.github.com/uditkumarti/b8209f61eff3154f6eb288ba63715263#file-gistfile1-txt-L82
> > 
> > 
> > 
> > Since DFU is not supported yet in mainline u-boot, so I avoided to mention
> > that failure.
> > 
> > Also this change is generic, so i thought of pushing it now instead of
> > waiting for DFU series.
> 
> if we are going to repeat this over and over - does it make sense to
> have this in include? so that *other* board manufacturers do not need to
> re-discover this?

The reason we (our board) might be fine, is that we have

default 0x2000000 if ARCH_ROCKCHIP || ARCH_OMAP2PLUS || ARCH_MESON || ARCH_K3

from the downstream TI branch (the specific board we have with J784S4 is
not in mainline yet).

Francesco


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] configs: j784s4_evm : Increase Dynamic memory allocation size
  2024-07-15 17:43 [PATCH] configs: j784s4_evm : Increase Dynamic memory allocation size Udit Kumar
  2024-07-16 20:05 ` Francesco Dolcini
@ 2024-07-20 17:10 ` Tom Rini
  1 sibling, 0 replies; 8+ messages in thread
From: Tom Rini @ 2024-07-20 17:10 UTC (permalink / raw)
  To: Udit Kumar; +Cc: nm, u-boot, j-humphreys, marcel.ziswiler, vigneshr, b-padhi

On Mon, 15 Jul 2024 23:13:01 +0530, Udit Kumar wrote:

> Increase malloc size to 32 MB to align with other J7
> family devices.
> 
> 

Applied to u-boot/master, thanks!

-- 
Tom



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-07-20 17:10 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-15 17:43 [PATCH] configs: j784s4_evm : Increase Dynamic memory allocation size Udit Kumar
2024-07-16 20:05 ` Francesco Dolcini
2024-07-17  4:10   ` Kumar, Udit
2024-07-17  7:33     ` Francesco Dolcini
2024-07-17 14:10       ` Nishanth Menon
2024-07-17 14:09     ` Nishanth Menon
2024-07-17 14:22       ` Francesco Dolcini
2024-07-20 17:10 ` Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox