From patchwork Tue Sep 19 13:56:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: gary guo X-Patchwork-Id: 113005 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp4973331qgf; Tue, 19 Sep 2017 07:16:22 -0700 (PDT) X-Received: by 10.55.103.14 with SMTP id b14mr2088979qkc.267.1505830582654; Tue, 19 Sep 2017 07:16:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505830582; cv=none; d=google.com; s=arc-20160816; b=fdrhbabXfJr3UejzJpiI3aTZDGZKuMbosYy9d4p3QXwtbsp8z/YsFr74j2gjQvhppP Dcc4ObugS982tvT67DxDbVcqeXiACdE0QA9K1On4hM2FT+/uYpfHw0xjC4ybRL9rkIdq KQDa3mEsTmDPyYZ5e9Zzrv2WuO+meKCLNLT9h8F+zrLPcygVH8tP6+TIfMMNCLl2HQID D/wSkN4Ss8Q15hKVMEOTEh+LM40RJ5InRK0xBkcsRCvNjIIPGLS0KodL0/US3zSITGn8 9zUSsArvKcvc8ZoqxTv11uoUMsmsddaEpb8SSCRsaSTOkK69EkhASsAqaDADPfRmQy9e UJpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:references:in-reply-to:message-id :date:to:from:delivered-to:arc-authentication-results; bh=Ih97Lr2J3TysE0lLXZyXSJI28pKb25yNEoBn2XQiB10=; b=GkJZaa0VaPZ6++eRauDxQ4Er0Rpnq+02s/FR9jZZsdgBDew2kAOHgmjWAOkWPpE6fV ZlEQFGcTJh8BdvE/N4QTsYpjlOhD6adJFDf0vRSOPEvTJxwkyn6UOyFQ4XPTBB97azRH EQ1Ak2DeLLB1/A3/UiRs5o8KaiXuGfs7Z+dXX/NqH0sKHBSJAB0s6Z2ZzTGgfwAfl4ol K6SW7CABF9gafzadSkDo7/UMuFbytYAyLxFsjyETTU2wiHh9jGoxe6n9xVxmNV3eJz1o PKlos9oGQfvOSpuJVoMw74hWJFvaRJKsNtIq4XwikPQRodps6cFjpQc53Ttbka8W58AC drGQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linaro-uefi-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=linaro-uefi-bounces@lists.linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id o5si947078qkh.26.2017.09.19.07.16.22; Tue, 19 Sep 2017 07:16:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linaro-uefi-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linaro-uefi-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=linaro-uefi-bounces@lists.linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 5301A6064E; Tue, 19 Sep 2017 14:16:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 9D3AB63CB2; Tue, 19 Sep 2017 14:10:50 +0000 (UTC) X-Original-To: linaro-uefi@lists.linaro.org Delivered-To: linaro-uefi@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 3C3CB62CF0; Tue, 19 Sep 2017 14:05:59 +0000 (UTC) Received: from mail-pg0-f43.google.com (mail-pg0-f43.google.com [74.125.83.43]) by lists.linaro.org (Postfix) with ESMTPS id D151562C59 for ; Tue, 19 Sep 2017 14:05:33 +0000 (UTC) Received: by mail-pg0-f43.google.com with SMTP id b11so2044651pgn.12 for ; Tue, 19 Sep 2017 07:05:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=gV4CJmIZo03MZbX5oKLNh8/3wFyjBPsVIHsjvb+G4XY=; b=X1o3gqgxI7Sa2PE/93JdzCqOgY0tzG2cEFzFwOymbWsLRGPKxTss4/26tyA+yhZgEz pmePdilBIV4TiNS4e7PN/nzOxvhiz1WnZz2Z8AMHpX9AB8LO0aizkFdnCGLhc+ghmRqt f8pA3ChQoR+Nf7nFnFtffVulD8/BWxOUgVA9c2Q/SA65EuvUT+RLjC4GncyJhYCbtVgC vQp2dTRXH7mjJ/eWQZGhoa3th0Utxuwt7E1ENNCtD/1nKy752LfKHYdMHjCz4zYovPJT XH/UIiS7fP9cWXiUzJJftN/CUNyGStp9E7kezeL1TqJj4Yx+1ZL7T8OV6mm54KN6kH5A qSYw== X-Gm-Message-State: AHPjjUhMONvTSwQXe953n+zt7VpY3oa+FEMglgQV7kXprLhqujdGtjo5 QocQvLF0c5oYQBRxglI8/P2mr2T3wQGrZQ== X-Google-Smtp-Source: AOwi7QDAQdeCEKDGe6sx378wchW1/uyckBsk4dFss02HCf0VvDEVxevjBMkO42uElz3FQJdBNacJ8Q== X-Received: by 10.84.234.2 with SMTP id m2mr1428472plk.391.1505829933007; Tue, 19 Sep 2017 07:05:33 -0700 (PDT) Received: from localhost.localdomain ([119.145.15.121]) by smtp.gmail.com with ESMTPSA id 13sm4390439pfm.138.2017.09.19.07.05.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 19 Sep 2017 07:05:32 -0700 (PDT) From: Heyi Guo To: leif.lindholm@linaro.org, linaro-uefi@lists.linaro.org, graeme.gregory@linaro.org Date: Tue, 19 Sep 2017 21:56:21 +0800 Message-Id: <1505829398-52214-16-git-send-email-heyi.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1505829398-52214-1-git-send-email-heyi.guo@linaro.org> References: <1505829398-52214-1-git-send-email-heyi.guo@linaro.org> Cc: Ming Huang , zhangjinsong2@huawei.com, huangming23@huawei.com, guoheyi@huawei.com, Chenhui Sun , wanghuiqiang@huawei.com Subject: [Linaro-uefi] [linaro-uefi v1 15/32] Hisilicon D03: support APEI feature X-BeenThere: linaro-uefi@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "For discussions about Linaro-related UEFI development. Not a substitute for edk2-devel." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: linaro-uefi-bounces@lists.linaro.org Sender: "Linaro-uefi" From: Ming Huang Add APEI driver Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chenhui Sun --- Chips/Hisilicon/HisiPkg.dec | 16 +++++++++++++ .../Binary/D03/Drivers/Apei/AcpiApei.depex | Bin 0 -> 54 bytes .../Hisilicon/Binary/D03/Drivers/Apei/AcpiApei.efi | Bin 0 -> 9408 bytes .../Hisilicon/Binary/D03/Drivers/Apei/AcpiApei.inf | 26 +++++++++++++++++++++ Platforms/Hisilicon/D03/D03.fdf | 1 + 5 files changed, 43 insertions(+) create mode 100644 Platforms/Hisilicon/Binary/D03/Drivers/Apei/AcpiApei.depex create mode 100644 Platforms/Hisilicon/Binary/D03/Drivers/Apei/AcpiApei.efi create mode 100644 Platforms/Hisilicon/Binary/D03/Drivers/Apei/AcpiApei.inf diff --git a/Chips/Hisilicon/HisiPkg.dec b/Chips/Hisilicon/HisiPkg.dec index 2c02e14..023d784 100644 --- a/Chips/Hisilicon/HisiPkg.dec +++ b/Chips/Hisilicon/HisiPkg.dec @@ -21,6 +21,9 @@ [Includes] Include + Hi1610/Hi1610AcpiTables/ + Hi1616/D05AcpiTables/ + Pv660/Pv660AcpiTables/ [Ppis] gIpmiInterfacePpiGuid = {0x28ae4d88, 0xb658, 0x46b9, {0xa0, 0xe7, 0xd4, 0x95, 0xe2, 0xe8, 0x97, 0xf}} @@ -37,12 +40,25 @@ gBmcInfoProtocolGuid = {0x43fa6ffd, 0x35e4, 0x479e, {0xab, 0xec, 0x5, 0x3, 0xf6, 0x48, 0x0, 0xf5}} gSataEnableFlagProtocolGuid = {0xc2b3c770, 0x8b4a, 0x4796, {0xb2, 0xcf, 0x1d, 0xee, 0x44, 0xd0, 0x32, 0xf3}} gPlatformSasProtocolGuid = {0x40e9829f, 0x3a2c, 0x479a, {0x9a, 0x93, 0x45, 0x7d, 0x13, 0x50, 0x96, 0x5d}} + gEfiApeiBertProtocolGuid = {0x40e98200, 0x3a2c, 0x479a, {0x9a, 0x93, 0x45, 0x7d, 0x13, 0x50, 0x96, 0x5d}} + gEfiApeiHestProtocolGuid = { 0xb3fa54ee, 0x3729, 0x4942, { 0xb5, 0x36, 0x7e, 0xa3, 0xe0, 0x5e, 0xa, 0x8a }} [Guids] gHisiTokenSpaceGuid = {0xc8bc553e, 0x12bf, 0x11e6, {0x97, 0x4f, 0x87, 0xf7, 0x7c, 0xfd, 0x52, 0x1d}} gHisiEfiMemoryMapGuid = {0xf8870015, 0x6994, 0x4b98, {0x95, 0xa2, 0xbd, 0x56, 0xda, 0x91, 0xc0, 0x7f}} gVersionInfoHobGuid = {0xe13a14c, 0x859c, 0x4f22, {0x82, 0xbd, 0x18, 0xe, 0xe1, 0x42, 0x12, 0xbf}} + # + # APEI Support + # + gEfiCperArmProcessorSectionTypeGuid = { 0xe19e3d16, 0xbc11, 0x11e4, { 0x9c, 0xaa, 0xc2, 0x05, 0x1d, 0x5d, 0x46, 0xb0 }} + gEfiCperFirmwareErrorSectionTypeGuid = { 0x81212a96, 0x09ed, 0x4996, { 0x94, 0x71, 0x8d, 0x72, 0x9c, 0x8e, 0x69, 0xed }} + gEfiCperPciBusSectionTypeGuid = { 0xc5753963, 0x3b84, 0x4095, { 0xbf, 0x78, 0xed, 0xda, 0xd3, 0xf9, 0xc9, 0xdd }} + gEfiCperPciDevSectionTypeGuid = { 0xeb5e4685, 0xca66, 0x4769, { 0xb6, 0xa2, 0x26, 0x06, 0x8b, 0x00, 0x13, 0x26 }} + gEfiCperPcieSectionTypeGuid = { 0xd995e954, 0xbbc1, 0x430f, { 0xad, 0x91, 0xb4, 0x4d, 0xcb, 0x3c, 0x6f, 0x35 }} + gEfiCperPlatformMemory2SectionTypeGuid = { 0x61EC04FC, 0x48E6, 0xD813, { 0x25, 0xC9, 0x8D, 0xAA, 0x44, 0x75, 0x0B, 0x12 }} + gEfiCperPlatformMemorySectionTypeGuid = { 0xa5bc1114, 0x6f64, 0x4ede, { 0xb8, 0x63, 0x3e, 0x83, 0xed, 0x7c, 0x83, 0xb1 }} + gEfiCperProcessorGenericSectionTypeGuid = { 0x9876ccad, 0x47b4, 0x4bdb, { 0xb6, 0x5e, 0x16, 0xf1, 0x93, 0xc4, 0xf3, 0xdb }} [LibraryClasses] PlatformSysCtrlLib|Include/Library/PlatformSysCtrlLib.h diff --git a/Platforms/Hisilicon/Binary/D03/Drivers/Apei/AcpiApei.depex b/Platforms/Hisilicon/Binary/D03/Drivers/Apei/AcpiApei.depex new file mode 100644 index 0000000000000000000000000000000000000000..163dbbe18c94d23e0100234e66f0f561bc7c891e GIT binary patch literal 54 zcmV-60LlLX-D}|g2Vtg0d$L-be#IwT0*(lm>)+4DNxnn+a literal 0 HcmV?d00001 diff --git a/Platforms/Hisilicon/Binary/D03/Drivers/Apei/AcpiApei.efi b/Platforms/Hisilicon/Binary/D03/Drivers/Apei/AcpiApei.efi new file mode 100644 index 0000000000000000000000000000000000000000..6358de232ab07f25291a23aab918e48a418e1fb8 GIT binary patch literal 9408 zcmcgy4^&jwng8B<0|F8q1k__lcpw@}I6{@EBq(nNQP~*d0@?P|L$tb9Za*ERCjY6#iX028N_6hHE9HOWn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PLHprGk7s{2aGdU)5=UE7P+ zB+lIV)E~-j9Qn?8XYtW-Yxf3c$8FjY^U|fyKK$q6e|q${(fbY$c)l{P`n~m!yr`U5 z@y)-V4Sn!wQo`|la~J-8#<9vt>%LjN?iUA6FMqjl>L-uBJ$rE5_FrH5Gr@4biZ`aLI{bs(Yu|g|$%gOVJ8RC1frKpua&zS@#- z{9?jx@5!k9o|Zckc7E0s)bq zt!BI5Z2e~YvDscW+ZZGdeny#XQSpqwy3=~h=La#FNW!@(WJ)6nhndK&@ur_@1mECx z^Fp@%Ojeu8;fGZTY&5-v&SbKMT4I zKmHEZS9uoz+zf=4MaM8Cz;_N{XfzIZBJlrxq6G=4Cq^ zC56+*%o@~dJgVCcAJlm=Q3hT- Td-m@+wCC6!{~n#%!3 literal 0 HcmV?d00001 diff --git a/Platforms/Hisilicon/Binary/D03/Drivers/Apei/AcpiApei.inf b/Platforms/Hisilicon/Binary/D03/Drivers/Apei/AcpiApei.inf new file mode 100644 index 0000000..6e51a1d --- /dev/null +++ b/Platforms/Hisilicon/Binary/D03/Drivers/Apei/AcpiApei.inf @@ -0,0 +1,26 @@ +#/** @file +# +# Copyright (c) 2017, Hisilicon Limited. All rights reserved. +# Copyright (c) 2017, Linaro Limited. All rights reserved. +# +# This program and the accompanying materials +# are licensed and made available under the terms and conditions of the BSD License +# which accompanies this distribution. The full text of the license may be found at +# http://opensource.org/licenses/bsd-license.php +# +# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +# +#**/ + + +[defines] + INF_VERSION = 0x00010019 + BASE_NAME = AcpiApei + FILE_GUID = E4630F5E-EBC2-FD3a-86BB-3CFDC4398C5F + MODULE_TYPE = UEFI_DRIVER + VERSION_STRING = 1.0 + +[Binaries] + PE32|AcpiApei.efi|* + diff --git a/Platforms/Hisilicon/D03/D03.fdf b/Platforms/Hisilicon/D03/D03.fdf index ff65af3..6d21ffe 100644 --- a/Platforms/Hisilicon/D03/D03.fdf +++ b/Platforms/Hisilicon/D03/D03.fdf @@ -238,6 +238,7 @@ READ_LOCK_STATUS = TRUE INF RuleOverride=ACPITABLE OpenPlatformPkg/Chips/Hisilicon/Hi1610/Hi1610AcpiTables/AcpiTablesHi1610.inf INF OpenPlatformPkg/Chips/Hisilicon/Drivers/AcpiPlatformDxe/AcpiPlatformDxe.inf + INF OpenPlatformPkg/Platforms/Hisilicon/Binary/D03/Drivers/Apei/AcpiApei.inf # #Network #