From patchwork Fri Feb 2 12:05:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: gary guo X-Patchwork-Id: 126653 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp577025ljc; Fri, 2 Feb 2018 04:06:38 -0800 (PST) X-Google-Smtp-Source: AH8x224nnKZNmuL3QWpoxWkO3nWLxN5bPg3/Q48fyZfWVDodFKiZti5YY79weNqMgdpZx5FObTFS X-Received: by 2002:a17:902:8a91:: with SMTP id p17-v6mr35110220plo.375.1517573198276; Fri, 02 Feb 2018 04:06:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517573198; cv=none; d=google.com; s=arc-20160816; b=gtvdF3F9nvAoiJJbGFHQ+CVjvK3MymXEJIoRfIqCwm0u9LWJ0N/QXL4R+qVz3sqkWM vBoG09sIEAouWJ1dzpwJpZAh/CSFN6DEoO5WRkNCGWZc1SXe9MB+z/1qwZrgrYlW5r6Q HTiqXrWAG1BWoSCBBMAsuCzoXIDpJPwW6pg0TJ+iBGTC/BIXwPqoKvy+PWyQ2nNoFi22 8ivv0mOMXcpxnCpd56sWttPhIPI/FmN2JalwWuKmwS506g+VJaFwuW75hurtvoqBwscd PN+epUDHyDClIzIRnXwXbZwdqPlHB2jT3SXY/Dw6tbCimd6Uxv/M5FHGG04NovwsqgZY azPg== 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:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=jKTEBUA95Rr/x7TOPBi3ozw9mcbPxSb918DGPt0N7Uk=; b=CZbWWrPnAN2SfyIssec7yjoMjVEawbN+3SL8+ZVbxe9rSurELAOLJv9UYuU3Lg+wcu UU5pDdXoNHf2WPQQ/d0LJHM4t16Mu06PWV3GgCotwb6obFzZ5Tej+JU2k6ihiKwPpE65 4oDRAuGMtSsvEw7C9SAdNOVS4F99nzyP2xLcpdCWGqlsyr/3LOmyLKm0fPqToLfqkAZN xJyOgZ2ujCUHZAhj2EYcJefGdUvEicN/suzqqCi0mxgi8zFUHb0vMBfu6JTQlOYlavoF OR3noP33nv3nttjF30YzM+SztJfqH6XCnNOp5RdhI0IakDRwnaM/rhMB6vczsTLjrJQQ 9VFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=JLGQAoLm; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [198.145.21.10]) by mx.google.com with ESMTPS id bh1-v6si1639757plb.497.2018.02.02.04.06.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 02 Feb 2018 04:06:38 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) client-ip=198.145.21.10; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=JLGQAoLm; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 76036223AF833; Fri, 2 Feb 2018 04:00:59 -0800 (PST) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2607:f8b0:400e:c05::241; helo=mail-pg0-x241.google.com; envelope-from=heyi.guo@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-pg0-x241.google.com (mail-pg0-x241.google.com [IPv6:2607:f8b0:400e:c05::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id B4E1D223AF833 for ; Fri, 2 Feb 2018 04:00:57 -0800 (PST) Received: by mail-pg0-x241.google.com with SMTP id 141so3357419pgd.8 for ; Fri, 02 Feb 2018 04:06:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=I+AFwpFTPb/UTelKi7DhOurLaoYDUqZ8rWulngHyv5Y=; b=JLGQAoLmTfiPFwdNGQOUpqz5FOD4dpmrgqyq93LpLGiKp0QC7d/uUMEKuz66TdG3z7 tfkfHMdeWeM7c2Y8FC9QmEHCzywGLgZPmAMXTug2ubLaPs6AJuzfJvsmBgQtURXFWNOy 0ydXeHInTDjVdOwh2lnzcM11NJgLExiZ+Vo7k= 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=I+AFwpFTPb/UTelKi7DhOurLaoYDUqZ8rWulngHyv5Y=; b=G+aUzwYzaX5lnXgiP2oI8CvthCA7VXI8uBJiPOxZcNOLNi6bNkYYRbVf/Ck9EUHoc9 MKNWSmZdm0BiHkqCTz5k4XPwBh/KT8gJ9v/JkMVwpJVxFAZ7Fj6l0OvP77LWjzFXV4fq c/qlbsUS9G6I8sAl00nIHg5y2xMSawRhkdutuJoeqioDzXv6NrmCxZeP8kOS4mUALhHL 4/T9lnVsQNTtRpBXalEp/r8lw2mBoi7+sxYmcVPb71NJyeFwoSpmA+Ws7OSPAWIIjvz1 6HEOi91AFcheciPIMY3wg91W6Q9lWPkorJU5bkgJBGBdPvqmGyvZW1z0NS+VO0V8hY/v FnIA== X-Gm-Message-State: AKwxytdhFejBUoM3cFHUkoARukqyRPIKSitoE6KjBtD+hlW0K3cXS4H6 culgJtnDSzkI3H/0yKxUsgrV+g== X-Received: by 10.98.7.73 with SMTP id b70mr39405202pfd.39.1517573195769; Fri, 02 Feb 2018 04:06:35 -0800 (PST) Received: from localhost.localdomain ([120.31.149.194]) by smtp.gmail.com with ESMTPSA id b8sm3673047pff.31.2018.02.02.04.06.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 02 Feb 2018 04:06:35 -0800 (PST) From: Heyi Guo To: leif.lindholm@linaro.org, linaro-uefi@lists.linaro.org, edk2-devel@lists.01.org, graeme.gregory@linaro.org Date: Fri, 2 Feb 2018 20:05:42 +0800 Message-Id: <1517573143-11451-15-git-send-email-heyi.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1517573143-11451-1-git-send-email-heyi.guo@linaro.org> References: <1517573143-11451-1-git-send-email-heyi.guo@linaro.org> Subject: [edk2] [PATCH edk2-platforms v3 14/15] Hisilicon/D05/ACPI: Add Pcie, HNS and SAS PXM X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: huangming23@huawei.com, ard.biesheuvel@linaro.org, john.garry@huawei.com, zhangjinsong2@huawei.com, Heyi Guo , wanghuiqiang@huawei.com, guoheyi@huawei.com, waip23@126.com, mengfanrong@huawei.com, huangdaode@hisilicon.com MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" Add PXM method for Pcie device, HNS device and SAS device. Add STA method for HNS. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: hensonwang Signed-off-by: Ming Huang Signed-off-by: Heyi Guo Reviewed-by: Ard Biesheuvel Reviewed-by: Graeme Gregory --- Silicon/Hisilicon/Hi1616/D05AcpiTables/Dsdt/D05Hns.asl | 9 ++++++ Silicon/Hisilicon/Hi1616/D05AcpiTables/Dsdt/D05Pci.asl | 34 ++++++++++++++++++-- Silicon/Hisilicon/Hi1616/D05AcpiTables/Dsdt/D05Sas.asl | 19 +++++++++-- 3 files changed, 57 insertions(+), 5 deletions(-) -- 1.9.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel Reviewed-by: Leif Lindholm diff --git a/Silicon/Hisilicon/Hi1616/D05AcpiTables/Dsdt/D05Hns.asl b/Silicon/Hisilicon/Hi1616/D05AcpiTables/Dsdt/D05Hns.asl index 11c28ba..7aa04af 100644 --- a/Silicon/Hisilicon/Hi1616/D05AcpiTables/Dsdt/D05Hns.asl +++ b/Silicon/Hisilicon/Hi1616/D05AcpiTables/Dsdt/D05Hns.asl @@ -233,6 +233,15 @@ Scope(_SB) } }) + Method (_PXM, 0, NotSerialized) + { + Return(0x00) + } + Method (_STA, 0, NotSerialized) + { + Return(0x0F) + } + //reset XGE port //Arg0 : XGE port index in dsaf //Arg1 : 0 reset, 1 cancle reset diff --git a/Silicon/Hisilicon/Hi1616/D05AcpiTables/Dsdt/D05Pci.asl b/Silicon/Hisilicon/Hi1616/D05AcpiTables/Dsdt/D05Pci.asl index 55c7f50..122e4f0 100644 --- a/Silicon/Hisilicon/Hi1616/D05AcpiTables/Dsdt/D05Pci.asl +++ b/Silicon/Hisilicon/Hi1616/D05AcpiTables/Dsdt/D05Pci.asl @@ -141,7 +141,10 @@ Scope(_SB) { Return (0xf) } - + Method (_PXM, 0, NotSerialized) + { + Return(0x00) + } } // Device(PCI2) Device (RES2) @@ -240,7 +243,10 @@ Scope(_SB) { Return (RBYV()) } - + Method (_PXM, 0, NotSerialized) + { + Return(0x01) + } } // Device(PCI4) Device (RES4) { @@ -338,6 +344,10 @@ Scope(_SB) { Return (RBYV()) } + Method (_PXM, 0, NotSerialized) + { + Return(0x01) + } } // Device(PCI5) Device (RES5) { @@ -435,6 +445,10 @@ Scope(_SB) { Return (RBYV()) } + Method (_PXM, 0, NotSerialized) + { + Return(0x01) + } } // Device(PCI6) Device (RES6) { @@ -531,6 +545,10 @@ Scope(_SB) { Return (RBYV()) } + Method (_PXM, 0, NotSerialized) + { + Return(0x01) + } } // Device(PCI7) Device (RES7) { @@ -690,6 +708,10 @@ Scope(_SB) { Return (0xf) } + Method (_PXM, 0, NotSerialized) + { + Return(0x02) + } } // Device(PCIa) Device (RESa) { @@ -810,6 +832,10 @@ Scope(_SB) { Return (RBYV()) } + Method (_PXM, 0, NotSerialized) + { + Return(0x03) + } } // Device(PCIc) Device (RESc) @@ -907,6 +933,10 @@ Scope(_SB) { Return (RBYV()) } + Method (_PXM, 0, NotSerialized) + { + Return(0x03) + } } // Device(PCId) Device (RESd) { diff --git a/Silicon/Hisilicon/Hi1616/D05AcpiTables/Dsdt/D05Sas.asl b/Silicon/Hisilicon/Hi1616/D05AcpiTables/Dsdt/D05Sas.asl index 6455130..d5b7e2f 100644 --- a/Silicon/Hisilicon/Hi1616/D05AcpiTables/Dsdt/D05Sas.asl +++ b/Silicon/Hisilicon/Hi1616/D05AcpiTables/Dsdt/D05Sas.asl @@ -88,7 +88,10 @@ Scope(_SB) Store(0x7ffff, CLK) Sleep(1) } - + Method (_PXM, 0, NotSerialized) + { + Return(0x00) + } Method (_STA, 0, NotSerialized) { Return (0x0) @@ -169,8 +172,15 @@ Scope(_SB) Store(0x7ffff, CLK) Sleep(1) } + Method (_PXM, 0, NotSerialized) + { + Return(0x00) + } + Method (_STA, 0, NotSerialized) + { + Return(0x0F) + } } - Device(SAS2) { Name(_HID, "HISI0162") Name(_CCA, 1) @@ -244,7 +254,10 @@ Scope(_SB) Store(0x7ffff, CLK) Sleep(1) } - + Method (_PXM, 0, NotSerialized) + { + Return(0x00) + } Method (_STA, 0, NotSerialized) { Return (0x0)