-
Notifications
You must be signed in to change notification settings - Fork 19
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
Enable/Disable IME by CMOS option #76
Conversation
33381f8
to
49f29a0
Compare
49f29a0
to
bdcd030
Compare
This does seem to prevent galp5 from suspending, if that's what a lack of C10 residency looks like. The power LED never blinks. |
Add function to have CSME firmware enter Soft Temporary Disable mode, and a corresponding function to put it back into Normal mode. A global reset is required for the CSME to change modes. Reference: - Intel doc #612229 (CSME 15.0 BIOS Specification) Change-Id: I1a5021b21dde407d4d813a0b1fff10e74ab356ed Signed-off-by: Tim Crawford <tcrawford@system76.com>
bdcd030
to
2e3c290
Compare
Yes, This should output 0:
And then you should be able to see which states it's reaching with this:
|
Could probably just use an inverted enum (0=Enabled, 1=Disabled) for TGL to preserve the behavior. |
Change-Id: Id1c04b23470221630c0faafb21f956f7365c677e Signed-off-by: Tim Crawford <tcrawford@system76.com>
Change-Id: I17e48d415dd0cd566caf0d53fd46550a89e1ed86 Signed-off-by: Tim Crawford <tcrawford@system76.com>
2e3c290
to
796cd6b
Compare
I'll try to get some feedback from upstream before making an incompatible change downstream. |
Replace the Kconfig option to disable IME with a CMOS option.
Value can be changed with nvramtool:
Changing state requires a global reset, so the next boot after enabling/disabling will power off the machine.
Tested on oryp6 with the following change, to always dump the ME state:
Then checked cbmem console (
cbmem -c
) to see the current working state and current operating mode.Concerns: This might break on TGL because the CMOS bit is currently 0 (Disable). At the least, this would mean no C10 residency on TGL-U. And since we haven't figured out the issue on gaze16, poweroff/suspend will break.
Resolves: system76/firmware-open#219
Resolves: system76/firmware-open#197
Upstream: CB:57541