Received: from eggs.gnu.org ([2001:4830:134:3::10]:47388) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aw8jz-00020R-Jq for qemu-devel@nongnu.org; Fri, 29 Apr 2016 09:46:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aw8jd-0007XK-TV for qemu-devel@nongnu.org; Fri, 29 Apr 2016 09:45:50 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60943) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aw8jd-0007Rt-Of for qemu-devel@nongnu.org; Fri, 29 Apr 2016 09:45:33 -0400 Date: Fri, 29 Apr 2016 15:45:19 +0200 From: Igor Mammedov Message-ID: <20160429154519.328d9e7b@nial.brq.redhat.com> In-Reply-To: <9b6c5dcd-531b-226f-cc40-9846c3b2f568@redhat.com> References: <1461933880-214779-1-git-send-email-imammedo@redhat.com> <9b6c5dcd-531b-226f-cc40-9846c3b2f568@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH for-2.6] acpi: fix bios linker loadder COMMAND_ALLOCATE on bigendian host List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Laurent Vivier Cc: qemu-devel@nongnu.org, dan@danny.cz, david@gibson.dropbear.id.au, mst@redhat.com On Fri, 29 Apr 2016 15:16:07 +0200 Laurent Vivier wrote: > On 29/04/2016 14:44, Igor Mammedov wrote: > > 'make check' fails with: > > > > ERROR:tests/bios-tables-test.c:493:load_expected_aml: > > assertion failed: (g_file_test(aml_file, G_FILE_TEST_EXISTS)) > > > > since commit: > > caf50c7166a6ed96c462ab5db4b495e1234e4cc6 > > tests: pc: acpi: drop not needed 'expected SSDT' blobs > > > > Assert happens because qemu-system-x86_64 generates > > SSDT table and test looks for a corresponding expected > > table to compare with. > > > > However there is no expected SSDT blob anymore, since > > QEMU souldn't generate one. As it happens BIOS is not > > able to read ACPI tables from QEMU and fallbacks to > > embeded legacy ACPI codepath, which generates SSDT. > > That happens due to wrongly sized endiannes conversion > > which makes > > uint8_t BiosLinkerLoaderEntry.alloc.zone > > end up with 0 due to truncation of 32 bit integer > > which on host is 1 or 2. > > > > Fix it by dropping invalid cpu_to_le32() as uint8_t > > doesn't require any conversion. > > > > RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=1330174 > > > > Signed-off-by: Igor Mammedov > > Tested-by: Laurent Vivier > > Fix the problem. > > We have always some warnings but they were already here in the previous > releases. That warnings are due to broken endianess handling in iasl, it looks at table header size and says it's too big because it doesn't take into account that all integers in ACPI are little-endian. > > Laurent >