From patchwork Wed Dec 28 08:42:51 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: gary guo X-Patchwork-Id: 89162 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp5374187qgi; Wed, 28 Dec 2016 00:45:16 -0800 (PST) X-Received: by 10.200.40.179 with SMTP id i48mr36386136qti.42.1482914716117; Wed, 28 Dec 2016 00:45:16 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id u64si19228571qkl.104.2016.12.28.00.45.15; Wed, 28 Dec 2016 00:45:16 -0800 (PST) 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 dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id C10AE60D38; Wed, 28 Dec 2016 08:45:15 +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 6D8CC6072E; Wed, 28 Dec 2016 08:45:11 +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 098146072E; Wed, 28 Dec 2016 08:45:08 +0000 (UTC) Received: from mail-pg0-f41.google.com (mail-pg0-f41.google.com [74.125.83.41]) by lists.linaro.org (Postfix) with ESMTPS id 241C460D28 for ; Wed, 28 Dec 2016 08:45:01 +0000 (UTC) Received: by mail-pg0-f41.google.com with SMTP id f188so153803065pgc.3 for ; Wed, 28 Dec 2016 00:45:01 -0800 (PST) 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=zttfCeLuhNnmFrbZdvzjfO3RIoG4fGXuiRRzPXZfl4o=; b=jZGV7QkADnXN5XRKk6BNdO059lCh+hhw1kf7n3HGMiVe/z+haAwtbR8v4Pfcih1MQN WVw4BwYfDAhPrIn4u3QL4RNqtqqshSHxDtZ2AnsfqcIupwrNjjiPC1H0MZAh61+ZPDWw gcPOTWCt193zJjUII0QyqaBoDoWgh2XkeM5neXMVhCUbqeJohMP9lFSRcZlg1FI1u3+z EzwPUcCQ4oj1dtqwlRu6LRJsRhjq2EDjf6m9voltNylhqGvGUBDEQ4eRWBRiyxfTM4wW aytspWBiK8cOSmw2/wi089u4XaXgQnJ8vpnqWqyPSNcEwi56k8OaYN+k+E/DZulLDlB/ tW5w== X-Gm-Message-State: AIkVDXLTpTKthpyd737O2gmCbAQz9qyhuHbdDqW1Lr3jAfhMf+DHpSm4Qhkz5Fw1wStRw0qdTVA= X-Received: by 10.84.217.80 with SMTP id e16mr66519593plj.120.1482914700453; Wed, 28 Dec 2016 00:45:00 -0800 (PST) Received: from localhost.localdomain ([119.145.15.121]) by smtp.gmail.com with ESMTPSA id k22sm37632100pfg.84.2016.12.28.00.44.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 28 Dec 2016 00:45:00 -0800 (PST) From: Chenhui Sun X-Google-Original-From: Chenhui Sun To: linaro-uefi@lists.linaro.org Date: Wed, 28 Dec 2016 16:42:51 +0800 Message-Id: <1482914571-40416-3-git-send-email-sunchenhui@huawei.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1482914571-40416-1-git-send-email-sunchenhui@huawei.com> References: <1482914571-40416-1-git-send-email-sunchenhui@huawei.com> Cc: sunchenhui@huawei.com, wanghuiqiang@huawei.com Subject: [Linaro-uefi] [linaro-uefi v2] Hisilicon/D05: return Eth2/Eth3/Eth6/Eth7 not present at dsdt table X-BeenThere: linaro-uefi@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: 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: Heyi Guo D05 has 4 physical NIC ports, which can be extended to 8 ports using an expansion card. However, the existing ACPI tables unconditionally describes the potential maximum of 8. This patch add _STA method to the extra 4 ports from ACPI. The _STA will return the actual value when code has been added to dynamically detect whether they are present. This patch resolves https://bugs.linaro.org/show_bug.cgi?id=2714. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Heyi Guo Reviewed-by: Graeme Gregory --- Chips/Hisilicon/Hi1616/D05AcpiTables/Dsdt/D05Hns.asl | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Chips/Hisilicon/Hi1616/D05AcpiTables/Dsdt/D05Hns.asl b/Chips/Hisilicon/Hi1616/D05AcpiTables/Dsdt/D05Hns.asl index 046257b..14a905d 100644 --- a/Chips/Hisilicon/Hi1616/D05AcpiTables/Dsdt/D05Hns.asl +++ b/Chips/Hisilicon/Hi1616/D05AcpiTables/Dsdt/D05Hns.asl @@ -662,6 +662,10 @@ Scope(_SB) Package () {"port-idx-in-ae", 2}, } }) + Method (_STA, 0x0, NotSerialized) + { + Return (0) + } } Device (ETH3) { Name(_HID, "HISI00C2") @@ -674,6 +678,10 @@ Scope(_SB) Package () {"port-idx-in-ae", 3}, } }) + Method (_STA, 0x0, NotSerialized) + { + Return (0) + } } Device (ROCE) { @@ -1216,6 +1224,10 @@ Scope(_SB) Package () {"port-idx-in-ae", 0}, } }) + Method (_STA, 0x0, NotSerialized) + { + Return (0) + } } Device (ETH7) { Name(_HID, "HISI00C2") @@ -1228,6 +1240,10 @@ Scope(_SB) Package () {"port-idx-in-ae", 1}, } }) + Method (_STA, 0x0, NotSerialized) + { + Return (0) + } } }