Hi Jason,

Thanks for your prompt help. I exactly follow this 
instruction(https://gem5art.readthedocs.io/en/latest/tutorials/spec2017-tutorial.html
 <https://gem5art.readthedocs.io/en/latest/tutorials/spec2017-tutorial.html>) 
to build kernel 4.19.83 and disk image ubuntu-18.04.2 and I am using gem5-19. 
Benchmarks I have tested are: 505.mcf_r, 602.gcc_s, 641.leela_s, 644.nab_s, 
with size of test. I tried two cpu type: AtomicSimpleCPU, DerivO3CPU. All of 
different combinations show the same error.

The command I run:
build/X86/gem5.opt configs/example/fs.py --kernel=vmlinux-4.19.83 
--disk-image=/home/jinpeng/gem5_newFlag_new/full_system_images/disks/ubuntu-18.img
 --num-cpus=1 --mem-type=DDR4_2400_16x4 --mem-channels=8 --mem-size=16GB 
--l1d_size=32kB --l2_size=1MB --l2cache --caches 
--cpu-type=AtomicSimpleCPU(DerivO3CPU) --cpu-clock=2.9GHz --script=test.rcS

test.rcS contains commands to run benchmarks, as shown below:
#!/bin/bash
cd /cpuSpec2017
ls
source shrc
go config
runcpu --config=try1 --size=test --copies=1 --noreportable --iterations=1 
644.nab_s 

And the output at the VM terminal with unexpected termination:
root@localhost:~# Got CPU type: M5 Simulator
Docs     README.txt    bin install.sh  tools
LICENSE.txt  Revisions   config result    uninstall.sh
MANIFEST     TOOLS.sha512  cshrc shrc    version.txt
PTDaemon     benchspec   install.bat shrc.bat
/cpuSpec2017/config
SPEC CPU(r) 2017 Benchmark Suites
Copyright 1995-2019 Standard Performance Evaluation Corporation (SPEC)

runcpu v6247
Using 'linux-x86_64' tools
Reading file manifests... read 32285 entries from 2 files in 0.60s (53864 
files/s)
Loading runcpu modules.................
Locating benchmarks...found 47 benchmarks in 53 benchsets.
Reading config file '/cpuSpec2017/config/try1.cfg'
1 configuration selected:

 Action    Run Mode   Workload     Report Type      Benchmarks
--------   --------   --------   ----------------   ---------------------------
validate   speed      test       SPECspeed2017_fp   644.nab_s                  
-------------------------------------------------------------------------------

Setting up environment for running 644.nab_s...
Starting runcpu for 644.nab_s...
Running "specperl /cpuSpec2017/bin/sysinfo" to gather system information.
sysinfo: r6365 of 2019-08-21 (295195f888a3d7edb1e6e46a485a0011)
sysinfo: Getting system information for Linux...
sysinfo: ...getting CPU info 
!!!HERE TERMINATED UNEXPECTEDLY!!!

Thanks,
Jinpeng


> On Jul 17, 2020, at 12:25 PM, Jason Lowe-Power <ja...@lowepower.com 
> <mailto:ja...@lowepower.com>> wrote:
> 
> Hi Jinpeng,
> 
> Thanks for pointing this out! I haven't personally seen this error before. 
> We've been trying to test SPEC 2017 with gem5-20. Could you give more guest 
> details (e.g., kernel, OS, benchmark, inputs) and simulator details (e.g., 
> ISA, CPU model, memory system, cores, etc.) so we can try to reproduce this 
> problem?
> 
> Hoa, have you seen this error before in any of our tests? Can you add a Jira 
> issue for this?
> 
> Here's the results from our tests with SPEC 2017, so far: 
> http://www.gem5.org/documentation/benchmark_status/#spec-2017-tests 
> <http://www.gem5.org/documentation/benchmark_status/#spec-2017-tests>
> 
> You can find all of the details on how we ran these in the gem5-resources 
> repository: 
> https://gem5.googlesource.com/public/gem5-resources/+/refs/heads/master/src/spec-2017/
>  
> <https://gem5.googlesource.com/public/gem5-resources/+/refs/heads/master/src/spec-2017/>
> 
> Cheers,
> Jason
> 
> ---------- Forwarded message ---------
> From: Jinpeng Miao via gem5-users <gem5-users@gem5.org 
> <mailto:gem5-users@gem5.org>>
> Date: Fri, Jul 17, 2020 at 10:50 AM
> Subject: [gem5-users] An error occurred in i8237 DMA controller when running 
> CPU SPEC 2017 benchmarks
> To: <gem5-users@gem5.org <mailto:gem5-users@gem5.org>>
> Cc: Jinpeng Miao <jinpeng.miao...@gmail.com 
> <mailto:jinpeng.miao...@gmail.com>>
> 
> 
> Hello all,
> 
> I am trying to build and run CPU SPEC 2017 benchmarks in the FS mode, but the 
> process terminated unexpectedly with an error happening in i8237 DMA 
> controller. I did not change the source code. I do not quite understand what 
> causes this bug and how to fix it. Any help would be really appreciated. 
> Thanks!
> 
> Output as below:
> 
> **** REAL SIMULATION ****
> info: Entering event queue @ 0.  Starting simulation...
> warn: x86 cpuid family 0x0000: unimplemented function 6
> warn: x86 cpuid family 0x0000: unimplemented function 6
> warn: x86 cpuid family 0x0000: unimplemented function 6
> warn: instruction 'fninit' unimplemented
> warn: Don't know what interrupt to clear for console.
> 3575291925: system.pc.com_1.device: attach terminal 0
> warn: instruction 'sgdt_Ms' unimplemented
> warn: x86 cpuid family 0x0000: unimplemented function 6
> warn: x86 cpuid family 0x0000: unimplemented function 6
> warn: x86 cpuid family 0x0000: unimplemented function 6
> warn: x86 cpuid: unknown family 0x4000
> warn: Tried to clear PCI interrupt 14
> warn: Write to unknown i8042 (keyboard controller) command port.
> warn: instruction 'verw_Mw_or_Rv' unimplemented
> warn: instruction 'verw_Mw_or_Rv' unimplemented
> warn: instruction 'verw_Mw_or_Rv' unimplemented
> warn: MOVNTDQ: Ignoring non-temporal hint, modeling as cacheable!
> warn: instruction 'fwait' unimplemented
> warn: x86 cpuid: unknown family 0x4000
> gem5.opt: build/X86/dev/x86/i8237.cc:39 <http://i8237.cc:39/>: virtual Tick 
> X86ISA::I8237::read(PacketPtr): Assertion `pkt->getSize() == 1' failed.
> Program aborted at tick 97564380133230
> --- BEGIN LIBC BACKTRACE ---
> build/X86/gem5.opt(_Z15print_backtracev+0x2c)[0x55845afa2dfc]
> build/X86/gem5.opt(_Z12abortHandleri+0x4a)[0x55845afb503a]
> /lib/x86_64-linux-gnu/libpthread.so.0(+0x128a0)[0x7f14140d88a0]
> /lib/x86_64-linux-gnu/libc.so.6(gsignal+0xc7)[0x7f14122adf47]
> /lib/x86_64-linux-gnu/libc.so.6(abort+0x141)[0x7f14122af8b1]
> /lib/x86_64-linux-gnu/libc.so.6(+0x3042a)[0x7f141229f42a]
> /lib/x86_64-linux-gnu/libc.so.6(+0x304a2)[0x7f141229f4a2]
> build/X86/gem5.opt(_ZN6X86ISA5I82374readEP6Packet+0x70)[0x55845aea7510]
> build/X86/gem5.opt(_ZThn64_N7PioPortI9PioDeviceE10recvAtomicEP6Packet+0x45)[0x55845b584885]
> build/X86/gem5.opt(_ZN15NoncoherentXBar18recvAtomicBackdoorEP6PacketsPP11MemBackdoor+0x49b)[0x55845a7a4a0b]
> build/X86/gem5.opt(_ZN6Bridge15BridgeSlavePort10recvAtomicEP6Packet+0x5a)[0x55845a77c5ea]
> build/X86/gem5.opt(_ZN12CoherentXBar18recvAtomicBackdoorEP6PacketsPP11MemBackdoor+0x907)[0x55845a785f17]
> build/X86/gem5.opt(_ZN5Cache19handleAtomicReqMissEP6PacketRP8CacheBlkRNSt7__cxx114listIS1_SaIS1_EEE+0x1b7)[0x55845b59df47]
> build/X86/gem5.opt(_ZN9BaseCache10recvAtomicEP6Packet+0x3c3)[0x55845b59afa3]
> build/X86/gem5.opt(_ZN5Cache10recvAtomicEP6Packet+0x173)[0x55845b5a3bb3]
> build/X86/gem5.opt(_ZN12CoherentXBar18recvAtomicBackdoorEP6PacketsPP11MemBackdoor+0x907)[0x55845a785f17]
> build/X86/gem5.opt(_ZN5Cache19handleAtomicReqMissEP6PacketRP8CacheBlkRNSt7__cxx114listIS1_SaIS1_EEE+0x1b7)[0x55845b59df47]
> build/X86/gem5.opt(_ZN9BaseCache10recvAtomicEP6Packet+0x3c3)[0x55845b59afa3]
> build/X86/gem5.opt(_ZN5Cache10recvAtomicEP6Packet+0x173)[0x55845b5a3bb3]
> build/X86/gem5.opt(_ZN15AtomicSimpleCPU7readMemEmPhj5FlagsImERKSt6vectorIbSaIbEE+0x324)[0x55845a940604]
> build/X86/gem5.opt(_ZN17SimpleExecContext7readMemEmPhj5FlagsImERKSt6vectorIbSaIbEE+0x5f)[0x55845a956dbf]
> build/X86/gem5.opt(+0xbe1213)[0x55845ad72213]
> build/X86/gem5.opt(_ZNK10X86ISAInst5LdBig7executeEP11ExecContextPN5Trace10InstRecordE+0x16f)[0x55845ad94a7f]
> build/X86/gem5.opt(_ZN15AtomicSimpleCPU4tickEv+0x54a)[0x55845a93dd2a]
> build/X86/gem5.opt(_ZN10EventQueue10serviceOneEv+0xd9)[0x55845afab2a9]
> build/X86/gem5.opt(_Z9doSimLoopP10EventQueue+0x87)[0x55845afcc867]
> build/X86/gem5.opt(_Z8simulatem+0xcba)[0x55845afcd8ba]
> build/X86/gem5.opt(+0x1133de1)[0x55845b2c4de1]
> build/X86/gem5.opt(+0x796d64)[0x55845a927d64]
> build/X86/gem5.opt(PyEval_EvalFrameEx+0x6371)[0x55845b8fa5b1]
> build/X86/gem5.opt(PyEval_EvalCodeEx+0x7a0)[0x55845b8fdcd0]
> build/X86/gem5.opt(PyEval_EvalFrameEx+0x643b)[0x55845b8fa67b]
> --- END LIBC BACKTRACE ---
> Aborted (core dumped)
> 
> _______________________________________________
> gem5-users mailing list -- gem5-users@gem5.org <mailto:gem5-users@gem5.org>
> To unsubscribe send an email to gem5-users-le...@gem5.org 
> <mailto: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

Reply via email to