diff mbox

[U-Boot] ARM: tegra: increase console buffer size and sys args num

Message ID 844m6cwe09.wl-Peter.Chubb@data61.csiro.au
State Accepted
Commit 64a4fe74014b31df767e23ee67ae61eba807f6ca
Delegated to: Tom Warren
Headers show

Commit Message

Chubb, Peter (Data61, Eveleigh) Aug. 23, 2016, midnight UTC
The Linux-for-Tegra kernel uses a very long command line.

The default value of CONFIG_SYS_CBSIZE is too small to print out the
long command line and causes a message like:
  bootarg overflow 602+0+0+1 > 512
on the console, and the board refuses to boot.

The default value of CONFIG_SYS_MAXARGS is too small to add a long
long command line, and the kernel won't boot without the complete
bootargs.

Increasing these two config options solves this problem.

(patch cherry-picked from the NVIDIA u-boot source; original author
Bryan Wu)

Signed-off-by: Bryan Wu <pengw@nvidia.com>
Signed-off-by: Peter Chubb <Peter.Chubb@data61.csiro.au>
---
 include/configs/tegra-common.h | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Comments

Stephen Warren Aug. 23, 2016, 4:04 p.m. UTC | #1
On 08/22/2016 06:00 PM, Peter Chubb wrote:
>
> The Linux-for-Tegra kernel uses a very long command line.

There should be a From: line here indicating that Bryan is the author; 
did you actually "git cherry-pick" this, or apply it in some other 
manner? Perhaps you're notusing "git send-email" to send the message? 
That might explain the unexpected extra blank line right at the top of 
the message.

Aside from those issues, this looks fine.
Chubb, Peter (Data61, Eveleigh) Aug. 23, 2016, 10:21 p.m. UTC | #2
>>>>> "Stephen" == Stephen Warren <swarren@wwwdotorg.org> writes:

Stephen> On 08/22/2016 06:00 PM, Peter Chubb wrote:
>> 
>> The Linux-for-Tegra kernel uses a very long command line.

Stephen> There should be a From: line here indicating that Bryan is
Stephen> the author; did you actually "git cherry-pick" this, or apply
Stephen> it in some other manner? Perhaps you're notusing "git
Stephen> send-email" to send the message?  That might explain the
Stephen> unexpected extra blank line right at the top of the message.

I can't use git send-mail, because our corporate emailer refuses to
send with a From line that isn't me.  So I did git format-patch and
imported it into my email client.

Stephen> Aside from those issues, this looks fine.

So can I add an acked-by line from you, and resubmit (with, if I can
work out how to do it, the original From line?)
Stephen Warren Aug. 23, 2016, 10:35 p.m. UTC | #3
On 08/23/2016 04:21 PM, Peter Chubb wrote:
>>>>>> "Stephen" == Stephen Warren <swarren@wwwdotorg.org> writes:
>
> Stephen> On 08/22/2016 06:00 PM, Peter Chubb wrote:
>>>
>>> The Linux-for-Tegra kernel uses a very long command line.
>
> Stephen> There should be a From: line here indicating that Bryan is
> Stephen> the author; did you actually "git cherry-pick" this, or apply
> Stephen> it in some other manner? Perhaps you're notusing "git
> Stephen> send-email" to send the message?  That might explain the
> Stephen> unexpected extra blank line right at the top of the message.
>
> I can't use git send-mail, because our corporate emailer refuses to
> send with a From line that isn't me.  So I did git format-patch and
> imported it into my email client.

git send-email always uses your own name/address for the SMTP sender and 
RFC822 header From:. The From: line I'm talking about here is something 
in the message body. git send-email automatically generates that if the 
From: line in the patch file it's sending doesn't match your configured 
name/email.

Or tl;dr, I think you'll find the git send-email works fine for you.

> Stephen> Aside from those issues, this looks fine.
>
> So can I add an acked-by line from you, and resubmit (with, if I can
> work out how to do it, the original From line?)

Well, I didn't ack the patch explicitly since it had some issues I'd 
like to be addressed, but I suppose if you do address them then you can 
add acked-by from swarren@nvidia.com on a future posting.
diff mbox

Patch

diff --git a/include/configs/tegra-common.h b/include/configs/tegra-common.h
index 7b0940a..6bfd7b2 100644
--- a/include/configs/tegra-common.h
+++ b/include/configs/tegra-common.h
@@ -76,11 +76,12 @@ 
  * Increasing the size of the IO buffer as default nfsargs size is more
  *  than 256 and so it is not possible to edit it
  */
-#define CONFIG_SYS_CBSIZE		(256 * 2) /* Console I/O Buffer Size */
+#define CONFIG_SYS_CBSIZE		(1024 * 2) /* Console I/O Buffer Size */
 /* Print Buffer Size */
 #define CONFIG_SYS_PBSIZE		(CONFIG_SYS_CBSIZE + \
 					sizeof(CONFIG_SYS_PROMPT) + 16)
-#define CONFIG_SYS_MAXARGS		32	/* max number of command args */
+#define CONFIG_SYS_MAXARGS		64	/* max number of command args */
+
 /* Boot Argument Buffer Size */
 #define CONFIG_SYS_BARGSIZE		(CONFIG_SYS_CBSIZE)