* [PATCH edk2/MdePkg v1] Add some macros for PPTT @ 2018-02-02 3:30 Heyi Guo 2018-02-02 3:30 ` [PATCH edk2/MdePkg v1] MdePkg ACPI: " Heyi Guo 0 siblings, 1 reply; 6+ messages in thread From: Heyi Guo @ 2018-02-02 3:30 UTC (permalink / raw) To: leif.lindholm, linaro-uefi, edk2-devel, graeme.gregory Cc: ard.biesheuvel, michael.d.kinney, liming.gao, guoheyi, wanghuiqiang, huangming23, zhangjinsong2, mengfanrong, huangdaode, waip23, Heyi Guo Add some macros to Acpi62.h for PPTT as ACPI 6.2 Spec. Heyi Guo (1): MdePkg ACPI: Add some macros for PPTT MdePkg/Include/IndustryStandard/Acpi62.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) -- 1.9.1 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH edk2/MdePkg v1] MdePkg ACPI: Add some macros for PPTT 2018-02-02 3:30 [PATCH edk2/MdePkg v1] Add some macros for PPTT Heyi Guo @ 2018-02-02 3:30 ` Heyi Guo 2018-02-06 3:44 ` Huangming (Mark) 2018-02-06 4:16 ` Zeng, Star 0 siblings, 2 replies; 6+ messages in thread From: Heyi Guo @ 2018-02-02 3:30 UTC (permalink / raw) To: leif.lindholm, linaro-uefi, edk2-devel, graeme.gregory Cc: ard.biesheuvel, michael.d.kinney, liming.gao, guoheyi, wanghuiqiang, huangming23, zhangjinsong2, mengfanrong, huangdaode, waip23, Heyi Guo Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ming Huang <huangming23@huawei.com> Signed-off-by: Heyi Guo <heyi.guo@linaro.org> --- 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 { -- 1.9.1 ^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH edk2/MdePkg v1] MdePkg ACPI: Add some macros for PPTT 2018-02-02 3:30 ` [PATCH edk2/MdePkg v1] MdePkg ACPI: " Heyi Guo @ 2018-02-06 3:44 ` Huangming (Mark) 2018-02-06 4:16 ` Zeng, Star 1 sibling, 0 replies; 6+ messages in thread From: Huangming (Mark) @ 2018-02-06 3:44 UTC (permalink / raw) To: Heyi Guo, leif.lindholm, linaro-uefi, edk2-devel, graeme.gregory Cc: ard.biesheuvel, michael.d.kinney, liming.gao, guoheyi, wanghuiqiang, zhangjinsong2, mengfanrong, huangdaode, waip23 Any comments for this patch? On 2018/2/2 11:30, Heyi Guo wrote: > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Ming Huang <huangming23@huawei.com> > Signed-off-by: Heyi Guo <heyi.guo@linaro.org> > --- > 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 ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH edk2/MdePkg v1] MdePkg ACPI: Add some macros for PPTT 2018-02-02 3:30 ` [PATCH edk2/MdePkg v1] MdePkg ACPI: " Heyi Guo 2018-02-06 3:44 ` Huangming (Mark) @ 2018-02-06 4:16 ` Zeng, Star 2018-02-06 6:11 ` Huangming (Mark) 1 sibling, 1 reply; 6+ messages in thread From: Zeng, Star @ 2018-02-06 4:16 UTC (permalink / raw) To: Heyi Guo, 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, zhangjinsong2@huawei.com, Kinney, Michael D, waip23@126.com, wanghuiqiang@huawei.com, huangdaode@hisilicon.com, Zeng, Star How about using EFI_ACPI_6_2_PPTT_PROCESSOR_ID_XXX to be more specific? 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 <liming.gao@intel.com>; mengfanrong@huawei.com; guoheyi@huawei.com; Heyi Guo <heyi.guo@linaro.org>; zhangjinsong2@huawei.com; Kinney, Michael D <michael.d.kinney@intel.com>; 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 <huangming23@huawei.com> Signed-off-by: Heyi Guo <heyi.guo@linaro.org> --- 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 { -- 1.9.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel ^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH edk2/MdePkg v1] MdePkg ACPI: Add some macros for PPTT 2018-02-06 4:16 ` Zeng, Star @ 2018-02-06 6:11 ` Huangming (Mark) 2018-02-06 6:29 ` Zeng, Star 0 siblings, 1 reply; 6+ messages in thread From: Huangming (Mark) @ 2018-02-06 6:11 UTC (permalink / raw) To: Zeng, Star, Heyi Guo, leif.lindholm@linaro.org, linaro-uefi@lists.linaro.org, edk2-devel@lists.01.org, graeme.gregory@linaro.org 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 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 <liming.gao@intel.com>; mengfanrong@huawei.com; guoheyi@huawei.com; Heyi Guo <heyi.guo@linaro.org>; zhangjinsong2@huawei.com; Kinney, Michael D <michael.d.kinney@intel.com>; 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 <huangming23@huawei.com> > Signed-off-by: Heyi Guo <heyi.guo@linaro.org> > --- > 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 ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH edk2/MdePkg v1] MdePkg ACPI: Add some macros for PPTT 2018-02-06 6:11 ` Huangming (Mark) @ 2018-02-06 6:29 ` Zeng, Star 0 siblings, 0 replies; 6+ messages in thread From: Zeng, Star @ 2018-02-06 6:29 UTC (permalink / raw) To: Huangming (Mark), Heyi Guo, leif.lindholm@linaro.org, linaro-uefi@lists.linaro.org, edk2-devel@lists.01.org, graeme.gregory@linaro.org 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, Zeng, Star I mean +#define EFI_ACPI_6_2_PPTT_PROCESSOR_ID_INVALID 0x0 +#define EFI_ACPI_6_2_PPTT_PROCESSOR_ID_VALID 0x1 Thanks, Star -----Original Message----- From: Huangming (Mark) [mailto:huangming23@huawei.com] Sent: Tuesday, February 6, 2018 2:12 PM To: Zeng, Star <star.zeng@intel.com>; Heyi Guo <heyi.guo@linaro.org>; leif.lindholm@linaro.org; linaro-uefi@lists.linaro.org; edk2-devel@lists.01.org; graeme.gregory@linaro.org Cc: ard.biesheuvel@linaro.org; Gao, Liming <liming.gao@intel.com>; mengfanrong@huawei.com; guoheyi@huawei.com; zhangjinsong2@huawei.com; Kinney, Michael D <michael.d.kinney@intel.com>; waip23@126.com; wanghuiqiang@huawei.com; huangdaode@hisilicon.com Subject: Re: [edk2] [PATCH edk2/MdePkg v1] MdePkg ACPI: Add some macros for PPTT 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 > <liming.gao@intel.com>; mengfanrong@huawei.com; guoheyi@huawei.com; > Heyi Guo <heyi.guo@linaro.org>; zhangjinsong2@huawei.com; Kinney, > Michael D <michael.d.kinney@intel.com>; 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 <huangming23@huawei.com> > Signed-off-by: Heyi Guo <heyi.guo@linaro.org> > --- > 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 ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2018-02-06 6:24 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2018-02-02 3:30 [PATCH edk2/MdePkg v1] Add some macros for PPTT Heyi Guo 2018-02-02 3:30 ` [PATCH edk2/MdePkg v1] MdePkg ACPI: " Heyi Guo 2018-02-06 3:44 ` Huangming (Mark) 2018-02-06 4:16 ` Zeng, Star 2018-02-06 6:11 ` Huangming (Mark) 2018-02-06 6:29 ` Zeng, Star
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox