All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Optimize execution on FVP and Foundation platform
@ 2020-02-04 14:39 Bertrand
  2020-02-04 14:52 ` [meta-arm] " Nicolas Dechesne
  2020-02-05 15:43 ` Jon Mason
  0 siblings, 2 replies; 4+ messages in thread
From: Bertrand @ 2020-02-04 14:39 UTC (permalink / raw)
  To: meta-arm; +Cc: nd, Bertrand Marquis

Add an extra partition to the disk image generated for FVP and
Foundation platform (to be used for user data or extra usage). The
partition is created on the hard drive but is not formated.
Speed up running on FVP and Foundation by optimizing model parameters:
- disable options that are already set by default
- disable cache modelling on FVP
- disable secure memory
- disable real time on Foundation (prevents timeout as execution is a
lot slower then on a real system)

Change-Id: I20d613bd8b0f4cb7df87c294d45b9f718f6a8ed3
Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
---
 meta-arm-bsp/conf/machine/fvp-common/fvp.inc              | 5 +++++
 .../fvp-common/files/start-foundation-armv8.sh            | 4 ++--
 .../recipes-devtools/fvp-common/files/start-fvp-base.sh   | 8 +++-----
 3 files changed, 10 insertions(+), 7 deletions(-)

diff --git a/meta-arm-bsp/conf/machine/fvp-common/fvp.inc b/meta-arm-bsp/conf/machine/fvp-common/fvp.inc
index 606ea32..6bf33f3 100644
--- a/meta-arm-bsp/conf/machine/fvp-common/fvp.inc
+++ b/meta-arm-bsp/conf/machine/fvp-common/fvp.inc
@@ -27,6 +27,11 @@ DISK_IMG_PARTITION2_SIZE = "2048"
 DISK_IMG_PARTITION2_FSTYPE = "ext4"
 DISK_IMG_PARTITION2_CONTENT = "rootfs"
 
+# Empty third partition (8G - 2048M - 128M)
+DISK_IMG_PARTITION3_SIZE = "6016"
+DISK_IMG_PARTITION3_FSTYPE = ""
+DISK_IMG_PARTITION3_CONTENT = ""
+
 SERIAL_CONSOLES = "115200;ttyAMA0"
 
 PREFERRED_PROVIDER_virtual/kernel = "linux-yocto"
diff --git a/meta-arm-bsp/recipes-devtools/fvp-common/files/start-foundation-armv8.sh b/meta-arm-bsp/recipes-devtools/fvp-common/files/start-foundation-armv8.sh
index 4e45a04..ca39bee 100755
--- a/meta-arm-bsp/recipes-devtools/fvp-common/files/start-foundation-armv8.sh
+++ b/meta-arm-bsp/recipes-devtools/fvp-common/files/start-foundation-armv8.sh
@@ -40,10 +40,10 @@ DISK_FILE=""
 FOUNDATION_PLAT_EXE="Foundation_Platform"
 
 # Foundation Platform arguments
+# 4 cores
+# gicv3 emulation (required for hardware virtualisation)
 FOUNDATION_PLAT_ARGS=" \
     --cores=4 \
-    --secure-memory \
-    --use-real-time \
     --gicv3"
 
 # Foundation Platform user arguments
diff --git a/meta-arm-bsp/recipes-devtools/fvp-common/files/start-fvp-base.sh b/meta-arm-bsp/recipes-devtools/fvp-common/files/start-fvp-base.sh
index b6e237b..1d3c206 100755
--- a/meta-arm-bsp/recipes-devtools/fvp-common/files/start-fvp-base.sh
+++ b/meta-arm-bsp/recipes-devtools/fvp-common/files/start-fvp-base.sh
@@ -38,13 +38,11 @@ DISK_FILE=""
 FVPEXEC="FVP_Base_RevC-2xAEMv8A"
 
 # FVP arguments
