From patchwork Tue Sep 19 13:56:22 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: gary guo X-Patchwork-Id: 113004 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp4972828qgf; Tue, 19 Sep 2017 07:15:59 -0700 (PDT) X-Received: by 10.233.223.68 with SMTP id t65mr1946844qkf.321.1505830558896; Tue, 19 Sep 2017 07:15:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505830558; cv=none; d=google.com; s=arc-20160816; b=I5NBf1T6WsGchkjKIxWIp1ilu5jDXFDTWLDErTB1vFrukI1QUdcDRX0qzGw8RnKGxl ubsWg2TUkAGLh7+4+zLFH9newySBp+nhAXGaRN3j0kWltb5fqe8aZdEmy74w+gV6bVJO /S2kDg5ePNoUKfp/peIe32qsWzmB85fwNXz9Kkp5GqktrvD0TquYrJbVdIzFGQToRKcN /fSCvpz3d4eVpzamrw5FqmkxIjAjiUEIAJuOUCM4zAwbE0cLYs8aPFzE/NWCSppLMjau XblyFCwd9kbzgO5tdlbFD17WE9F6uXskRJfs4NO4lKHAZFL6p1zRUV5zC4j0NrcLx7eI i8Cw== 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=oKie26QtO9bpMI/0bkcnUE30Zv3LLci2jdfR3SII+oQ=; b=yBHxm2Ip0brsYupRDnWucCHSYP+yQP2coKlKhYRsR98A7BTs+5W4+ld+uQHmMYR1z8 K865trzgn7RJPc1uPK4yjFacgEocLlpX9likFMCkmTrUx5i6cmaGtH4eM41BFBCs5DDA iyHF+pS369JhQ8fcJrC5t1HaKzLsI8oAaDwoIT+0thWS5qSi+kW30rkWDv/Wmv8tsBu1 gEQKzWFkj3zmIuOBP9BqnB5xiArp+bJ9xdMakGHeJeOe4fAp9V3oB342aIQRXEusYExT MCXA4EqvtY6yRYDjthoUQynPcl9CDAc6XQ3NdHtXyYN0cwTEXDAVlgvnw7dtgNWQSsB8 5m3g== 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 i66si3740636qkd.378.2017.09.19.07.15.58; Tue, 19 Sep 2017 07:15:58 -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 6A62362D0C; Tue, 19 Sep 2017 14:15:58 +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=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, 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 6B0E9636A2; Tue, 19 Sep 2017 14:10:41 +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 370BA62CF5; Tue, 19 Sep 2017 14:05:58 +0000 (UTC) Received: from mail-pg0-f51.google.com (mail-pg0-f51.google.com [74.125.83.51]) by lists.linaro.org (Postfix) with ESMTPS id 77CB56065A for ; Tue, 19 Sep 2017 14:05:36 +0000 (UTC) Received: by mail-pg0-f51.google.com with SMTP id b11so2044713pgn.12 for ; Tue, 19 Sep 2017 07:05:36 -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=hPgPXAfXRZOMQcemksF/VtBM3GHbcrSpgP6SOn33Yqg=; b=LHjVKGs9wU5bF7hK0NKqtlIb2ZfxnM0MiXdMqJTCdkeEEchIZJ9WGH97EuHqm/ssKx Tn+u1YXwVhCorhlHebFIjowSIi+aT+gUNu/J+XBicRTVAvdaOPfZ4cjrcijkfzKfABUq MXK0UPBnPEIvoeLVH3xnfjVH3dtoPyHJkQU5r47N5q+6n6MZKZhnWqVfaYIY96MJzdLF H5PnqzXMkMeAs295CD7tQj6QsD7yURA/b61FcWVTKimJneLIIPWJC/U+yZObSOl9NWgJ xIhDf2iOxRmT0nGO1mftdaw+Kj7z9yFcGOvCQtoQMAnS5q8HwRUjzQitDfaln5OgiGQr WrVg== X-Gm-Message-State: AHPjjUhkVo1aTx2DVlreNAOQSajFYkaP2y42aqnCO1DvDHC5fh2VmWW3 Cw1eUdIlw9IS4OdhaDvOWOTwPPuL X-Google-Smtp-Source: AOwi7QCpaSyZeTfPTl3o3z/kLyf09oNWRHCTsIlerV23ryqRYjLnDhGjImGofRSfs/keaTBgy8h+QQ== X-Received: by 10.84.228.215 with SMTP id y23mr1481291pli.398.1505829935801; Tue, 19 Sep 2017 07:05:35 -0700 (PDT) Received: from localhost.localdomain ([119.145.15.121]) by smtp.gmail.com with ESMTPSA id 13sm4390439pfm.138.2017.09.19.07.05.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 19 Sep 2017 07:05:35 -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:22 +0800 Message-Id: <1505829398-52214-17-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 16/32] Hisilicon/D03: Add Apei asl code to 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 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chenhui Sun --- .../Hi1610/Hi1610AcpiTables/Dsdt/Apei.asl | 48 ++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 Chips/Hisilicon/Hi1610/Hi1610AcpiTables/Dsdt/Apei.asl diff --git a/Chips/Hisilicon/Hi1610/Hi1610AcpiTables/Dsdt/Apei.asl b/Chips/Hisilicon/Hi1610/Hi1610AcpiTables/Dsdt/Apei.asl new file mode 100644 index 0000000..b692103 --- /dev/null +++ b/Chips/Hisilicon/Hi1610/Hi1610AcpiTables/Dsdt/Apei.asl @@ -0,0 +1,48 @@ +/** @file +* +* Copyright (c) 2017 Hisilicon 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. +* +**/ + +Device (\_SB.GED1) +{ + Name(_HID, "ACPI0013") + Name (_UID, 0) + Name(_CRS, ResourceTemplate () { + Interrupt (ResourceConsumer, Level, ActiveHigh, Exclusive) {178} + }) + + OperationRegion (TMR2, SystemMemory, 0x40080000, 0x10) + Field (TMR2, AnyAcc, NoLock, Preserve) { + Offset (0x08), + CNTL, 32, + INTC, 32, + } + + Method (_EVT, 1) { + Switch (Arg0) { + Case (178) { + Store (0x1, INTC) + Notify (\_SB.ERRD, 0x80) + } + } + } +} + +Device (\_SB.ERRD) +{ + Name(_HID, EISAID("PNP0C33")) + Name (_UID, 0) + + Method (_STA, 0x0, NotSerialized) { + Return(0xF) + } +}