Hi Giacomo,

Thanks a lot for your quick response. Your suggestion does help.

With the updates contained in the three files indicated by the two Jira 
tickets, I still saw some error as below. I guess there are some changes not 
included in these two tickets.

----------------------------------------------------------------------------------------------------------
Global frequency set at 1000000000000 ticks per second
info: Simulated platform: VExpress_GEM5_V1
AttributeError: object 'ArmDefaultRelease' has no attribute 'remove'
  (C++ object is not yet constructed, so wrapped C++ methods are unavailable.)

At:
  build/ARM/python/m5/SimObject.py(795): __getattr__
  build/ARM/arch/arm/ArmSystem.py(113): for_kvm
  configs/example/arm/fs_bigLITTLE.py(313): _build_kvm
  configs/example/arm/fs_bigLITTLE.py(287): build
  configs/example/arm/fs_bigLITTLE.py(388): main
  configs/example/arm/fs_bigLITTLE.py(398): <module>
  build/ARM/python/m5/main.py(434): main

----------------------------------------------------------------------------------------------------------

However, after I switched to develop branch, the fixes are working and the 
full-system simulation is up. Hopefully, it can run to the login terminal.

Thanks a lot again.

All the best,
Xiongfei

From: Giacomo Travaglini 
<[email protected]<mailto:[email protected]>>
Sent: Thursday, November 3, 2022 8:07 PM
To: The gem5 Users mailing list 
<[email protected]<mailto:[email protected]>>
Cc: Xiongfei Liao (廖雄飛) 
<[email protected]<mailto:[email protected]>>
Subject: Re: panic: KVM: Failed to set register (0x6030000000100042) value

Hello, it was a bug which got fixed by the following patches, which are merged 
in develop and will be part of next release

https://gem5-review.googlesource.com/c/public/gem5/+/64072/4<https://urldefense.com/v3/__https:/gem5-review.googlesource.com/c/public/gem5/*/64072/4__;Kw!!CTRNKA9wMg0ARbw!z9vG9aTNwWxbyTXA95z-gPrurSI5goVI6Zuq1Eoyx-IB2V72Rltru4ITFRMPm2GGJcJ2$>
https://gem5-review.googlesource.com/c/public/gem5/+/64073/4<https://urldefense.com/v3/__https:/gem5-review.googlesource.com/c/public/gem5/*/64073/4__;Kw!!CTRNKA9wMg0ARbw!z9vG9aTNwWxbyTXA95z-gPrurSI5goVI6Zuq1Eoyx-IB2V72Rltru4ITFRMPm0SxaEV9$>

Let me know if it works

Kind Regards

Giacomo

From: Xiongfei Liao (廖雄飛) via gem5-users 
<[email protected]<mailto:[email protected]>>
Date: Thursday, 3 November 2022 at 11:19
To: [email protected]<mailto:[email protected]> 
<[email protected]<mailto:[email protected]>>
Cc: Xiongfei Liao (廖雄飛) 
<[email protected]<mailto:[email protected]>>
Subject: [gem5-users] panic: KVM: Failed to set register (0x6030000000100042) 
value
Hi,

We try to run a full-system simulation using ARMV8KvmCPU. The simulation cannot 
get started due to the below failure of setting register PSTATE.

-----------------------------------------------------------------------------------------------------------------------------
… …
      0: system.kvm_vm: Mapping 8 memory region(s)
      0: system.kvm_vm: Mapping region: 0x0xffffaebcb000 -> 0x0 [size: 
0x4000000]
      0: system.kvm_vm: Mapping region: 0x0xffffbb027000 -> 0x4000000 [size: 
0x40000]
      0: system.kvm_vm: Mapping region: 0x0xffffacbcb000 -> 0x6000000 [size: 
0x2000000]
      0: system.kvm_vm: Mapping region: 0x0xffffa8bcb000 -> 0x8000000 [size: 
0x4000000]
      0: system.kvm_vm: Mapping region: 0x0xffffa4bcb000 -> 0xc000000 [size: 
0x4000000]
      0: system.kvm_vm: Mapping region: 0x0xffffa2bcb000 -> 0x18000000 [size: 
0x2000000]
      0: system.kvm_vm: Mapping region: 0x0xffffbc1b4000 -> 0x2e000000 [size: 
0x8000]
      0: system.kvm_vm: Mapping region: 0x0xffff22bcb000 -> 0x80000000 [size: 
0x80000000]
build/ARM/cpu/kvm/base.cc:150: info: KVM: Coalesced MMIO disabled by config.
      0: system.littleCluster.cpus:   MPIDR(EL1) := 0x80000000
build/ARM/dev/arm/energy_ctrl.cc:252: warn: Existing EnergyCtrl, but no enabled 
DVFSHandler found.
build/ARM/sim/simulate.cc:194: info: Entering event queue @ 0.  Starting 
simulation...
      0: system.littleCluster.cpus: Attaching cycle counter...
      0: system.littleCluster.cpus: In updateKvmState():
      0: system.littleCluster.cpus:   PSTATE := 0x3cd
build/ARM/cpu/kvm/base.cc:863: panic: KVM: Failed to set register 
(0x6030000000100042) value (errno: 22)
Memory Usage: 2693544 KBytes
Program aborted at tick 0
… …
-------------------------------------------------------------------------------------------------------------------------------

This register 0x6030000000100042 is legal and 64-bit based on the document at 
the link: 
https://www.kernel.org/doc/Documentation/virtual/kvm/api.txt<https://urldefense.com/v3/__https:/www.kernel.org/doc/Documentation/virtual/kvm/api.txt__;!!CTRNKA9wMg0ARbw!z9vG9aTNwWxbyTXA95z-gPrurSI5goVI6Zuq1Eoyx-IB2V72Rltru4ITFRMPm7W3eepx$>

What could be the reason for this? ARM CPU or software or anything else?

Any tips/suggestions are appreciated.

Thanks in advance.

All the best,
Xiongfei Liao

===================================================

The environment settings are as below.
Host:
ARM server: Ampere eMag 2019
OS & Kernel: Ubuntu 20.04.5 LTS (GNU/Linux 5.4.0-131-generic aarch64)

Simulator:
gem5: cloned on Oct 27, 2022
bootloader: gem5 binaries 20220707/binaries/boot.arm64
kernel: gem5 binaries 20220707/binaries/vmlinux.arm64
disk: gem5 binaries ubuntu-18.04-arm64-docker.img

_______________________________________________
gem5-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to