+# enable virtio network
+# disable cache modelling to improve performances
 FVPARGS=" \
     -C bp.virtio_net.enabled=1 \
-    -C pctl.startup=0.0.0.0 \
-    -C bp.secure_memory=1 \
-    -C bp.tzc_400.diagnostics=1 \
-    -C cluster0.NUM_CORES=4 \
-    -C cluster1.NUM_CORES=4"
+    -C cache_state_modelled=0"
 
 # FVP user arguments
 EXTRA_ARGS=""
-- 
2.17.1


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

* Re: [meta-arm] [PATCH] Optimize execution on FVP and Foundation platform
  2020-02-04 14:39 [PATCH] Optimize execution on FVP and Foundation platform Bertrand
@ 2020-02-04 14:52 ` Nicolas Dechesne
  2020-02-04 15:02   ` Jon Mason
  2020-02-05 15:43 ` Jon Mason
  1 sibling, 1 reply; 4+ messages in thread
From: Nicolas Dechesne @ 2020-02-04 14:52 UTC (permalink / raw)
  To: meta-arm; +Cc: Bertrand Marquis, nd

[-- Attachment #1: Type: text/plain, Size: 3252 bytes --]

Le mar. 4 févr. 2020 à 15:40, Bertrand <bertrand.marquis@arm.com> a écrit :

> Add an extra partition to the disk image generated for FVP and
> Foundation platform (to be used for user data or extra usage). The
> partition is created on the hard drive but is not formated.
> Speed up running on FVP and Foundation by optimizing model parameters:
> - disable options that are already set by default
> - disable cache modelling on FVP
> - disable secure memory
> - disable real time on Foundation (prevents timeout as execution is a
> lot slower then on a real system)
>
> Change-Id: I20d613bd8b0f4cb7df87c294d45b9f718f6a8ed3


These tags should be removed.


> Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
> ---
>  meta-arm-bsp/conf/machine/fvp-common/fvp.inc              | 5 +++++
>  .../fvp-common/files/start-foundation-armv8.sh            | 4 ++--
>  .../recipes-devtools/fvp-common/files/start-fvp-base.sh   | 8 +++-----
>  3 files changed, 10 insertions(+), 7 deletions(-)
>
> diff --git a/meta-arm-bsp/conf/machine/fvp-common/fvp.inc
> b/meta-arm-bsp/conf/machine/fvp-common/fvp.inc
> index 606ea32..6bf33f3 100644
> --- a/meta-arm-bsp/conf/machine/fvp-common/fvp.inc
> +++ b/meta-arm-bsp/conf/machine/fvp-common/fvp.inc
> @@ -27,6 +27,11 @@ DISK_IMG_PARTITION2_SIZE = "2048"
>  DISK_IMG_PARTITION2_FSTYPE = "ext4"
>  DISK_IMG_PARTITION2_CONTENT = "rootfs"
>
> +# Empty third partition (8G - 2048M - 128M)
> +DISK_IMG_PARTITION3_SIZE = "6016"
> +DISK_IMG_PARTITION3_FSTYPE = ""
> +DISK_IMG_PARTITION3_CONTENT = ""
> +
>  SERIAL_CONSOLES = "115200;ttyAMA0"
>
>  PREFERRED_PROVIDER_virtual/kernel = "linux-yocto"
> diff --git
> a/meta-arm-bsp/recipes-devtools/fvp-common/files/start-foundation-armv8.sh
> b/meta-arm-bsp/recipes-devtools/fvp-common/files/start-foundation-armv8.sh
> index 4e45a04..ca39bee 100755
> ---
> a/meta-arm-bsp/recipes-devtools/fvp-common/files/start-foundation-armv8.sh
> +++
> b/meta-arm-bsp/recipes-devtools/fvp-common/files/start-foundation-armv8.sh
> @@ -40,10 +40,10 @@ DISK_FILE=""
>  FOUNDATION_PLAT_EXE="Foundation_Platform"
>
>  # Foundation Platform arguments
> +# 4 cores
> +# gicv3 emulation (required for hardware virtualisation)
>  FOUNDATION_PLAT_ARGS=" \
>      --cores=4 \
> -    --secure-memory \
> -    --use-real-time \
>      --gicv3"
>
>  # Foundation Platform user arguments
> diff --git
> a/meta-arm-bsp/recipes-devtools/fvp-common/files/start-fvp-base.sh
> b/meta-arm-bsp/recipes-devtools/fvp-common/files/start-fvp-base.sh
> index b6e237b..1d3c206 100755
> --- a/meta-arm-bsp/recipes-devtools/fvp-common/files/start-fvp-base.sh
> +++ b/meta-arm-bsp/recipes-devtools/fvp-common/files/start-fvp-base.sh
> @@ -38,13 +38,11 @@ DISK_FILE=""
>  FVPEXEC="FVP_Base_RevC-2xAEMv8A"
>
>  # FVP arguments
> +# enable virtio network
> +# disable cache modelling to improve performances
>  FVPARGS=" \
>      -C bp.virtio_net.enabled=1 \
> -    -C pctl.startup=0.0.0.0 \
> -    -C bp.secure_memory=1 \
> -    -C bp.tzc_400.diagnostics=1 \
> -    -C cluster0.NUM_CORES=4 \
> -    -C cluster1.NUM_CORES=4"
> +    -C cache_state_modelled=0"
>
>  # FVP user arguments
>  EXTRA_ARGS=""
> --
> 2.17.1
>
> 
>

[-- Attachment #2: Type: text/html, Size: 4123 bytes --]

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

* Re: [meta-arm] [PATCH] Optimize execution on FVP and Foundation platform
  2020-02-04 14:52 ` [meta-arm] " Nicolas Dechesne
