-
Notifications
You must be signed in to change notification settings - Fork 9
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
MSR Read #211
MSR Read #211
Conversation
tiny problem |
Thanks for going after this one! |
yee |
but yeah if we solve this asm problem we will be able to use it to read MSR, and we can get TDP, GPU TDP, clockspeed, max temp target, and potentially undervolting |
@JakeRoggenbuck okay heres the big brain idea, what if we read from MSR in C, then export the values to rust |
Yea! Does an MSR exist for rust? If not, we could make that library then use it as a dependency in case someone else needs MSR as well. |
This is a thing, not sure if it's the right thing, or the best thing https://docs.rs/x86_64/0.1.2/x86_64/registers/msr/index.html We can always use our own if it's easier and more efficient |
Yeah rust does have a MSR library, but it cannot be used in production because asm is nightly and development only I tried to make a read msr function but it also doesn't build due to unstable inline assembly |
Yeah I tried to use that one, but the entire core::arch::asm is not available and the library doesn't build properly with our project |
dat's why I said it might be a good idea to read it in c cuz intel actually gives the method to read from MSR in c |
asm is still not stablize enough to be used, stablization PR not made ill try using C/C++ and see if it works |
Great work with this! Looks super good |
This is going to be a great addition to acs |
Thx! |
The documentation on this is... well, intel didn't even bother to make a readme for it |
Ooof, we might be able to help them out and write some docs for this, and then give it to them lol |
Lol, yea, that's a little while ago |
Seven years before GitHub was created |
this code is older than anyone here lol |
probably work on this a later time when we can use asm outside of experimental |
Reads information from the MSR registries
Also reads current CPU and GPU TDP if used correctly
Closes #41 #131