Re: [gem5-users] [gem5-dev] Linux 4.14 and 4.15 with gem5 patches now available for Arm

2018-04-23 Thread Pau Cabre
Hi Sharjeel,

 

For >8 cpus, you need to set the Pl390 gem5_extensions parameter to True.

You can do it by either modifying the default value in src/dev/arm/Gic.py (and 
recompile before running), or apply this patch and run:

 

diff --git a/configs/common/FSConfig.py b/configs/common/FSConfig.py

index 17498c4..8b72480 100644

--- a/configs/common/FSConfig.py

+++ b/configs/common/FSConfig.py

@@ -251,6 +251,7 @@ def makeArmSystem(mem_mode, machine_type, num_cpus=1, 
mdesc=None,

 # variable might have been an alias.

 machine_type = platform_class.__name__

 self.realview = platform_class()

+self.realview.gic.gem5_extensions = True

 if not dtb_filename and not (bare_metal or ignore_dtb):

 try:

 

I tested it with the following command line and it worked:

 

./build/ARM/gem5.opt \

configs/example/fs.py \

--machine-type=VExpress_GEM5_V1 \

--dtb-filename=armv7_gem5_v1_16cpu.dtb \

--kernel=vmlinux.vexpress_gem5_v1 \

--disk-image=aarch32-ubuntu-natty-headless.img \

-n 16 \

--script=$PWD/configs/boot/halt.sh

 

Regards,

Pau

 

 

 

Legal notice and data protection <http://metempsy.com/CLA-MAIL-ENG.pdf>  / Avís 
legal i protecció de dades <http://metempsy.com/CLA-MAIL-CAT.pdf> 

 

From: SHARJEEL KHILJI  
Sent: Monday, April 23, 2018 00:25
To: gem5 users mailing list 
Subject: Re: [gem5-users] [gem5-dev] Linux 4.14 and 4.15 with gem5 patches now 
available for Arm

 

Hi,

I am using binaries that you have uploaded in the following system.

./build/ARM/gem5.fast   configs/example/fs.py  --l1d_size=64kB --l1i_size=64kB 
--num-l2caches 16  --l2_size=64MB  --cacheline_size=64 
--machine-type=VExpress_GEM5_V1  --kernel 
/home/khilji/gem5/m5/system/binaries/a/vmlinux.vexpress_gem5_v1  --disk-image 
/home/khilji/gem5/system/arm/aarch-system-20180409/disks/aarch32-ubuntu-natty-headless.img
 --dtb-filename /home/khilji/gem5/m5/system/dtb/a/armv7_gem5_v1_16cpu.dtb   
 --num-cpus 16--ruby --num-dirs=16  --network=garnet2.0  --topology Mesh_XY 
 --mesh-rows 4 --mem-size 1GB

I am using following disk dtb and binaries

vmlinux.vexpress_gem5_v1

aarch32-ubuntu-natty-headless.img

armv7_gem5_v1_16cpu.dtb

 

It is 16 cores NoC. I get the following message from the terminal,

[0.039915] smp: Bringing up secondary CPUs ...
[0.068065] CPU1: thread -1, cpu 1, socket 0, mpidr 8001
[0.096108] CPU2: thread -1, cpu 2, socket 0, mpidr 8002
[0.124179] CPU3: thread -1, cpu 3, socket 0, mpidr 8003
[0.152255] CPU4: thread -1, cpu 4, socket 0, mpidr 8004
[0.180317] CPU5: thread -1, cpu 5, socket 0, mpidr 8005
[0.208387] CPU6: thread -1, cpu 6, socket 0, mpidr 8006
[0.236474] CPU7: thread -1, cpu 7, socket 0, mpidr 8007
[0.264528] CPU8: thread -1, cpu 8, socket 0, mpidr 8008
[1.298383] CPU9: failed to boot: -38

It can boot 8 cpus but 9th cpu fails to boot. Any suggestions why this is so. 
Thanks for your help and time.

best regards,

Sharjeel

 



 

On 12 April 2018 at 14:33, Pau Cabre mailto:pau.ca...@metempsy.com> > wrote:

Hi Everyone,

 

After updating the util/gen_arm_fs_files.py 
<https://gem5.googlesource.com/public/gem5/+/master/util/gen_arm_fs_files.py>  
script to use the 4.14 kernel below, I updated the Dockerfile that generates 
the needed binaries for arm FS simulations here: 
https://github.com/metempsy/gem5_arm_fullsystem_files_generator

I also created a release with up-to-date generated binaries that can be found 
here: 
https://github.com/metempsy/gem5_arm_fullsystem_files_generator/releases/download/20180409/aarch-system-20180409.tar.xz

 

Feel free to copy it to http://www.gem5.org/dist/current/arm/

 

Thanks,

Pau

 

Legal notice and data protection <http://metempsy.com/CLA-MAIL-ENG.pdf>  / Avís 
legal i protecció de dades <http://metempsy.com/CLA-MAIL-CAT.pdf> 

 

-Original Message-
From: Andreas Sandberg mailto:andreas.sandb...@arm.com> > 
Sent: Wednesday, March 7, 2018 11:26
To: gem5 Developer List mailto:gem5-...@gem5.org> >; gem5 
users mailing list mailto:gem5-users@gem5.org> >
Subject: [gem5-dev] Linux 4.14 and 4.15 with gem5 patches now available for Arm

 

Hi Everyone,

 

I'm happy to announce that we have just completed testing of the gem5-specific 
patches for Linux 4.14 and 4.15. The new kernel sources can be downloaded from 
the gem5/v4.14 [1] and gem5/v4.15 branches in the arm/linux [3] project on 
Gerrit. Most users should prefer the 4.14 kernel as this is the latest LTS 
release of Linux. See the wiki [4] for build instructions.

 

The kernels comes with default configurations for Armv7 and Armv8 and has the 
same set of gem5-specific patches as the older 4.x kernels.

These patches add support for:

 

   * gem5's GICv2 extensions. This enables support for up to 255 CPUs if the 
gem5 extensions are enabled in the GIC (set gem5_extensions to True in your 
configuration script).

   * A 

Re: [gem5-users] [gem5-dev] Linux 4.14 and 4.15 with gem5 patches now available for Arm

2018-04-22 Thread SHARJEEL KHILJI
Hi,

I am using binaries that you have uploaded in the following system.

./build/ARM/gem5.fast   configs/example/fs.py  --l1d_size=64kB
--l1i_size=64kB --num-l2caches 16  --l2_size=64MB  --cacheline_size=64
--machine-type=VExpress_GEM5_V1  --kernel
/home/khilji/gem5/m5/system/binaries/a/vmlinux.vexpress_gem5_v1
--disk-image
/home/khilji/gem5/system/arm/aarch-system-20180409/disks/aarch32-ubuntu-natty-headless.img
--dtb-filename /home/khilji/gem5/m5/system/dtb/a/armv7_gem5_v1_16cpu.dtb
--num-cpus 16--ruby --num-dirs=16  --network=garnet2.0  --topology
Mesh_XY  --mesh-rows 4 --mem-size 1GB

I am using following disk dtb and binaries

vmlinux.vexpress_gem5_v1

aarch32-ubuntu-natty-headless.img

armv7_gem5_v1_16cpu.dtb


It is 16 cores NoC. I get the following message from the terminal,

[0.039915] smp: Bringing up secondary CPUs ...
[0.068065] CPU1: thread -1, cpu 1, socket 0, mpidr 8001
[0.096108] CPU2: thread -1, cpu 2, socket 0, mpidr 8002
[0.124179] CPU3: thread -1, cpu 3, socket 0, mpidr 8003
[0.152255] CPU4: thread -1, cpu 4, socket 0, mpidr 8004
[0.180317] CPU5: thread -1, cpu 5, socket 0, mpidr 8005
[0.208387] CPU6: thread -1, cpu 6, socket 0, mpidr 8006
[0.236474] CPU7: thread -1, cpu 7, socket 0, mpidr 8007
[0.264528] CPU8: thread -1, cpu 8, socket 0, mpidr 8008
[1.298383] CPU9: failed to boot: -38

It can boot 8 cpus but 9th cpu fails to boot. Any suggestions why this is
so. Thanks for your help and time.

best regards,
Sharjeel





On 12 April 2018 at 14:33, Pau Cabre  wrote:

> Hi Everyone,
>
>
>
> After updating the util/gen_arm_fs_files.py
> 
> script to use the 4.14 kernel below, I updated the Dockerfile that
> generates the needed binaries for arm FS simulations here:
> https://github.com/metempsy/gem5_arm_fullsystem_files_generator
>
> I also created a release with up-to-date generated binaries that can be
> found here: https://github.com/metempsy/gem5_arm_fullsystem_files_
> generator/releases/download/20180409/aarch-system-20180409.tar.xz
>
>
>
> Feel free to copy it to http://www.gem5.org/dist/current/arm/
>
>
>
> Thanks,
>
> Pau
>
>
>
> Legal notice and data protection  / Avís
> legal i protecció de dades 
>
>
>
> -Original Message-
> From: Andreas Sandberg 
> Sent: Wednesday, March 7, 2018 11:26
> To: gem5 Developer List ; gem5 users mailing list <
> gem5-users@gem5.org>
> Subject: [gem5-dev] Linux 4.14 and 4.15 with gem5 patches now available
> for Arm
>
>
>
> Hi Everyone,
>
>
>
> I'm happy to announce that we have just completed testing of the
> gem5-specific patches for Linux 4.14 and 4.15. The new kernel sources can
> be downloaded from the gem5/v4.14 [1] and gem5/v4.15 branches in the
> arm/linux [3] project on Gerrit. Most users should prefer the 4.14 kernel
> as this is the latest LTS release of Linux. See the wiki [4] for build
> instructions.
>
>
>
> The kernels comes with default configurations for Armv7 and Armv8 and has
> the same set of gem5-specific patches as the older 4.x kernels.
>
> These patches add support for:
>
>
>
>* gem5's GICv2 extensions. This enables support for up to 255 CPUs if
> the gem5 extensions are enabled in the GIC (set gem5_extensions to True in
> your configuration script).
>
>* A virtual DRM connector. This makes it possible to use gem5's display
> models without a proper HDMI encoder model.
>
>* The custom FBIOGET_DMABUF IOCTL. This change is useful to avoid a
> CPU-side memcpy between the GPU's render buffer and the framebuffer for
> Android setups that using NoMali.
>
>* gem5's DVFS controller.
>
>* General gem5 instrumentation.
>
>
>
> Additionally, the upstream 4.15 kernel includes support for the Arm
> Scalable Vector Extensions (SVE) that can be used with the beta
> implementation of SVE for gem5 [5].
>
>
>
> Known issues:
>
>
>
>   * Recent Linux kernels don't expose the task struct in thread_info.
>
> This affects gem5's instrumentation. Some of the Streamline support in
>
> gem5 likely needs to be updated to support new kernels.
>
>
>
> If you need to post any new kernel changes, please make sure to post them
> to the gem5/v4.14 branch on gerrit.
>
>
>
> Cheers,
>
> Andreas
>
>
>
> [1] https://gem5.googlesource.com/arm/linux/+/refs/heads/gem5/v4.14
>
> [2] https://gem5.googlesource.com/arm/linux/+/refs/heads/gem5/v4.15
>
> [3] https://gem5-review.googlesource.com/#/admin/projects/arm/linux
>
> [4] http://gem5.org/ARM_Kernel
>
> [5] https://gem5-review.googlesource.com/#/admin/
> projects/arm/gem5,branches
>
> IMPORTANT NOTICE: The contents of this email and any attachments are
> confidential and may also be privileged. If you are not the intended
> recipient, please notify the sender immediately and do not disclose the
> contents to any other person, use it for any purpose, or store o

Re: [gem5-users] [gem5-dev] Linux 4.14 and 4.15 with gem5 patches now available for Arm

2018-04-12 Thread Pau Cabre
Hi Everyone,

 

After updating the util/gen_arm_fs_files.py 
  
script to use the 4.14 kernel below, I updated the Dockerfile that generates 
the needed binaries for arm FS simulations here: 
https://github.com/metempsy/gem5_arm_fullsystem_files_generator

I also created a release with up-to-date generated binaries that can be found 
here: 
https://github.com/metempsy/gem5_arm_fullsystem_files_generator/releases/download/20180409/aarch-system-20180409.tar.xz

 

Feel free to copy it to http://www.gem5.org/dist/current/arm/

 

Thanks,

Pau

 

  Legal notice and data protection /  
 Avís legal i protecció de dades

 

-Original Message-
From: Andreas Sandberg  
Sent: Wednesday, March 7, 2018 11:26
To: gem5 Developer List ; gem5 users mailing list 

Subject: [gem5-dev] Linux 4.14 and 4.15 with gem5 patches now available for Arm

 

Hi Everyone,

 

I'm happy to announce that we have just completed testing of the gem5-specific 
patches for Linux 4.14 and 4.15. The new kernel sources can be downloaded from 
the gem5/v4.14 [1] and gem5/v4.15 branches in the arm/linux [3] project on 
Gerrit. Most users should prefer the 4.14 kernel as this is the latest LTS 
release of Linux. See the wiki [4] for build instructions.

 

The kernels comes with default configurations for Armv7 and Armv8 and has the 
same set of gem5-specific patches as the older 4.x kernels.

These patches add support for:

 

   * gem5's GICv2 extensions. This enables support for up to 255 CPUs if the 
gem5 extensions are enabled in the GIC (set gem5_extensions to True in your 
configuration script).

   * A virtual DRM connector. This makes it possible to use gem5's display 
models without a proper HDMI encoder model.

   * The custom FBIOGET_DMABUF IOCTL. This change is useful to avoid a CPU-side 
memcpy between the GPU's render buffer and the framebuffer for Android setups 
that using NoMali.

   * gem5's DVFS controller.

   * General gem5 instrumentation.

 

Additionally, the upstream 4.15 kernel includes support for the Arm Scalable 
Vector Extensions (SVE) that can be used with the beta implementation of SVE 
for gem5 [5].

 

Known issues:

 

  * Recent Linux kernels don't expose the task struct in thread_info.

This affects gem5's instrumentation. Some of the Streamline support in

gem5 likely needs to be updated to support new kernels.

 

If you need to post any new kernel changes, please make sure to post them to 
the gem5/v4.14 branch on gerrit.

 

Cheers,

Andreas

 

[1]   
https://gem5.googlesource.com/arm/linux/+/refs/heads/gem5/v4.14

[2]   
https://gem5.googlesource.com/arm/linux/+/refs/heads/gem5/v4.15

[3]   
https://gem5-review.googlesource.com/#/admin/projects/arm/linux

[4]   http://gem5.org/ARM_Kernel

[5]   
https://gem5-review.googlesource.com/#/admin/projects/arm/gem5,branches

IMPORTANT NOTICE: The contents of this email and any attachments are 
confidential and may also be privileged. If you are not the intended recipient, 
please notify the sender immediately and do not disclose the contents to any 
other person, use it for any purpose, or store or copy the information in any 
medium. Thank you.

 

___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users