Fix DBG2 compilation template issue
naresh.bhat at linaro.org
cover Fix DBG2 compilation template issue
From: Naresh Bhat <naresh.bhat(a)linaro.org>
The patches try to fix the DBG2 table compilation issue and also tries to add a template support for DBG2 tables.
Naresh Bhat (2):
iASL: Fix Table Info handler for DBG2
iASL: Add template support for dbg2
source/common/dmtable.c | 2 +- source/compiler/dtcompiler.h | 1 + source/compiler/dttemplate.h | 10 ++++++++++ 3 files changed, 12 insertions(+), 1 deletion(-)
Signature · 1 line
1.7.9.5
naresh.bhat at linaro.org
PATCH 1/2 iASL: Fix Table Info handler for DBG2
From: Naresh Bhat <naresh.bhat(a)linaro.org>
Fix dbg2.asl compilation issue. The DBG2 table is not able to compile because of "Table Info" handler call is missing. The DBG2 compilation logs are as below
$ iasl dbg2.asl
Intel ACPI Component Architecture
ASL Optimizing Compiler version 20130927-64 [Oct 10 2013] Copyright (c) 2000 - 2013 Intel Corporation
Error 6126 - Could not compile input file
dbg2.asl 12: [0004] Info Offset : 00000044 [First DDIS entry]
Error 6010 - Internal compiler error ^ (Missing table dispatch info)
Table Input: dbg2.asl - 38 lines, 2383 bytes, 9 fields
Compilation complete. 2 Errors, 0 Warnings, 0 Remarks
--- source/common/dmtable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
source/common/dmtable.c +1 -1
@@ -358,7 +358,7 @@ ACPI_DMTABLE_DATA AcpiDmTableData[] = {ACPI_SIG_BOOT, AcpiDmTableInfoBoot, NULL, NULL, TemplateBoot, "Simple Boot Flag Table"}, {ACPI_SIG_CPEP, NULL, AcpiDmDumpCpep, DtCompileCpep, TemplateCpep, "Corrected Platform Error Polling table"}, {ACPI_SIG_CSRT, NULL, AcpiDmDumpCsrt, DtCompileCsrt, TemplateCsrt, "Core System Resource Table"}, - {ACPI_SIG_DBG2, NULL, AcpiDmDumpDbg2, NULL, NULL, "Debug Port table type 2"}, + {ACPI_SIG_DBG2, AcpiDmTableInfoDbg2, AcpiDmDumpDbg2, NULL, NULL, "Debug Port table type 2"}, {ACPI_SIG_DBGP, AcpiDmTableInfoDbgp, NULL, NULL, TemplateDbgp, "Debug Port table"}, {ACPI_SIG_DMAR, NULL, AcpiDmDumpDmar, DtCompileDmar, TemplateDmar, "DMA Remapping table"}, {ACPI_SIG_ECDT, AcpiDmTableInfoEcdt, NULL, NULL, TemplateEcdt, "Embedded Controller Boot Resources Table"},
Signature · 1 line
1.7.9.5
naresh.bhat at linaro.org
PATCH 2/2 iASL: Add template support for dbg2
In reply to naresh.bhat at linaro.orgFrom: Naresh Bhat <naresh.bhat(a)linaro.org>
This patch will add the template support for dbg2.
$ iasl -T DBG2 DBG2: No template available
--- source/common/dmtable.c | 2 +- source/compiler/dtcompiler.h | 1 + source/compiler/dttemplate.h | 10 ++++++++++ 3 files changed, 12 insertions(+), 1 deletion(-)
source/common/dmtable.c +1 -1
@@ -358,7 +358,7 @@ ACPI_DMTABLE_DATA AcpiDmTableData[] = {ACPI_SIG_BOOT, AcpiDmTableInfoBoot, NULL, NULL, TemplateBoot, "Simple Boot Flag Table"}, {ACPI_SIG_CPEP, NULL, AcpiDmDumpCpep, DtCompileCpep, TemplateCpep, "Corrected Platform Error Polling table"}, {ACPI_SIG_CSRT, NULL, AcpiDmDumpCsrt, DtCompileCsrt, TemplateCsrt, "Core System Resource Table"}, - {ACPI_SIG_DBG2, AcpiDmTableInfoDbg2, AcpiDmDumpDbg2, NULL, NULL, "Debug Port table type 2"}, + {ACPI_SIG_DBG2, AcpiDmTableInfoDbg2, AcpiDmDumpDbg2, NULL, TemplateDbg2, "Debug Port table type 2"}, {ACPI_SIG_DBGP, AcpiDmTableInfoDbgp, NULL, NULL, TemplateDbgp, "Debug Port table"}, {ACPI_SIG_DMAR, NULL, AcpiDmDumpDmar, DtCompileDmar, TemplateDmar, "DMA Remapping table"}, {ACPI_SIG_ECDT, AcpiDmTableInfoEcdt, NULL, NULL, TemplateEcdt, "Embedded Controller Boot Resources Table"},
source/compiler/dtcompiler.h +1 -0
@@ -575,6 +575,7 @@ extern const unsigned char TemplateBert[];extern const unsigned char TemplateBgrt[];extern const unsigned char TemplateCpep[];extern const unsigned char TemplateCsrt[]; +extern const unsigned char TemplateDbg2[];extern const unsigned char TemplateDbgp[];extern const unsigned char TemplateDmar[];extern const unsigned char TemplateEcdt[];
source/compiler/dttemplate.h +10 -0
@@ -246,6 +246,16 @@ const unsigned char TemplateCsrt[] =0x43 ,0x48 ,0x41 ,0x37 /* 00000148 "CHA7" */ }; +const unsigned char TemplateDbg2[] = +{ +0x44 ,0x42 ,0x47 ,0x32 ,0x2C ,0x00 ,0x00 ,0x00 ,/* 00000000 "DBG2,..." */ +0x01 ,0xD3 ,0x4C ,0x49 ,0x4E ,0x41 ,0x52 ,0x4F ,/* 00000008 "..LINARO" */ +0x54 ,0x45 ,0x4D ,0x50 ,0x4C ,0x41 ,0x54 ,0x45 ,/* 00000010 "TEMPLATE" */ +0x01 ,0x00 ,0x00 ,0x00 ,0x49 ,0x4E ,0x54 ,0x4C ,/* 00000018 "....INTL" */ +0x27 ,0x09 ,0x13 ,0x20 ,0x44 ,0x00 ,0x00 ,0x00 ,/* 00000020 "'.. D..." */ +0x01 ,0x00 ,0x00 ,0x00 /* 00000028 "...." */ +}; +const unsigned char TemplateDbgp[] = { 0x44,0x42,0x47,0x50,0x34,0x00,0x00,0x00, /* 00000000 "DBGP4..." */
Signature · 1 line
1.7.9.5
Moore
The real issue is that the code to actually compile a DBG2 (including all subtables) has not been written yet.
Here's an example of a large DBG2 with subtables.
/*
* Intel ACPI Component Architecture
* AML Disassembler version 20120711-32 [Aug 14 2012]
* Copyright (c) 2000 - 2012 Intel Corporation
*
* Disassembly of dbg2.aml, Tue Aug 14 09:34:28 2012
*
* ACPI Data Table [DBG2]
*
* Format: [HexOffset DecimalOffset ByteLength] FieldName : FieldValue */
[000h 0000 4] Signature : "DBG2" [Debug Port table type 2] [004h 0004 4] Table Length : 000000CE [008h 0008 1] Revision : 01 [009h 0009 1] Checksum : B1 [00Ah 0010 6] Oem ID : "INTEL " [010h 0016 8] Oem Table ID : "TEMPLATE" [018h 0024 4] Oem Revision : 00000000 [01Ch 0028 4] Asl Compiler ID : "INTL" [020h 0032 4] Asl Compiler Revision : 20120711
[024h 0036 4] Info Offset : 0000002C
[028h 0040 4] Info Count : 00000002
[02Ch 0044 1] Revision : 00 [02Dh 0045 2] Length : 004C [02Fh 0047 1] Register Count : 02 [030h 0048 2] Namepath Length : 0009 [032h 0050 2] Namepath Offset : 0036 [034h 0052 2] OEM Data Length : 000D [036h 0054 2] OEM Data Offset : 003F [038h 0056 2] Port Type : 8000 [03Ah 0058 2] Port Subtype : 0000 [03Ch 0060 2] Reserved : 0000 [03Eh 0062 2] Base Address Offset : 0016 [040h 0064 2] Address Size Offset : 002E
[042h 0066 12] Base Address Register : [Generic Address Structure]
[042h 0066 1] Space ID : 01 [SystemIO] [043h 0067 1] Bit Width : 32 [044h 0068 1] Bit Offset : 00 [045h 0069 1] Encoded Access Width : 03 [DWord Access:32] [046h 0070 8] Address : 1122334455667788
[04Eh 0078 12] Base Address Register : [Generic Address Structure]
[04Eh 0078 1] Space ID : 01 [SystemIO] [04Fh 0079 1] Bit Width : 64 [050h 0080 1] Bit Offset : 00 [051h 0081 1] Encoded Access Width : 04 [QWord Access:64] [052h 0082 8] Address : AABBCCDDEEFF0011
[05Ah 0090 4] Address Size : 76543210 [05Eh 0094 4] Address Size : FEDCBA98
[062h 0098 9] Namepath : "MyDevice"
[06Bh 0107 13] OEM Data : 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D
[078h 0120 1] Revision : 00 [079h 0121 2] Length : 0056 [07Bh 0123 1] Register Count : 01 [07Ch 0124 2] Namepath Length : 0010 [07Eh 0126 2] Namepath Offset : 0026 [080h 0128 2] OEM Data Length : 0020 [082h 0130 2] OEM Data Offset : 0036 [084h 0132 2] Port Type : 8000 [086h 0134 2] Port Subtype : 0000 [088h 0136 2] Reserved : 0000 [08Ah 0138 2] Base Address Offset : 0016 [08Ch 0140 2] Address Size Offset : 0022
[08Eh 0142 12] Base Address Register : [Generic Address Structure]
[08Eh 0142 1] Space ID : 01 [SystemIO] [08Fh 0143 1] Bit Width : 64 [090h 0144 1] Bit Offset : 00 [091h 0145 1] Encoded Access Width : 04 [QWord Access:64] [092h 0146 8] Address : AABBCCDDEEFF0011
[09Ah 0154 4] Address Size : FEDCBA98
[09Eh 0158 16] Namepath : "\\_SB_.PCI0.DBGP"
[0AEh 0174 16] OEM Data : 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
[0BEh 0190 16] : 57 58 59 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D
Quoted 29 lines
-----Original Message-----
From: devel-bounces(a)acpica.org [mailto:devel-bounces(a)acpica.org] On Behalf Of naresh.bhat(a)linaro.org
Sent: Wednesday, October 16, 2013 12:49 AM
To: devel(a)acpica.org
Cc: linaro-acpi(a)lists.linaro.org
Subject: [Devel] [PATCH 0/2] Fix DBG2 compilation template issueFrom: Naresh Bhat <naresh.bhat(a)linaro.org>
The patches try to fix the DBG2 table compilation issue and also tries to add a template support for DBG2 tables.
Naresh Bhat (2):
iASL: Fix Table Info handler for DBG2
iASL: Add template support for dbg2source/common/dmtable.c | 2 +- source/compiler/dtcompiler.h | 1 + source/compiler/dttemplate.h | 10 ++++++++++ 3 files changed, 12 insertions(+), 1 deletion(-)--
1.7.9.5_______________________________________________
Devel mailing list
Devel(a)acpica.org
https://lists.acpica.org/mailman/listinfo/devel
Naresh Bhat
Hi Robert,
Thank you very much. I will implement sub-table compilation method and post the patches.
Regards
-Naresh Bhat
Quoted 127 lines · Robert
The real issue is that the code to actually compile a DBG2 (including all subtables) has not been written yet.
Here's an example of a large DBG2 with subtables.
/*
* Intel ACPI Component Architecture
* AML Disassembler version 20120711-32 [Aug 14 2012]
* Copyright (c) 2000 - 2012 Intel Corporation
*
* Disassembly of dbg2.aml, Tue Aug 14 09:34:28 2012
*
* ACPI Data Table [DBG2]
*
* Format: [HexOffset DecimalOffset ByteLength] FieldName : FieldValue */[000h 0000 4] Signature : "DBG2" [Debug Port table type 2] [004h 0004 4] Table Length : 000000CE [008h 0008 1] Revision : 01 [009h 0009 1] Checksum : B1 [00Ah 0010 6] Oem ID : "INTEL " [010h 0016 8] Oem Table ID : "TEMPLATE" [018h 0024 4] Oem Revision : 00000000 [01Ch 0028 4] Asl Compiler ID : "INTL" [020h 0032 4] Asl Compiler Revision : 20120711[024h 0036 4] Info Offset : 0000002C
[028h 0040 4] Info Count : 00000002[02Ch 0044 1] Revision : 00 [02Dh 0045 2] Length : 004C [02Fh 0047 1] Register Count : 02 [030h 0048 2] Namepath Length : 0009 [032h 0050 2] Namepath Offset : 0036 [034h 0052 2] OEM Data Length : 000D [036h 0054 2] OEM Data Offset : 003F [038h 0056 2] Port Type : 8000 [03Ah 0058 2] Port Subtype : 0000 [03Ch 0060 2] Reserved : 0000 [03Eh 0062 2] Base Address Offset : 0016 [040h 0064 2] Address Size Offset : 002E[042h 0066 12] Base Address Register : [Generic Address Structure]
[042h 0066 1] Space ID : 01 [SystemIO] [043h 0067 1] Bit Width : 32 [044h 0068 1] Bit Offset : 00 [045h 0069 1] Encoded Access Width : 03 [DWord Access:32] [046h 0070 8] Address : 1122334455667788[04Eh 0078 12] Base Address Register : [Generic Address Structure]
[04Eh 0078 1] Space ID : 01 [SystemIO] [04Fh 0079 1] Bit Width : 64 [050h 0080 1] Bit Offset : 00 [051h 0081 1] Encoded Access Width : 04 [QWord Access:64] [052h 0082 8] Address : AABBCCDDEEFF0011[05Ah 0090 4] Address Size : 76543210 [05Eh 0094 4] Address Size : FEDCBA98[062h 0098 9] Namepath : "MyDevice"
[06Bh 0107 13] OEM Data : 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D
[078h 0120 1] Revision : 00 [079h 0121 2] Length : 0056 [07Bh 0123 1] Register Count : 01 [07Ch 0124 2] Namepath Length : 0010 [07Eh 0126 2] Namepath Offset : 0026 [080h 0128 2] OEM Data Length : 0020 [082h 0130 2] OEM Data Offset : 0036 [084h 0132 2] Port Type : 8000 [086h 0134 2] Port Subtype : 0000 [088h 0136 2] Reserved : 0000 [08Ah 0138 2] Base Address Offset : 0016 [08Ch 0140 2] Address Size Offset : 0022[08Eh 0142 12] Base Address Register : [Generic Address Structure]
[08Eh 0142 1] Space ID : 01 [SystemIO] [08Fh 0143 1] Bit Width : 64 [090h 0144 1] Bit Offset : 00 [091h 0145 1] Encoded Access Width : 04 [QWord Access:64] [092h 0146 8] Address : AABBCCDDEEFF0011[09Ah 0154 4] Address Size : FEDCBA98
[09Eh 0158 16] Namepath : "\\_SB_.PCI0.DBGP"
[0AEh 0174 16] OEM Data : 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
[0BEh 0190 16] : 57 58 59 01 02 03 04 05 06 07 08 09 0A 0B 0C 0DQuoted 29 lines
-----Original Message-----
From: devel-bounces(a)acpica.org [mailto:devel-bounces(a)acpica.org] On Behalf Of naresh.bhat(a)linaro.org
Sent: Wednesday, October 16, 2013 12:49 AM
To: devel(a)acpica.org
Cc: linaro-acpi(a)lists.linaro.org
Subject: [Devel] [PATCH 0/2] Fix DBG2 compilation template issueFrom: Naresh Bhat <naresh.bhat(a)linaro.org>
The patches try to fix the DBG2 table compilation issue and also tries to add a template support for DBG2 tables.
Naresh Bhat (2):
iASL: Fix Table Info handler for DBG2
iASL: Add template support for dbg2source/common/dmtable.c | 2 +- source/compiler/dtcompiler.h | 1 + source/compiler/dttemplate.h | 10 ++++++++++ 3 files changed, 12 insertions(+), 1 deletion(-)--
1.7.9.5_______________________________________________
Devel mailing list
Devel(a)acpica.org
https://lists.acpica.org/mailman/listinfo/devel
Moore
I have started on it, but if I don't have the time, perhaps you can help. I'll let you know of my progress later today. Bob
Quoted 151 lines
-----Original Message-----
From: Naresh Bhat [mailto:naresh.bhat(a)linaro.org]
Sent: Wednesday, October 23, 2013 2:07 AM
To: Moore, Robert
Cc: devel(a)acpica.org; linaro-acpi(a)lists.linaro.org
Subject: Re: [Devel] [PATCH 0/2] Fix DBG2 compilation template issueHi Robert,
Thank you very much. I will implement sub-table compilation method and post the patches.
Regards
-Naresh BhatQuoted 1 line · Robert
The real issue is that the code to actually compile a DBG2 (including
all subtables) has not been written yet.
Quoted 17 lines
Here's an example of a large DBG2 with subtables.
/*
* Intel ACPI Component Architecture
* AML Disassembler version 20120711-32 [Aug 14 2012]
* Copyright (c) 2000 - 2012 Intel Corporation
*
* Disassembly of dbg2.aml, Tue Aug 14 09:34:28 2012 *
* ACPI Data Table [DBG2]
*
* Format: [HexOffset DecimalOffset ByteLength] FieldName :
FieldValue */Quoted 1 line
[000h 0000 4] Signature : "DBG2" [Debug Port
table type 2]
Quoted 25 lines
[004h 0004 4] Table Length : 000000CE [008h 0008 1] Revision : 01 [009h 0009 1] Checksum : B1 [00Ah 0010 6] Oem ID : "INTEL " [010h 0016 8] Oem Table ID : "TEMPLATE" [018h 0024 4] Oem Revision : 00000000 [01Ch 0028 4] Asl Compiler ID : "INTL" [020h 0032 4] Asl Compiler Revision : 20120711[024h 0036 4] Info Offset : 0000002C
[028h 0040 4] Info Count : 00000002[02Ch 0044 1] Revision : 00 [02Dh 0045 2] Length : 004C [02Fh 0047 1] Register Count : 02 [030h 0048 2] Namepath Length : 0009 [032h 0050 2] Namepath Offset : 0036 [034h 0052 2] OEM Data Length : 000D [036h 0054 2] OEM Data Offset : 003F [038h 0056 2] Port Type : 8000 [03Ah 0058 2] Port Subtype : 0000 [03Ch 0060 2] Reserved : 0000 [03Eh 0062 2] Base Address Offset : 0016 [040h 0064 2] Address Size Offset : 002EQuoted 1 line
[042h 0066 12] Base Address Register : [Generic Address
Structure]
Quoted 8 lines
[042h 0066 1] Space ID : 01 [SystemIO] [043h 0067 1] Bit Width : 32 [044h 0068 1] Bit Offset : 00 [045h 0069 1] Encoded Access Width : 03 [DWord Access:32] [046h 0070 8] Address : 1122334455667788[04Eh 0078 12] Base Address Register : [Generic Address
Structure]
Quoted 6 lines
[04Eh 0078 1] Space ID : 01 [SystemIO] [04Fh 0079 1] Bit Width : 64 [050h 0080 1] Bit Offset : 00 [051h 0081 1] Encoded Access Width : 04 [QWord Access:64] [052h 0082 8] Address : AABBCCDDEEFF0011Quoted 6 lines
[05Ah 0090 4] Address Size : 76543210 [05Eh 0094 4] Address Size : FEDCBA98[062h 0098 9] Namepath : "MyDevice"
[06Bh 0107 13] OEM Data : 01 02 03 04 05 06 07 08
09 0A 0B 0C 0D
Quoted 14 lines
[078h 0120 1] Revision : 00 [079h 0121 2] Length : 0056 [07Bh 0123 1] Register Count : 01 [07Ch 0124 2] Namepath Length : 0010 [07Eh 0126 2] Namepath Offset : 0026 [080h 0128 2] OEM Data Length : 0020 [082h 0130 2] OEM Data Offset : 0036 [084h 0132 2] Port Type : 8000 [086h 0134 2] Port Subtype : 0000 [088h 0136 2] Reserved : 0000 [08Ah 0138 2] Base Address Offset : 0016 [08Ch 0140 2] Address Size Offset : 0022Quoted 1 line
[08Eh 0142 12] Base Address Register : [Generic Address
Structure]
Quoted 11 lines
[08Eh 0142 1] Space ID : 01 [SystemIO] [08Fh 0143 1] Bit Width : 64 [090h 0144 1] Bit Offset : 00 [091h 0145 1] Encoded Access Width : 04 [QWord Access:64] [092h 0146 8] Address : AABBCCDDEEFF0011[09Ah 0154 4] Address Size : FEDCBA98
[09Eh 0158 16] Namepath : "\\_SB_.PCI0.DBGP"
[0AEh 0174 16] OEM Data : 41 42 43 44 45 46 47 48
49 50 51 52 53 54 55 56
Quoted 1 line
[0BEh 0190 16] : 57 58 59 01 02 03 04 05
06 07 08 09 0A 0B 0C 0D
Quoted 35 lines
Quoted 35 lines
-----Original Message-----
From: devel-bounces(a)acpica.org [mailto:devel-bounces(a)acpica.org] On Behalf Of naresh.bhat(a)linaro.org
Sent: Wednesday, October 16, 2013 12:49 AM
To: devel(a)acpica.org
Cc: linaro-acpi(a)lists.linaro.org
Subject: [Devel] [PATCH 0/2] Fix DBG2 compilation template issueFrom: Naresh Bhat <naresh.bhat(a)linaro.org>
The patches try to fix the DBG2 table compilation issue and also tries to add a template support for DBG2 tables.
Naresh Bhat (2):
iASL: Fix Table Info handler for DBG2
iASL: Add template support for dbg2source/common/dmtable.c | 2 +- source/compiler/dtcompiler.h | 1 + source/compiler/dttemplate.h | 10 ++++++++++ 3 files changed, 12 insertions(+), 1 deletion(-)--
1.7.9.5_______________________________________________
Devel mailing list
Devel(a)acpica.org
https://lists.acpica.org/mailman/listinfo/devel
Naresh Bhat
Hi Robert Moore,
OK sure. My apologies I could not able to spend time on it today. Since I was focusing on other items.
Regards
-Naresh Bhat
Quoted 155 lines · Robert
I have started on it, but if I don't have the time, perhaps you can help. I'll let you know of my progress later today. Bob
Quoted 151 lines
-----Original Message-----
From: Naresh Bhat [mailto:naresh.bhat(a)linaro.org]
Sent: Wednesday, October 23, 2013 2:07 AM
To: Moore, Robert
Cc: devel(a)acpica.org; linaro-acpi(a)lists.linaro.org
Subject: Re: [Devel] [PATCH 0/2] Fix DBG2 compilation template issueHi Robert,
Thank you very much. I will implement sub-table compilation method and post the patches.
Regards
-Naresh BhatQuoted 1 line · Robert
The real issue is that the code to actually compile a DBG2 (including
all subtables) has not been written yet.
Quoted 17 lines
Here's an example of a large DBG2 with subtables.
/*
* Intel ACPI Component Architecture
* AML Disassembler version 20120711-32 [Aug 14 2012]
* Copyright (c) 2000 - 2012 Intel Corporation
*
* Disassembly of dbg2.aml, Tue Aug 14 09:34:28 2012 *
* ACPI Data Table [DBG2]
*
* Format: [HexOffset DecimalOffset ByteLength] FieldName :
FieldValue */Quoted 1 line
[000h 0000 4] Signature : "DBG2" [Debug Port
table type 2]
Quoted 25 lines
[004h 0004 4] Table Length : 000000CE [008h 0008 1] Revision : 01 [009h 0009 1] Checksum : B1 [00Ah 0010 6] Oem ID : "INTEL " [010h 0016 8] Oem Table ID : "TEMPLATE" [018h 0024 4] Oem Revision : 00000000 [01Ch 0028 4] Asl Compiler ID : "INTL" [020h 0032 4] Asl Compiler Revision : 20120711[024h 0036 4] Info Offset : 0000002C
[028h 0040 4] Info Count : 00000002[02Ch 0044 1] Revision : 00 [02Dh 0045 2] Length : 004C [02Fh 0047 1] Register Count : 02 [030h 0048 2] Namepath Length : 0009 [032h 0050 2] Namepath Offset : 0036 [034h 0052 2] OEM Data Length : 000D [036h 0054 2] OEM Data Offset : 003F [038h 0056 2] Port Type : 8000 [03Ah 0058 2] Port Subtype : 0000 [03Ch 0060 2] Reserved : 0000 [03Eh 0062 2] Base Address Offset : 0016 [040h 0064 2] Address Size Offset : 002EQuoted 1 line
[042h 0066 12] Base Address Register : [Generic Address
Structure]
Quoted 8 lines
[042h 0066 1] Space ID : 01 [SystemIO] [043h 0067 1] Bit Width : 32 [044h 0068 1] Bit Offset : 00 [045h 0069 1] Encoded Access Width : 03 [DWord Access:32] [046h 0070 8] Address : 1122334455667788[04Eh 0078 12] Base Address Register : [Generic Address
Structure]
Quoted 6 lines
[04Eh 0078 1] Space ID : 01 [SystemIO] [04Fh 0079 1] Bit Width : 64 [050h 0080 1] Bit Offset : 00 [051h 0081 1] Encoded Access Width : 04 [QWord Access:64] [052h 0082 8] Address : AABBCCDDEEFF0011Quoted 6 lines
[05Ah 0090 4] Address Size : 76543210 [05Eh 0094 4] Address Size : FEDCBA98[062h 0098 9] Namepath : "MyDevice"
[06Bh 0107 13] OEM Data : 01 02 03 04 05 06 07 08
09 0A 0B 0C 0D
Quoted 14 lines
[078h 0120 1] Revision : 00 [079h 0121 2] Length : 0056 [07Bh 0123 1] Register Count : 01 [07Ch 0124 2] Namepath Length : 0010 [07Eh 0126 2] Namepath Offset : 0026 [080h 0128 2] OEM Data Length : 0020 [082h 0130 2] OEM Data Offset : 0036 [084h 0132 2] Port Type : 8000 [086h 0134 2] Port Subtype : 0000 [088h 0136 2] Reserved : 0000 [08Ah 0138 2] Base Address Offset : 0016 [08Ch 0140 2] Address Size Offset : 0022Quoted 1 line
[08Eh 0142 12] Base Address Register : [Generic Address
Structure]
Quoted 11 lines
[08Eh 0142 1] Space ID : 01 [SystemIO] [08Fh 0143 1] Bit Width : 64 [090h 0144 1] Bit Offset : 00 [091h 0145 1] Encoded Access Width : 04 [QWord Access:64] [092h 0146 8] Address : AABBCCDDEEFF0011[09Ah 0154 4] Address Size : FEDCBA98
[09Eh 0158 16] Namepath : "\\_SB_.PCI0.DBGP"
[0AEh 0174 16] OEM Data : 41 42 43 44 45 46 47 48
49 50 51 52 53 54 55 56
Quoted 1 line
[0BEh 0190 16] : 57 58 59 01 02 03 04 05
06 07 08 09 0A 0B 0C 0D
Quoted 35 lines
Quoted 35 lines
-----Original Message-----
From: devel-bounces(a)acpica.org [mailto:devel-bounces(a)acpica.org] On Behalf Of naresh.bhat(a)linaro.org
Sent: Wednesday, October 16, 2013 12:49 AM
To: devel(a)acpica.org
Cc: linaro-acpi(a)lists.linaro.org
Subject: [Devel] [PATCH 0/2] Fix DBG2 compilation template issueFrom: Naresh Bhat <naresh.bhat(a)linaro.org>
The patches try to fix the DBG2 table compilation issue and also tries to add a template support for DBG2 tables.
Naresh Bhat (2):
iASL: Fix Table Info handler for DBG2
iASL: Add template support for dbg2source/common/dmtable.c | 2 +- source/compiler/dtcompiler.h | 1 + source/compiler/dttemplate.h | 10 ++++++++++ 3 files changed, 12 insertions(+), 1 deletion(-)--
1.7.9.5_______________________________________________
Devel mailing list
Devel(a)acpica.org
https://lists.acpica.org/mailman/listinfo/devel
Moore
I've got most of it working today.
Quoted 176 lines
-----Original Message-----
From: Naresh Bhat [mailto:naresh.bhat(a)linaro.org]
Sent: Wednesday, October 23, 2013 8:30 AM
To: Moore, Robert
Cc: devel(a)acpica.org; linaro-acpi(a)lists.linaro.org
Subject: Re: [Devel] [PATCH 0/2] Fix DBG2 compilation template issueHi Robert Moore,
OK sure. My apologies I could not able to spend time on it today. Since I was focusing on other items.
Regards
-Naresh BhatQuoted 1 line · Robert
I have started on it, but if I don't have the time, perhaps you can
help. I'll let you know of my progress later today.
Quoted 89 lines
Bob
Quoted 86 lines
-----Original Message-----
From: Naresh Bhat [mailto:naresh.bhat(a)linaro.org]
Sent: Wednesday, October 23, 2013 2:07 AM
To: Moore, Robert
Cc: devel(a)acpica.org; linaro-acpi(a)lists.linaro.org
Subject: Re: [Devel] [PATCH 0/2] Fix DBG2 compilation template issueHi Robert,
Thank you very much. I will implement sub-table compilation method and post the patches.
Regards
-Naresh BhatQuoted 2 lines · Robert
The real issue is that the code to actually compile a DBG2 (including
all subtables) has not been written yet.
Quoted 17 lines
Here's an example of a large DBG2 with subtables.
/*
* Intel ACPI Component Architecture
* AML Disassembler version 20120711-32 [Aug 14 2012]
* Copyright (c) 2000 - 2012 Intel Corporation
*
* Disassembly of dbg2.aml, Tue Aug 14 09:34:28 2012 *
* ACPI Data Table [DBG2]
*
* Format: [HexOffset DecimalOffset ByteLength] FieldName :
FieldValue */Quoted 1 line
[000h 0000 4] Signature : "DBG2" [Debug Port
table type 2]
Quoted 25 lines
[004h 0004 4] Table Length : 000000CE [008h 0008 1] Revision : 01 [009h 0009 1] Checksum : B1 [00Ah 0010 6] Oem ID : "INTEL " [010h 0016 8] Oem Table ID : "TEMPLATE" [018h 0024 4] Oem Revision : 00000000 [01Ch 0028 4] Asl Compiler ID : "INTL" [020h 0032 4] Asl Compiler Revision : 20120711[024h 0036 4] Info Offset : 0000002C
[028h 0040 4] Info Count : 00000002[02Ch 0044 1] Revision : 00 [02Dh 0045 2] Length : 004C [02Fh 0047 1] Register Count : 02 [030h 0048 2] Namepath Length : 0009 [032h 0050 2] Namepath Offset : 0036 [034h 0052 2] OEM Data Length : 000D [036h 0054 2] OEM Data Offset : 003F [038h 0056 2] Port Type : 8000 [03Ah 0058 2] Port Subtype : 0000 [03Ch 0060 2] Reserved : 0000 [03Eh 0062 2] Base Address Offset : 0016 [040h 0064 2] Address Size Offset : 002EQuoted 1 line
[042h 0066 12] Base Address Register : [Generic Address
Structure]
Quoted 8 lines
[042h 0066 1] Space ID : 01 [SystemIO] [043h 0067 1] Bit Width : 32 [044h 0068 1] Bit Offset : 00 [045h 0069 1] Encoded Access Width : 03 [DWord Access:32] [046h 0070 8] Address : 1122334455667788[04Eh 0078 12] Base Address Register : [Generic Address
Structure]
Quoted 12 lines
[04Eh 0078 1] Space ID : 01 [SystemIO] [04Fh 0079 1] Bit Width : 64 [050h 0080 1] Bit Offset : 00 [051h 0081 1] Encoded Access Width : 04 [QWord Access:64] [052h 0082 8] Address : AABBCCDDEEFF0011[05Ah 0090 4] Address Size : 76543210 [05Eh 0094 4] Address Size : FEDCBA98[062h 0098 9] Namepath : "MyDevice"
[06Bh 0107 13] OEM Data : 01 02 03 04 05 06 07
08
Quoted 23 lines
Quoted 23 lines
09 0A 0B 0C 0D
Quoted 14 lines
[078h 0120 1] Revision : 00 [079h 0121 2] Length : 0056 [07Bh 0123 1] Register Count : 01 [07Ch 0124 2] Namepath Length : 0010 [07Eh 0126 2] Namepath Offset : 0026 [080h 0128 2] OEM Data Length : 0020 [082h 0130 2] OEM Data Offset : 0036 [084h 0132 2] Port Type : 8000 [086h 0134 2] Port Subtype : 0000 [088h 0136 2] Reserved : 0000 [08Ah 0138 2] Base Address Offset : 0016 [08Ch 0140 2] Address Size Offset : 0022Quoted 1 line
[08Eh 0142 12] Base Address Register : [Generic Address
Structure]
Quoted 6 lines
[08Eh 0142 1] Space ID : 01 [SystemIO] [08Fh 0143 1] Bit Width : 64 [090h 0144 1] Bit Offset : 00 [091h 0145 1] Encoded Access Width : 04 [QWord Access:64] [092h 0146 8] Address : AABBCCDDEEFF0011Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
[09Ah 0154 4] Address Size : FEDCBA98
[09Eh 0158 16] Namepath : "\\_SB_.PCI0.DBGP"
[0AEh 0174 16] OEM Data : 41 42 43 44 45 46 47
48
Quoted 2 lines
Quoted 2 lines
49 50 51 52 53 54 55 56
Quoted 1 line
[0BEh 0190 16] : 57 58 59 01 02 03 04
05
Quoted 36 lines
Quoted 36 lines
06 07 08 09 0A 0B 0C 0D
Quoted 35 lines
Quoted 35 lines
-----Original Message-----
From: devel-bounces(a)acpica.org [mailto:devel-bounces(a)acpica.org] On Behalf Of naresh.bhat(a)linaro.org
Sent: Wednesday, October 16, 2013 12:49 AM
To: devel(a)acpica.org
Cc: linaro-acpi(a)lists.linaro.org
Subject: [Devel] [PATCH 0/2] Fix DBG2 compilation template issueFrom: Naresh Bhat <naresh.bhat(a)linaro.org>
The patches try to fix the DBG2 table compilation issue and also tries to add a template support for DBG2 tables.
Naresh Bhat (2):
iASL: Fix Table Info handler for DBG2
iASL: Add template support for dbg2source/common/dmtable.c | 2 +- source/compiler/dtcompiler.h | 1 + source/compiler/dttemplate.h | 10 ++++++++++ 3 files changed, 12 insertions(+), 1 deletion(-)--
1.7.9.5_______________________________________________
Devel mailing list
Devel(a)acpica.org
https://lists.acpica.org/mailman/listinfo/devel
Naresh Bhat
That's great. Hopefully will be added in the next release. Let me know If I can do anything more on DBG2. Its too late night for me. Will get some sleep..-:)
Thanks.
-Naresh
Quoted 179 lines · Robert
I've got most of it working today.
Quoted 176 lines
-----Original Message-----
From: Naresh Bhat [mailto:naresh.bhat(a)linaro.org]
Sent: Wednesday, October 23, 2013 8:30 AM
To: Moore, Robert
Cc: devel(a)acpica.org; linaro-acpi(a)lists.linaro.org
Subject: Re: [Devel] [PATCH 0/2] Fix DBG2 compilation template issueHi Robert Moore,
OK sure. My apologies I could not able to spend time on it today. Since I was focusing on other items.
Regards
-Naresh BhatQuoted 1 line · Robert
I have started on it, but if I don't have the time, perhaps you can
help. I'll let you know of my progress later today.
Quoted 89 lines
Bob
Quoted 86 lines
-----Original Message-----
From: Naresh Bhat [mailto:naresh.bhat(a)linaro.org]
Sent: Wednesday, October 23, 2013 2:07 AM
To: Moore, Robert
Cc: devel(a)acpica.org; linaro-acpi(a)lists.linaro.org
Subject: Re: [Devel] [PATCH 0/2] Fix DBG2 compilation template issueHi Robert,
Thank you very much. I will implement sub-table compilation method and post the patches.
Regards
-Naresh BhatQuoted 2 lines · Robert
The real issue is that the code to actually compile a DBG2 (including
all subtables) has not been written yet.
Quoted 17 lines
Here's an example of a large DBG2 with subtables.
/*
* Intel ACPI Component Architecture
* AML Disassembler version 20120711-32 [Aug 14 2012]
* Copyright (c) 2000 - 2012 Intel Corporation
*
* Disassembly of dbg2.aml, Tue Aug 14 09:34:28 2012 *
* ACPI Data Table [DBG2]
*
* Format: [HexOffset DecimalOffset ByteLength] FieldName :
FieldValue */Quoted 1 line
[000h 0000 4] Signature : "DBG2" [Debug Port
table type 2]
Quoted 25 lines
[004h 0004 4] Table Length : 000000CE [008h 0008 1] Revision : 01 [009h 0009 1] Checksum : B1 [00Ah 0010 6] Oem ID : "INTEL " [010h 0016 8] Oem Table ID : "TEMPLATE" [018h 0024 4] Oem Revision : 00000000 [01Ch 0028 4] Asl Compiler ID : "INTL" [020h 0032 4] Asl Compiler Revision : 20120711[024h 0036 4] Info Offset : 0000002C
[028h 0040 4] Info Count : 00000002[02Ch 0044 1] Revision : 00 [02Dh 0045 2] Length : 004C [02Fh 0047 1] Register Count : 02 [030h 0048 2] Namepath Length : 0009 [032h 0050 2] Namepath Offset : 0036 [034h 0052 2] OEM Data Length : 000D [036h 0054 2] OEM Data Offset : 003F [038h 0056 2] Port Type : 8000 [03Ah 0058 2] Port Subtype : 0000 [03Ch 0060 2] Reserved : 0000 [03Eh 0062 2] Base Address Offset : 0016 [040h 0064 2] Address Size Offset : 002EQuoted 1 line
[042h 0066 12] Base Address Register : [Generic Address
Structure]
Quoted 8 lines
[042h 0066 1] Space ID : 01 [SystemIO] [043h 0067 1] Bit Width : 32 [044h 0068 1] Bit Offset : 00 [045h 0069 1] Encoded Access Width : 03 [DWord Access:32] [046h 0070 8] Address : 1122334455667788[04Eh 0078 12] Base Address Register : [Generic Address
Structure]
Quoted 12 lines
[04Eh 0078 1] Space ID : 01 [SystemIO] [04Fh 0079 1] Bit Width : 64 [050h 0080 1] Bit Offset : 00 [051h 0081 1] Encoded Access Width : 04 [QWord Access:64] [052h 0082 8] Address : AABBCCDDEEFF0011[05Ah 0090 4] Address Size : 76543210 [05Eh 0094 4] Address Size : FEDCBA98[062h 0098 9] Namepath : "MyDevice"
[06Bh 0107 13] OEM Data : 01 02 03 04 05 06 07
08
Quoted 23 lines
Quoted 23 lines
09 0A 0B 0C 0D
Quoted 14 lines
[078h 0120 1] Revision : 00 [079h 0121 2] Length : 0056 [07Bh 0123 1] Register Count : 01 [07Ch 0124 2] Namepath Length : 0010 [07Eh 0126 2] Namepath Offset : 0026 [080h 0128 2] OEM Data Length : 0020 [082h 0130 2] OEM Data Offset : 0036 [084h 0132 2] Port Type : 8000 [086h 0134 2] Port Subtype : 0000 [088h 0136 2] Reserved : 0000 [08Ah 0138 2] Base Address Offset : 0016 [08Ch 0140 2] Address Size Offset : 0022Quoted 1 line
[08Eh 0142 12] Base Address Register : [Generic Address
Structure]
Quoted 6 lines
[08Eh 0142 1] Space ID : 01 [SystemIO] [08Fh 0143 1] Bit Width : 64 [090h 0144 1] Bit Offset : 00 [091h 0145 1] Encoded Access Width : 04 [QWord Access:64] [092h 0146 8] Address : AABBCCDDEEFF0011Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
[09Ah 0154 4] Address Size : FEDCBA98
[09Eh 0158 16] Namepath : "\\_SB_.PCI0.DBGP"
[0AEh 0174 16] OEM Data : 41 42 43 44 45 46 47
48
Quoted 2 lines
Quoted 2 lines
49 50 51 52 53 54 55 56
Quoted 1 line
[0BEh 0190 16] : 57 58 59 01 02 03 04
05
Quoted 36 lines
Quoted 36 lines
06 07 08 09 0A 0B 0C 0D
Quoted 35 lines
Quoted 35 lines
-----Original Message-----
From: devel-bounces(a)acpica.org [mailto:devel-bounces(a)acpica.org] On Behalf Of naresh.bhat(a)linaro.org
Sent: Wednesday, October 16, 2013 12:49 AM
To: devel(a)acpica.org
Cc: linaro-acpi(a)lists.linaro.org
Subject: [Devel] [PATCH 0/2] Fix DBG2 compilation template issueFrom: Naresh Bhat <naresh.bhat(a)linaro.org>
The patches try to fix the DBG2 table compilation issue and also tries to add a template support for DBG2 tables.
Naresh Bhat (2):
iASL: Fix Table Info handler for DBG2
iASL: Add template support for dbg2source/common/dmtable.c | 2 +- source/compiler/dtcompiler.h | 1 + source/compiler/dttemplate.h | 10 ++++++++++ 3 files changed, 12 insertions(+), 1 deletion(-)--
1.7.9.5_______________________________________________
Devel mailing list
Devel(a)acpica.org
https://lists.acpica.org/mailman/listinfo/devel