From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=45.249.212.32; helo=huawei.com; envelope-from=huangming23@huawei.com; receiver=edk2-devel@lists.01.org Received: from huawei.com (unknown [45.249.212.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id B80C121F0DA45 for ; Mon, 5 Feb 2018 22:06:20 -0800 (PST) Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id A113992495E84; Tue, 6 Feb 2018 14:11:47 +0800 (CST) Received: from [127.0.0.1] (10.61.17.224) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.361.1; Tue, 6 Feb 2018 14:11:38 +0800 To: "Zeng, Star" , Heyi Guo , "leif.lindholm@linaro.org" , "linaro-uefi@lists.linaro.org" , "edk2-devel@lists.01.org" , "graeme.gregory@linaro.org" References: <1517542227-32907-1-git-send-email-heyi.guo@linaro.org> <1517542227-32907-2-git-send-email-heyi.guo@linaro.org> <0C09AFA07DD0434D9E2A0C6AEB0483103BA392CF@shsmsx102.ccr.corp.intel.com> CC: "ard.biesheuvel@linaro.org" , "Gao, Liming" , "mengfanrong@huawei.com" , "guoheyi@huawei.com" , "zhangjinsong2@huawei.com" , "Kinney, Michael D" , "waip23@126.com" , "wanghuiqiang@huawei.com" , "huangdaode@hisilicon.com" From: "Huangming (Mark)" Message-ID: Date: Tue, 6 Feb 2018 14:11:37 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <0C09AFA07DD0434D9E2A0C6AEB0483103BA392CF@shsmsx102.ccr.corp.intel.com> X-Originating-IP: [10.61.17.224] X-CFilter-Loop: Reflected Subject: Re: [PATCH edk2/MdePkg v1] MdePkg ACPI: Add some macros for PPTT 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 06:06:21 -0000 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit On 2018/2/6 12:16, Zeng, Star wrote: > How about using EFI_ACPI_6_2_PPTT_PROCESSOR_ID_XXX to be more specific? > like this? EFI_ACPI_6_2_PPTT_PROCESSOR_ID_PHYSICAL_PACKAGE 0x01 EFI_ACPI_6_2_PPTT_PROCESSOR_ID_ACPI_PROCESSOR 0x01 > Others are good to me. > > > Thanks, > Star > -----Original Message----- > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Heyi Guo > Sent: Friday, February 2, 2018 11:30 AM > To: leif.lindholm@linaro.org; linaro-uefi@lists.linaro.org; edk2-devel@lists.01.org; graeme.gregory@linaro.org > Cc: huangming23@huawei.com; ard.biesheuvel@linaro.org; Gao, Liming ; mengfanrong@huawei.com; guoheyi@huawei.com; Heyi Guo ; zhangjinsong2@huawei.com; Kinney, Michael D ; waip23@126.com; wanghuiqiang@huawei.com; huangdaode@hisilicon.com > Subject: [edk2] [PATCH edk2/MdePkg v1] MdePkg ACPI: Add some macros for PPTT > > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Ming Huang > Signed-off-by: Heyi Guo > --- > MdePkg/Include/IndustryStandard/Acpi62.h | 18 ++++++++++++++++++ > 1 file changed, 18 insertions(+) > > diff --git a/MdePkg/Include/IndustryStandard/Acpi62.h b/MdePkg/Include/IndustryStandard/Acpi62.h > index 2904d34..30faba9 100644 > --- a/MdePkg/Include/IndustryStandard/Acpi62.h > +++ b/MdePkg/Include/IndustryStandard/Acpi62.h > @@ -2557,6 +2557,12 @@ typedef struct { > } EFI_ACPI_6_2_PPTT_STRUCTURE_HEADER; > > /// > +/// Value for valid fields in PPTT struct > +/// > +#define EFI_ACPI_6_2_PPTT_INVALID 0x0 > +#define EFI_ACPI_6_2_PPTT_VALID 0x1 > + > +/// > /// Processor hierarchy node structure flags > /// > typedef struct { > @@ -2593,6 +2599,18 @@ typedef struct { > } EFI_ACPI_6_2_PPTT_STRUCTURE_CACHE_FLAGS; > > /// > +/// For cache attributes > +/// > +#define EFI_ACPI_6_2_CACHE_ATTRIBUTES_ALLOCATION_READ 0x0 > +#define EFI_ACPI_6_2_CACHE_ATTRIBUTES_ALLOCATION_WRITE 0x1 > +#define EFI_ACPI_6_2_CACHE_ATTRIBUTES_ALLOCATION_READ_WRITE 0x2 > +#define EFI_ACPI_6_2_CACHE_ATTRIBUTES_CACHE_TYPE_DATA 0x0 > +#define EFI_ACPI_6_2_CACHE_ATTRIBUTES_CACHE_TYPE_INSTRUCTION 0x1 > +#define EFI_ACPI_6_2_CACHE_ATTRIBUTES_CACHE_TYPE_UNIFIED 0x2 > +#define EFI_ACPI_6_2_CACHE_ATTRIBUTES_WRITE_POLICY_WRITE_BACK 0x0 > +#define EFI_ACPI_6_2_CACHE_ATTRIBUTES_WRITE_POLICY_WRITE_THROUGH 0x1 > + > +/// > /// Cache Type Structure cache attributes > /// > typedef struct { > -- Best Regards, Ming