andreiw / RaspberryPiPkg

DEPRECATED - DO NOT USE | Go here instead ->
https://github.com/tianocore/edk2-platforms/tree/master/Platform/RaspberryPi/RPi3
744 stars 143 forks source link

Win10 shutdown does not soft-off #64

Closed andreiw closed 5 years ago

andreiw commented 5 years ago

The screen goes blank, but not black, and the green led doesn't blink, meaning that Windows never called PSCI to power-off.

andreiw commented 5 years ago

poweroff -f does the right thing in Linux.... possible some ACPI-related shenanigans

driver1998 commented 5 years ago

Speaking of blinking LEDs, when I install the ported RPIQ driver, the green LED keeps blinking all the time. But the driver does work though (I can send ioctls to it for mailbox stuff).

andreiw commented 5 years ago

Well, it's either the driver or the GPU...

andreiw commented 5 years ago

I really wish ACPI added an OpRegion for SMCs. Grrr.

I think I could get away with a \_PTS method to basically implement https://github.com/andreiw/raspberry-pi3-atf/blob/11c9a950ea89a753e473c8b66d6cfe23e9ce7e42/plat/rpi3/rpi3_pm.c#L220

andreiw commented 5 years ago

Why or why couldn't Arm FFH be a general-purpose mechanism? Mystery.

Anyway, what compounds testing this is the USB driver quality getting in the way. Even rebooting frequently hangs due to the USB driver hangs.

mariobalanica commented 5 years ago

Now it turns off properly. The issue was the faulty Windows USB driver.

andreiw commented 5 years ago

Ok, good to know