ae12374951
pc: set the OEM fields in the RSDT and the FADT from the SLIC
...
The Microsoft spec about the SLIC and MSDM ACPI tables at
<http://go.microsoft.com/fwlink/p/?LinkId=234834 > requires the OEM ID and
OEM Table ID fields to be consistent between the SLIC and the RSDT/XSDT.
That further affects the FADT, because a similar match between the FADT
and the RSDT/XSDT is required by the ACPI spec in general.
This patch wires up the previous three patches.
Cc: "Michael S. Tsirkin" <mst@redhat.com > (supporter:ACPI/SMBIOS)
Cc: Igor Mammedov <imammedo@redhat.com > (supporter:ACPI/SMBIOS)
Cc: Paolo Bonzini <pbonzini@redhat.com > (maintainer:X86)
Cc: Richard W.M. Jones <rjones@redhat.com >
Cc: Aleksei Kovura <alex3kov@zoho.com >
Cc: Michael Tokarev <mjt@tls.msk.ru >
Cc: Steven Newbury <steve@snewbury.org.uk >
RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=1248758
LP: https://bugs.launchpad.net/qemu/+bug/1533848
Signed-off-by: Laszlo Ersek <lersek@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
Reviewed-by: Steven Newbury <steve@snewbury.org.uk >
2016-02-06 20:44:10 +02:00
5151355898
acpi: expose oem_id and oem_table_id in build_rsdt()
...
Since build_rsdt() is implemented as common utility code (in
"hw/acpi/aml-build.c"), it should expose -- and forward -- the oem_id and
oem_table_id parameters between board code and the generic build_header()
function.
Cc: "Michael S. Tsirkin" <mst@redhat.com > (supporter:ACPI/SMBIOS)
Cc: Igor Mammedov <imammedo@redhat.com > (supporter:ACPI/SMBIOS)
Cc: Shannon Zhao <zhaoshenglong@huawei.com > (maintainer:ARM ACPI Subsystem)
Cc: Paolo Bonzini <pbonzini@redhat.com > (maintainer:X86)
Cc: Richard W.M. Jones <rjones@redhat.com >
Cc: Aleksei Kovura <alex3kov@zoho.com >
Cc: Michael Tokarev <mjt@tls.msk.ru >
Cc: Steven Newbury <steve@snewbury.org.uk >
RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=1248758
LP: https://bugs.launchpad.net/qemu/+bug/1533848
Signed-off-by: Laszlo Ersek <lersek@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
Reviewed-by: Shannon Zhao <shannon.zhao@linaro.org >
2016-02-06 20:44:10 +02:00
37ad223c51
acpi: take oem_id in build_header(), optionally
...
This patch is the continuation of commit 8870ca0e94
("acpi: support
specified oem table id for build_header"). It will allow us to control the
OEM ID field too in the SDT header.
Cc: "Michael S. Tsirkin" <mst@redhat.com > (supporter:ACPI/SMBIOS)
Cc: Igor Mammedov <imammedo@redhat.com > (supporter:ACPI/SMBIOS)
Cc: Xiao Guangrong <guangrong.xiao@linux.intel.com > (maintainer:NVDIMM)
Cc: Shannon Zhao <zhaoshenglong@huawei.com > (maintainer:ARM ACPI Subsystem)
Cc: Paolo Bonzini <pbonzini@redhat.com > (maintainer:X86)
Cc: Richard W.M. Jones <rjones@redhat.com >
Cc: Aleksei Kovura <alex3kov@zoho.com >
Cc: Michael Tokarev <mjt@tls.msk.ru >
Cc: Steven Newbury <steve@snewbury.org.uk >
RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=1248758
LP: https://bugs.launchpad.net/qemu/+bug/1533848
Signed-off-by: Laszlo Ersek <lersek@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
Reviewed-by: Shannon Zhao <shannon.zhao@linaro.org >
2016-02-06 20:44:10 +02:00
dd4c2f01ab
pc: Move APIC and NUMA data from PcGuestInfo to PCMachineState
...
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
Reviewed-by: Marcel Apfelbaum <marcel@redhat.com >
2016-02-06 20:44:10 +02:00
f264d360e0
pc: Move PcGuestInfo.fw_cfg to PCMachineState
...
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
Reviewed-by: Marcel Apfelbaum <marcel@redhat.com >
2016-02-06 20:44:09 +02:00
5299f1c70a
pc: Remove RAM size fields from PcGuestInfo
...
The ACPI code can use the PCMachineState fields directly.
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
Reviewed-by: Marcel Apfelbaum <marcel@redhat.com >
2016-02-06 20:44:09 +02:00
bb292f5a9b
pc: Remove compat fields from PcGuestInfo
...
Remove the fields: legacy_acpi_table_size, has_acpi_build,
has_reserved_memory, and rsdp_in_ram from PcGuestInfo, and let
the existing code use the PCMachineClass fields directly.
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
Reviewed-by: Marcel Apfelbaum <marcel@redhat.com >
2016-02-06 20:44:09 +02:00
f944d4798c
acpi: Don't save PcGuestInfo on AcpiBuildState
...
We don't need to save the pointer on AcpiBuildState, as it is not
used anymore.
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
Reviewed-by: Marcel Apfelbaum <marcel@redhat.com >
2016-02-06 20:44:09 +02:00
fb306ffeba
acpi: Remove guest_info parameters from functions
...
We can use PC_MACHINE(qdev_get_machine())->acpi_guest_info to get
guest_info.
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2016-02-06 20:44:09 +02:00
41fa5c0410
pc: acpi: merge SSDT into DSDT
...
Since both tables are built dynamically now,
there is no point in keeping ASL in them in separate
tables.
So do the same as we do for ARM where we have only
DSDT table, i.e. move SSDT ASL into DSDT and
drop SSDT altogether.
This patch doesn't change moved SSDT ASL in any way,
but it opens a way to relatively independently simplify
generated ASL on per device/subsystem basis in
followup series.
It also simplifies bios-tables-test where expected
SSDT blobs could be dropped and only DSDT ones
have to be maintained.
Signed-off-by: Igor Mammedov <imammedo@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2016-02-04 19:53:02 +02:00
b6a0aa0537
x86: Clean up includes
...
Clean up includes so that osdep.h is included first and headers
which it implies are not included manually.
This commit was created with scripts/clean-includes.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
Message-id: 1453832250-766-11-git-send-email-peter.maydell@linaro.org
2016-01-29 15:07:22 +00:00
3db119da79
pc: acpi: switch to AML API composed DSDT
...
Signed-off-by: Igor Mammedov <imammedo@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2016-01-09 23:20:19 +02:00
9e4afc0995
pc: acpi: q35: PCST, PCSB opregions and PCIB field into SSDT
...
Signed-off-by: Igor Mammedov <imammedo@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2016-01-09 23:20:19 +02:00
afa06e1828
pc: acpi: q35: move PCI0 device definition into SSDT
...
Signed-off-by: Igor Mammedov <imammedo@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2016-01-09 23:20:19 +02:00
f97a88a85e
pc: acpi: q35: move PCI0._OSC() method into SSDT
...
Signed-off-by: Igor Mammedov <imammedo@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2016-01-09 23:20:19 +02:00
e9fce79861
pc: acpi: q35: move _PIC() method into SSDT
...
Signed-off-by: Igor Mammedov <imammedo@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2016-01-09 23:20:19 +02:00
65aef4de5e
pc: acpi: q35: move PRTP routing table into SSDT
...
Signed-off-by: Igor Mammedov <imammedo@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2016-01-09 23:20:19 +02:00
22b5b8bf31
pc: acpi: q35: move PRTA routing table into SSDT
...
Signed-off-by: Igor Mammedov <imammedo@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2016-01-09 23:20:19 +02:00
0dafe3b336
pc: acpi: q35: move _PRT() into SSDT
...
Signed-off-by: Igor Mammedov <imammedo@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2016-01-09 23:20:19 +02:00
41f95a5200
pc: acpi: q35: move ISA bridge into SSDT
...
Signed-off-by: Igor Mammedov <imammedo@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2016-01-09 23:20:19 +02:00
78e1ad0509
pc: acpi: q35: move IQST() into SSDT
...
Signed-off-by: Igor Mammedov <imammedo@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2016-01-09 23:20:19 +02:00
16682a9d86
pc: acpi: q35: move IQCR() into SSDT
...
Signed-off-by: Igor Mammedov <imammedo@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2016-01-09 23:20:19 +02:00
12e3b1f750
pc: acpi: q35: move link devices to SSDT
...
Signed-off-by: Igor Mammedov <imammedo@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2016-01-09 23:20:19 +02:00
80b32df529
pc: acpi: q35: move GSI links to SSDT
...
Signed-off-by: Igor Mammedov <imammedo@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2016-01-09 23:20:19 +02:00
32b9741f50
pc: acpi: piix4: acpi move PCI0 device to SSDT
...
leave Scope(\_SB) definition in DSDT so that iasl
would be able to compile DSDT since we are still
need definition block for table.
After Q35 ASL is converted, DSDT templates will
be completly replaced by AML API generated tables.
Signed-off-by: Igor Mammedov <imammedo@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2016-01-09 23:20:19 +02:00
b616ec4d6f
pc: acpi: piix4: move remaining PCI hotplug bits into SSDT
...
Signed-off-by: Igor Mammedov <imammedo@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2016-01-09 23:20:18 +02:00
196e213783
pc: acpi: piix4: move PCI0._PRT() into SSDT
...
PCI routing table for expander buses is build with help
of build_prt() using AML API. And it's almost the same
as PRT for PCI0 bus except of power-management device.
So make existing build_prt() build PRT table for PCI0
bus as well.
Signed-off-by: Igor Mammedov <imammedo@redhat.com >
Reviewed-by: Marcel Apfelbaum <marcel@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2016-01-09 23:20:18 +02:00
06989b8861
pc: acpi: piix4: move IQST() into SSDT
...
Signed-off-by: Igor Mammedov <imammedo@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2016-01-09 23:20:18 +02:00
100681ccf1
pc: acpi: piix4: move IQCR() into SSDT
...
Signed-off-by: Igor Mammedov <imammedo@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2016-01-09 23:20:18 +02:00
c35b6e8032
pc: acpi: pci: move link devices into SSDT
...
Signed-off-by: Igor Mammedov <imammedo@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2016-01-09 23:20:18 +02:00
4c5eebc1fa
pc: acpi: move remaining GPE handlers into SSDT
...
Signed-off-by: Igor Mammedov <imammedo@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2016-01-09 23:20:18 +02:00
e4db279804
pc: acpi: move PIIX4 isa-bridge and pm devices into SSDT
...
and also move PRQx fields declaration as it can't be
split out into separate patch since fields use
PCI0.ISA.P40C operation region and OperationRegion
must be declared in the same table as a Field that
uses it. If this condition is not statisfied Windows
will BSOD ans IASL (make check) will error out as well.
For the same reason pm is moved together with isa-bridge
as the later refernces P13C OperationRegion from pm device.
Signed-off-by: Igor Mammedov <imammedo@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2016-01-09 23:20:18 +02:00
28f1f0e929
pc: acpi: move COM devices from DSDT to SSDT
...
Signed-off-by: Igor Mammedov <imammedo@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2016-01-09 23:20:18 +02:00
8b1da5f8fd
pc: acpi: move LPT device from DSDT to SSDT
...
Signed-off-by: Igor Mammedov <imammedo@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2016-01-09 23:20:18 +02:00
95ed7e97e4
pc: acpi: move FDC0 device from DSDT to SSDT
...
Signed-off-by: Igor Mammedov <imammedo@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2016-01-09 23:20:18 +02:00
c355cb2c0f
pc: acpi: move MOU device from DSDT to SSDT
...
Signed-off-by: Igor Mammedov <imammedo@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2016-01-09 23:20:18 +02:00
f58190e2c2
pc: acpi: move KBD device from DSDT to SSDT
...
Signed-off-by: Igor Mammedov <imammedo@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2016-01-09 23:20:18 +02:00
ee13584996
pc: acpi: move RTC device from DSDT to SSDT
...
Signed-off-by: Igor Mammedov <imammedo@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2016-01-09 23:20:18 +02:00
3892a2b741
pc: acpi: move DBUG() from DSDT to SSDT
...
Signed-off-by: Igor Mammedov <imammedo@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2016-01-09 23:20:18 +02:00
a57d708d17
pc: acpi: move HPET from DSDT to SSDT
...
Signed-off-by: Igor Mammedov <imammedo@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2016-01-09 23:20:18 +02:00
5ca5efa4a6
pc: acpi: factor out cpu hotplug code from build_ssdt() into separate function
...
Signed-off-by: Igor Mammedov <imammedo@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2016-01-09 23:20:18 +02:00
6b30608774
pc: acpi: cpuhp: move \_GPE._E02() into SSDT
...
Signed-off-by: Igor Mammedov <imammedo@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2016-01-09 23:20:17 +02:00
f294ecbc13
pc: acpi: cpuhp: move PRSC() method into SSDT
...
Signed-off-by: Igor Mammedov <imammedo@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2016-01-09 23:20:17 +02:00
40f981a02d
pc: acpi: cpuhp: move CPST() method into SSDT
...
Signed-off-by: Igor Mammedov <imammedo@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2016-01-09 23:20:17 +02:00
1d608d13eb
pc: acpi: cpuhp: move CPMA() method into SSDT
...
Signed-off-by: Igor Mammedov <imammedo@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2016-01-09 23:20:17 +02:00
fbd7a6b8e2
pc: acpi: cpuhp: move CPEJ() method to SSDT
...
Signed-off-by: Igor Mammedov <imammedo@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2016-01-09 23:20:17 +02:00
f84548dda4
pc: acpi: memhp: drop not needed stringify(MEMORY_foo) usage
...
most of MEMORY_foo defines are not shared
with ASL anymore and are used only inside of
memory_hotplug_acpi_table.c, so move them
there and make them strings. As result we
can replace stringify(MEMORY_foo) with just
MEMORY_foo, which makes code a bit cleaner.
No AML change introduced by this patch.
Signed-off-by: Igor Mammedov <imammedo@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2016-01-09 23:20:17 +02:00
7f4495e1c1
pc: acpi: memhp: move \_GPE._E03 into SSDT
...
in addition remove no longer needed acpi-dsdt-mem-hotplug.dsl.
Signed-off-by: Igor Mammedov <imammedo@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2016-01-09 23:20:17 +02:00
f177d40ae2
pc: acpi: factor out memhp code from build_ssdt() into separate function
...
before consolidating memhp code in memory_hotplug_acpi_table.c
and for simplifying review, first factor out memhp code into
new function build_memory_devices() in i386/acpi-build.c
Signed-off-by: Igor Mammedov <imammedo@redhat.com >
----
PS:
no functional change, only code movement.
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2016-01-09 23:20:17 +02:00
30bd0cf465
pc: acpi: memhp: prepare context in SSDT for moving memhp DSDT code
...
Signed-off-by: Igor Mammedov <imammedo@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2016-01-08 16:01:37 +02:00