Skip to contentSkip to conversation

Possible issue with iasl on big endian machines.

Devel Marcel Apfelbaum 3 participants 7 messages Mar 20, 2014 ACPI component architecture (acpica)

lore
Share & tools
lore

Marcel Apfelbaum

author
#0 lore raw

Hi,

Should iasl running on a big endian machine be able to disassemble a DSDT(and any other acpi table) taken from a little endian machine?

I tried to do it and I receive:
Error [...] TableHeader length [0xBB040000] greater than the input file size [0x4BB]. As you can see the length bytes are swapped.

The question is, shouldn't it work, ACPI protocol being always little-endian?

Thanks,
Marcel

#1 lore raw
Quoted 12 lines · Marcel Apfelbaum

Hi,

Should iasl running on a big endian machine be able to disassemble a DSDT(and any other acpi table) taken from a little endian machine?

I tried to do it and I receive:
Error [...] TableHeader length [0xBB040000] greater than the input file size [0x4BB]. As you can see the length bytes are swapped.

The question is, shouldn't it work, ACPI protocol being always little-endian?

Quoted 9 lines

Thanks,
Marcel

_______________________________________________
Devel mailing list
Devel(a)acpica.org
https://lists.acpica.org/mailman/listinfo/devel

Which version of iasl are you using? If you're using the version straight from ACPICA, it needs patching to handle big-endian.

If you're using one of the recent Fedora/Debian versions, they have been patched for big-endian support, but of course there could be an issue with those patches.

Regardless, the ACPI data _should_ be in little-endian form.

Signature · 8 lines
ciao,
al
-----------------------------------
Al Stone
Software Engineer
Red Hat, Inc.
ahs3(a)redhat.com
-----------------------------------
author
#2 lore raw
Quoted 23 lines · Al Stone
Quoted 12 lines · Marcel Apfelbaum

Hi,

Should iasl running on a big endian machine be able to disassemble a DSDT(and any other acpi table) taken from a little endian machine?

I tried to do it and I receive:
Error [...] TableHeader length [0xBB040000] greater than the input file size [0x4BB]. As you can see the length bytes are swapped.

The question is, shouldn't it work, ACPI protocol being always little-endian?

Quoted 9 lines

Thanks,
Marcel

_______________________________________________
Devel mailing list
Devel(a)acpica.org
https://lists.acpica.org/mailman/listinfo/devel

Quoted 9 lines

Which version of iasl are you using? If you're using the version straight from ACPICA, it needs patching to handle big-endian.

If you're using one of the recent Fedora/Debian versions, they have been patched for big-endian support, but of course there could be an issue with those patches.

Regardless, the ACPI data _should_ be in little-endian form.

Hi Al,
Thanks for the prompt reply.

I am using acpica-tools-20130823-5.fc19.ppc64 (The one that comes with Fedora 19 on a big endian ppc64 machine) Should I file a bug?

Thanks,
Marcel

#3 lore raw
Quoted 33 lines · Marcel Apfelbaum
Quoted 23 lines · Al Stone
Quoted 12 lines · Marcel Apfelbaum

Hi,

Should iasl running on a big endian machine be able to disassemble a DSDT(and any other acpi table) taken from a little endian machine?

I tried to do it and I receive:
Error [...] TableHeader length [0xBB040000] greater than the input file size [0x4BB]. As you can see the length bytes are swapped.

The question is, shouldn't it work, ACPI protocol being always little-endian?

Quoted 9 lines

Thanks,
Marcel

_______________________________________________
Devel mailing list
Devel(a)acpica.org
https://lists.acpica.org/mailman/listinfo/devel

Quoted 9 lines

Which version of iasl are you using? If you're using the version straight from ACPICA, it needs patching to handle big-endian.

If you're using one of the recent Fedora/Debian versions, they have been patched for big-endian support, but of course there could be an issue with those patches.

Regardless, the ACPI data _should_ be in little-endian form.

Quoted 9 lines

Hi Al,
Thanks for the prompt reply.

I am using acpica-tools-20130823-5.fc19.ppc64 (The one that comes with Fedora 19 on a big endian ppc64 machine) Should I file a bug?

Thanks,
Marcel

Yup, please file a BZ and I'll get to it as soon as I can.

BTW, I just pushed 20131115 to F19 stable, so you may want to try that version. F20/21 are at 20140214.

Signature · 8 lines
ciao,
al
-----------------------------------
Al Stone
Software Engineer
Red Hat, Inc.
ahs3(a)redhat.com
-----------------------------------
#4 lore raw

Please file whatever changes are needed for iASL to run on big-endian machines on the ACPICA bugzilla and we will integrate them.

bugs.acpica.org

Thanks,
Bob

Quoted 70 lines

-----Original Message-----
From: Devel [mailto:devel-bounces(a)acpica.org] On Behalf Of Al Stone
Sent: Thursday, March 20, 2014 10:48 AM
To: Marcel Apfelbaum
Cc: devel(a)acpica.org
Subject: Re: [Devel] Possible issue with iasl on big endian machines.

Quoted 9 lines · Marcel Apfelbaum
Quoted 8 lines · Al Stone
Quoted 7 lines · Marcel Apfelbaum

Hi,

Should iasl running on a big endian machine be able to disassemble a DSDT(and any other acpi table) taken from a little endian machine?

I tried to do it and I receive:
Error [...] TableHeader length [0xBB040000] greater than the input

file size [0x4BB].

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

As you can see the length bytes are swapped.

The question is, shouldn't it work, ACPI protocol being always little-

endian?

Quoted 20 lines
Quoted 11 lines
Quoted 10 lines

Thanks,
Marcel

_______________________________________________
Devel mailing list
Devel(a)acpica.org
https://lists.acpica.org/mailman/listinfo/devel

Quoted 9 lines

Which version of iasl are you using? If you're using the version straight from ACPICA, it needs patching to handle big-endian.

If you're using one of the recent Fedora/Debian versions, they have been patched for big-endian support, but of course there could be an issue with those patches.

Regardless, the ACPI data _should_ be in little-endian form.

Quoted 9 lines

Hi Al,
Thanks for the prompt reply.

I am using acpica-tools-20130823-5.fc19.ppc64 (The one that comes with Fedora 19 on a big endian ppc64 machine) Should I file a bug?

Thanks,
Marcel

Yup, please file a BZ and I'll get to it as soon as I can.

BTW, I just pushed 20131115 to F19 stable, so you may want to try that version. F20/21 are at 20140214.

--
ciao,
al
-----------------------------------
Al Stone
Software Engineer
Red Hat, Inc.
ahs3(a)redhat.com
-----------------------------------
_______________________________________________
Devel mailing list
Devel(a)acpica.org
https://lists.acpica.org/mailman/listinfo/devel

author
#5 lore raw
Quoted 3 lines · Robert

Please file whatever changes are needed for iASL to run on big-endian machines on the ACPICA bugzilla and we will integrate them.

bugs.acpica.org

Hi Bob,
I opened a bug , http://bugs.acpica.org/show_bug.cgi?id=1082 .

Thanks!
Marcel

Quoted 75 lines

Thanks,
Bob

Quoted 70 lines

-----Original Message-----
From: Devel [mailto:devel-bounces(a)acpica.org] On Behalf Of Al Stone
Sent: Thursday, March 20, 2014 10:48 AM
To: Marcel Apfelbaum
Cc: devel(a)acpica.org
Subject: Re: [Devel] Possible issue with iasl on big endian machines.

Quoted 9 lines · Marcel Apfelbaum
Quoted 8 lines · Al Stone
Quoted 7 lines · Marcel Apfelbaum

Hi,

Should iasl running on a big endian machine be able to disassemble a DSDT(and any other acpi table) taken from a little endian machine?

I tried to do it and I receive:
Error [...] TableHeader length [0xBB040000] greater than the input

file size [0x4BB].

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

As you can see the length bytes are swapped.

The question is, shouldn't it work, ACPI protocol being always little-

endian?

Quoted 20 lines
Quoted 11 lines
Quoted 10 lines

Thanks,
Marcel

_______________________________________________
Devel mailing list
Devel(a)acpica.org
https://lists.acpica.org/mailman/listinfo/devel

Quoted 9 lines

Which version of iasl are you using? If you're using the version straight from ACPICA, it needs patching to handle big-endian.

If you're using one of the recent Fedora/Debian versions, they have been patched for big-endian support, but of course there could be an issue with those patches.

Regardless, the ACPI data _should_ be in little-endian form.

Quoted 9 lines

Hi Al,
Thanks for the prompt reply.

I am using acpica-tools-20130823-5.fc19.ppc64 (The one that comes with Fedora 19 on a big endian ppc64 machine) Should I file a bug?

Thanks,
Marcel

Yup, please file a BZ and I'll get to it as soon as I can.

BTW, I just pushed 20131115 to F19 stable, so you may want to try that version. F20/21 are at 20140214.

--
ciao,
al
-----------------------------------
Al Stone
Software Engineer
Red Hat, Inc.
ahs3(a)redhat.com
-----------------------------------
_______________________________________________
Devel mailing list
Devel(a)acpica.org
https://lists.acpica.org/mailman/listinfo/devel

#6 lore raw
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

Which version of iasl are you using? If you're using the version straight from ACPICA, it needs patching to handle big-endian.

I'm looking forward to getting this patch.
Bob

Quoted 98 lines

-----Original Message-----
From: Marcel Apfelbaum [mailto:marcel.a(a)redhat.com]
Sent: Thursday, March 20, 2014 11:55 AM
To: Moore, Robert
Cc: Al Stone; devel(a)acpica.org
Subject: Re: [Devel] Possible issue with iasl on big endian machines.

Quoted 1 line · Robert

Please file whatever changes are needed for iASL to run on big-endian

machines on the ACPICA bugzilla and we will integrate them.

Quoted 2 lines

bugs.acpica.org

Hi Bob,
I opened a bug , http://bugs.acpica.org/show_bug.cgi?id=1082 .

Thanks!
Marcel

Quoted 19 lines

Thanks,
Bob

Quoted 14 lines

-----Original Message-----
From: Devel [mailto:devel-bounces(a)acpica.org] On Behalf Of Al Stone
Sent: Thursday, March 20, 2014 10:48 AM
To: Marcel Apfelbaum
Cc: devel(a)acpica.org
Subject: Re: [Devel] Possible issue with iasl on big endian machines.

Quoted 6 lines · Marcel Apfelbaum
Quoted 5 lines · Al Stone
Quoted 4 lines · Marcel Apfelbaum

Hi,

Should iasl running on a big endian machine be able to disassemble a DSDT(and any other acpi table) taken from a little

endian machine?

Quoted 58 lines
Quoted 58 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

I tried to do it and I receive:
Error [...] TableHeader length [0xBB040000] greater than the input

file size [0x4BB].

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

As you can see the length bytes are swapped.

The question is, shouldn't it work, ACPI protocol being always little-

endian?

Quoted 20 lines
Quoted 11 lines
Quoted 10 lines

Thanks,
Marcel

_______________________________________________
Devel mailing list
Devel(a)acpica.org
https://lists.acpica.org/mailman/listinfo/devel

Quoted 9 lines

Which version of iasl are you using? If you're using the version straight from ACPICA, it needs patching to handle big-endian.

If you're using one of the recent Fedora/Debian versions, they have been patched for big-endian support, but of course there could be an issue with those patches.

Regardless, the ACPI data _should_ be in little-endian form.

Quoted 9 lines

Hi Al,
Thanks for the prompt reply.

I am using acpica-tools-20130823-5.fc19.ppc64 (The one that comes with Fedora 19 on a big endian ppc64 machine) Should I file a bug?

Thanks,
Marcel

Yup, please file a BZ and I'll get to it as soon as I can.

BTW, I just pushed 20131115 to F19 stable, so you may want to try that version. F20/21 are at 20140214.

--
ciao,
al
-----------------------------------
Al Stone
Software Engineer
Red Hat, Inc.
ahs3(a)redhat.com
-----------------------------------
_______________________________________________
Devel mailing list
Devel(a)acpica.org
https://lists.acpica.org/mailman/listinfo/devel