[gem5-users] Re: 答复: Does the gem5 v21.0.1.0 support to bootup with kernel 5.10 in Ruby-CHI and O3

2022-02-17 Thread Gabriel Busnot via gem5-users
Hi Liyichao,

You might be in luck! A patch fixing non-HN shared CHI cache has been pushed to 
develop yesterday. You can cherry-pick it here: 
https://gem5-review.googlesource.com/c/public/gem5/+/56810.
You can also have a look at the patch attached to the following issue: 
https://gem5.atlassian.net/browse/GEM5-1185. The patch configures a shared L2 
but it should work about the same for shared L3. Your diff looks OK to me but 
it is hard to be assertive.

If this doesn't work for you, can you please fill a Jira with detailed 
reproduction steps for the bug?

Regards,
Gabriel
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s


[gem5-users] Re: Please unsubscribe me

2022-02-17 Thread Eliot Moss via gem5-users

On 2/17/2022 8:55 PM, Qaisar Bashir via gem5-users wrote:

Please remove my email

___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s


READ the unsubscribe thing, right above, rather than blasting everyone on the
list, please!  Regards -- EM
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s


[gem5-users] Please unsubscribe me

2022-02-17 Thread Qaisar Bashir via gem5-users
Please remove my email___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

[gem5-users] Re: Not able to access webpage to run_npb.py

2022-02-17 Thread Bobby Bruce via gem5-users
gem5-X is a fork of gem5, which as far as I can tell, diverged from gem5 in
the middle of 2018. gem5art was built on a version of gem5 in 2020-2021.
While I can't say anything for certain, I wouldn't be surprised if you run
into some difficulties getting this all to work perfectly.

Are you going to use ARM? We do provide NPB images, and linux kernels, but
they work with X86. If you're set on using ARM you'll need to make your
own. Instructions on building kernel for gem5 can be found here:
https://gem5.googlesource.com/public/gem5-resources/+/refs/heads/stable/src/linux-kernel/,
and info on creating a disk image containing NPB can be found here:
https://gem5.googlesource.com/public/gem5-resources/+/refs/heads/stable/src/npb/.
Please be careful with these as they are written assuming compilation to
X86. While I'm sure you can create an ARM Linux kernel fairly easily, I'm
not sure about NPB. I've simply never tried this.

If X86 is an option, we provide a disk image and kernel:

http://dist.gem5.org/dist/v21-2/kernels/x86/static/vmlinux-5.4.49
http://dist.gem5.org/dist/v21-2/images/x86/ubuntu-18-04/npb.img.gz [Note:
GZIPPED]

If you're looking for configuration files that (should) work with NPB,
checkout gem5-resources at v21.1.0.2 : `git clone -b v21.1.0.2
https://gem5.googlesource.com/public/gem5-resources` and look at the
configs provided under `src/npb`. That will definitely give you something
to start with.

--
Dr. Bobby R. Bruce
Room 3050,
Kemper Hall, UC Davis
Davis,
CA, 95616

web: https://www.bobbybruce.net


On Thu, Feb 17, 2022 at 11:45 AM David Fong  wrote:

