From patchwork Fri Jan 26 08:00:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: gary guo X-Patchwork-Id: 125925 Delivered-To: patch@linaro.org Received: by 10.46.84.92 with SMTP id y28csp156184ljd; Fri, 26 Jan 2018 00:05:04 -0800 (PST) X-Google-Smtp-Source: AH8x224c5/jEgUDPY78R1ydzjouqWm9wmGxJkQYm8citYM8UMFMqSHTWal1uCvJ4n3GK0+TytiSi X-Received: by 10.101.88.7 with SMTP id g7mr15243460pgr.249.1516953904019; Fri, 26 Jan 2018 00:05:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516953904; cv=none; d=google.com; s=arc-20160816; b=g2a2RccCWPxjEauG1zBaPtZckk0AY7GPs6/dYRa7gds63FO9/7gJObdkIXOo+vz1/V bzMFWz5uP7KoTCI5Xw3L0pdYETG1crfafu4oxMNccdApwh0htwLfuffiSks6ZD1po4W5 OGSjYo9iuvj7OpTOzUMdXmvNzkxmcoX9/y3CeF+3O+a6k0qgOwAMmGHacYAFLwtPzXYK pMZNBKrHB49sD1wzfEZfpw+Nju7XhWNQtIsU3Ww/QrTBgMHtDYLlhG8GXiIzYi5YBvkf h7xVZL81iBc4YxgfMhYNfMfSzhtZfT93O1ExLXlyn+gmPi0mxhDjrKZ/k8xQbFaULZH6 KUlw== 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=pLkpgzq6PqezkyO9PwCobMvBbLFcMjAy1Kue1wDImPg=; b=wi1eW9q4hWgKEhDtN53puoiXC04WBdDHyBvJQejtxt9r2OoKdYvgUxv70AMtVvbY+W 7HDD2WUdjut6VY1ZXPIWhe9WQt4fFfpiobgqmXUmHiioQXvo6rb2fY8uy6iZ3Db3NLZc nCiLKphGcghDAFG/gIGUxwhJ33uxpVxTGNWX+XrVKkaW+SFNDIQzmnExRcgXbwMDHYdG Sv6HuRQ6C5dFi70R8c5J4VVgdXa43KhShc43bae1VpsKDjvb34oGfo90blP0NwjcKsxJ MN93n4cL2Lwt+1UTlxeKbSQMHfQ33zDLEOuq3IFgOm7JalCCdpaNwPHRkKPkUAM8Uu2A YYnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=RZnWoqJy; 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 a15si2694123pgd.21.2018.01.26.00.05.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Jan 2018 00:05:04 -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=RZnWoqJy; 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 9EE932222C241; Thu, 25 Jan 2018 23:59:32 -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::244; helo=mail-pg0-x244.google.com; envelope-from=heyi.guo@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-pg0-x244.google.com (mail-pg0-x244.google.com [IPv6:2607:f8b0:400e:c05::244]) (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 24EEC2222C227 for ; Thu, 25 Jan 2018 23:59:32 -0800 (PST) Received: by mail-pg0-x244.google.com with SMTP id y27so6796616pgc.5 for ; Fri, 26 Jan 2018 00:05:02 -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=kHo7u4Gxmqt1/qgTlqRTGG/+iyqQ/9TooEshIYZ2Fjk=; b=RZnWoqJyCZFFuJwo3OOQCV6xlYjuoRN9IDJn/5tAH3AK2J+XtMNs4UtWr/5H5YFgu8 KuGFaDArTeW0b87liUlBagQqyX5J2VAZPoqOOhrXKLaXYRz4m9wVUaH7eD5P134W4lgn 8xlOcBYBaULj0ZV8A35jRNEyG0vAcqwELLeRc= 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=kHo7u4Gxmqt1/qgTlqRTGG/+iyqQ/9TooEshIYZ2Fjk=; b=D236jPU7zgUFryqEPdu8BQ+9SVUUXzlhsEhAC85A3TNj60U0ZhI7+yWzFsOqFuNiH/ 1mETywfH6flaYJsp6HiqSLDZRN1ms8unuUl3+ZduGhjKAiQojDYam0MgPSMDpxv6sH6P OuHTg1lYqNDbsq3pD71oKU7hah1TT+bWvAl4qZKoMx0xnoq+aO0j15/VkSJEohcY5Kvn r+WMiI/CSj+9Linl/BeP9sN4rKKqWB5IV5QOb0WXvy1Eeulu1qgPTA/uunjkSO5WnPzz rKHzbHG5PFIZnSZereAywK61uIQq3B0mWc7INQrQNfnwiXWJCXYRhazwVxSELlqRfwDc xQIQ== X-Gm-Message-State: AKwxytdw5iJFj/4bSmSJiy+twfeQeEI3LGSpxk+kKu/nDwjkkGOiKdFE g0v0gf0u0HB4wYFi3fxBgqGgIQ== X-Received: by 2002:a17:902:9005:: with SMTP id a5-v6mr13574900plp.251.1516953902103; Fri, 26 Jan 2018 00:05:02 -0800 (PST) Received: from localhost.localdomain ([120.31.149.194]) by smtp.gmail.com with ESMTPSA id k71sm18406091pfg.52.2018.01.26.00.04.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 26 Jan 2018 00:05:01 -0800 (PST) From: Ming Huang X-Google-Original-From: Ming Huang To: leif.lindholm@linaro.org, linaro-uefi@lists.linaro.org, edk2-devel@lists.01.org, graeme.gregory@linaro.org Date: Fri, 26 Jan 2018 16:00:49 +0800 Message-Id: <1516953650-57980-15-git-send-email-huangming23@huawei.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1516953650-57980-1-git-send-email-huangming23@huawei.com> References: <1516953650-57980-1-git-send-email-huangming23@huawei.com> Subject: [edk2] [PATCH edk2-platforms v2 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, 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 --- 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: Graeme Gregory 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)