From: Igor Mammedov <imammedo@redhat.com>
To: Laurent Vivier <lvivier@redhat.com>
Cc: qemu-devel@nongnu.org, dan@danny.cz, david@gibson.dropbear.id.au,
mst@redhat.com
Subject: Re: [Qemu-devel] [PATCH for-2.6] acpi: fix bios linker loadder COMMAND_ALLOCATE on bigendian host
Date: Fri, 29 Apr 2016 15:45:19 +0200 [thread overview]
Message-ID: <20160429154519.328d9e7b@nial.brq.redhat.com> (raw)
In-Reply-To: <9b6c5dcd-531b-226f-cc40-9846c3b2f568@redhat.com>
On Fri, 29 Apr 2016 15:16:07 +0200
Laurent Vivier <lvivier@redhat.com> 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 <imammedo@redhat.com>
>
> Tested-by: Laurent Vivier <lvivier@redhat.com>
>
> 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
>
next prev parent reply other threads:[~2016-04-29 13:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-29 12:44 [Qemu-devel] [PATCH for-2.6] acpi: fix bios linker loadder COMMAND_ALLOCATE on bigendian host Igor Mammedov
2016-04-29 13:16 ` Laurent Vivier
2016-04-29 13:45 ` Igor Mammedov [this message]
2016-05-01 8:14 ` Marcel Apfelbaum
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=20160429154519.328d9e7b@nial.brq.redhat.com \
--to=imammedo@redhat.com \
--cc=dan@danny.cz \
--cc=david@gibson.dropbear.id.au \
--cc=lvivier@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).