> Hi Bobby,
>
>
>
> I’m trying to modify my gem5-X setup to add the NPB performance tests.
>
>
>
> My gem5-X setup doesn’t have a configs/example/gem5_library.
>
>
>
> I believe the github repo for the  gem5-X build didn’t add the
> gem5_library directory and files.
>
>
>
> I could use the gem5 setup from the NPB but then I’ll not be able to do
> architectural exploration with gem5-X.
>
> I would prefer to stick to gem5-X and add on the NPR tests.
>
>
>
> This is our cmd-line to build the gem5-X
>
> `./build/ARM/gem5.fast --remote-gdb-port=0 -d log_dir
> configs/example/fs.py --cpu-clock=1GHz --kernel=vmlinux
> --machine-type=VExpress_GEM5_V1
> --dtb-file=/home/dfong/work/ext_ips/gem5-X/system/arm/dt/armv8_gem5_v1_1cpu.dtb
> -n 1 --disk-image=gem5_ubuntu16.img --caches --l2cache --l1i_size=32kB
> --l1d_size=32kB --l2_size=1MB --l2_assoc=2 --mem-type=DDR4_2400_4x16
> --mem-ranks=4 --mem-size=4GB --sys-clock=1600MHz`
>
>
>
> What do you recommend I should do ?
>
>
>
> Thanks,
>
>
>
> David
>
>
>
>
>
> *From:* Bobby Bruce via gem5-users 
> *Sent:* Thursday, February 17, 2022 11:16 AM
> *To:* gem5 users mailing list 
> *Cc:* Bobby Bruce 
> *Subject:* [gem5-users] Re: Not able to access webpage to run_npb.py
>
>
>
> Hey David,
>
>
>
> Sorry about the trouble you're running into. It seems the gem5art tutorial
> on the website has become a bit outdated. We've updated gem5-resources in
> the last release and clearly this has broken some links. I'll make sure
> updating this is prioritized.
>
>
>
> I have two ways you can run NPB. The first is quite simple and is
> basically what Jason said, there's a script in
> `configs/example/gem5_library/x86-npb-benchmarks.py` which you can execute
> with gem5 and run NPB. This should work: `./build/X86/gem5.opt
> configs/example/gem5_library/x86-npb-benchmarks.py --benchmark ep --size A`
> (warning, this script assumes you're running gem5 on an X86 host with KVM).
> This approach is using our gem5 stdlib, a tutorial to which can be found
> here: https://www.gem5.org/documentation/gem5-stdlib/overview
> 
>
>
>
> The second way is to checkout the gem5-resources repo to the state it was
> at the last release. The tag you want is v21.1.0.2,
> https://gem5.googlesource.com/public/gem5-resources/+/refs/tags/v21.1.0.2/
> .
> This should contain the configs (If you do this, i think it'd be best to
> checkout the gem5 repo to an earlier release as well).
>
>
>
> Kind regards,
>
> Bobby
>
> --
>
> Dr. Bobby R. Bruce
> Room 3050,
> Kemper Hall, UC Davis
> Davis,
> CA, 95616
>
>
>
> web: https://www.bobbybruce.net
> 

[gem5-users] Re: Writing checkpoint fails

2022-02-17 Thread Majid Jalili via gem5-users
This is the commit breaking the simulation:

https://github.com/gem5/gem5/commit/d0b7de0f870d22f7d271ad0c698567b24d38fe80

I am still trying to figure out what needs to be fixed. Any help would be
appreciated!

On Tue, Feb 15, 2022 at 1:59 PM Majid Jalili  wrote:

> Hi,
>
> I am trying to take simpoint for some SPEC 17 applications, using the
> command below in fs mode:
>
> sudo build/X86/gem5.opt -d lbm_checkpoint ./configs/example/fs.py --caches
> --l2cache -n 1 --disk-image /home/cc/disks/disks/linux-x86.spec.img
> --kernel /home/cc/disks/binaries/vmlinux-4.19.83
>  
> --take-simpoint-checkpoints=./simpoints/lbm.simpoints,./simpoints/lbm.weights,1,2000
>  --cpu-type=X86KvmCPU --mem-size=16GB --script ./script/lbm.rcS
>
> Kernel: 4.19.83
> gem5 version [DEVELOP-FOR-v22.0]
> Branch: develop
>
> The Linux boots up successfully and launches the application. However, as
> soon as it starts writing the checkpoint I see the followings:
>
> Writing checkpoint
> gem5.opt: build/X86/cpu/regfile.hh:75: const Reg&
> gem5::RegFile::reg(size_t) const [with Reg = gem5::VecRegContainer<8>;
> size_t = long unsigned int]: Assertion `sizeof(Reg) == _regBytes && idx <
> _size' failed.
>
> Here you can find the values inside the assert statement causing the
> simulation to break:
> sizeof(Reg):16
>  _regBytes: 8
>  idx: 0
>  _size:1
>
> Any help would be appreciated!
> Majid
>
>
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

[gem5-users] Re: Not able to access webpage to run_npb.py

2022-02-17 Thread David Fong via gem5-users
Hi Bobby,

I’m trying to modify my gem5-X setup to add the NPB performance tests.

My gem5-X setup doesn’t have a configs/example/gem5_library.

I believe the github repo for the  gem5-X build didn’t add the gem5_library 
directory and files.

I could use the gem5 setup from the NPB but then I’ll not be able to do 
architectural exploration with gem5-X.
I would prefer to stick to gem5-X and add on the NPR tests.

This is our cmd-line to build the gem5-X
`./build/ARM/gem5.fast --remote-gdb-port=0 -d log_dir configs/example/fs.py 
--cpu-clock=1GHz --kernel=vmlinux --machine-type=VExpress_GEM5_V1 
--dtb-file=/home/dfong/work/ext_ips/gem5-X/system/arm/dt/armv8_gem5_v1_1cpu.dtb 
-n 1 --disk-image=gem5_ubuntu16.img --caches --l2cache --l1i_size=32kB 
--l1d_size=32kB --l2_size=1MB --l2_assoc=2 --mem-type=DDR4_2400_4x16 
--mem-ranks=4 --mem-size=4GB --sys-clock=1600MHz`

What do you recommend I should do ?

Thanks,

David


From: Bobby Bruce via gem5-users 
Sent: Thursday, February 17, 2022 11:16 AM
To: gem5 users mailing list 
Cc: Bobby Bruce 
Subject: [gem5-users] Re: Not able to access webpage to run_npb.py

Hey David,

Sorry about the trouble you're running into. It seems the gem5art tutorial on 
the website has become a bit outdated. We've updated gem5-resources in the last 
release and clearly this has broken some links. I'll make sure updating this is 
prioritized.

I have two ways you can run NPB. The first is quite simple and is basically 
what Jason said, there's a script in 
`configs/example/gem5_library/x86-npb-benchmarks.py` which you can execute with 
gem5 and run NPB. This should work: `./build/X86/gem5.opt 
configs/example/gem5_library/x86-npb-benchmarks.py --benchmark ep --size A` 
(warning, this script assumes you're running gem5 on an X86 host with KVM). 
This approach is using our gem5 stdlib, a tutorial to which can be found here: 
https://www.gem5.org/documentation/gem5-stdlib/overview

The second way is to checkout the gem5-resources repo to the state it was at 
the last release. The tag you want is v21.1.0.2, 
https://gem5.googlesource.com/public/gem5-resources/+/refs/tags/v21.1.0.2/.
 This should contain the configs (If you do this, i think it'd be best to 
checkout the gem5 repo to an earlier release as well).

Kind regards,
Bobby
--
Dr. Bobby R. Bruce
Room 3050,
Kemper Hall, UC Davis
Davis,
CA, 95616

web: 
https://www.bobbybruce.net


On Thu, Feb 17, 2022 at 10:43 AM David Fong via gem5-users 
mailto:gem5-users@gem5.org>> wrote:
Hi,

I’m going through the steps to create the npb environment.

https://www.gem5.org/documentation/gem5art/tutorials/npb-tutorial

gem5 run scripts

Next, we need to add gem5 run scripts. We will do that in a folder named 
configs-npb-tests. Get the run script named run_npb.py from 
here,
 and other system configuration files from 
[here]((https://gem5.googlesource.com/public/gem5-resources/+/refs/heads/stable/src/npb/configs/system/).


I’m not able to access the link to “run_npb.py”.


[gem5-users] Re: Not able to access webpage to run_npb.py

2022-02-17 Thread Bobby Bruce via gem5-users
Hey David,

Sorry about the trouble you're running into. It seems the gem5art tutorial
on the website has become a bit outdated. We've updated gem5-resources in
the last release and clearly this has broken some links. I'll make sure
updating this is prioritized.

I have two ways you can run NPB. The first is quite simple and is basically
what Jason said, there's a script in
`configs/example/gem5_library/x86-npb-benchmarks.py` which you can execute
with gem5 and run NPB. This should work: `./build/X86/gem5.opt
configs/example/gem5_library/x86-npb-benchmarks.py --benchmark ep --size A`
(warning, this script assumes you're running gem5 on an X86 host with KVM).
This approach is using our gem5 stdlib, a tutorial to which can be found
here: https://www.gem5.org/documentation/gem5-stdlib/overview

The second way is to checkout the gem5-resources repo to the state it was
at the last release. The tag you want is v21.1.0.2,
https://gem5.googlesource.com/public/gem5-resources/+/refs/tags/v21.1.0.2/.
This should contain the configs (If you do this, i think it'd be best to
checkout the gem5 repo to an earlier release as well).

Kind regards,
Bobby
--
Dr. Bobby R. Bruce
Room 3050,
Kemper Hall, UC Davis
Davis,
CA, 95616

web: https://www.bobbybruce.net


On Thu, Feb 17, 2022 at 10:43 AM David Fong via gem5-users <
gem5-users@gem5.org> wrote:

> Hi,
>
>
>
> I’m going through the steps to create the npb environment.
>
>
>
> https://www.gem5.org/documentation/gem5art/tutorials/npb-tutorial
>
>
> gem5 run scripts
>
> Next, we need to add gem5 run scripts. We will do that in a folder named
> configs-npb-tests. Get the run script named run_npb.py from here
> ,
> and other system configuration files from [here]((
> https://gem5.googlesource.com/public/gem5-resources/+/refs/heads/stable/src/npb/configs/system/
> ).
>
>
>
>
>
> I’m not able to access the link to “run_npb.py”.
>
>
>
>
> https://gem5.googlesource.com/public/gem5-resources/+/refs/heads/stable/src/npb/configs/run_npb.py
>
>
>
> I get this error
>
>
>
>
>
> Does anyone else have this problem and how to workaround ?
>
> Is there another location to download the “run_npb.py” ?
>
>
>
> Thanks,
>
>
>
> David
>
>
> ___
> gem5-users mailing list -- gem5-users@gem5.org
> To unsubscribe send an email to gem5-users-le...@gem5.org
> %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

[gem5-users] Re: Not able to access webpage to run_npb.py

2022-02-17 Thread Jason Lowe-Power via gem5-users
Hi David,

Sorry for the confusion. We need to update that documentation! You can now
find the script here:
https://gem5.googlesource.com/public/gem5/+/refs/heads/stable/configs/example/gem5_library/x86-npb-benchmarks.py
(or in configs/example/gem5_library in the gem5 repo).

Cheers,
Jason

On Thu, Feb 17, 2022 at 10:42 AM David Fong via gem5-users <
gem5-users@gem5.org> wrote:

> Hi,
>
>
>
> I’m going through the steps to create the npb environment.
>
>
>
> https://www.gem5.org/documentation/gem5art/tutorials/npb-tutorial
>
>
> gem5 run scripts
>
> Next, we need to add gem5 run scripts. We will do that in a folder named
> configs-npb-tests. Get the run script named run_npb.py from here
> ,
> and other system configuration files from [here]((
> https://gem5.googlesource.com/public/gem5-resources/+/refs/heads/stable/src/npb/configs/system/
> ).
>
>
>
>
>
> I’m not able to access the link to “run_npb.py”.
>
>
>
>
> https://gem5.googlesource.com/public/gem5-resources/+/refs/heads/stable/src/npb/configs/run_npb.py
>
>
>
> I get this error
>
>
>
>
>
> Does anyone else have this problem and how to workaround ?
>
> Is there another location to download the “run_npb.py” ?
>
>
>
> Thanks,
>
>
>
> David
>
>
> ___
> gem5-users mailing list -- gem5-users@gem5.org
> To unsubscribe send an email to gem5-users-le...@gem5.org
> %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

[gem5-users] Not able to access webpage to run_npb.py

2022-02-17 Thread David Fong via gem5-users
Hi,

I'm going through the steps to create the npb environment.

https://www.gem5.org/documentation/gem5art/tutorials/npb-tutorial

gem5 run scripts

Next, we need to add gem5 run scripts. We will do that in a folder named 
configs-npb-tests. Get the run script named run_npb.py from 
here,
 and other system configuration files from 
[here]((https://gem5.googlesource.com/public/gem5-resources/+/refs/heads/stable/src/npb/configs/system/).


I'm not able to access the link to "run_npb.py".

https://gem5.googlesource.com/public/gem5-resources/+/refs/heads/stable/src/npb/configs/run_npb.py

I get this error

[cid:image001.png@01D823EA.BB99FC20]

Does anyone else have this problem and how to workaround ?
Is there another location to download the "run_npb.py" ?

Thanks,

David

___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

[gem5-users] Question about Page fault in gem5

2022-02-17 Thread Fengze Yu via gem5-users
Hi
I have been looking at the mmu source code in gem5, and I am curious about how 
gem5 handles page table fault. It seems that instruction will be labled Fault 
everytime a TLB miss happens in both SE and FullSystem mode, but I could not 
see how that page fault is dealt with afterwards. So my questions are:


1. Where are the page tables located in both SE and FullSystem mode?


2. How does gem5 deal with page fault in both SE and FullSystem mode?


I will be ready greatful if you can also point me to the document/source code 
for each of the above question.






Thanks in advance!


Best


Fengze___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

[gem5-users] Re: Monitoring access to main memory

2022-02-17 Thread Thomas, Samuel via gem5-users
It sounds as though trace-based debug flags in the mem_ctrl could be used
to print whatever data you are looking for to an output file:
https://www.gem5.org/documentation/general_docs/debugging_and_testing/debugging/trace_based_debugging

You can view the data and data size by calling pkt->getPtr() and
pkt->getSize().

I hope this helps.

Best,
Sam

On Thu, Feb 17, 2022 at 5:16 AM taeho.lim--- via gem5-users <
gem5-users@gem5.org> wrote:

> Dear. Gem5 users.
>
>
>
> I want to dump write accesses to main memory.
>
> Especially, I need write pattern, address and size.
>
> I tried this by to use insert a CommMonitor between bus and mem_ctrl.
>
> However, it could dump only address and size not data.
>
>
>
> Is there a good way to do this?
>
>
>
> Now I work with se.py script and SPEC2017 benchmark binaries.
>
> I don’t need to simulate the dram in detail.
> ___
> gem5-users mailing list -- gem5-users@gem5.org
> To unsubscribe send an email to gem5-users-le...@gem5.org
> %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

[gem5-users] Monitoring access to main memory

2022-02-17 Thread taeho.lim--- via gem5-users
Dear. Gem5 users.

I want to dump write accesses to main memory.
Especially, I need write pattern, address and size.
I tried this by to use insert a CommMonitor between bus and mem_ctrl.
However, it could dump only address and size not data.

Is there a good way to do this?

Now I work with se.py script and SPEC2017 benchmark binaries.
I don’t need to simulate the dram in detail.
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s