From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:400c:c0c::242; helo=mail-wr0-x242.google.com; envelope-from=leif.lindholm@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wr0-x242.google.com (mail-wr0-x242.google.com [IPv6:2a00:1450:400c:c0c::242]) (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 8D03D223972B0 for ; Tue, 6 Feb 2018 06:59:46 -0800 (PST) Received: by mail-wr0-x242.google.com with SMTP id t94so2278110wrc.5 for ; Tue, 06 Feb 2018 07:05:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=HVZd/q/loRg1IacVDSggT0lHHUKLE/2OJEiyQ90aqWc=; b=AjUBgDz5pGSVl+EzM70DiHvJVGQIWusUcb67Q90N2HD6G1p6M5w1LDkeLwncvIYYXM guC1pKV0I88pTVs611DqWsCszd9im1GsItVdkbpaRjcJcF7LSzMcWaQ8S3WMCyBnkwgk Cnpg3L/pl0nA3S69UTS48ALKvLJ7ZmUu7Bf1U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=HVZd/q/loRg1IacVDSggT0lHHUKLE/2OJEiyQ90aqWc=; b=GcserMYnBujtFf569JV5WHzavDEHcOP4SPZDrHbGF3FuCxz8R/wchoN+tO8RPDzKNY YZZ2T6gV13ysGA9QCbIsnF+2ENwSTD4TK/RHn6FvT9Fws3cxQfNXapV6mFKq9SGiGdKO QLxMw3HfNX+EkBAMKUR8rkCCMU1zvGiyFQTlfkdAeGxx3rHRBl9oX0wjBW95XDyWuG6D hkobdXcO2nWm3KPhmDMOTK/dxLqhTT3objdTgFcb6tac2yXoWmaxIz4kzzunbarnZ6zE 5xxCUMy9HwXAr5ykpLv+ePmVlLcEvU1x6TcBTEVnRTqfC5h1jSH8a+hFZbLpLKUywefj PtRg== X-Gm-Message-State: APf1xPBPV8OyP/5gk9/YECNwX24cRmHpNsEWl1lt2tOMexYk5VMV09oG xJdYUCgDgIj6I9s93J8XSq7ZLw== X-Google-Smtp-Source: AH8x225KLzQzSh+Da+pUK20bQHP28M9SV7fA+tFNAqR2u3s1sCktf8ygcm89tcF4nGQoE4cKcVcu0w== X-Received: by 10.223.157.6 with SMTP id k6mr2636765wre.273.1517929527989; Tue, 06 Feb 2018 07:05:27 -0800 (PST) Received: from bivouac.eciton.net (bivouac.eciton.net. [2a00:1098:0:86:1000:23:0:2]) by smtp.gmail.com with ESMTPSA id a2sm24474923wrc.53.2018.02.06.07.05.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 06 Feb 2018 07:05:26 -0800 (PST) Date: Tue, 6 Feb 2018 15:05:25 +0000 From: Leif Lindholm To: Heyi Guo Cc: linaro-uefi@lists.linaro.org, edk2-devel@lists.01.org, graeme.gregory@linaro.org, ard.biesheuvel@linaro.org, guoheyi@huawei.com, wanghuiqiang@huawei.com, huangming23@huawei.com, zhangjinsong2@huawei.com, mengfanrong@huawei.com, huangdaode@hisilicon.com, john.garry@huawei.com, waip23@126.com Message-ID: <20180206150525.e4fazkv4jneki6by@bivouac.eciton.net> References: <1517573143-11451-1-git-send-email-heyi.guo@linaro.org> <1517573143-11451-15-git-send-email-heyi.guo@linaro.org> MIME-Version: 1.0 In-Reply-To: <1517573143-11451-15-git-send-email-heyi.guo@linaro.org> User-Agent: NeoMutt/20170113 (1.7.2) Subject: Re: [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: , X-List-Received-Date: Tue, 06 Feb 2018 14:59:47 -0000 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Feb 02, 2018 at 08:05:42PM +0800, Heyi Guo wrote: > 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 Reviewed-by: Leif Lindholm > --- > 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(-) > > 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) > -- > 1.9.1 >