@ 2020-02-04 15:02   ` Jon Mason
  0 siblings, 0 replies; 4+ messages in thread
From: Jon Mason @ 2020-02-04 15:02 UTC (permalink / raw)
  To: meta-arm; +Cc: Bertrand Marquis

On Tue, Feb 4, 2020 at 2:52 PM Nicolas Dechesne
<nicolas.dechesne@linaro.org> wrote:
>
>
>
> Le mar. 4 févr. 2020 à 15:40, Bertrand <bertrand.marquis@arm.com> a écrit :
>>
>> Add an extra partition to the disk image generated for FVP and
>> Foundation platform (to be used for user data or extra usage). The
>> partition is created on the hard drive but is not formated.
>> Speed up running on FVP and Foundation by optimizing model parameters:
>> - disable options that are already set by default
>> - disable cache modelling on FVP
>> - disable secure memory
>> - disable real time on Foundation (prevents timeout as execution is a
>> lot slower then on a real system)
>>
>> Change-Id: I20d613bd8b0f4cb7df87c294d45b9f718f6a8ed3
>
>
> These tags should be removed.

We are using gerrit internally.  It would be a nightmare of rebases if
we remove it, as it would not match our internal version.

Thanks,
Jon


>>
>> Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
>> ---
>>  meta-arm-bsp/conf/machine/fvp-common/fvp.inc              | 5 +++++
>>  .../fvp-common/files/start-foundation-armv8.sh            | 4 ++--
>>  .../recipes-devtools/fvp-common/files/start-fvp-base.sh   | 8 +++-----
>>  3 files changed, 10 insertions(+), 7 deletions(-)
>>
>> diff --git a/meta-arm-bsp/conf/machine/fvp-common/fvp.inc b/meta-arm-bsp/conf/machine/fvp-common/fvp.inc
>> index 606ea32..6bf33f3 100644
>> --- a/meta-arm-bsp/conf/machine/fvp-common/fvp.inc
>> +++ b/meta-arm-bsp/conf/machine/fvp-common/fvp.inc
>> @@ -27,6 +27,11 @@ DISK_IMG_PARTITION2_SIZE = "2048"
>>  DISK_IMG_PARTITION2_FSTYPE = "ext4"
>>  DISK_IMG_PARTITION2_CONTENT = "rootfs"
>>
>> +# Empty third partition (8G - 2048M - 128M)
>> +DISK_IMG_PARTITION3_SIZE = "6016"
>> +DISK_IMG_PARTITION3_FSTYPE = ""
>> +DISK_IMG_PARTITION3_CONTENT = ""
>> +
>>  SERIAL_CONSOLES = "115200;ttyAMA0"
>>
>>  PREFERRED_PROVIDER_virtual/kernel = "linux-yocto"
>> diff --git a/meta-arm-bsp/recipes-devtools/fvp-common/files/start-foundation-armv8.sh b/meta-arm-bsp/recipes-devtools/fvp-common/files/start-foundation-armv8.sh
>> index 4e45a04..ca39bee 100755
>> --- a/meta-arm-bsp/recipes-devtools/fvp-common/files/start-foundation-armv8.sh
>> +++ b/meta-arm-bsp/recipes-devtools/fvp-common/files/start-foundation-armv8.sh
>> @@ -40,10 +40,10 @@ DISK_FILE=""
>>  FOUNDATION_PLAT_EXE="Foundation_Platform"
>>
>>  # Foundation Platform arguments
>> +# 4 cores
>> +# gicv3 emulation (required for hardware virtualisation)
>>  FOUNDATION_PLAT_ARGS=" \
>>      --cores=4 \
>> -    --secure-memory \
>> -    --use-real-time \
>>      --gicv3"
>>
>>  # Foundation Platform user arguments
>> diff --git a/meta-arm-bsp/recipes-devtools/fvp-common/files/start-fvp-base.sh b/meta-arm-bsp/recipes-devtools/fvp-common/files/start-fvp-base.sh
>> index b6e237b..1d3c206 100755
>> --- a/meta-arm-bsp/recipes-devtools/fvp-common/files/start-fvp-base.sh
>> +++ b/meta-arm-bsp/recipes-devtools/fvp-common/files/start-fvp-base.sh
>> @@ -38,13 +38,11 @@ DISK_FILE=""
>>  FVPEXEC="FVP_Base_RevC-2xAEMv8A"
>>
>>  # FVP arguments
>> +# enable virtio network
>> +# disable cache modelling to improve performances
>>  FVPARGS=" \
>>      -C bp.virtio_net.enabled=1 \
>> -    -C pctl.startup=0.0.0.0 \
>> -    -C bp.secure_memory=1 \
>> -    -C bp.tzc_400.diagnostics=1 \
>> -    -C cluster0.NUM_CORES=4 \
>> -    -C cluster1.NUM_CORES=4"
>> +    -C cache_state_modelled=0"
>>
>>  # FVP user arguments
>>  EXTRA_ARGS=""
>> --
>> 2.17.1
>>
>>
> 

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

* Re: [meta-arm] [PATCH] Optimize execution on FVP and Foundation platform
  2020-02-04 14:39 [PATCH] Optimize execution on FVP and Foundation platform Bertrand
  2020-02-04 14:52 ` [meta-arm] " Nicolas Dechesne
