From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52994) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YO2zn-0008Pq-1v for qemu-devel@nongnu.org; Wed, 18 Feb 2015 06:40:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YO2zk-0003Th-9K for qemu-devel@nongnu.org; Wed, 18 Feb 2015 06:40:46 -0500 Received: from mx1.redhat.com ([209.132.183.28]:49050) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YO2zk-0003TC-1e for qemu-devel@nongnu.org; Wed, 18 Feb 2015 06:40:44 -0500 Date: Wed, 18 Feb 2015 12:39:44 +0100 From: "Michael S. Tsirkin" Message-ID: <20150218113944.GD1932@redhat.com> References: <1423479254-15342-1-git-send-email-imammedo@redhat.com> <1423479254-15342-7-git-send-email-imammedo@redhat.com> <20150217164200.GB26775@redhat.com> <20150218105718.1534bf93@nial.brq.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150218105718.1534bf93@nial.brq.redhat.com> Subject: Re: [Qemu-devel] [PATCH v3 06/52] pc: acpi-build: use aml_def_block() for declaring SSDT table List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Igor Mammedov Cc: drjones@redhat.com, marcel.a@redhat.com, claudio.fontana@huawei.com, qemu-devel@nongnu.org, zhaoshenglong@huawei.com On Wed, Feb 18, 2015 at 10:57:18AM +0100, Igor Mammedov wrote: > On Tue, 17 Feb 2015 17:42:00 +0100 > "Michael S. Tsirkin" wrote: > > > On Mon, Feb 09, 2015 at 10:53:28AM +0000, Igor Mammedov wrote: > > > it replaces prebuilt SSDT table header template copying/patching > > > with AML API > > > > > > Signed-off-by: Igor Mammedov > > > > I note that this changed the SSDT signature in random ways, > > for example, it used to be named BXPCSSDT, now it's BXPC. > > > > Pls keep using build_header, this problem will go away then. > [...] > > > + /* Init SSDT Definition Block */ > > > + ssdt = aml_def_block("SSDT", 1, ACPI_BUILD_APPNAME6, > > > + ACPI_BUILD_APPNAME4, 1, > I've missed that build_header() composes oem_table_id implicitly > by merging table signature and ACPI_BUILD_APPNAME4. > > following should fix issue: > - ACPI_BUILD_APPNAME4, 1, > + "BXPCSSDT", 1, True but that's the result of code duplication. Let's reuse build_header at step 1, and in step 2, we'll replace it with something else everywhere. > > > + ACPI_BUILD_APPNAME4_HEX, 1);