33 lines
1.2 KiB
Diff
33 lines
1.2 KiB
Diff
|
|
From 237fdc8ddb0598234aace9c88ac4c8387119a12a Mon Sep 17 00:00:00 2001
|
||
|
|
From: Eric Auger <eric.auger@redhat.com>
|
||
|
|
Date: Thu, 7 Jul 2022 11:55:25 -0400
|
||
|
|
Subject: [PATCH] acpi/gpex: Fix PCI Express Slot Information function 0
|
||
|
|
returned value
|
||
|
|
|
||
|
|
At the moment we do not support other function than function 0.
|
||
|
|
So according to ACPI spec "_DSM (Device Specific Method)"
|
||
|
|
description, bit 0 should rather be 0, meaning no other function is
|
||
|
|
supported than function 0.
|
||
|
|
|
||
|
|
Signed-off-by: Eric Auger <eric.auger@redhat.com>
|
||
|
|
---
|
||
|
|
hw/pci-host/gpex-acpi.c | 2 +-
|
||
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
|
||
|
|
diff --git a/hw/pci-host/gpex-acpi.c b/hw/pci-host/gpex-acpi.c
|
||
|
|
index 1092dc3b70..ac5d229757 100644
|
||
|
|
--- a/hw/pci-host/gpex-acpi.c
|
||
|
|
+++ b/hw/pci-host/gpex-acpi.c
|
||
|
|
@@ -113,7 +113,7 @@ static void acpi_dsdt_add_pci_osc(Aml *dev)
|
||
|
|
UUID = aml_touuid("E5C937D0-3553-4D7A-9117-EA4D19C3434D");
|
||
|
|
ifctx = aml_if(aml_equal(aml_arg(0), UUID));
|
||
|
|
ifctx1 = aml_if(aml_equal(aml_arg(2), aml_int(0)));
|
||
|
|
- uint8_t byte_list[1] = {1};
|
||
|
|
+ uint8_t byte_list[1] = {0};
|
||
|
|
buf = aml_buffer(1, byte_list);
|
||
|
|
aml_append(ifctx1, aml_return(buf));
|
||
|
|
aml_append(ifctx, ifctx1);
|
||
|
|
--
|
||
|
|
2.41.0.windows.1
|
||
|
|
|