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

pcm-power: improve the error message to indicate that the client CPU can't be supported #812

Open
bjorn3 opened this issue Aug 13, 2024 · 8 comments

Comments

@bjorn3
Copy link

bjorn3 commented Aug 13, 2024

$ cat /proc/cpuinfo | head -5
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 154
model name      : 12th Gen Intel(R) Core(TM) i7-12650H

This happens both with the version in the Debian repos as well as the latest commit on the master branch (db66fd7) build from source. The pcm command works fine though.

@rdementi
Copy link
Contributor

this is a known limitation for your CPU: https://github.com/intel/pcm/blob/master/doc/FAQ.md#q5

@bjorn3
Copy link
Author

bjorn3 commented Aug 13, 2024

I see. Would it be possible to improve the error message to indicate that the hardware can't be supported at all rather than just missing an implementation in pcm?

@rdementi
Copy link
Contributor

that is a good idea

@rdementi rdementi changed the title pcm-power exits with "Unsupported processor model (151)" pcm-power: improve the error message to indicate that the client CPU can't be supported Aug 13, 2024
@bjorn3
Copy link
Author

bjorn3 commented Aug 13, 2024

By the way https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/4115 mentions that there is a way to diagnose why the package C state doesn't go below C3 that works on laptops. I couldn't find the documentation it referred to. Instead I came across this tool, which I hoped would be useful. Do you happen to know what documentation was referred to or how to diagnose this issue?

@rdementi
Copy link
Contributor

c-states should be still shown on your processor in the main pcm tool. A recent example: #811

@rdementi
Copy link
Contributor

image

@bjorn3
Copy link
Author

bjorn3 commented Aug 13, 2024

I see that it doesn't reach beyond package C3, just like I saw in powertop, but that is not helpful for figuring out why it doesn't reach beyond package C3. All P cores are in C7 the fast majority of the time and all E cores are in C6 the fast majority of the time, so I think it is either a kernel misconfiguration or some hardware that needs to be shutdown, but I don't know which of the two it is and which config/device is at fault. I hoped that pcm-power or some other program could tell me which of these it is.

@rdementi
Copy link
Contributor

I am afraid pcm-power is not going to help you but you can read more about package c6 states and conditions of entering package c6 state for 12th gen core processors here (e.g. the on-package graphics core needs to be powered down): https://edc.intel.com/content/www/us/en/design/ipla/software-development-platforms/client/platforms/alder-lake-desktop/12th-generation-intel-core-processors-datasheet-volume-1-of-2/001/package-c-states/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants