From patchwork Tue May 31 04:57:13 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Sajjan, Vikas C" X-Patchwork-Id: 9143251 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4273060761 for ; Tue, 31 May 2016 04:59:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 20BD525D97 for ; Tue, 31 May 2016 04:59:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0190B28187; Tue, 31 May 2016 04:59:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4F5BE25D97 for ; Tue, 31 May 2016 04:59:47 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1b7bkL-0006jB-QQ; Tue, 31 May 2016 04:57:41 +0000 Received: from mail-bl2on0114.outbound.protection.outlook.com ([65.55.169.114] helo=na01-bl2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1b7bkI-0006id-FK for linux-arm-kernel@lists.infradead.org; Tue, 31 May 2016 04:57:39 +0000 Received: from TU4PR84MB0045.NAMPRD84.PROD.OUTLOOK.COM (10.162.186.147) by TU4PR84MB0080.NAMPRD84.PROD.OUTLOOK.COM (10.162.186.158) with Microsoft SMTP Server (TLS) id 15.1.506.9; Tue, 31 May 2016 04:57:14 +0000 Received: from TU4PR84MB0045.NAMPRD84.PROD.OUTLOOK.COM ([10.162.186.147]) by TU4PR84MB0045.NAMPRD84.PROD.OUTLOOK.COM ([10.162.186.147]) with mapi id 15.01.0506.011; Tue, 31 May 2016 04:57:14 +0000 From: "Sajjan, Vikas C" To: "robert.moore@intel.com" Subject: RE: [PATCH] Add support to parse RASF Table Thread-Topic: [PATCH] Add support to parse RASF Table Thread-Index: AQHRqnNi/uAly+u990SxUGnQ7DuPTp+7RtQAgBdUKJA= Date: Tue, 31 May 2016 04:57:13 +0000 Message-ID: References: <1462796276-3987-1-git-send-email-nagendra.k-v@hpe.com> In-Reply-To: Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: intel.com; dkim=none (message not signed) header.d=none; intel.com; dmarc=none action=none header.from=hpe.com; x-originating-ip: [15.219.195.11] x-ms-office365-filtering-correlation-id: 249ea439-9b25-4cb6-ce0e-08d389100856 x-microsoft-exchange-diagnostics: 1; TU4PR84MB0080; 5:k2F1CyLOgNP+aHAMcHGPE1z1FoxfFca24lCq7yZ/dZgQHrs329zyFA+sBmrNfg0y9FS+txPqad46bog4/fkJ/ebGlKNF63M1SuS5DH1xmFyg3RfysYLE9wOF+Spk/8utLUDs0l0gi9UGISks5m7nRQ==; 24:pDlbfDq9yWravP1iluiOOWF1xfn7lTEgz2lnQmcnECUNeCfJ2gFFMMK3LiR5fh6VvckxEbCH+Bt8+DsgpSPwr/15ROnEr/dfV/J5naruSY8=; 7:xi4JaLnRTL6b5Ljg2AHWriEENDRqf7Nu3BAunswYD2+0+j2nXGzTRkQaaBY+nnRik0QI+eq/NWUrXOA5l2XITcalRmMoB7qnL4MNTeV1AYN1moALV0CumwzY2u9t5JL2puDCzoXlThDqupHUX5E32raqYZTaQTiNV8xju+vNd4KzykV7p2kAkXudQbQD9ELV x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:TU4PR84MB0080; x-ld-processed: 105b2061-b669-4b31-92ac-24d304d195dc,ExtAddr x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(227479698468861)(9452136761055)(228905959029699); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046); SRVR:TU4PR84MB0080; BCL:0; PCL:0; RULEID:; SRVR:TU4PR84MB0080; x-forefront-prvs: 095972DF2F x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(13464003)(377454003)(5008740100001)(77096005)(2950100001)(76176999)(50986999)(2900100001)(54356999)(10400500002)(81166006)(189998001)(2351001)(106116001)(110136002)(11100500001)(5002640100001)(4326007)(2501003)(19580395003)(2906002)(33656002)(19580405001)(9686002)(92566002)(5003600100002)(66066001)(5640700001)(8936002)(86362001)(3660700001)(3280700002)(99286002)(3900700001)(586003)(87936001)(3846002)(122556002)(102836003)(6116002)(8676002)(5004730100002); DIR:OUT; SFP:1102; SCL:1; SRVR:TU4PR84MB0080; H:TU4PR84MB0045.NAMPRD84.PROD.OUTLOOK.COM; FPR:; SPF:None; MLV:sfv; LANG:en; spamdiagnosticoutput: 1:23 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: hpe.com X-MS-Exchange-CrossTenant-originalarrivaltime: 31 May 2016 04:57:13.9729 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 105b2061-b669-4b31-92ac-24d304d195dc X-MS-Exchange-Transport-CrossTenantHeadersStamped: TU4PR84MB0080 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160530_215738_786513_AC360310 X-CRM114-Status: GOOD ( 10.84 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "linaro-acpi@lists.linaro.org" , "rjw@rjwysocki.net" , "linux-acpi@vger.kernel.org" , "K V, Nagendra" , "Lakshminarasimha, Sunil Vishwanathpur" , "linux-arm-kernel@lists.infradead.org" , "devel@acpica.org" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Hi Bob, Any thoughts on this patch Regards Vikas Sajjan -----Original Message----- From: K V, Nagendra Sent: Monday, May 16, 2016 2:05 PM To: robert.moore@intel.com Cc: Sajjan, Vikas C ; Lakshminarasimha, Sunil Vishwanathpur ; devel@acpica.org; linux-acpi@vger.kernel.org Subject: RE: [PATCH] Add support to parse RASF Table Bob, Did you get chance to look into this? Regards Nagendra -----Original Message----- From: K V, Nagendra Sent: Monday, May 09, 2016 5:48 PM To: robert.moore@intel.com Cc: Sajjan, Vikas C ; Lakshminarasimha, Sunil Vishwanathpur ; devel@acpica.org; K V, Nagendra Subject: [PATCH] Add support to parse RASF Table This patch adds support to parse RASF table. Currently RASF table is not being recognized. --- source/common/ahtable.c | 1 + source/common/dmtable.c | 7 +++++++ source/common/dmtbinfo.c | 13 +++++++++++++ source/compiler/dtcompiler.h | 1 + source/compiler/dttemplate.h | 11 +++++++++++ source/compiler/dtutils.c | 5 +++++ source/include/acdisasm.h | 2 ++ 7 files changed, 40 insertions(+) -- 2.5.0 diff --git a/source/common/ahtable.c b/source/common/ahtable.c index 021ae33..59ddc83 100644 --- a/source/common/ahtable.c +++ b/source/common/ahtable.c @@ -196,6 +196,7 @@ const AH_TABLE AcpiSupportedTables[] = {ACPI_SIG_NFIT, "NVDIMM Firmware Interface Table"}, {ACPI_SIG_PCCT, "Platform Communications Channel Table"}, {ACPI_SIG_PMTT, "Platform Memory Topology Table"}, + {ACPI_SIG_RASF, "RAS Features Table"}, {ACPI_RSDP_NAME,"Root System Description Pointer"}, {ACPI_SIG_RSDT, "Root System Description Table"}, {ACPI_SIG_S3PT, "S3 Performance Table"}, diff --git a/source/common/dmtable.c b/source/common/dmtable.c index 51d91f8..321407c 100644 --- a/source/common/dmtable.c +++ b/source/common/dmtable.c @@ -430,6 +430,7 @@ const ACPI_DMTABLE_DATA AcpiDmTableData[] = {ACPI_SIG_NFIT, AcpiDmTableInfoNfit, AcpiDmDumpNfit, DtCompileNfit, TemplateNfit}, {ACPI_SIG_PCCT, AcpiDmTableInfoPcct, AcpiDmDumpPcct, DtCompilePcct, TemplatePcct}, {ACPI_SIG_PMTT, NULL, AcpiDmDumpPmtt, DtCompilePmtt, TemplatePmtt}, + {ACPI_SIG_RASF, AcpiDmTableInfoRasf, NULL, NULL, TemplateRasf}, {ACPI_SIG_RSDT, NULL, AcpiDmDumpRsdt, DtCompileRsdt, TemplateRsdt}, {ACPI_SIG_S3PT, NULL, NULL, NULL, TemplateS3pt}, {ACPI_SIG_SBST, AcpiDmTableInfoSbst, NULL, NULL, TemplateSbst}, @@ -916,6 +917,11 @@ AcpiDmDumpTable ( ByteLength = 10; break; + case ACPI_DMT_RASF: + + ByteLength = 12; + break; + case ACPI_DMT_BUF16: case ACPI_DMT_UUID: @@ -1048,6 +1054,7 @@ AcpiDmDumpTable ( /* Integer Data Types */ + case ACPI_DMT_RASF: case ACPI_DMT_UINT8: case ACPI_DMT_UINT16: case ACPI_DMT_UINT24: diff --git a/source/common/dmtbinfo.c b/source/common/dmtbinfo.c index 5520da2..3896b69 100644 --- a/source/common/dmtbinfo.c +++ b/source/common/dmtbinfo.c @@ -178,6 +178,7 @@ #define ACPI_NFIT_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_NFIT,f) #define ACPI_PCCT_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_PCCT,f) #define ACPI_PMTT_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_PMTT,f) +#define ACPI_RASF_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_RASF,f) #define ACPI_S3PT_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_S3PT,f) #define ACPI_SBST_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_SBST,f) #define ACPI_SLIT_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_SLIT,f) @@ -2512,6 +2513,18 @@ ACPI_DMTABLE_INFO AcpiDmTableInfoPmtt2[] = /******************************************************************************* * + * RASF - RAS Feature table + * + ********************************************************************** + ********/ + +ACPI_DMTABLE_INFO AcpiDmTableInfoRasf[] = +{ + {ACPI_DMT_RASF, ACPI_RASF_OFFSET (ChannelId[0]), "Channel Identifier", 0}, + ACPI_DMT_TERMINATOR +}; + +/********************************************************************** +********* + * * S3PT - S3 Performance Table * ******************************************************************************/ diff --git a/source/compiler/dtcompiler.h b/source/compiler/dtcompiler.h index eb85ddc..1072f52 100644 --- a/source/compiler/dtcompiler.h +++ b/source/compiler/dtcompiler.h @@ -681,6 +681,7 @@ extern const unsigned char TemplateMtmr[]; extern const unsigned char TemplateNfit[]; extern const unsigned char TemplatePcct[]; extern const unsigned char TemplatePmtt[]; +extern const unsigned char TemplateRasf[]; extern const unsigned char TemplateRsdt[]; extern const unsigned char TemplateS3pt[]; extern const unsigned char TemplateSbst[]; diff --git a/source/compiler/dttemplate.h b/source/compiler/dttemplate.h index e420ec4..d17b2af 100644 --- a/source/compiler/dttemplate.h +++ b/source/compiler/dttemplate.h @@ -978,6 +978,17 @@ const unsigned char TemplatePmtt[] = 0x00,0x00,0x00,0x00 /* 000000B0 "...." */ }; +const unsigned char TemplateRasf[] = +{ + 0x42,0x45,0x52,0x54,0x30,0x00,0x00,0x00, /* 00000000 "RASF0..." */ + 0x01,0x15,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 "..INTEL " */ + 0x54,0x45,0x4D,0x50,0x4C,0x41,0x54,0x45, /* 00000010 "TEMPLATE" */ + 0x01,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ + 0x28,0x05,0x10,0x20,0x00,0x00,0x00,0x00, /* 00000020 "(.. ...." */ + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000028 "........" */ + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 /* 00000030 "........" */ +}; + const unsigned char TemplateRsdp[] = { 0x52,0x53,0x44,0x20,0x50,0x54,0x52,0x20, /* 00000000 "RSD PTR " */ diff --git a/source/compiler/dtutils.c b/source/compiler/dtutils.c index 6ca418c..774db8b 100644 --- a/source/compiler/dtutils.c +++ b/source/compiler/dtutils.c @@ -688,6 +688,11 @@ DtGetFieldLength ( ByteLength = 10; break; + case ACPI_DMT_RASF: + + ByteLength = 12; + break; + case ACPI_DMT_BUF16: case ACPI_DMT_UUID: diff --git a/source/include/acdisasm.h b/source/include/acdisasm.h index ba8f274..d59e4d9 100644 --- a/source/include/acdisasm.h +++ b/source/include/acdisasm.h @@ -227,6 +227,7 @@ typedef enum ACPI_DMT_NFIT, ACPI_DMT_PCCT, ACPI_DMT_PMTT, + ACPI_DMT_RASF, ACPI_DMT_SLIC, ACPI_DMT_SRAT, @@ -458,6 +459,7 @@ extern ACPI_DMTABLE_INFO AcpiDmTableInfoPcctHdr[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoPcct0[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoPcct1[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoPcct2[]; +extern ACPI_DMTABLE_INFO AcpiDmTableInfoRasf[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoRsdp1[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoRsdp2[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoS3pt[];