[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 50/55] x86: pci: acpi: reorder Device's _ADR and _SUN fields
From: |
Michael S. Tsirkin |
Subject: |
[PULL 50/55] x86: pci: acpi: reorder Device's _ADR and _SUN fields |
Date: |
Mon, 10 Oct 2022 13:32:23 -0400 |
From: Igor Mammedov <imammedo@redhat.com>
no functional change, align order of fields in empty slot
descriptor with a populated slot ordering.
Expected diff:
- Name (_SUN, 0x0X) // _SUN: Slot User Number
Name (_ADR, 0xY) // _ADR: Address
...
+ Name (_SUN, 0xX) // _SUN: Slot User Number
that will eliminate contextual changes (causing test failures)
when follow up patches merge code generating populated and empty
slots descriptors.
Put mandatory _ADR as the 1st field, then ASUN as it can be
present for both pupulated and empty slots and only then _SUN
which is present only when slot is hotpluggable.
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <20220701133515.137890-13-imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.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 eb92b05197..6342467af4 100644
--- a/hw/i386/acpi-build.c
+++ b/hw/i386/acpi-build.c
@@ -442,8 +442,8 @@ static void build_append_pci_bus_devices(Aml *parent_scope,
PCIBus *bus,
break;
}
dev = aml_device("S%.02X", devfn);
- aml_append(dev, aml_name_decl("ASUN", aml_int(slot)));
aml_append(dev, aml_name_decl("_ADR", aml_int(adr)));
+ aml_append(dev, aml_name_decl("ASUN", aml_int(slot)));
aml_append(dev, aml_name_decl("_SUN", aml_int(slot)));
method = aml_method("_EJ0", 1, AML_NOTSERIALIZED);
aml_append(method,
--
MST
- [PULL 42/55] tests: acpi: whitelist pc/q35 DSDT due to HPET AML move, (continued)
- [PULL 42/55] tests: acpi: whitelist pc/q35 DSDT due to HPET AML move, Michael S. Tsirkin, 2022/10/10
- [PULL 44/55] x86: acpi: _DSM: use Package to pass parameters, Michael S. Tsirkin, 2022/10/10
- [PULL 45/55] tests: acpi: update expected blobs, Michael S. Tsirkin, 2022/10/10
- [PULL 46/55] tests: acpi: whitelist pc/q35 DSDT before switching _DSM to use ASUN, Michael S. Tsirkin, 2022/10/10
- [PULL 47/55] x86: acpi: cleanup PCI device _DSM duplication, Michael S. Tsirkin, 2022/10/10
- [PULL 48/55] tests: acpi: update expected blobs, Michael S. Tsirkin, 2022/10/10
- [PULL 49/55] tests: acpi: whitelist pc/q35 DSDT before moving _ADR field, Michael S. Tsirkin, 2022/10/10
- [PULL 51/55] tests: acpi: update expected blobs, Michael S. Tsirkin, 2022/10/10
- [PULL 53/55] x86: pci: acpi: reorder Device's _DSM method, Michael S. Tsirkin, 2022/10/10
- [PULL 54/55] tests: acpi: update expected blobs, Michael S. Tsirkin, 2022/10/10
- [PULL 50/55] x86: pci: acpi: reorder Device's _ADR and _SUN fields,
Michael S. Tsirkin <=
- [PULL 55/55] x86: pci: acpi: consolidate PCI slots creation, Michael S. Tsirkin, 2022/10/10
- [PULL 52/55] tests: acpi: whitelist pc/q35 DSDT before moving _ADR field, Michael S. Tsirkin, 2022/10/10
- Re: [PULL 00/55] pc,virtio: features, tests, fixes, cleanups, Stefan Hajnoczi, 2022/10/12
- Re: [PULL 00/55] pc,virtio: features, tests, fixes, cleanups, Stefan Hajnoczi, 2022/10/12