-
Notifications
You must be signed in to change notification settings - Fork 476
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
IOConnectCallStructMethod calling failed #839
Comments
could you run pcm with the -r option?
Does it work? |
I don't think
|
this seems to the the same issue: #608 (comment) Did you try the manual install procedure: https://github.com/intel/pcm/blob/master/doc/MAC_HOWTO.txt |
I basically follow the instructions in https://github.com/intel/pcm/blob/master/doc/MAC_HOWTO.txt, except I use several cmake options, The reason why I use The reason why I use The reason for
Here's part of the output of |
thank you. Please share the full output from kextstat and also MacOS/OSX version. |
macos version 11.2.3 (20D91) |
It fails already here (from your log):
pcm/src/MacMSRDriver/MSRAccessor.cpp Line 139 in c761ba7
Code 0xE00002C7 means kIOReturnUnsupported Not sure why it is not supported. In PCM we don't use kIOReturnUnsupported at all. |
Could you try this from the howto: Logging/DebuggingSometimes you will get errors while running utilities that may come from the kernel, and you can use something like this DTrace script to correlate it with user-land behavior:
Various commands that can help diagnose errors:
|
It seems that I finally got pcm working. I disable SIP totally instead of disabling partially(only disabling Kext Signing and Filesystem Protections) and run pcm with option
For now, my only question is, according to your opinion, which of SIP items are required to make pcm works? You may just provide some suggestions or give me some hints and I will keep trying and testing.
|
yes, this is expected output. Unfortunately I don't have access to MacOS system right now. Your help is much appreciated |
Below is the output of
pcm
.I tried to debug the code, below is the call stack.
And when the debugger step over
kern_return_t ret = IOConnectCallStructMethod(connect, kReadMSR, &idatas, struct_size, &odatas, &struct_size);
, the returned value is 268435459 rather than 0.Below is the code snippet and corresponding arguments passed into
IOConnectCallStructMethod
I did some research about
IOConnectCallStructMethod
. It seemsIOConnectCallStructMethod
is trying to send a struct to a kext and get the output struct, correct? And I double checked that SIP is disabled andcom.intel.driver.PcmMsr
is loaded.I cannot diagnose anymore.
The text was updated successfully, but these errors were encountered: