diff mbox

[U-Boot] armv8:ls1012a: Update bootargs for fast-boot

Message ID 1476105315-6091-1-git-send-email-pratiyush.srivastava@nxp.com
State Accepted
Delegated to: York Sun
Headers show

Commit Message

Pratiyush Srivastava Oct. 10, 2016, 1:15 p.m. UTC
Add optimization parameters like "quiet" in bootargs to reduce the system
boot time

Signed-off-by: Pratiyush Mohan Srivastava <pratiyush.srivastava@nxp.com>
Signed-off-by: Harninder Rai <harninder.rai@nxp.com>
---
 include/configs/ls1012a_common.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

York Sun Oct. 10, 2016, 2:57 p.m. UTC | #1
On 10/10/2016 12:36 AM, Pratiyush Srivastava wrote:
> Add optimization parameters like "quiet" in bootargs to reduce the system
> boot time
>
> Signed-off-by: Pratiyush Mohan Srivastava <pratiyush.srivastava@nxp.com>
> Signed-off-by: Harninder Rai <harninder.rai@nxp.com>
> ---
>  include/configs/ls1012a_common.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/include/configs/ls1012a_common.h b/include/configs/ls1012a_common.h
> index 5fb6c47..a0ef2cd 100644
> --- a/include/configs/ls1012a_common.h
> +++ b/include/configs/ls1012a_common.h
> @@ -120,7 +120,7 @@
>  	"console=ttyAMA0,38400n8\0"
>
>  #define CONFIG_BOOTARGS		"console=ttyS0,115200 root=/dev/ram0 " \
> -				"earlycon=uart8250,mmio,0x21c0500"
> +				"earlycon=uart8250,mmio,0x21c0500 quiet lpj=250000"
>  #define CONFIG_BOOTCOMMAND		"sf probe 0:0; sf read $kernel_load "\
>  					"$kernel_start $kernel_size && "\
>  					"bootm $kernel_load"
>

How much improvement do you get by using "quiet"? You didn't mention lpj 
in the commit message. Did you get the number from kernel log? LS1012A 
is a single core SoC. How much time do you save by setting lpj?

York
Rai Harninder Oct. 11, 2016, 1:43 p.m. UTC | #2
> 
> How much improvement do you get by using "quiet"?
We see around 3-4 seconds being saved on ls1012

 You didn't mention lpj
> in the commit message. Did you get the number from kernel log? LS1012A is
> a single core SoC. How much time do you save by setting lpj?
Yes, we got the number from kernel log. I don't exactly remember how much but I think it was couple of 10's of milliseconds

> 
> York
York Sun Nov. 23, 2016, 12:50 a.m. UTC | #3
On 10/10/2016 12:36 AM, Pratiyush Srivastava wrote:
> Add optimization parameters like "quiet" in bootargs to reduce the system
> boot time
>
> Signed-off-by: Pratiyush Mohan Srivastava <pratiyush.srivastava@nxp.com>
> Signed-off-by: Harninder Rai <harninder.rai@nxp.com>
> ---

Applied to fsl-qoriq, awaiting upstream. Thanks.

York
diff mbox

Patch

diff --git a/include/configs/ls1012a_common.h b/include/configs/ls1012a_common.h
index 5fb6c47..a0ef2cd 100644
--- a/include/configs/ls1012a_common.h
+++ b/include/configs/ls1012a_common.h
@@ -120,7 +120,7 @@ 
 	"console=ttyAMA0,38400n8\0"
 
 #define CONFIG_BOOTARGS		"console=ttyS0,115200 root=/dev/ram0 " \
-				"earlycon=uart8250,mmio,0x21c0500"
+				"earlycon=uart8250,mmio,0x21c0500 quiet lpj=250000"
 #define CONFIG_BOOTCOMMAND		"sf probe 0:0; sf read $kernel_load "\
 					"$kernel_start $kernel_size && "\
 					"bootm $kernel_load"