From: Marcel Apfelbaum <marcel@redhat.com>
To: Igor Mammedov <imammedo@redhat.com>
Cc: qemu-devel@nongnu.org, "Michael S. Tsirkin" <mst@redhat.com>
Subject: Re: [Qemu-devel] [PATCH 25/74] pc: acpi: memhp: prepare context in SSDT for moving memhp DSDT code
Date: Thu, 17 Dec 2015 16:12:55 +0200 [thread overview]
Message-ID: <5672C2E7.6030402@redhat.com> (raw)
In-Reply-To: <20151217144750.06579c1b@nial.brq.redhat.com>
On 12/17/2015 03:47 PM, Igor Mammedov wrote:
> On Thu, 17 Dec 2015 14:14:28 +0200
> Marcel Apfelbaum <marcel@redhat.com> wrote:
>
>> On 12/16/2015 04:25 PM, Igor Mammedov wrote:
>>> On Wed, 16 Dec 2015 15:25:46 +0200
>>> Marcel Apfelbaum <marcel.apfelbaum@gmail.com> wrote:
>>>
>>>> On 12/10/2015 01:41 AM, Igor Mammedov wrote:
>>>>> Signed-off-by: Igor Mammedov <imammedo@redhat.com>
>>>>> ---
>>>>> hw/acpi/Makefile.objs | 2 +-
>>>>> hw/acpi/memory_hotplug_acpi_table.c | 40
>>>>> +++++++++++++++++++++++++++++++++++++
>>>>> hw/i386/acpi-build.c | 3 +++
>>>>> include/hw/acpi/memory_hotplug.h | 4 ++++ 4 files changed, 48
>>>>> insertions(+), 1 deletion(-) create mode 100644
>>>>> hw/acpi/memory_hotplug_acpi_table.c
>>>>>
>>>>> diff --git a/hw/acpi/Makefile.objs b/hw/acpi/Makefile.objs
>>>>> index 7d3230c..c04064e 100644
>>>>> --- a/hw/acpi/Makefile.objs
>>>>> +++ b/hw/acpi/Makefile.objs
>>>>> @@ -1,7 +1,7 @@
>>>>> common-obj-$(CONFIG_ACPI_X86) += core.o piix4.o pcihp.o
>>>>> common-obj-$(CONFIG_ACPI_X86_ICH) += ich9.o tco.o
>>>>> common-obj-$(CONFIG_ACPI_CPU_HOTPLUG) += cpu_hotplug.o
>>>>> -common-obj-$(CONFIG_ACPI_MEMORY_HOTPLUG) += memory_hotplug.o
>>>>> +common-obj-$(CONFIG_ACPI_MEMORY_HOTPLUG) += memory_hotplug.o
>>>>> memory_hotplug_acpi_table.o common-obj-$(CONFIG_ACPI) +=
>>>>> acpi_interface.o common-obj-$(CONFIG_ACPI) += bios-linker-loader.o
>>>>> common-obj-$(CONFIG_ACPI) += aml-build.o
>>>>> diff --git a/hw/acpi/memory_hotplug_acpi_table.c
>>>>> b/hw/acpi/memory_hotplug_acpi_table.c new file mode 100644
>>>>> index 0000000..25bbf5e
>>>>> --- /dev/null
>>>>> +++ b/hw/acpi/memory_hotplug_acpi_table.c
>>>>> @@ -0,0 +1,40 @@
>>>>> +/*
>>>>> + * Memory hotplug AML code of DSDT ACPI table
>>>>
>>>> You are advertising as part of the DSDT code, but you are putting in
>>>> SSDT, right? By the way, maybe the answer is clear, but why are you
>>>> moving it to SSDT?
>>> There could be only one instance of DSDT and I temporarily put
>>> converted DSDT bits in SSDT until conversion is complete.
>>
>> I understand there can only be one DSDT table, but can't we have a "hybrid"
>> DSDT made from both asl files and C code?
> I've considered that and it's a little painful but possible
> to do for some parts of DSDT if ASL moved out from beginning/end
> of template. However when it comes to moving parts of ASL from
> the middle of template due to dependencies it all becomes way to
> too complicated or I'll have to convert almost ALL of DSDT in one patch,
> but that, even though verifiable via ACPI tests, won't be human
> review-able chunk.
Yes, I thought it would not be easy.
>
>
>>
>>>
>>>>
>>>> Last thing, from this patch forward (until maybe the last one) make
>>>> check fails, right? (Specifically the acpi tests)
>>> yes, starting from this patch and upto 72nd acpi test fails since
>>> patches move DSDT bits into SSDT.
>>
>> This can be a problem.
>> I am thinking of 2 solutions:
>> 1. Disable the iasl tests on patch 1 and re-enable it on patch 73.
>> 2. Go for a "hybrid" DSDT.
>>
>> If (2) is too complicated, the implication is that all this series
>> must be taken atomically. Of course, (1) or some other idea is needed.
>>
>> What do you think?
> as #2 too complicated, we could go with #1 but I don't think
> it will gain us much if anything.
>
> Yep, untill whole series is applied ACPI tests will not pass,
> that will affect bisection with 'make check' on each step
> but developers can deal with it and just ignore failed tests.
Here I don't agree, think about different tests not working from
different reasons, and make check failing because all kind of series,
how the developer would know not to take it in consideration? (and what to take?)
>
> Main goal was to make conversion and make sure that at the end
> of day it hasn't regressed tests.
> I don't think that putting much more efforts to keep interseries
> ACPI tests check passing is worth of an effort.
I personally think that is a little effort to disable the acpi test
in order to keep 'make check' clean.
However, we can ask for another opinion, I CC-ed Michael as the PC maintainer.
Thanks,
Marcel
[...]
next prev parent reply other threads:[~2015-12-17 14:13 UTC|newest]
Thread overview: 165+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-09 23:40 [Qemu-devel] [PATCH 00/74] pc: acpi: convert DSDT to AML API and drop ASL templates support Igor Mammedov
2015-12-09 23:40 ` [Qemu-devel] [PATCH 01/74] tests: acpi: print ASL diff in verbose mode Igor Mammedov
2015-12-10 12:50 ` Marcel Apfelbaum
2015-12-22 15:28 ` Michael S. Tsirkin
2015-12-22 15:54 ` Igor Mammedov
2015-12-22 16:18 ` Michael S. Tsirkin
2015-12-22 16:36 ` Igor Mammedov
2015-12-22 16:59 ` Michael S. Tsirkin
2015-12-22 17:22 ` Igor Mammedov
2015-12-22 19:05 ` Michael S. Tsirkin
2015-12-09 23:40 ` [Qemu-devel] [PATCH 02/74] acpi: add aml_derefof Igor Mammedov
2015-12-09 23:40 ` [Qemu-devel] [PATCH 03/74] acpi: add aml_sizeof Igor Mammedov
2015-12-09 23:40 ` [Qemu-devel] [PATCH 04/74] acpi: add aml_lgreater_equal() Igor Mammedov
2015-12-10 12:52 ` Marcel Apfelbaum
2015-12-11 2:39 ` Shannon Zhao
2015-12-09 23:40 ` [Qemu-devel] [PATCH 05/74] acpi: add aml_mutex(), aml_acquire(), aml_release() Igor Mammedov
2015-12-09 23:41 ` [Qemu-devel] [PATCH 06/74] acpi: add aml_create_qword_field() Igor Mammedov
2015-12-10 12:53 ` Marcel Apfelbaum
2015-12-09 23:41 ` [Qemu-devel] [PATCH 07/74] acpi: aml: add helper for Opcode Arg2 Arg2 [Dst] AML pattern Igor Mammedov
2015-12-10 1:59 ` Shannon Zhao
2015-12-10 11:08 ` Igor Mammedov
2015-12-10 13:12 ` Marcel Apfelbaum
2015-12-11 2:36 ` Shannon Zhao
2015-12-09 23:41 ` [Qemu-devel] [PATCH 08/74] acpi: extend aml_add() to accept target argument Igor Mammedov
2015-12-10 12:59 ` Marcel Apfelbaum
2015-12-09 23:41 ` [Qemu-devel] [PATCH 09/74] acpi: add aml_decrement() and aml_subtract() Igor Mammedov
2015-12-10 13:01 ` Marcel Apfelbaum
2015-12-09 23:41 ` [Qemu-devel] [PATCH 10/74] acpi: add aml_call0() helper Igor Mammedov
2015-12-10 13:04 ` Marcel Apfelbaum
2015-12-10 13:41 ` Igor Mammedov
2015-12-09 23:41 ` [Qemu-devel] [PATCH 11/74] acpi: add aml_to_integer() Igor Mammedov
2015-12-10 13:05 ` Marcel Apfelbaum
2015-12-09 23:41 ` [Qemu-devel] [PATCH 12/74] acpi: extend aml_shiftright() to accept target argument Igor Mammedov
2015-12-10 13:08 ` Marcel Apfelbaum
2015-12-09 23:41 ` [Qemu-devel] [PATCH 13/74] acpi: add aml_alias() Igor Mammedov
2015-12-10 13:13 ` Marcel Apfelbaum
2015-12-09 23:41 ` [Qemu-devel] [PATCH 14/74] acpi: add aml_sleep() Igor Mammedov
2015-12-10 13:14 ` Marcel Apfelbaum
2015-12-09 23:41 ` [Qemu-devel] [PATCH 15/74] acpi: support serialized method Igor Mammedov
2015-12-11 2:58 ` Shannon Zhao
2015-12-09 23:41 ` [Qemu-devel] [PATCH 16/74] acpi: add aml_lor() Igor Mammedov
2015-12-10 13:25 ` Marcel Apfelbaum
2015-12-09 23:41 ` [Qemu-devel] [PATCH 17/74] acpi: add aml_lgreater() Igor Mammedov
2015-12-10 13:26 ` Marcel Apfelbaum
2015-12-09 23:41 ` [Qemu-devel] [PATCH 18/74] acpi: extend aml_field() to support LockRule Igor Mammedov
2015-12-09 23:41 ` [Qemu-devel] [PATCH 19/74] acpi: add aml_to_hexstring() Igor Mammedov
2015-12-10 13:41 ` Marcel Apfelbaum
2015-12-09 23:41 ` [Qemu-devel] [PATCH 20/74] acpi: add aml_to_buffer() Igor Mammedov
2015-12-10 13:42 ` Marcel Apfelbaum
2015-12-09 23:41 ` [Qemu-devel] [PATCH 21/74] acpi add aml_dma() Igor Mammedov
2015-12-09 23:41 ` [Qemu-devel] [PATCH 22/74] acpi: extend aml_or() to accept target argument Igor Mammedov
2015-12-10 13:43 ` Marcel Apfelbaum
2015-12-09 23:41 ` [Qemu-devel] [PATCH 23/74] acpi: extend aml_and() " Igor Mammedov
2015-12-10 2:07 ` Shannon Zhao
2015-12-10 11:16 ` Igor Mammedov
2015-12-09 23:41 ` [Qemu-devel] [PATCH 24/74] acpi: extend aml_interrupt() to support multiple irqs Igor Mammedov
2015-12-10 1:50 ` Shannon Zhao
2015-12-10 11:34 ` [Qemu-devel] [PATCH v2 " Igor Mammedov
2015-12-11 1:51 ` Shannon Zhao
2015-12-22 15:17 ` [Qemu-devel] [PATCH " Michael S. Tsirkin
2015-12-22 15:37 ` Igor Mammedov
2015-12-22 15:58 ` Michael S. Tsirkin
2015-12-22 16:19 ` Igor Mammedov
2015-12-22 16:43 ` Michael S. Tsirkin
2015-12-09 23:41 ` [Qemu-devel] [PATCH 25/74] pc: acpi: memhp: prepare context in SSDT for moving memhp DSDT code Igor Mammedov
2015-12-10 12:45 ` Marcel Apfelbaum
2015-12-10 13:43 ` Igor Mammedov
2015-12-16 13:25 ` Marcel Apfelbaum
2015-12-16 14:25 ` Igor Mammedov
2015-12-17 12:14 ` Marcel Apfelbaum
2015-12-17 13:47 ` Igor Mammedov
2015-12-17 14:12 ` Marcel Apfelbaum [this message]
2015-12-17 16:59 ` Igor Mammedov
2015-12-09 23:41 ` [Qemu-devel] [PATCH 26/74] pc: acpi: memhp: move MHPD._STA method into SSDT Igor Mammedov
2015-12-16 12:08 ` Marcel Apfelbaum
2015-12-16 14:30 ` Igor Mammedov
2015-12-16 14:47 ` [Qemu-devel] [PATCH v2 " Igor Mammedov
2015-12-20 10:32 ` Marcel Apfelbaum
2015-12-20 13:41 ` Michael S. Tsirkin
2015-12-21 10:52 ` Igor Mammedov
2015-12-21 17:31 ` Igor Mammedov
2015-12-22 15:11 ` Michael S. Tsirkin
2015-12-22 15:45 ` Igor Mammedov
2015-12-09 23:41 ` [Qemu-devel] [PATCH 27/74] pc: acpi: memhp: move MHPD.MLCK mutex " Igor Mammedov
2015-12-09 23:41 ` [Qemu-devel] [PATCH 28/74] pc: acpi: memhp: move MHPD.MSCN method " Igor Mammedov
2015-12-09 23:41 ` [Qemu-devel] [PATCH 29/74] pc: acpi: memhp: move MHPD.MRST " Igor Mammedov
2015-12-09 23:41 ` [Qemu-devel] [PATCH 30/74] pc: acpi: memhp: move MHPD.MPXM " Igor Mammedov
2015-12-09 23:41 ` [Qemu-devel] [PATCH 31/74] pc: acpi: memhp: move MHPD.MOST " Igor Mammedov
2015-12-09 23:41 ` [Qemu-devel] [PATCH 32/74] pc: acpi: memhp: move MHPD.MEJ0 " Igor Mammedov
2015-12-09 23:41 ` [Qemu-devel] [PATCH 33/74] pc: acpi: memhp: move MHPD.MCRS " Igor Mammedov
2015-12-09 23:41 ` [Qemu-devel] [PATCH 34/74] pc: acpi: memhp: move MHPD Device " Igor Mammedov
2015-12-09 23:41 ` [Qemu-devel] [PATCH 35/74] pc: acpi: factor out memhp code from build_ssdt() into separate function Igor Mammedov
2015-12-19 20:18 ` Michael S. Tsirkin
2015-12-21 11:01 ` Igor Mammedov
2015-12-21 11:38 ` Michael S. Tsirkin
2015-12-09 23:41 ` [Qemu-devel] [PATCH 36/74] pc: acpi: memhp: move \_GPE._E03 into SSDT Igor Mammedov
2015-12-09 23:41 ` [Qemu-devel] [PATCH 37/74] pc: acpi: memhp: drop not needed stringify(MEMORY_foo) usage Igor Mammedov
2015-12-09 23:41 ` [Qemu-devel] [PATCH 38/74] pc: acpi: drop unused CPU_STATUS_LEN from DSDT Igor Mammedov
2015-12-09 23:41 ` [Qemu-devel] [PATCH 39/74] pc: acpi: cpuhp: move CPEJ() method to SSDT Igor Mammedov
2015-12-09 23:41 ` [Qemu-devel] [PATCH 40/74] pc: acpi: cpuhp: move CPMA() method into SSDT Igor Mammedov
2015-12-09 23:41 ` [Qemu-devel] [PATCH 41/74] pc: acpi: cpuhp: move CPST() " Igor Mammedov
2015-12-09 23:41 ` [Qemu-devel] [PATCH 42/74] pc: acpi: cpuhp: move PRSC() " Igor Mammedov
2015-12-09 23:41 ` [Qemu-devel] [PATCH 43/74] pc: acpi: cpuhp: move \_GPE._E02() " Igor Mammedov
2015-12-09 23:41 ` [Qemu-devel] [PATCH 44/74] pc: acpi: factor out cpu hotplug code from build_ssdt() into separate function Igor Mammedov
2015-12-09 23:41 ` [Qemu-devel] [PATCH 45/74] pc: acpi: move HPET from DSDT to SSDT Igor Mammedov
2015-12-19 19:50 ` Michael S. Tsirkin
2015-12-21 11:02 ` Igor Mammedov
2015-12-21 11:42 ` Michael S. Tsirkin
2015-12-09 23:41 ` [Qemu-devel] [PATCH 46/74] pc: acpi: move DBUG() " Igor Mammedov
2015-12-09 23:41 ` [Qemu-devel] [PATCH 47/74] pc: acpi: move RTC device " Igor Mammedov
2015-12-09 23:41 ` [Qemu-devel] [PATCH 48/74] pc: acpi: move KBD " Igor Mammedov
2015-12-09 23:41 ` [Qemu-devel] [PATCH 49/74] pc: acpi: move MOU " Igor Mammedov
2015-12-09 23:41 ` [Qemu-devel] [PATCH 50/74] pc: acpi: move FDC0 " Igor Mammedov
2015-12-19 19:44 ` Michael S. Tsirkin
2015-12-21 12:42 ` Igor Mammedov
2015-12-21 12:54 ` Michael S. Tsirkin
2015-12-09 23:41 ` [Qemu-devel] [PATCH 51/74] pc: acpi: move LPT " Igor Mammedov
2015-12-09 23:41 ` [Qemu-devel] [PATCH 52/74] pc: acpi: move COM devices " Igor Mammedov
2015-12-09 23:41 ` [Qemu-devel] [PATCH 53/74] pc: acpi: move PIIX4 isa-bridge and pm devices into SSDT Igor Mammedov
2015-12-09 23:41 ` [Qemu-devel] [PATCH 54/74] pc: acpi: move remaining GPE handlers " Igor Mammedov
2015-12-19 19:30 ` Michael S. Tsirkin
2015-12-19 20:34 ` Michael S. Tsirkin
2015-12-21 12:45 ` Igor Mammedov
2015-12-21 15:35 ` Igor Mammedov
2015-12-22 9:37 ` Michael S. Tsirkin
2015-12-22 14:38 ` Igor Mammedov
2015-12-22 14:47 ` Michael S. Tsirkin
2015-12-22 15:00 ` Igor Mammedov
2015-12-09 23:41 ` [Qemu-devel] [PATCH 55/74] pc: acpi: pci: move link devices " Igor Mammedov
2015-12-09 23:41 ` [Qemu-devel] [PATCH 56/74] pc: acpi: piix4: move IQCR() " Igor Mammedov
2015-12-09 23:41 ` [Qemu-devel] [PATCH 57/74] pc: acpi: piix4: move IQST() " Igor Mammedov
2015-12-09 23:41 ` [Qemu-devel] [PATCH 58/74] pc: acpi: piix4: move PCI0._PRT() " Igor Mammedov
2015-12-10 12:32 ` Marcel Apfelbaum
2015-12-10 13:50 ` Igor Mammedov
2015-12-10 16:17 ` [Qemu-devel] [PATCH v2 " Igor Mammedov
2015-12-13 15:19 ` Marcel Apfelbaum
2015-12-14 13:20 ` Igor Mammedov
2015-12-19 19:23 ` Michael S. Tsirkin
2015-12-21 12:55 ` Igor Mammedov
2015-12-22 9:34 ` Michael S. Tsirkin
2015-12-22 14:12 ` Igor Mammedov
2015-12-22 14:52 ` Michael S. Tsirkin
2015-12-09 23:41 ` [Qemu-devel] [PATCH 59/74] pc: acpi: piix4: move remaining PCI hotplug bits " Igor Mammedov
2015-12-09 23:41 ` [Qemu-devel] [PATCH 60/74] pc: acpi: piix4: acpi move PCI0 device to SSDT Igor Mammedov
2015-12-09 23:41 ` [Qemu-devel] [PATCH 61/74] pc: acpi: q35: move GSI links " Igor Mammedov
2015-12-09 23:41 ` [Qemu-devel] [PATCH 62/74] pc: acpi: q35: move link devices " Igor Mammedov
2015-12-09 23:41 ` [Qemu-devel] [PATCH 63/74] pc: acpi: q35: move IQCR() into SSDT Igor Mammedov
2015-12-09 23:41 ` [Qemu-devel] [PATCH 64/74] pc: acpi: q35: move IQST() " Igor Mammedov
2015-12-09 23:41 ` [Qemu-devel] [PATCH 65/74] pc: acpi: q35: move ISA bridge " Igor Mammedov
2015-12-09 23:42 ` [Qemu-devel] [PATCH 66/74] pc: acpi: q35: move _PRT() " Igor Mammedov
2015-12-09 23:42 ` [Qemu-devel] [PATCH 67/74] pc: acpi: q35: move PRTA routing table " Igor Mammedov
2015-12-09 23:42 ` [Qemu-devel] [PATCH 68/74] pc: acpi: q35: move PRTP " Igor Mammedov
2015-12-09 23:42 ` [Qemu-devel] [PATCH 69/74] pc: acpi: q35: move _PIC() method " Igor Mammedov
2015-12-09 23:42 ` [Qemu-devel] [PATCH 70/74] pc: acpi: q35: move PCI0._OSC() " Igor Mammedov
2015-12-09 23:42 ` [Qemu-devel] [PATCH 71/74] pc: acpi: q35: move PCI0 device definition " Igor Mammedov
2015-12-09 23:42 ` [Qemu-devel] [PATCH 72/74] pc: acpi: q35: PCST, PCSB opregions and PCIB field " Igor Mammedov
2015-12-09 23:42 ` [Qemu-devel] [PATCH 73/74] pc: acpi: switch to AML API composed DSDT Igor Mammedov
2015-12-09 23:42 ` [Qemu-devel] [PATCH 74/74] pc: acpi: remove unused ASL templates and related blobs/utils Igor Mammedov
2015-12-10 15:53 ` [Qemu-devel] [PATCH 00/74] pc: acpi: convert DSDT to AML API and drop ASL templates support Marcel Apfelbaum
2015-12-10 16:31 ` Igor Mammedov
2015-12-13 15:24 ` Marcel Apfelbaum
2015-12-10 16:44 ` Igor Mammedov
2015-12-19 20:38 ` Michael S. Tsirkin
2015-12-21 13:00 ` Igor Mammedov
2015-12-21 13:12 ` Shannon Zhao
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5672C2E7.6030402@redhat.com \
--to=marcel@redhat.com \
--cc=imammedo@redhat.com \
--cc=mst@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).