This shows an address gap between "Address Size Offset" @040h & "Space
ID" @04Eh.
Appears to be a valid issue, I will fix it.
The actual binary output seems OK.
From: Devel [mailto:devel-bounces@acpica.org] On Behalf Of Moore, Robert
Sent: Friday, December 20, 2013 8:27 AM
To: Alexei Fedorov; devel(a)acpica.org
Subject: Re: [Devel] Devel Digest, Vol 44, Issue 3: "ACPICA version 20131218
released"
As all the numbers are in hexadecimal format, do "Bit Width : 32" &
"Bit Width : 64" really mean 50 & 100-bit registers with 32-bit & 64-bit
access respectively?
Yes. I'll fix these in the template.
Error 6126 - Could not compile input file
Oddly, I do not see this error message here: (source attached)
c:\acpi\Bugs\DBG2\test2>iasl -T dbg2
Created ACPI table template for [DBG2], written to "dbg2.asl"
c:\acpi\Bugs\DBG2\test2>iasl -l dbg2.asl
Intel ACPI Component Architecture
ASL Optimizing Compiler version 20131218-32 [Dec 20 2013]
Copyright (c) 2000 - 2013 Intel Corporation
Table Input: dbg2.asl - 71 lines, 3423 bytes, 59 fields
Binary Output: dbg2.aml - 178 bytes
Listing File: dbg2.lst - 12568 bytes
Compilation complete. 0 Errors, 0 Warnings, 0 Remarks
From: Devel [mailto:devel-bounces@acpica.org] On Behalf Of Alexei Fedorov
Sent: Friday, December 20, 2013 7:26 AM
To: devel@acpica.org<mailto:devel@acpica.org>
Subject: Re: [Devel] Devel Digest, Vol 44, Issue 3: "ACPICA version 20131218
released"
From the original Message: 5
Subject: [Devel] ACPICA version 20131218 released
18 December 2013. Summary of changes for version 20131218:
2) iASL Compiler/Disassembler and Tools:
iASL: Added full support for the DBG2 table. Adds full disassembler,
table compiler, and template generator support for the DBG2 table (Debug >Port 2
table).
Please see the found issues with DBG2 table below.
1) dbg2.asl template generated by "iASL.exe -T DBG2" contains:
[0012] Base Address Register : [Generic Address Structure]
[0001] Space ID : 01 [SystemIO]
[0001] Bit Width : 32
[0001] Bit Offset : 00
[0001] Encoded Access Width : 03 [DWord Access:32]
[0008] Address : 1122334455667788
[0012] Base Address Register : [Generic Address Structure]
[0001] Space ID : 01 [SystemIO]
[0001] Bit Width : 64
[0001] Bit Offset : 00
[0001] Encoded Access Width : 04 [QWord Access:64]
As all the numbers are in hexadecimal format, do "Bit Width : 32" &
"Bit Width : 64" really mean 50 & 100-bit registers with 32-bit & 64-bit
access respectively?
2) Compilation of the correct table below:
[0004] Signature : "DBG2" [Debug Port table type 2]
[0004] Table Length : 00000000
[0001] Revision : 00
[0001] Checksum : 00
[0006] Oem ID : "INTEL "
[0008] Oem Table ID : "TEMPLATE"
[0004] Oem Revision : 00000000
[0004] Asl Compiler ID : "INTL"
[0004] Asl Compiler Revision : 00000000
[0004] Info Offset : 0000002C
[0004] Info Count : 00000001
[0001] Revision : 01
[0002] Length : 0000
[0001] Register Count : 01
[0002] Namepath Length : 0002
[0002] Namepath Offset : 0026
[0002] OEM Data Length : 0000 [Optional field not present]
[0002] OEM Data Offset : 0000 [Optional field not present]
[0002] Port Type : 8000
[0002] Port Subtype : 0000
[0002] Reserved : 0000
[0002] Base Address Offset : 0016
[0002] Address Size Offset : 0022
[0012] Base Address Register : [Generic Address Structure]
[0001] Space ID : 00 [System Memory]
[0001] Bit Width : 00
[0001] Bit Offset : 00
[0001] Encoded Access Width : 03 [DWord Access:32]
[0008] Address : 12340000
[0004] Address Size : 1000
[0002] Namepath : "."
generates the following error message:
Intel ACPI Component Architecture
ASL Optimizing Compiler version 20131218-32 [Dec 18 2013]
Copyright (c) 2000 - 2013 Intel Corporation
Error 6126 - Could not compile input file
Table Input: dbg2_my.asl - 35 lines, 1755 bytes, 31 fields
Listing File: dbg2_my.lst - 6229 bytes
Compilation complete. 1 Errors, 0 Warnings, 0 Remarks
& to make it compile an extra field needs to be placed @the end of the table:
[0000] Extra : 0
which gives:
Table Input: dbg2_my.asl - 36 lines, 1802 bytes, 31 fields
Binary Output: dbg2_my.aml - 84 bytes
Listing File: dbg2_my.lst - 6705 bytes
Compilation complete. 0 Errors, 0 Warnings, 0 Remarks
3) dbg2_my.lst line @96:
Input: [0002] Address Size Offset : 0022
Parsed: Address Size Offset : 0022
Output: [040h 0064 2] 22 00 ".
Input: [0001] Space ID : 00 [System Memory]
Parsed: Space ID : 00
Output: [04Eh 0078 1] 00 .
This shows an address gap between "Address Size Offset" @040h & "Space
ID" @04Eh.
As "Address Size Offset" field length is 2 bytes "Space ID" should be
listed as [042h 0066 1], see generated
Raw Table Data: Length 84 (0x54)
0000: 44 42 47 32 54 00 00 00 00 63 49 4E 54 45 4C 20 DBG2T....cINTEL
0010: 54 45 4D 50 4C 41 54 45 00 00 00 00 49 4E 54 4C TEMPLATE....INTL
0020: 18 12 13 20 2C 00 00 00 01 00 00 00 01 28 00 01 ... ,........(..
0030: 02 00 26 00 00 00 00 00 00 80 00 00 00 00 16 00 ..&.............
0040: 22 00 00 00 00 03 00 00 34 12 00 00 00 00 00 10 ".......4.......
0050: 00 00 2E 00 ....
Regards.
Alexei.
-- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and
may also be privileged. If you are not the intended recipient, please notify the sender
immediately and do not disclose the contents to any other person, use it for any purpose,
or store or copy the information in any medium. Thank you.
ARM Limited, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ, Registered in England
& Wales, Company No: 2557590
ARM Holdings plc, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ, Registered in
England & Wales, Company No: 2548782