From patchwork Wed Feb 7 08:22:48 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: gary guo X-Patchwork-Id: 127129 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp242215ljc; Wed, 7 Feb 2018 00:26:11 -0800 (PST) X-Google-Smtp-Source: AH8x227dthzwiHSC/OQASLfI2gWkPBD2rBRiEkKiueVGU9VSDrcofRYYVas4KtOUGlDs8JjXd0KU X-Received: by 2002:a17:902:33c1:: with SMTP id b59-v6mr5399184plc.111.1517991971218; Wed, 07 Feb 2018 00:26:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517991971; cv=none; d=google.com; s=arc-20160816; b=Tn7xTGc2PGoSDSI9j6tfZdbtWGz9PG32eYteJ2n4RLuw1iAgP8JAjoPB1xnL97H6Tc rGR/RiBiGRQxJ1heIdc8jWG6/lEQeOfPhjCE22XpQ2xXsbrsTT75kCtQjhrihIH12MwR +fl/+BL0OMHT5EsaspFJaCkyEtalpDykfyG+rvxVe2hY6exqLvAZJ0niJSNmMZxvoUzB d7t3/BoNpTBC7cfxe6taIoKQkz0TWq2/YlXMEEYP/gHM8x3l9MF8zIo0N6uCtpMN1bo0 R35C310ajE1stQ+EwkiyRNfokkNG1nfvy3VobaRtdBho+z1KPGm51Qgy5SsF8RJGuxvh C9cg== 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=6uPZzyUG5eFXHrD891dRLUm9l1S7L/Qvwbfbdlvzwzo=; b=yeg5VYILpamlXGQ3ZIeeidIePdg3RPqM8/ORFuMsNu9bzS2EPvJuIgbgO02y4jA6/K DoXhGVc/Lgs1d3BZzpcXf8jSUk7ttIAHNBIqFS/LJor0GuoUS6Jl5BGq/cSYvvo1tWus +OlDmmDgpZSM4vWm5T4QdOtWQ+8kHNmLd28tk2K+hsqi8gJBHMgWT+kStnnIdVWrexe2 2QM6qsEL2POv4vLBkUIio/elYqEbitMrhxhTNm/BNXNHxXw5s6aZW8rdkPyfY2naDc4G yfeBC/6KkGQHf/8+HlGvg3Mc4TrhciywKdx2dsRbDUlW/UlME3bvY70SNGTi1wtGno9f 2sGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=FlVbOOeR; 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 20si774850pfp.312.2018.02.07.00.26.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Feb 2018 00:26:11 -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=FlVbOOeR; 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 F23D621F0DA7F; Wed, 7 Feb 2018 00:20:26 -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:c01::241; helo=mail-pl0-x241.google.com; envelope-from=heyi.guo@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-pl0-x241.google.com (mail-pl0-x241.google.com [IPv6:2607:f8b0:400e:c01::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 6169E21F0DA6B for ; Wed, 7 Feb 2018 00:20:25 -0800 (PST) Received: by mail-pl0-x241.google.com with SMTP id q17so49212pll.1 for ; Wed, 07 Feb 2018 00:26:09 -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=6VdVYHO9cJq8AD0HiJHSnCFd7/NOV1VFRSGfOTjISXA=; b=FlVbOOeRmsP9CDIreo3s8wgqUDZTAmAzrw2124yqKn0g6IWIsXxWPsfMCfo1rMfU5A u91rde4JQ9RMG2B1zBdvSzeXfJwSMP7xINMSmoybMRyfExlNBPtiGBqqbzp9DQJg+iCK XxgADhrX8xEIZJ77v4N4MEzyyAfIIDzWzoapA= 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=6VdVYHO9cJq8AD0HiJHSnCFd7/NOV1VFRSGfOTjISXA=; b=fypgJcRvhQkfF+zql6y2rDh17ERAVMXbuPXUTSu3i7OIuPUkgWB8EoE7mpRww8/MdM 1olYv53WzqLBRlUBLY3O7SfqehN43+r0FkfVIpGvVPWICIZZs7kWJe8qfW4MmzNMRYjA cGHt0C2UhzmQzM2diwzXbN39ECk5IDJ34P+mTe4K9s04UNbIEoZjZXzulkiDFa0sx8d3 fo/Du3YBTbiOsL/EmFbj59/J5HOD7K+GjTOZF4q1aAKGRO4asheEkQO7xNpmRPl/tlM5 ZXuREWwViheC9/UdX+xshU12BBXg+F/1HhRVunuIGtCcsUE4T/ELgXMPYvWqrj/mitJt lm2w== X-Gm-Message-State: APf1xPAmXgbBKoi+DL0S4uvvIbs+wHs7yHdRBWRho2786dXarbi0fumN shApfbAiTaaPa7Lqwd3O9McRzw== X-Received: by 2002:a17:902:42c3:: with SMTP id h61-v6mr5170092pld.269.1517991968883; Wed, 07 Feb 2018 00:26:08 -0800 (PST) Received: from localhost.localdomain ([120.31.149.194]) by smtp.gmail.com with ESMTPSA id k127sm1984999pga.92.2018.02.07.00.25.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 07 Feb 2018 00:26:08 -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: Wed, 7 Feb 2018 16:22:48 +0800 Message-Id: <1517991769-5485-15-git-send-email-heyi.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1517991769-5485-1-git-send-email-heyi.guo@linaro.org> References: <1517991769-5485-1-git-send-email-heyi.guo@linaro.org> Subject: [edk2] [PATCH edk2-platforms v4 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: Leif Lindholm 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 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)