From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-he1eur02on0618.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe05::618]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 87855820D6 for ; Mon, 19 Dec 2016 07:57:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector1-arm-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=y26heso5oZOg2KZdDhRLJzT9FMVbzV1iHi6mYZCK5iI=; b=COGfJjYHHMaM5OZ8MW8lM/2gcUAF0Lqck7gyysQEYC7apORKjkaN3NEMvRGKNmw7UgWOq4VxT7pPIrefmxmiWvuzxF2psX94K2UCYlXjrnMJjTK7U83NWxEBQFFarlpmSk07bz366gGTQuTxVCaWstRJnBCEXXuHVgIt5QX+NlY= Received: from AM5PR0801MB1762.eurprd08.prod.outlook.com (10.169.247.16) by AM5PR0801MB1763.eurprd08.prod.outlook.com (10.169.247.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.771.8; Mon, 19 Dec 2016 15:57:15 +0000 Received: from AM5PR0801MB1762.eurprd08.prod.outlook.com ([10.169.247.16]) by AM5PR0801MB1762.eurprd08.prod.outlook.com ([10.169.247.16]) with mapi id 15.01.0771.020; Mon, 19 Dec 2016 15:57:15 +0000 From: Evan Lloyd To: "Ni, Ruiyu" , "edk2-devel@ml01.01.org" CC: "Carsey, Jaben" , Leif Lindholm , "ard.biesheuvel@linaro.org" Thread-Topic: [edk2] [PATCH] ShellPkg: Add acpiview tool to dump ACPI tables Thread-Index: AQHSV8nfzRASeiOrb0O70tD1DSK8y6EPCpYAgABWn6A= Date: Mon, 19 Dec 2016 15:57:14 +0000 Message-ID: References: <20161216182547.616-1-evan.lloyd@arm.com> <734D49CCEBEEF84792F5B80ED585239D5B836C04@SHSMSX103.ccr.corp.intel.com> In-Reply-To: <734D49CCEBEEF84792F5B80ED585239D5B836C04@SHSMSX103.ccr.corp.intel.com> Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Evan.Lloyd@arm.com; x-originating-ip: [217.140.96.140] x-ld-processed: f34e5979-57d9-4aaa-ad4d-b122a662184d,ExtAddr x-ms-office365-filtering-correlation-id: 6ee91945-5c18-4b2a-dc89-08d42827b3f2 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:AM5PR0801MB1763; x-microsoft-exchange-diagnostics: 1; AM5PR0801MB1763; 7:S5fPwELwgzt2FDsxLOvDdAFJop20YdMKhQd7y1URbDaUgfSUc7P6W/6W+Ytdoi51MFp6piO8kUBnn6fFDQoh/LLy1EePPrEPH2Ymy4SUHPW6ZyhgBOCvrnqP2QhH1gVSWwjKei8WNLPrz6Mgbz/DRtzjgdXCBKK9yQru8dfSIEcWmYRnxvapcbht0QwX/i2UK8y70FKtrMzrHr+7sYEvVlGbq+aC72KIPxK6soCPSzvdE3H5yyNSE+cOLBXxPDgykHypMpU67oU6fJRZsA55Gk7ZtX0gTn2B8n49GG+obfIZher6OUgW3MGcJF3dQhANQWIQUFlU7wW7QsdzsEwzY8YcYuTZx96q9uaaBitWAi+/LTlpU1tdP3RqEPaLGhe5qSLDjtnE8v70WLdUgYZxBZmJ828UIpvE9KrvUVFF2bJOXSlTzybybtMLWYztDZ8VEzpItXJOYUpNGij3gg7vwQ== x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(180628864354917)(166708455590820)(162533806227266)(211171220733660)(228905959029699); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6055026)(6041248)(20161123555025)(20161123560025)(20161123562025)(20161123564025)(6072148); SRVR:AM5PR0801MB1763; BCL:0; PCL:0; RULEID:; SRVR:AM5PR0801MB1763; x-forefront-prvs: 01613DFDC8 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(7916002)(39850400002)(39450400003)(39860400002)(39840400002)(39410400002)(377454003)(13464003)(199003)(189002)(40434004)(68736007)(92566002)(122556002)(25786008)(38730400001)(5001770100001)(76576001)(97736004)(6506006)(4326007)(66066001)(2950100002)(106116001)(7696004)(2906002)(8676002)(106356001)(81156014)(105586002)(81166006)(77096006)(9686002)(5660300001)(8936002)(33656002)(101416001)(189998001)(3280700002)(3846002)(76176999)(50986999)(6116002)(54356999)(3660700001)(6436002)(102836003)(2900100001)(229853002)(2501003)(74316002)(86362001)(5890100001)(305945005)(7736002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM5PR0801MB1763; H:AM5PR0801MB1762.eurprd08.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Dec 2016 15:57:14.9031 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0801MB1763 Subject: Re: [PATCH] ShellPkg: Add acpiview tool to dump ACPI tables X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Dec 2016 15:57:20 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Ray. Good question. Answer inline. >-----Original Message----- >From: Ni, Ruiyu [mailto:ruiyu.ni@intel.com] >Sent: 19 December 2016 09:49 >To: Evan Lloyd; edk2-devel@ml01.01.org >Cc: Carsey, Jaben; Leif Lindholm; ard.biesheuvel@linaro.org >Subject: RE: [edk2] [PATCH] ShellPkg: Add acpiview tool to dump ACPI >tables > >I happened to find another version of acpi dump tool in shell. >Binary can be downloaded from: https://acpica.org/downloads/uefi- >support >Source can be downloaded from: https://github.com/acpica/acpica > >Are there any differences between the above one and yours? The main differences are: 1.acpiview provides a formatted dump of non-AML tables at the Shell level. = This provides the equivalent of using acpidump -b, then transferring the = file to use "iasl -d" on another system. However, it works on systems wher= e the tables do not yet enable an OS to boot, or have limited disk function= ality. 2.It provides a small amount of specification consistency checking/error re= porting at the Shell level. We have found that to be an invaluable aid to = debugging. 3.It has a normal UEFI BSD license, so doesn't instigate legal anxiety. Regards, Evan > >Thanks/Ray > >> -----Original Message----- >> From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of >> evan.lloyd@arm.com >> Sent: Saturday, December 17, 2016 2:26 AM >> To: edk2-devel@ml01.01.org >> Cc: Carsey, Jaben ; Ni, Ruiyu >; >> Leif Lindholm ; Ard Biesheuvel >> >> Subject: [edk2] [PATCH] ShellPkg: Add acpiview tool to dump ACPI tables >> >> From: Sami Mujawar >> >> This program is provided to allow examination of ACPI table contents >> from the UEFI Shell. This can help with investigations, especially at >> that stage where the tables are not enabling an OS to boot. >> The program is not exhaustive, and only encapsulates detailed knowledge >> of a limited number of table types. >> >> Default behaviour is to display the content of all tables installed. >> 'Known' table types will be parsed and displayed with descriptions and >> field values. Where appropriate a degree of consistency checking is >> done and errors may be reported in the output. >> Other table types will be displayed as an array of Hexadecimal bytes. >> >> To facilitate debugging, the -t and -b options can be used to generate a >> binary file image of a table that can be copied elsewhere for >> investigation using tools such as those provided by acpica.org. This is >> especially relevant for AML type tables like DSDT and SSDT. >> >> The inspiration for this is the existing smbiosview Debug1 Shell >> command, and the command is also intended for Debug1. >> >> Many tables are not explicitly handled, in part because no examples are >> available for our testing. >> >> The program is designed to be extended to new tables with minimal >> effort, and contributions are invited. >> >> The code is available for examination at: >> https://github.com/EvanLloyd/tianocore/tree/651_acpiview_v1 >> >> Contributed-under: TianoCore Contribution Agreement 1.0 >> Signed-off-by: Sami Mujawar >> Signed-off-by: Evan Lloyd >> --- >> ShellPkg/ShellPkg.dec = | 2 + >> >> ... >> Guid("CE165669-3EF3-493F-B85D-6190EE5B9759") >> >> _______________________________________________ >> edk2-devel mailing list >> edk2-devel@lists.01.org >> https://lists.01.org/mailman/listinfo/edk2-devel IMPORTANT NOTICE: The contents of this email and any attachments are confid= ential and may also be privileged. If you are not the intended recipient, p= lease 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.