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://gem5-review.googlesource.com/c/public/gem5/+/64073/4

Let me know if it works

Kind Regards

Giacomo

From: Xiongfei Liao (廖雄飛) via gem5-users <gem5-users@gem5.org>
Date: Thursday, 3 November 2022 at 11:19
To: gem5-users@gem5.org <gem5-users@gem5.org>
Cc: Xiongfei Liao (廖雄飛) <xiongfei.l...@mediatek.com>
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

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


************* MEDIATEK Confidentiality Notice

 ********************

The information contained in this e-mail message (including any

attachments) may be confidential, proprietary, privileged, or otherwise

exempt from disclosure under applicable laws. It is intended to be

conveyed only to the designated recipient(s). Any use, dissemination,

distribution, printing, retaining or copying of this e-mail (including its

attachments) by unintended recipient(s) is strictly prohibited and may

be unlawful. If you are not an intended recipient of this e-mail, or believe



that you have received this e-mail in error, please notify the sender

immediately (by replying to this e-mail), delete any and all copies of

this e-mail (including any attachments) from your system, and do not

disclose the content of this e-mail to any other person. Thank you!

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
To unsubscribe send an email to gem5-users-le...@gem5.org

Reply via email to