From 3e5a3c8c06ebc6dbcafcd8cd6d7ecbdfb733d83f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20B=C4=83l=C4=83nic=C4=83?= Date: Fri, 1 Mar 2024 23:59:47 +0200 Subject: [PATCH] ACPI: Unconditionally mask off PCIe native hot plug control MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We don't actually support hot plug and this causes lockups in Windows. Signed-off-by: Mario Bălănică --- .../Silicon/Rockchip/RK3588/AcpiTables/Pcie.asl | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/edk2-rockchip/Silicon/Rockchip/RK3588/AcpiTables/Pcie.asl b/edk2-rockchip/Silicon/Rockchip/RK3588/AcpiTables/Pcie.asl index f54ec458..99418bc2 100644 --- a/edk2-rockchip/Silicon/Rockchip/RK3588/AcpiTables/Pcie.asl +++ b/edk2-rockchip/Silicon/Rockchip/RK3588/AcpiTables/Pcie.asl @@ -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) { \