ACPI: Unconditionally mask off PCIe native hot plug control

We don't actually support hot plug and this causes lockups in Windows.

Signed-off-by: Mario Bălănică <mariobalanica02@gmail.com>
This commit is contained in:
Mario Bălănică
2024-03-01 23:59:47 +02:00
parent ba8fbeea98
commit 3e5a3c8c06

View File

@@ -80,17 +80,12 @@
SUPP = CDW2 \
CTRL = CDW3 \
\
/* Only allow native hot plug control if OS supports: */ \
/* ASPM */ \
/* Clock PM */ \
/* MSI/MSI-X */ \
If ((SUPP & 0x16) != 0x16) { \
Ctrl &= 0x3E /* Mask bit 0 (and undefined bits) */ \
} \
/* Mask out native hot plug control */ \
CTRL &= 0x1E \
\
/* Always allow native PME, AER and Capability Structure control */ \
/* Never allow SHPC and LTR control */ \
Ctrl &= 0x1D \
CTRL &= 0x1D \
\
/* Unknown revision */ \
If (Arg1 != 1) { \