cocafe / msr-utility

Little CLI utility to control Model Specific Registers (MSRs) on Windows via WinRing0 driver, 64+ cores supported
74 stars 12 forks source link

CPU0 read msr failed #10

Open jamestang0219 opened 3 months ago

jamestang0219 commented 3 months ago

hi, im using the fantastic tool to fix my cpu issue. Following others experience, i write these instruction and execute in CMD: msr-cmd.exe -A setbit 0xc0010292 32 0 msr-cmd.exe -A rmwmask 0xc0010296 0x404040 0x0

but the error occur: msr_rmw(): CPU0 read msr failed

any suggestion? Thanks!

cocafe commented 3 months ago

Insufficient permission or the register is not supported by this CPU?

cocafe commented 3 months ago

Insufficient permission or the register is not supported by this CPU?

or write-only register

jamestang0219 commented 3 months ago

Insufficient permission or the register is not supported by this CPU?

or write-only register

thx for reply, my cpu is 7840hs, and i already use admin to execute cmd

pexcn commented 3 months ago

Same error. My CPU is Intel i7-8750H and i5-8250U.

Note: 1. I am using Administrator 2. Disabled CFG Lock in BIOS

So I think having enough permissions.

My bad...

jamestang0219 commented 3 months ago

~Same error. My CPU is Intel i7-8750H and i5-8250U.~

~Note:~ ~1. I am using Administrator~ ~2. Disabled CFG Lock in BIOS~

~So I think having enough permissions.~

My bad...

how do u fix this issue?

pexcn commented 3 months ago

how do u fix this issue?

@jamestang0219 Need to ensure that the address of the register is correct. e.g.:

:: For i5-8250U
msr-cmd.exe -A read 0x606
cocafe commented 3 months ago

Insufficient permission or the register is not supported by this CPU?

or write-only register

thx for reply, my cpu is 7840hs, and i already use admin to execute cmd

Try to read first, if it can't be read, this register may not support by your model, although this register can be RW on zen4 desktop. Here are some register references for zen4 You can wander around those repos control RYZEN to see whether some badass have decoded your platform. (keyword: ryzen, smu) Also, grab a copy of latest AMD's PPR (Preliminary Processor Programming Reference) from somewhere to see whether these registers are documented publicly or not. (keyword: ppr, amd, ppr_RS_A0_nda_1.pdf(leaked, legacy maybe))

cocafe commented 3 months ago

Insufficient permission or the register is not supported by this CPU?

or write-only register

thx for reply, my cpu is 7840hs, and i already use admin to execute cmd

Try to read first, if it can't be read, this register may not support by your model, although this register can be RW on zen4 desktop. Here are some register references for zen4 You can wander around those repos control RYZEN to see whether some badass have decoded your platform. (keyword: ryzen, smu) Also, grab a copy of latest AMD's PPR (Preliminary Processor Programming Reference) from somewhere to see whether these registers are documented publicly or not. (keyword: ppr, amd, ppr_RS_A0_nda_1.pdf(leaked, legacy maybe))

One more, winwring0 may be considered as malware on latest windows 11 version, although the error should be failed to load driver, you can try to shutdown that protection too.

pexcn commented 3 months ago

Hello @cocafe, Is there a way to implement Sync MMIO functionality similar to ThrottleStop?

image

cocafe commented 3 months ago

Hello @cocafe, Is there a way to implement Sync MMIO functionality similar to ThrottleStop?

image

Yeah you can use my repo physmem, that MMIO is actually a memory address to write. Im outside now if u r interested i can shall my scripts for 12gen (mobile) later.

pexcn commented 3 months ago

Yeah you can use my repo physmem, that MMIO is actually a memory address to write. Im outside now if u r interested i can shall my scripts for 12gen (mobile) later.

Thank you 😄

cocafe commented 3 months ago

Yeah you can use my repo physmem, that MMIO is actually a memory address to write. Im outside now if u r interested i can shall my scripts for 12gen (mobile) later.

Thank you 😄

Here U R https://github.com/cocafe/msr-scripts

pexcn commented 3 months ago

Here U R https://github.com/cocafe/msr-scripts

OK, I will try it, thank you! :)