@ 2020-02-05 15:43 ` Jon Mason
  1 sibling, 0 replies; 4+ messages in thread
From: Jon Mason @ 2020-02-05 15:43 UTC (permalink / raw)
  To: meta-arm; +Cc: nd, Bertrand Marquis

On Tue, Feb 4, 2020 at 2:40 PM Bertrand <bertrand.marquis@arm.com> wrote:
>
> Add an extra partition to the disk image generated for FVP and
> Foundation platform (to be used for user data or extra usage). The
> partition is created on the hard drive but is not formated.
> Speed up running on FVP and Foundation by optimizing model parameters:
> - disable options that are already set by default
> - disable cache modelling on FVP
> - disable secure memory
> - disable real time on Foundation (prevents timeout as execution is a
> lot slower then on a real system)

The patch has been accepted and pushed to the master branch of
meta-arm.  Thank you for doing this work.

Thanks,
Jon

>
> Change-Id: I20d613bd8b0f4cb7df87c294d45b9f718f6a8ed3
> Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
> ---
>  meta-arm-bsp/conf/machine/fvp-common/fvp.inc              | 5 +++++
>  .../fvp-common/files/start-foundation-armv8.sh            | 4 ++--
>  .../recipes-devtools/fvp-common/files/start-fvp-base.sh   | 8 +++-----
>  3 files changed, 10 insertions(+), 7 deletions(-)
>
> diff --git a/meta-arm-bsp/conf/machine/fvp-common/fvp.inc b/meta-arm-bsp/conf/machine/fvp-common/fvp.inc
> index 606ea32..6bf33f3 100644
> --- a/meta-arm-bsp/conf/machine/fvp-common/fvp.inc
> +++ b/meta-arm-bsp/conf/machine/fvp-common/fvp.inc
> @@ -27,6 +27,11 @@ DISK_IMG_PARTITION2_SIZE = "2048"
>  DISK_IMG_PARTITION2_FSTYPE = "ext4"
>  DISK_IMG_PARTITION2_CONTENT = "rootfs"
>
> +# Empty third partition (8G - 2048M - 128M)
> +DISK_IMG_PARTITION3_SIZE = "6016"
> +DISK_IMG_PARTITION3_FSTYPE = ""
> +DISK_IMG_PARTITION3_CONTENT = ""
> +
>  SERIAL_CONSOLES = "115200;ttyAMA0"
>
>  PREFERRED_PROVIDER_virtual/kernel = "linux-yocto"
> diff --git a/meta-arm-bsp/recipes-devtools/fvp-common/files/start-foundation-armv8.sh b/meta-arm-bsp/recipes-devtools/fvp-common/files/start-foundation-armv8.sh
> index 4e45a04..ca39bee 100755
> --- a/meta-arm-bsp/recipes-devtools/fvp-common/files/start-foundation-armv8.sh
> +++ b/meta-arm-bsp/recipes-devtools/fvp-common/files/start-foundation-armv8.sh
> @@ -40,10 +40,10 @@ DISK_FILE=""
>  FOUNDATION_PLAT_EXE="Foundation_Platform"
>
>  # Foundation Platform arguments
> +# 4 cores
> +# gicv3 emulation (required for hardware virtualisation)
>  FOUNDATION_PLAT_ARGS=" \
>      --cores=4 \
> -    --secure-memory \
> -    --use-real-time \
>      --gicv3"
>
>  # Foundation Platform user arguments
> diff --git a/meta-arm-bsp/recipes-devtools/fvp-common/files/start-fvp-base.sh b/meta-arm-bsp/recipes-devtools/fvp-common/files/start-fvp-base.sh
> index b6e237b..1d3c206 100755
> --- a/meta-arm-bsp/recipes-devtools/fvp-common/files/start-fvp-base.sh
> +++ b/meta-arm-bsp/recipes-devtools/fvp-common/files/start-fvp-base.sh
> @@ -38,13 +38,11 @@ DISK_FILE=""
>  FVPEXEC="FVP_Base_RevC-2xAEMv8A"
>
>  # FVP arguments
> +# enable virtio network
> +# disable cache modelling to improve performances
>  FVPARGS=" \
>      -C bp.virtio_net.enabled=1 \
> -    -C pctl.startup=0.0.0.0 \
> -    -C bp.secure_memory=1 \
> -    -C bp.tzc_400.diagnostics=1 \
> -    -C cluster0.NUM_CORES=4 \
> -    -C cluster1.NUM_CORES=4"
> +    -C cache_state_modelled=0"
>
>  # FVP user arguments
>  EXTRA_ARGS=""
> --
> 2.17.1
>
> 

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

end of thread, other threads:[~2020-02-05 15:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-04 14:39 [PATCH] Optimize execution on FVP and Foundation platform Bertrand
2020-02-04 14:52 ` [meta-arm] " Nicolas Dechesne
2020-02-04 15:02   ` Jon Mason
2020-02-05 15:43 ` Jon Mason

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.