Skip to content
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.

can not read register 266 #17

Open
zhjwong opened this issue Jan 6, 2020 · 1 comment
Open

can not read register 266 #17

zhjwong opened this issue Jan 6, 2020 · 1 comment

Comments

@zhjwong
Copy link

zhjwong commented Jan 6, 2020

[msr-tools]# ./rdmsr -a 266
rdmsr: CPU 0 cannot read MSR 0x0000010a
[msr-tools]# strace ./rdmsr -a 266
execve("./rdmsr", ["./rdmsr", "-a", "266"], 0x7fff41bfb840 /* 43 vars /) = 0
brk(NULL) = 0x14f9000
arch_prctl(0x3001 /
ARCH_??? /, 0x7ffd33c2f870) = -1 EINVAL (Invalid argument)
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=43690, ...}) = 0
mmap(NULL, 43690, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f8d300bf000
close(3) = 0
openat(AT_FDCWD, "/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\2009\2\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=5993088, ...}) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8d300bd000
mmap(NULL, 3942432, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f8d2fadf000
mprotect(0x7f8d2fc98000, 2097152, PROT_NONE) = 0
mmap(0x7f8d2fe98000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1b9000) = 0x7f8d2fe98000
mmap(0x7f8d2fe9e000, 14368, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f8d2fe9e000
close(3) = 0
arch_prctl(ARCH_SET_FS, 0x7f8d300be500) = 0
mprotect(0x7f8d2fe98000, 16384, PROT_READ) = 0
mprotect(0x602000, 4096, PROT_READ) = 0
mprotect(0x7f8d300ca000, 4096, PROT_READ) = 0
munmap(0x7f8d300bf000, 43690) = 0
openat(AT_FDCWD, "/dev/cpu", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
fstat(3, {st_mode=S_IFDIR|0755, st_size=540, ...}) = 0
brk(NULL) = 0x14f9000
brk(0x151a000) = 0x151a000
brk(NULL) = 0x151a000
getdents64(3, /
27 entries /, 32768) = 656
getdents64(3, /
0 entries */, 32768) = 0
close(3) = 0
openat(AT_FDCWD, "/dev/cpu/0/msr", O_RDONLY) = 3
pread64(3, 0x7ffd33c2f798, 8, 266) = -1 EIO (Input/output error)
write(2, "rdmsr: CPU 0 cannot read MSR 0x0"..., 40rdmsr: CPU 0 cannot read MSR 0x0000010a
) = 40
exit_group(4) = ?
+++ exited with 4 +++
[msr-tools]# lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 24
On-line CPU(s) list: 0-23
Thread(s) per core: 2
Core(s) per socket: 6
Socket(s): 2
NUMA node(s): 2
Vendor ID: GenuineIntel
CPU family: 6
Model: 45
Model name: Intel(R) Xeon(R) CPU E5-2620 0 @ 2.00GHz
Stepping: 7
CPU MHz: 1196.900
CPU max MHz: 2500.0000
CPU min MHz: 1200.0000
BogoMIPS: 3989.75
Virtualization: VT-x
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 15360K
NUMA node0 CPU(s): 0-5,12-17
NUMA node1 CPU(s): 6-11,18-23
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx lahf_lm epb pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid xsaveopt dtherm ida arat pln pts flush_l1d
[msr-tools]# uname -r
4.18.0-147.el8_1.x86_64

@jshen28
Copy link

jshen28 commented Dec 7, 2021

Does 2620 have this msr flag defined?

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants