From 2eb26d4de4ab96fe17aa984ce3b88136e5587a43 Mon Sep 17 00:00:00 2001 From: Sebastien Boeuf Date: Wed, 26 Feb 2020 17:45:06 +0100 Subject: [PATCH] devices: acpi: Update GED to support PCI devices hotplug Expands the existing GED device description in the DSDT table. A new case of hotplug notification is being added to the already existing CPU and memory hotplug. The third case of hotplug being the addition/removal of a PCI device, it is identified through the flag 0x4. Signed-off-by: Sebastien Boeuf --- devices/src/acpi.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/devices/src/acpi.rs b/devices/src/acpi.rs index 7d9b9f76c..188812259 100644 --- a/devices/src/acpi.rs +++ b/devices/src/acpi.rs @@ -137,6 +137,11 @@ impl Aml for AcpiGEDDevice { &aml::Equal::new(&aml::Local(1), &2usize), vec![&aml::MethodCall::new("\\_SB_.MHPC.MSCN".into(), vec![])], ), + &aml::And::new(&aml::Local(1), &aml::Local(0), &4usize), + &aml::If::new( + &aml::Equal::new(&aml::Local(1), &4usize), + vec![&aml::MethodCall::new("\\_SB_.PCI0.PCNT".into(), vec![])], + ), ], ), ],