corna / me_cleaner

Tool for partial deblobbing of Intel ME/TXE firmware images
GNU General Public License v3.0
4.47k stars 278 forks source link

FYI: HAP (Alt Disable) Flag Descriptor Location Changed on Alder Lake (ADL) #403

Open GeographicCone opened 1 year ago

GeographicCone commented 1 year ago

On Alder Lake (ADL; 12th Gen CPU / CSME 16.0/16.1), the _reservehap flag is now at offset 0x017E in the descriptor, and the HAP (Alt Disable) mode is switched on by setting it to 0x01.

me_cleaner can't really deal with the image:

Coreboot's ifdtool can but patches it in the wrong place, even if explicitly told the platform is ADL:

Otherwise, with fallback settings:

So the patch is probably best applied manually for the time being. The location might be different on different platforms. One way to find out is to… look it up with Intel's very own MFIT (Modular Flash Image Tool), part of CSME Tools. It's located at:

MFIT_HAP

Note however that there might be side effects. On the laptop I tested it with, the device INTELAUDIO\DSP_CTLR_DEV_51C Intel Audio Smart Sound Technology (SST) OED (VEN8086&DEV_0222) no longer works. The error is:

This also causes the boot time to become unreasonably long. Perhaps a workaround is possible by tweaking the UEFI/BIOS settings but it's not immediately obvious as to which.