Hi folks, In order to add Nvidia Optimus support on Lenovo laptops, I'm trying to fix the last issues on [1], but I need your help to do some test on Lenovo's firmware. On Lenovo Sandy Bridge / Ivy Bridge series the PMH7 register 0x50 controls dGPU power. Comments on Gerrit show that different bits on different generations are used.
Please use util/pmh7tool on vendor firmware with Optimus enabled and graphics driver loaded:
$ ./pmh7tool -r 0x50
To wake the GPU from sleep, you can simply run lspci, or a graphical 3D application. It will go back to sleep after a few seconds of idle.
Please report which bits toggle and the device you run tests on. It will help to add proper Nvidia Optimus support to all Lenovo laptops.
1: https://review.coreboot.org/#/c/coreboot/+/28380/
Regards, Patrick