Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unrecognized MSR spam in dmesg with kernel 5.15 #618

Closed
pikrzysztof opened this issue Dec 11, 2023 · 4 comments · Fixed by #619
Closed

Unrecognized MSR spam in dmesg with kernel 5.15 #618

pikrzysztof opened this issue Dec 11, 2023 · 4 comments · Fixed by #619

Comments

@pikrzysztof
Copy link

I deployed latest pcm-exporter and my dmesg is flooded with

[46926812.402900] msr: Write to unrecognized MSR 0xc8d by pcm-sensor-serv (pid: 2346865).
[46926812.418319] msr: See https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/about for details.
[46926842.411011] filter_write: 11110 callbacks suppressed
[46926842.411016] msr: Write to unrecognized MSR 0xc8d by pcm-sensor-serv (pid: 2346863).
[46926842.428229] msr: See https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/about for details.

@opcm
Copy link
Contributor

opcm commented Dec 11, 2023

what is the output of this command: cat /sys/module/msr/parameters/allow_writes

@pikrzysztof
Copy link
Author

pikrzysztof commented Dec 11, 2023

[email protected]:~# cat /sys/module/msr/parameters/allow_writes
default
[email protected]:~# grep MSR /boot/config-5.15.46 
CONFIG_X86_DEBUGCTLMSR=y
CONFIG_X86_MSR=m
CONFIG_SCSI_ARCMSR=m

@pikrzysztof
Copy link
Author

OK, I think setting allow_writes to on fixed this problem.

I think the issue is that I'm running the service from inside docker container as described in https://github.com/intel/pcm/blob/master/doc/DOCKER_README.md

The sad part is that the invocation docker run -d --name pcm --cap-add=SYS_ADMIN --cap-add=SYS_RAWIO --device=/dev/cpu --device=/dev/mem -v /sys/firmware/acpi/tables/MCFG:/pcm/sys/firmware/acpi/tables/MCFG:ro -v /proc/bus/pci/:/pcm/proc/bus/pci/ -v /proc/sys/kernel/nmi_watchdog:/pcm/proc/sys/kernel/nmi_watchdog -p 9738:9738 ghcr.io/opcm/pcm missed -v /sys:/sys:rw part so that https://github.com/intel/pcm/blob/master/src/msr.cpp#L217-L246 is not able to do its job.

I suggest updating docker run invocation.

opcm added a commit that referenced this issue Dec 12, 2023
@opcm opcm linked a pull request Dec 12, 2023 that will close this issue
@opcm
Copy link
Contributor

opcm commented Dec 12, 2023

thanks for testing and the suggestion. It will be integrated.

@opcm opcm closed this as completed in #619 Dec 12, 2023
opcm added a commit that referenced this issue Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants