Date: Tue, 23 Sep 2014 17:46:47 +0000 From: "Moore, Robert" <robert.moore@intel.com> To: "O. Hartmann" <ohartman@zedat.fu-berlin.de>, "freebsd-acpi@FreeBSD.org" <freebsd-acpi@FreeBSD.org> Subject: RE: IASL complains about he same error in two different UEFI firmwares Message-ID: <94F2FBAB4432B54E8AACC7DFDE6C92E37D1FC52E@ORSMSX112.amr.corp.intel.com> In-Reply-To: <20140923151328.71e24dd0.ohartman@zedat.fu-berlin.de> References: <20140923151328.71e24dd0.ohartman@zedat.fu-berlin.de>
next in thread | previous in thread | raw e-mail | index | archive | help
We usually see this when: 1) The BIOS dynamically truncates a package at post time by adjusting the l= ength. 2) After disassembly, there is a bunch of code "dangling" around that canno= t be compiled. > -----Original Message----- > From: owner-freebsd-acpi@freebsd.org [mailto:owner-freebsd- > acpi@freebsd.org] On Behalf Of O. Hartmann > Sent: Tuesday, September 23, 2014 6:13 AM > To: freebsd-acpi@FreeBSD.org > Subject: IASL complains about he same error in two different UEFI > firmwares >=20 >=20 > Trying to fix an GPU issue on a laptop, I followed the steps as described > in handbook, chapter 12.17, debugging ASL/AML code. >=20 > I dumped on two different systems the ASL via >=20 > acpidump -dt as described and tried to recompile the result via iasl. >=20 >=20 > The outcome is a bit disturbing. IASL complains about the very same error= s > on two diffrent systems.I'll show only one here, since the code block is > identical. >=20 > System 1: 1 >=20 > FreeBSD 11.0-CURRENT #2 r272016: Tue Sep 23 08:20:00 CEST 2014 amd64 >=20 > VT: running with driver "vga". > CPU: Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz (3300.10-MHz K8-class CPU) > Origin=3D"GenuineIntel" Id=3D0x306a9 Family=3D0x6 Model=3D0x3a Step= ping=3D9 >=20 > Features=3D0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PG= E,M > CA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE> >=20 > Features2=3D0x3d9ae3bf<SSE3,PCLMULQDQ,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3= ,CX > 16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,POPCNT,TSCDLT,XSAVE,OSXSAVE,AVX,F16C> > AMD Features=3D0x28100800<SYSCALL,NX,RDTSCP,LM> > AMD Features2=3D0x1<LAHF> > Structured Extended Features=3D0x281<FSGSBASE,SMEP,ERMS> > XSAVE Features=3D0x1<XSAVEOPT> > VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID > TSC: P-state invariant, performance statistics real memory =3D > 17179869184 (16384 MB) avail memory =3D 16286003200 (15531 MB) Event time= r > "LAPIC" quality 600 ACPI APIC Table: <ALASKA A M I> >=20 >=20 >=20 > root@gate [~] iasl gate.asl >=20 > Intel ACPI Component Architecture > ASL Optimizing Compiler version 20130823-64 Copyright (c) 2000 - 2013 > Intel Corporation >=20 > Compiler aborting due to parser-detected syntax error(s) > gate.asl 12314: Package (0x06) > Error 6126 - syntax error ^ >=20 > ASL Input: gate.asl - 12334 lines, 366705 bytes, 4399 keywords >=20 > Compilation complete. 1 Errors, 0 Warnings, 0 Remarks, 0 Optimizations >=20 > Code portion at line 12314: >=20 > [...] > Package (0x06) > { > 0x80000000, > 0x80000000, > 0x80000000, > 0x80000000, > 0x80000000, > 0x80000000 > } >=20 >=20 >=20 > System 2: >=20 > 11.0-CURRENT #0 r272019: Tue Sep 23 09:38:59 CEST 2014 amd64 >=20 >=20 > info: [drm] Initialized drm 1.1.0 20060810 > CPU: Intel(R) Core(TM) i5-4200M CPU @ 2.50GHz (2494.28-MHz K8-class CPU) > Origin=3D"GenuineIntel" Id=3D0x306c3 Family=3D0x6 Model=3D0x3c Step= ping=3D3 >=20 > Features=3D0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PG= E,M > CA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE> >=20 > Features2=3D0x7fdafbbf<SSE3,PCLMULQDQ,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3= ,<b > 11>,FMA,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,MOVBE,POPCNT,TSCDLT,AESNI,XSAVE= , > OSXSAVE,AVX,F16C,RDRAND> > AMD Features=3D0x2c100800<SYSCALL,NX,Page1GB,RDTSCP,LM> > AMD Features2=3D0x21<LAHF,ABM> > Structured Extended > Features=3D0x27ab<FSGSBASE,TSCADJ,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID> > XSAVE Features=3D0x1<XSAVEOPT> > VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID > TSC: P-state invariant, performance statistics real memory =3D 9636413= 440 > (9190 MB) avail memory =3D 8149209088 (7771 MB) Event timer "LAPIC" quali= ty > 600 > ACPI APIC Table: <LENOVO TP-J9 > >=20 >=20 > root@hermann: [~] iasl lenovo.asl >=20 > Intel ACPI Component Architecture > ASL Optimizing Compiler version 20130823-64 Copyright (c) 2000 - 2013 > Intel Corporation >=20 > Compiler aborting due to parser-detected syntax error(s) > lenovo.asl 18919: Package (0x06) > Error 6126 - syntax error ^ >=20 > ASL Input: lenovo.asl - 18939 lines, 634937 bytes, 7991 keywords >=20 > Compilation complete. >=20 > [...] > Package (0x06) > { > 0x80000000, > 0x80000000, > 0x80000000, > 0x80000000, > 0x80000000, > 0x80000000 > } > 1 Errors, 0 Warnings, 0 Remarks, 0 Optimizations
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?94F2FBAB4432B54E8AACC7DFDE6C92E37D1FC52E>