[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 11/12] hw/i386: Fix _STA return value for ACPI0017
From: |
Jonathan Cameron |
Subject: |
[PATCH 11/12] hw/i386: Fix _STA return value for ACPI0017 |
Date: |
Wed, 24 Jan 2024 12:40:59 +0000 |
Found whilst testing a series for the linux kernel that actually
bothers to check if enabled is set. 0xB is the option used
for vast majority of DSDT entries in QEMU.
It is a little odd for a device that doesn't really exist and
is simply a hook to tell the OS there is a CEDT table but 0xB
seems a reasonable choice and avoids need to special case
this device in the OS.
Means:
* Device present.
* Device enabled and decoding it's resources.
* Not shown in UI
* Functioning properly
* No battery (on this device!)
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
---
hw/i386/acpi-build.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c
index edc979379c..e3e9afd376 100644
--- a/hw/i386/acpi-build.c
+++ b/hw/i386/acpi-build.c
@@ -1415,7 +1415,7 @@ static void build_acpi0017(Aml *table)
aml_append(dev, aml_name_decl("_HID", aml_string("ACPI0017")));
method = aml_method("_STA", 0, AML_NOTSERIALIZED);
- aml_append(method, aml_return(aml_int(0x01)));
+ aml_append(method, aml_return(aml_int(0x0B)));
aml_append(dev, method);
build_cxl_dsm_method(dev);
--
2.39.2
- [PATCH 01/12] cxl/cdat: Handle cdat table build errors, (continued)
- [PATCH 01/12] cxl/cdat: Handle cdat table build errors, Jonathan Cameron, 2024/01/24
- [PATCH 02/12] hw/mem/cxl_type3: Drop handling of failure of g_malloc0(), Jonathan Cameron, 2024/01/24
- [PATCH 03/12] hw/pci-bridge/cxl_upstream: Drop g_malloc0() failure handling, Jonathan Cameron, 2024/01/24
- [PATCH 04/12] cxl/cdat: Fix header sum value in CDAT checksum, Jonathan Cameron, 2024/01/24
- [PATCH 05/12] hw/cxl/mbox: Remove dead code, Jonathan Cameron, 2024/01/24
- [PATCH 06/12] hw/cxl/device: read from register values in mdev_reg_read(), Jonathan Cameron, 2024/01/24
- [PATCH 07/12] hw/cxl: Pass CXLComponentState to cache_mem_ops, Jonathan Cameron, 2024/01/24
- [PATCH 08/12] hw/cxl: Pass NULL for a NULL MemoryRegionOps, Jonathan Cameron, 2024/01/24
- [PATCH 09/12] hw/mem/cxl_type3: Fix potential divide by zero reported by coverity, Jonathan Cameron, 2024/01/24
- [PATCH 10/12] tests/acpi: Allow update of DSDT.cxl, Jonathan Cameron, 2024/01/24
- [PATCH 11/12] hw/i386: Fix _STA return value for ACPI0017,
Jonathan Cameron <=
- [PATCH 12/12] tests/acpi: Update DSDT.cxl to reflect change _STA return value., Jonathan Cameron, 2024/01/24