* [Patch 0/2] Add comments for two new added Pcds. @ 2017-08-14 7:22 Eric Dong 2017-08-14 7:22 ` [Patch 1/2] UefiCpuPkg: Add comments for PCDs definition Eric Dong ` (2 more replies) 0 siblings, 3 replies; 12+ messages in thread From: Eric Dong @ 2017-08-14 7:22 UTC (permalink / raw) To: edk2-devel v2 changes includes: Add valid values and prompt/help string for new add pcd PcdCpuProcTraceMemSize and PcdCpuProcTraceOutputScheme. v3 changes includes: Add comments for default values for new added pcd PcdCpuProcTraceMemSize and PcdCpuProcTraceOutputScheme. Also update the help string in the .uni file to include valid value information added in .dec file. Eric Dong (2): UefiCpuPkg: Add comments for PCDs definition. UefiCpuPkg UefiCpupkg.uni: Add new pcds comments. UefiCpuPkg/UefiCpuPkg.dec | 28 ++++++++++++++++++++++++++-- UefiCpuPkg/UefiCpuPkg.uni | 30 ++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+), 2 deletions(-) -- 2.7.0.windows.1 ^ permalink raw reply [flat|nested] 12+ messages in thread
* [Patch 1/2] UefiCpuPkg: Add comments for PCDs definition. 2017-08-14 7:22 [Patch 0/2] Add comments for two new added Pcds Eric Dong @ 2017-08-14 7:22 ` Eric Dong 2017-08-16 15:58 ` Kinney, Michael D 2017-08-14 7:22 ` [Patch 2/2] UefiCpuPkg UefiCpupkg.uni: Add new pcds comments Eric Dong 2017-08-16 6:40 ` [Patch 0/2] Add comments for two new added Pcds Gao, Liming 2 siblings, 1 reply; 12+ messages in thread From: Eric Dong @ 2017-08-14 7:22 UTC (permalink / raw) To: edk2-devel; +Cc: Liming Gao, Ruiyu Ni, Michael D Kinney Add valid/default values for PCD PcdCpuProcTraceMemSize and PcdCpuProcTraceOutputScheme in the comment part. Cc: Liming Gao <liming.gao@intel.com> Cc: Ruiyu Ni <ruiyu.ni@intel.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong <eric.dong@intel.com> --- UefiCpuPkg/UefiCpuPkg.dec | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/UefiCpuPkg/UefiCpuPkg.dec b/UefiCpuPkg/UefiCpuPkg.dec index 2ddeab4..b4e099d 100644 --- a/UefiCpuPkg/UefiCpuPkg.dec +++ b/UefiCpuPkg/UefiCpuPkg.dec @@ -285,12 +285,36 @@ # @ValidList 0x80000001 | 0 gUefiCpuPkgTokenSpaceGuid.PcdCpuFeaturesSetting|{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}|VOID*|0x00000019 - ## Contains the size of memory required when CPU processor trace is enabled. + ## Contains the size of memory required when CPU processor trace is enabled.<BR><BR> + # Default value is 0x10 which disables the processor trace.<BR> + # 0x0 - 4K.<BR> + # 0x1 - 8K.<BR> + # 0x2 - 16K.<BR> + # 0x3 - 32K.<BR> + # 0x4 - 64K.<BR> + # 0x5 - 128K.<BR> + # 0x6 - 256K.<BR> + # 0x7 - 512K.<BR> + # 0x8 - 1M.<BR> + # 0x9 - 2M.<BR> + # 0xA - 4M.<BR> + # 0xB - 8M.<BR> + # 0xC - 16M.<BR> + # 0xD - 32M.<BR> + # 0xE - 64M.<BR> + # 0xF - 128M.<BR> + # 0x10 - ProcTraceMemDisable.<BR> # @Prompt The memory size used for processor trace. + # @ValidRange 0x80000001 | 0 - 0x10 gUefiCpuPkgTokenSpaceGuid.PcdCpuProcTraceMemSize|0x10|UINT32|0x60000012 - ## Contains the processor trace output scheme when CPU processor trace is enabled. + ## Contains the processor trace output scheme when CPU processor trace is enabled.<BR><BR> + # Default value is 2 which disables the processor trace.<BR> + # 0 - Single Range output scheme.<BR> + # 1 - ToPA(Table of physical address) scheme.<BR> + # 2 - Invalid scheme.<BR> # @Prompt The processor trace output scheme. + # @ValidRange 0x80000001 | 0 - 2 gUefiCpuPkgTokenSpaceGuid.PcdCpuProcTraceOutputScheme|0x2|UINT8|0x60000015 [UserExtensions.TianoCore."ExtraFiles"] -- 2.7.0.windows.1 ^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: [Patch 1/2] UefiCpuPkg: Add comments for PCDs definition. 2017-08-14 7:22 ` [Patch 1/2] UefiCpuPkg: Add comments for PCDs definition Eric Dong @ 2017-08-16 15:58 ` Kinney, Michael D 2017-08-17 6:47 ` Dong, Eric 0 siblings, 1 reply; 12+ messages in thread From: Kinney, Michael D @ 2017-08-16 15:58 UTC (permalink / raw) To: Dong, Eric, edk2-devel@lists.01.org, Kinney, Michael D Cc: Ni, Ruiyu, Gao, Liming Eric, For the PCD PcdCpuProcTraceOutputScheme, the description of "Invalid scheme" does not seem like a good description for disable. Do we really need the value 0x02 for PcdCpuProcTraceOutputScheme at all? Can we use PcdCpuFeaturesSetting set to 0x10 ProcTraceMemDisable to know that the feature is disabled, and only look at PcdCpuProcTraceOutputScheme if PcdCpuFeaturesSetting is set to a value where the memory size is > 0? Also, when looking at where these PCD values are used in UefiCpuPkg\Library\CpuCommonFeaturesLib\ProcTrace.c, I see use of BITxx to modify the MSR_IA32_RTIT_CTL values. Please use the bit fields in the MSR_IA32_RTIT_CTL_REGISTER structure instead. You can work on this change as a separate patch. Thanks, Mike > -----Original Message----- > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On > Behalf Of Eric Dong > Sent: Monday, August 14, 2017 12:23 AM > To: edk2-devel@lists.01.org > Cc: Ni, Ruiyu <ruiyu.ni@intel.com>; Kinney, Michael D > <michael.d.kinney@intel.com>; Gao, Liming <liming.gao@intel.com> > Subject: [edk2] [Patch 1/2] UefiCpuPkg: Add comments for PCDs > definition. > > Add valid/default values for PCD PcdCpuProcTraceMemSize and > PcdCpuProcTraceOutputScheme in the comment part. > > Cc: Liming Gao <liming.gao@intel.com> > Cc: Ruiyu Ni <ruiyu.ni@intel.com> > Cc: Michael D Kinney <michael.d.kinney@intel.com> > Contributed-under: TianoCore Contribution Agreement 1.0 > Signed-off-by: Eric Dong <eric.dong@intel.com> > --- > UefiCpuPkg/UefiCpuPkg.dec | 28 ++++++++++++++++++++++++++-- > 1 file changed, 26 insertions(+), 2 deletions(-) > > diff --git a/UefiCpuPkg/UefiCpuPkg.dec > b/UefiCpuPkg/UefiCpuPkg.dec > index 2ddeab4..b4e099d 100644 > --- a/UefiCpuPkg/UefiCpuPkg.dec > +++ b/UefiCpuPkg/UefiCpuPkg.dec > @@ -285,12 +285,36 @@ > # @ValidList 0x80000001 | 0 > gUefiCpuPkgTokenSpaceGuid.PcdCpuFeaturesSetting|{0x00, 0x00, > 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}|VOID*|0x00000019 > > - ## Contains the size of memory required when CPU processor > trace is enabled. > + ## Contains the size of memory required when CPU processor > trace is enabled.<BR><BR> > + # Default value is 0x10 which disables the processor > trace.<BR> > + # 0x0 - 4K.<BR> > + # 0x1 - 8K.<BR> > + # 0x2 - 16K.<BR> > + # 0x3 - 32K.<BR> > + # 0x4 - 64K.<BR> > + # 0x5 - 128K.<BR> > + # 0x6 - 256K.<BR> > + # 0x7 - 512K.<BR> > + # 0x8 - 1M.<BR> > + # 0x9 - 2M.<BR> > + # 0xA - 4M.<BR> > + # 0xB - 8M.<BR> > + # 0xC - 16M.<BR> > + # 0xD - 32M.<BR> > + # 0xE - 64M.<BR> > + # 0xF - 128M.<BR> > + # 0x10 - ProcTraceMemDisable.<BR> > # @Prompt The memory size used for processor trace. > + # @ValidRange 0x80000001 | 0 - 0x10 > > gUefiCpuPkgTokenSpaceGuid.PcdCpuProcTraceMemSize|0x10|UINT32|0x6 > 0000012 > > - ## Contains the processor trace output scheme when CPU > processor trace is enabled. > + ## Contains the processor trace output scheme when CPU > processor trace is enabled.<BR><BR> > + # Default value is 2 which disables the processor trace.<BR> > + # 0 - Single Range output scheme.<BR> > + # 1 - ToPA(Table of physical address) scheme.<BR> > + # 2 - Invalid scheme.<BR> > # @Prompt The processor trace output scheme. > + # @ValidRange 0x80000001 | 0 - 2 > > gUefiCpuPkgTokenSpaceGuid.PcdCpuProcTraceOutputScheme|0x2|UINT8| > 0x60000015 > > [UserExtensions.TianoCore."ExtraFiles"] > -- > 2.7.0.windows.1 > > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Patch 1/2] UefiCpuPkg: Add comments for PCDs definition. 2017-08-16 15:58 ` Kinney, Michael D @ 2017-08-17 6:47 ` Dong, Eric 2017-08-17 7:55 ` Kinney, Michael D 0 siblings, 1 reply; 12+ messages in thread From: Dong, Eric @ 2017-08-17 6:47 UTC (permalink / raw) To: Kinney, Michael D, edk2-devel@lists.01.org Cc: Ni, Ruiyu, Gao, Liming, Dong, Eric Hi Mike, Processor trace feature need to get three inputs from end user. 1. Enabe/disable, 2. Memory size, 3, Output scheme. It will have three menus in UI to let end user to select. I want the default value for all three menus are disabled, so I add invalid or disable for both PCDs. Maybe I can enhance OutputSchemeInvalid to OutputSchemeDisable for consistent with EnumProcTraceMemDisable. For the BITxx issue, I have submit a patch for it, please help to review it. Thanks, Eric -----Original Message----- From: Kinney, Michael D Sent: Wednesday, August 16, 2017 11:59 PM To: Dong, Eric <eric.dong@intel.com>; edk2-devel@lists.01.org; Kinney, Michael D <michael.d.kinney@intel.com> Cc: Ni, Ruiyu <ruiyu.ni@intel.com>; Gao, Liming <liming.gao@intel.com> Subject: RE: [edk2] [Patch 1/2] UefiCpuPkg: Add comments for PCDs definition. Eric, For the PCD PcdCpuProcTraceOutputScheme, the description of "Invalid scheme" does not seem like a good description for disable. Do we really need the value 0x02 for PcdCpuProcTraceOutputScheme at all? Can we use PcdCpuFeaturesSetting set to 0x10 ProcTraceMemDisable to know that the feature is disabled, and only look at PcdCpuProcTraceOutputScheme if PcdCpuFeaturesSetting is set to a value where the memory size is > 0? Also, when looking at where these PCD values are used in UefiCpuPkg\Library\CpuCommonFeaturesLib\ProcTrace.c, I see use of BITxx to modify the MSR_IA32_RTIT_CTL values. Please use the bit fields in the MSR_IA32_RTIT_CTL_REGISTER structure instead. You can work on this change as a separate patch. Thanks, Mike > -----Original Message----- > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of > Eric Dong > Sent: Monday, August 14, 2017 12:23 AM > To: edk2-devel@lists.01.org > Cc: Ni, Ruiyu <ruiyu.ni@intel.com>; Kinney, Michael D > <michael.d.kinney@intel.com>; Gao, Liming <liming.gao@intel.com> > Subject: [edk2] [Patch 1/2] UefiCpuPkg: Add comments for PCDs > definition. > > Add valid/default values for PCD PcdCpuProcTraceMemSize and > PcdCpuProcTraceOutputScheme in the comment part. > > Cc: Liming Gao <liming.gao@intel.com> > Cc: Ruiyu Ni <ruiyu.ni@intel.com> > Cc: Michael D Kinney <michael.d.kinney@intel.com> > Contributed-under: TianoCore Contribution Agreement 1.0 > Signed-off-by: Eric Dong <eric.dong@intel.com> > --- > UefiCpuPkg/UefiCpuPkg.dec | 28 ++++++++++++++++++++++++++-- > 1 file changed, 26 insertions(+), 2 deletions(-) > > diff --git a/UefiCpuPkg/UefiCpuPkg.dec b/UefiCpuPkg/UefiCpuPkg.dec > index 2ddeab4..b4e099d 100644 > --- a/UefiCpuPkg/UefiCpuPkg.dec > +++ b/UefiCpuPkg/UefiCpuPkg.dec > @@ -285,12 +285,36 @@ > # @ValidList 0x80000001 | 0 > gUefiCpuPkgTokenSpaceGuid.PcdCpuFeaturesSetting|{0x00, 0x00, 0x00, > 0x00, 0x00, 0x00, 0x00, 0x00}|VOID*|0x00000019 > > - ## Contains the size of memory required when CPU processor trace is > enabled. > + ## Contains the size of memory required when CPU processor > trace is enabled.<BR><BR> > + # Default value is 0x10 which disables the processor > trace.<BR> > + # 0x0 - 4K.<BR> > + # 0x1 - 8K.<BR> > + # 0x2 - 16K.<BR> > + # 0x3 - 32K.<BR> > + # 0x4 - 64K.<BR> > + # 0x5 - 128K.<BR> > + # 0x6 - 256K.<BR> > + # 0x7 - 512K.<BR> > + # 0x8 - 1M.<BR> > + # 0x9 - 2M.<BR> > + # 0xA - 4M.<BR> > + # 0xB - 8M.<BR> > + # 0xC - 16M.<BR> > + # 0xD - 32M.<BR> > + # 0xE - 64M.<BR> > + # 0xF - 128M.<BR> > + # 0x10 - ProcTraceMemDisable.<BR> > # @Prompt The memory size used for processor trace. > + # @ValidRange 0x80000001 | 0 - 0x10 > > gUefiCpuPkgTokenSpaceGuid.PcdCpuProcTraceMemSize|0x10|UINT32|0x6 > 0000012 > > - ## Contains the processor trace output scheme when CPU processor > trace is enabled. > + ## Contains the processor trace output scheme when CPU > processor trace is enabled.<BR><BR> > + # Default value is 2 which disables the processor trace.<BR> # 0 > + - Single Range output scheme.<BR> # 1 - ToPA(Table of physical > + address) scheme.<BR> # 2 - Invalid scheme.<BR> > # @Prompt The processor trace output scheme. > + # @ValidRange 0x80000001 | 0 - 2 > > gUefiCpuPkgTokenSpaceGuid.PcdCpuProcTraceOutputScheme|0x2|UINT8| > 0x60000015 > > [UserExtensions.TianoCore."ExtraFiles"] > -- > 2.7.0.windows.1 > > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Patch 1/2] UefiCpuPkg: Add comments for PCDs definition. 2017-08-17 6:47 ` Dong, Eric @ 2017-08-17 7:55 ` Kinney, Michael D 2017-08-17 8:52 ` Dong, Eric 0 siblings, 1 reply; 12+ messages in thread From: Kinney, Michael D @ 2017-08-17 7:55 UTC (permalink / raw) To: Dong, Eric, edk2-devel@lists.01.org, Kinney, Michael D Cc: Ni, Ruiyu, Gao, Liming Eric, For a setup page, the scheme can be greyed out or hidden if the feature is disabled. If the feature is disabled, it does not make sense to allow the user to set the memory size or the scheme. Mike > -----Original Message----- > From: Dong, Eric > Sent: Wednesday, August 16, 2017 11:48 PM > To: Kinney, Michael D <michael.d.kinney@intel.com>; edk2- > devel@lists.01.org > Cc: Ni, Ruiyu <ruiyu.ni@intel.com>; Gao, Liming > <liming.gao@intel.com>; Dong, Eric <eric.dong@intel.com> > Subject: RE: [edk2] [Patch 1/2] UefiCpuPkg: Add comments for > PCDs definition. > > Hi Mike, > > Processor trace feature need to get three inputs from end > user. 1. Enabe/disable, 2. Memory size, 3, Output scheme. > It will have three menus in UI to let end user to select. I > want the default value for all three menus are disabled, so I > add invalid or disable for both PCDs. Maybe I can enhance > OutputSchemeInvalid to OutputSchemeDisable for consistent with > EnumProcTraceMemDisable. > > For the BITxx issue, I have submit a patch for it, please help > to review it. > > Thanks, > Eric > -----Original Message----- > From: Kinney, Michael D > Sent: Wednesday, August 16, 2017 11:59 PM > To: Dong, Eric <eric.dong@intel.com>; edk2-devel@lists.01.org; > Kinney, Michael D <michael.d.kinney@intel.com> > Cc: Ni, Ruiyu <ruiyu.ni@intel.com>; Gao, Liming > <liming.gao@intel.com> > Subject: RE: [edk2] [Patch 1/2] UefiCpuPkg: Add comments for > PCDs definition. > > Eric, > > For the PCD PcdCpuProcTraceOutputScheme, the description of > "Invalid scheme" > does not seem like a good description for disable. > > Do we really need the value 0x02 for > PcdCpuProcTraceOutputScheme at all? > Can we use PcdCpuFeaturesSetting set to 0x10 > ProcTraceMemDisable to know that the feature is disabled, and > only look at PcdCpuProcTraceOutputScheme if > PcdCpuFeaturesSetting is set to a value where the memory size > is > 0? > > Also, when looking at where these PCD values are used in > UefiCpuPkg\Library\CpuCommonFeaturesLib\ProcTrace.c, I see use > of BITxx to modify the MSR_IA32_RTIT_CTL values. Please use > the bit fields in the MSR_IA32_RTIT_CTL_REGISTER structure > instead. You can work on this change as a separate patch. > > Thanks, > > Mike > > > > -----Original Message----- > > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On > Behalf Of > > Eric Dong > > Sent: Monday, August 14, 2017 12:23 AM > > To: edk2-devel@lists.01.org > > Cc: Ni, Ruiyu <ruiyu.ni@intel.com>; Kinney, Michael D > > <michael.d.kinney@intel.com>; Gao, Liming > <liming.gao@intel.com> > > Subject: [edk2] [Patch 1/2] UefiCpuPkg: Add comments for > PCDs > > definition. > > > > Add valid/default values for PCD PcdCpuProcTraceMemSize and > > PcdCpuProcTraceOutputScheme in the comment part. > > > > Cc: Liming Gao <liming.gao@intel.com> > > Cc: Ruiyu Ni <ruiyu.ni@intel.com> > > Cc: Michael D Kinney <michael.d.kinney@intel.com> > > Contributed-under: TianoCore Contribution Agreement 1.0 > > Signed-off-by: Eric Dong <eric.dong@intel.com> > > --- > > UefiCpuPkg/UefiCpuPkg.dec | 28 ++++++++++++++++++++++++++-- > > 1 file changed, 26 insertions(+), 2 deletions(-) > > > > diff --git a/UefiCpuPkg/UefiCpuPkg.dec > b/UefiCpuPkg/UefiCpuPkg.dec > > index 2ddeab4..b4e099d 100644 > > --- a/UefiCpuPkg/UefiCpuPkg.dec > > +++ b/UefiCpuPkg/UefiCpuPkg.dec > > @@ -285,12 +285,36 @@ > > # @ValidList 0x80000001 | 0 > > gUefiCpuPkgTokenSpaceGuid.PcdCpuFeaturesSetting|{0x00, > 0x00, 0x00, > > 0x00, 0x00, 0x00, 0x00, 0x00}|VOID*|0x00000019 > > > > - ## Contains the size of memory required when CPU > processor trace is > > enabled. > > + ## Contains the size of memory required when CPU > processor > > trace is enabled.<BR><BR> > > + # Default value is 0x10 which disables the processor > > trace.<BR> > > + # 0x0 - 4K.<BR> > > + # 0x1 - 8K.<BR> > > + # 0x2 - 16K.<BR> > > + # 0x3 - 32K.<BR> > > + # 0x4 - 64K.<BR> > > + # 0x5 - 128K.<BR> > > + # 0x6 - 256K.<BR> > > + # 0x7 - 512K.<BR> > > + # 0x8 - 1M.<BR> > > + # 0x9 - 2M.<BR> > > + # 0xA - 4M.<BR> > > + # 0xB - 8M.<BR> > > + # 0xC - 16M.<BR> > > + # 0xD - 32M.<BR> > > + # 0xE - 64M.<BR> > > + # 0xF - 128M.<BR> > > + # 0x10 - ProcTraceMemDisable.<BR> > > # @Prompt The memory size used for processor trace. > > + # @ValidRange 0x80000001 | 0 - 0x10 > > > > > gUefiCpuPkgTokenSpaceGuid.PcdCpuProcTraceMemSize|0x10|UINT32|0 > x6 > > 0000012 > > > > - ## Contains the processor trace output scheme when CPU > processor > > trace is enabled. > > + ## Contains the processor trace output scheme when CPU > > processor trace is enabled.<BR><BR> > > + # Default value is 2 which disables the processor > trace.<BR> # 0 > > + - Single Range output scheme.<BR> # 1 - ToPA(Table of > physical > > + address) scheme.<BR> # 2 - Invalid scheme.<BR> > > # @Prompt The processor trace output scheme. > > + # @ValidRange 0x80000001 | 0 - 2 > > > > > gUefiCpuPkgTokenSpaceGuid.PcdCpuProcTraceOutputScheme|0x2|UINT > 8| > > 0x60000015 > > > > [UserExtensions.TianoCore."ExtraFiles"] > > -- > > 2.7.0.windows.1 > > > > _______________________________________________ > > edk2-devel mailing list > > edk2-devel@lists.01.org > > https://lists.01.org/mailman/listinfo/edk2-devel ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Patch 1/2] UefiCpuPkg: Add comments for PCDs definition. 2017-08-17 7:55 ` Kinney, Michael D @ 2017-08-17 8:52 ` Dong, Eric 2017-08-17 17:39 ` Kinney, Michael D 0 siblings, 1 reply; 12+ messages in thread From: Dong, Eric @ 2017-08-17 8:52 UTC (permalink / raw) To: Kinney, Michael D, edk2-devel@lists.01.org; +Cc: Ni, Ruiyu, Gao, Liming Mike, My reason to defined disable options for memory size and output scheme is I can use them as my default policy(all in disable status). If not define disable options, I don't know which default value are better than others. Also disable options also defined clearly invalid tag and valuable to add user friendly code check like below: if ((ProcTraceData->ProcTraceMemSize >= EnumProcTraceMemDisable) || (ProcTraceData->ProcTraceOutputScheme >= OutputSchemeInvalid)) { return FALSE; } If you think these definitions are redundant, what's the default value do you think is suitable for memory size and output scheme. Thanks, Eric -----Original Message----- From: Kinney, Michael D Sent: Thursday, August 17, 2017 3:55 PM To: Dong, Eric <eric.dong@intel.com>; edk2-devel@lists.01.org; Kinney, Michael D <michael.d.kinney@intel.com> Cc: Ni, Ruiyu <ruiyu.ni@intel.com>; Gao, Liming <liming.gao@intel.com> Subject: RE: [edk2] [Patch 1/2] UefiCpuPkg: Add comments for PCDs definition. Eric, For a setup page, the scheme can be greyed out or hidden if the feature is disabled. If the feature is disabled, it does not make sense to allow the user to set the memory size or the scheme. Mike > -----Original Message----- > From: Dong, Eric > Sent: Wednesday, August 16, 2017 11:48 PM > To: Kinney, Michael D <michael.d.kinney@intel.com>; edk2- > devel@lists.01.org > Cc: Ni, Ruiyu <ruiyu.ni@intel.com>; Gao, Liming > <liming.gao@intel.com>; Dong, Eric <eric.dong@intel.com> > Subject: RE: [edk2] [Patch 1/2] UefiCpuPkg: Add comments for PCDs > definition. > > Hi Mike, > > Processor trace feature need to get three inputs from end user. 1. > Enabe/disable, 2. Memory size, 3, Output scheme. > It will have three menus in UI to let end user to select. I want the > default value for all three menus are disabled, so I add invalid or > disable for both PCDs. Maybe I can enhance OutputSchemeInvalid to > OutputSchemeDisable for consistent with EnumProcTraceMemDisable. > > For the BITxx issue, I have submit a patch for it, please help to > review it. > > Thanks, > Eric > -----Original Message----- > From: Kinney, Michael D > Sent: Wednesday, August 16, 2017 11:59 PM > To: Dong, Eric <eric.dong@intel.com>; edk2-devel@lists.01.org; Kinney, > Michael D <michael.d.kinney@intel.com> > Cc: Ni, Ruiyu <ruiyu.ni@intel.com>; Gao, Liming <liming.gao@intel.com> > Subject: RE: [edk2] [Patch 1/2] UefiCpuPkg: Add comments for PCDs > definition. > > Eric, > > For the PCD PcdCpuProcTraceOutputScheme, the description of "Invalid > scheme" > does not seem like a good description for disable. > > Do we really need the value 0x02 for > PcdCpuProcTraceOutputScheme at all? > Can we use PcdCpuFeaturesSetting set to 0x10 ProcTraceMemDisable to > know that the feature is disabled, and only look at > PcdCpuProcTraceOutputScheme if PcdCpuFeaturesSetting is set to a value > where the memory size is > 0? > > Also, when looking at where these PCD values are used in > UefiCpuPkg\Library\CpuCommonFeaturesLib\ProcTrace.c, I see use of > BITxx to modify the MSR_IA32_RTIT_CTL values. Please use the bit > fields in the MSR_IA32_RTIT_CTL_REGISTER structure instead. You can > work on this change as a separate patch. > > Thanks, > > Mike > > > > -----Original Message----- > > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On > Behalf Of > > Eric Dong > > Sent: Monday, August 14, 2017 12:23 AM > > To: edk2-devel@lists.01.org > > Cc: Ni, Ruiyu <ruiyu.ni@intel.com>; Kinney, Michael D > > <michael.d.kinney@intel.com>; Gao, Liming > <liming.gao@intel.com> > > Subject: [edk2] [Patch 1/2] UefiCpuPkg: Add comments for > PCDs > > definition. > > > > Add valid/default values for PCD PcdCpuProcTraceMemSize and > > PcdCpuProcTraceOutputScheme in the comment part. > > > > Cc: Liming Gao <liming.gao@intel.com> > > Cc: Ruiyu Ni <ruiyu.ni@intel.com> > > Cc: Michael D Kinney <michael.d.kinney@intel.com> > > Contributed-under: TianoCore Contribution Agreement 1.0 > > Signed-off-by: Eric Dong <eric.dong@intel.com> > > --- > > UefiCpuPkg/UefiCpuPkg.dec | 28 ++++++++++++++++++++++++++-- > > 1 file changed, 26 insertions(+), 2 deletions(-) > > > > diff --git a/UefiCpuPkg/UefiCpuPkg.dec > b/UefiCpuPkg/UefiCpuPkg.dec > > index 2ddeab4..b4e099d 100644 > > --- a/UefiCpuPkg/UefiCpuPkg.dec > > +++ b/UefiCpuPkg/UefiCpuPkg.dec > > @@ -285,12 +285,36 @@ > > # @ValidList 0x80000001 | 0 > > gUefiCpuPkgTokenSpaceGuid.PcdCpuFeaturesSetting|{0x00, > 0x00, 0x00, > > 0x00, 0x00, 0x00, 0x00, 0x00}|VOID*|0x00000019 > > > > - ## Contains the size of memory required when CPU > processor trace is > > enabled. > > + ## Contains the size of memory required when CPU > processor > > trace is enabled.<BR><BR> > > + # Default value is 0x10 which disables the processor > > trace.<BR> > > + # 0x0 - 4K.<BR> > > + # 0x1 - 8K.<BR> > > + # 0x2 - 16K.<BR> > > + # 0x3 - 32K.<BR> > > + # 0x4 - 64K.<BR> > > + # 0x5 - 128K.<BR> > > + # 0x6 - 256K.<BR> > > + # 0x7 - 512K.<BR> > > + # 0x8 - 1M.<BR> > > + # 0x9 - 2M.<BR> > > + # 0xA - 4M.<BR> > > + # 0xB - 8M.<BR> > > + # 0xC - 16M.<BR> > > + # 0xD - 32M.<BR> > > + # 0xE - 64M.<BR> > > + # 0xF - 128M.<BR> > > + # 0x10 - ProcTraceMemDisable.<BR> > > # @Prompt The memory size used for processor trace. > > + # @ValidRange 0x80000001 | 0 - 0x10 > > > > > gUefiCpuPkgTokenSpaceGuid.PcdCpuProcTraceMemSize|0x10|UINT32|0 > x6 > > 0000012 > > > > - ## Contains the processor trace output scheme when CPU > processor > > trace is enabled. > > + ## Contains the processor trace output scheme when CPU > > processor trace is enabled.<BR><BR> > > + # Default value is 2 which disables the processor > trace.<BR> # 0 > > + - Single Range output scheme.<BR> # 1 - ToPA(Table of > physical > > + address) scheme.<BR> # 2 - Invalid scheme.<BR> > > # @Prompt The processor trace output scheme. > > + # @ValidRange 0x80000001 | 0 - 2 > > > > > gUefiCpuPkgTokenSpaceGuid.PcdCpuProcTraceOutputScheme|0x2|UINT > 8| > > 0x60000015 > > > > [UserExtensions.TianoCore."ExtraFiles"] > > -- > > 2.7.0.windows.1 > > > > _______________________________________________ > > edk2-devel mailing list > > edk2-devel@lists.01.org > > https://lists.01.org/mailman/listinfo/edk2-devel ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Patch 1/2] UefiCpuPkg: Add comments for PCDs definition. 2017-08-17 8:52 ` Dong, Eric @ 2017-08-17 17:39 ` Kinney, Michael D [not found] ` <ED077930C258884BBCB450DB737E66224A9C366B@shsmsx102.ccr.corp.intel.com> 0 siblings, 1 reply; 12+ messages in thread From: Kinney, Michael D @ 2017-08-17 17:39 UTC (permalink / raw) To: Dong, Eric, edk2-devel@lists.01.org, Kinney, Michael D Cc: Ni, Ruiyu, Gao, Liming Eric, Define PcdCpuFeaturesSetting set to 0x10 ProcTraceMemDisable as the default. If this PCD is 0x10, then the ProcTrace feature is enabled. If this PCD is less than 0x10, then the ProcTrace feature is enabled. Basically, if the PCD is configured to allocate memory for the feature then the feature is enabled. If no memory is allocated to the feature, then the feature is disabled. Define PcdCpuProcTraceOutputScheme set to 0 as the default but also add that this PCD is ignored if PcdCpuFeaturesSetting is set to 0x10 ProcTraceMemDisable. You can still do range checks for these PCDs. We just don't need an Invalid value for PcdCpuProcTraceOutputScheme Thanks, Mike > -----Original Message----- > From: Dong, Eric > Sent: Thursday, August 17, 2017 1:52 AM > To: Kinney, Michael D <michael.d.kinney@intel.com>; edk2- > devel@lists.01.org > Cc: Ni, Ruiyu <ruiyu.ni@intel.com>; Gao, Liming > <liming.gao@intel.com> > Subject: RE: [edk2] [Patch 1/2] UefiCpuPkg: Add comments for > PCDs definition. > > Mike, > > My reason to defined disable options for memory size and > output scheme is I can use them as my default policy(all in > disable status). If not define disable options, I don't know > which default value are better than others. Also disable > options also defined clearly invalid tag and valuable to add > user friendly code check like below: > if ((ProcTraceData->ProcTraceMemSize >= > EnumProcTraceMemDisable) || > (ProcTraceData->ProcTraceOutputScheme >= > OutputSchemeInvalid)) { > return FALSE; > } > > If you think these definitions are redundant, what's the > default value do you think is suitable for memory size and > output scheme. > > Thanks, > Eric > -----Original Message----- > From: Kinney, Michael D > Sent: Thursday, August 17, 2017 3:55 PM > To: Dong, Eric <eric.dong@intel.com>; edk2-devel@lists.01.org; > Kinney, Michael D <michael.d.kinney@intel.com> > Cc: Ni, Ruiyu <ruiyu.ni@intel.com>; Gao, Liming > <liming.gao@intel.com> > Subject: RE: [edk2] [Patch 1/2] UefiCpuPkg: Add comments for > PCDs definition. > > Eric, > > For a setup page, the scheme can be greyed out or hidden if > the feature is disabled. If the feature is disabled, it does > not make sense to allow the user to set the memory size or the > scheme. > > Mike > > > -----Original Message----- > > From: Dong, Eric > > Sent: Wednesday, August 16, 2017 11:48 PM > > To: Kinney, Michael D <michael.d.kinney@intel.com>; edk2- > > devel@lists.01.org > > Cc: Ni, Ruiyu <ruiyu.ni@intel.com>; Gao, Liming > > <liming.gao@intel.com>; Dong, Eric <eric.dong@intel.com> > > Subject: RE: [edk2] [Patch 1/2] UefiCpuPkg: Add comments for > PCDs > > definition. > > > > Hi Mike, > > > > Processor trace feature need to get three inputs from end > user. 1. > > Enabe/disable, 2. Memory size, 3, Output scheme. > > It will have three menus in UI to let end user to select. I > want the > > default value for all three menus are disabled, so I add > invalid or > > disable for both PCDs. Maybe I can enhance > OutputSchemeInvalid to > > OutputSchemeDisable for consistent with > EnumProcTraceMemDisable. > > > > For the BITxx issue, I have submit a patch for it, please > help to > > review it. > > > > Thanks, > > Eric > > -----Original Message----- > > From: Kinney, Michael D > > Sent: Wednesday, August 16, 2017 11:59 PM > > To: Dong, Eric <eric.dong@intel.com>; edk2- > devel@lists.01.org; Kinney, > > Michael D <michael.d.kinney@intel.com> > > Cc: Ni, Ruiyu <ruiyu.ni@intel.com>; Gao, Liming > <liming.gao@intel.com> > > Subject: RE: [edk2] [Patch 1/2] UefiCpuPkg: Add comments for > PCDs > > definition. > > > > Eric, > > > > For the PCD PcdCpuProcTraceOutputScheme, the description of > "Invalid > > scheme" > > does not seem like a good description for disable. > > > > Do we really need the value 0x02 for > > PcdCpuProcTraceOutputScheme at all? > > Can we use PcdCpuFeaturesSetting set to 0x10 > ProcTraceMemDisable to > > know that the feature is disabled, and only look at > > PcdCpuProcTraceOutputScheme if PcdCpuFeaturesSetting is set > to a value > > where the memory size is > 0? > > > > Also, when looking at where these PCD values are used in > > UefiCpuPkg\Library\CpuCommonFeaturesLib\ProcTrace.c, I see > use of > > BITxx to modify the MSR_IA32_RTIT_CTL values. Please use > the bit > > fields in the MSR_IA32_RTIT_CTL_REGISTER structure instead. > You can > > work on this change as a separate patch. > > > > Thanks, > > > > Mike > > > > > > > -----Original Message----- > > > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] > On > > Behalf Of > > > Eric Dong > > > Sent: Monday, August 14, 2017 12:23 AM > > > To: edk2-devel@lists.01.org > > > Cc: Ni, Ruiyu <ruiyu.ni@intel.com>; Kinney, Michael D > > > <michael.d.kinney@intel.com>; Gao, Liming > > <liming.gao@intel.com> > > > Subject: [edk2] [Patch 1/2] UefiCpuPkg: Add comments for > > PCDs > > > definition. > > > > > > Add valid/default values for PCD PcdCpuProcTraceMemSize > and > > > PcdCpuProcTraceOutputScheme in the comment part. > > > > > > Cc: Liming Gao <liming.gao@intel.com> > > > Cc: Ruiyu Ni <ruiyu.ni@intel.com> > > > Cc: Michael D Kinney <michael.d.kinney@intel.com> > > > Contributed-under: TianoCore Contribution Agreement 1.0 > > > Signed-off-by: Eric Dong <eric.dong@intel.com> > > > --- > > > UefiCpuPkg/UefiCpuPkg.dec | 28 > ++++++++++++++++++++++++++-- > > > 1 file changed, 26 insertions(+), 2 deletions(-) > > > > > > diff --git a/UefiCpuPkg/UefiCpuPkg.dec > > b/UefiCpuPkg/UefiCpuPkg.dec > > > index 2ddeab4..b4e099d 100644 > > > --- a/UefiCpuPkg/UefiCpuPkg.dec > > > +++ b/UefiCpuPkg/UefiCpuPkg.dec > > > @@ -285,12 +285,36 @@ > > > # @ValidList 0x80000001 | 0 > > > gUefiCpuPkgTokenSpaceGuid.PcdCpuFeaturesSetting|{0x00, > > 0x00, 0x00, > > > 0x00, 0x00, 0x00, 0x00, 0x00}|VOID*|0x00000019 > > > > > > - ## Contains the size of memory required when CPU > > processor trace is > > > enabled. > > > + ## Contains the size of memory required when CPU > > processor > > > trace is enabled.<BR><BR> > > > + # Default value is 0x10 which disables the processor > > > trace.<BR> > > > + # 0x0 - 4K.<BR> > > > + # 0x1 - 8K.<BR> > > > + # 0x2 - 16K.<BR> > > > + # 0x3 - 32K.<BR> > > > + # 0x4 - 64K.<BR> > > > + # 0x5 - 128K.<BR> > > > + # 0x6 - 256K.<BR> > > > + # 0x7 - 512K.<BR> > > > + # 0x8 - 1M.<BR> > > > + # 0x9 - 2M.<BR> > > > + # 0xA - 4M.<BR> > > > + # 0xB - 8M.<BR> > > > + # 0xC - 16M.<BR> > > > + # 0xD - 32M.<BR> > > > + # 0xE - 64M.<BR> > > > + # 0xF - 128M.<BR> > > > + # 0x10 - ProcTraceMemDisable.<BR> > > > # @Prompt The memory size used for processor trace. > > > + # @ValidRange 0x80000001 | 0 - 0x10 > > > > > > > > > gUefiCpuPkgTokenSpaceGuid.PcdCpuProcTraceMemSize|0x10|UINT32|0 > > x6 > > > 0000012 > > > > > > - ## Contains the processor trace output scheme when CPU > > processor > > > trace is enabled. > > > + ## Contains the processor trace output scheme when CPU > > > processor trace is enabled.<BR><BR> > > > + # Default value is 2 which disables the processor > > trace.<BR> # 0 > > > + - Single Range output scheme.<BR> # 1 - ToPA(Table of > > physical > > > + address) scheme.<BR> # 2 - Invalid scheme.<BR> > > > # @Prompt The processor trace output scheme. > > > + # @ValidRange 0x80000001 | 0 - 2 > > > > > > > > > gUefiCpuPkgTokenSpaceGuid.PcdCpuProcTraceOutputScheme|0x2|UINT > > 8| > > > 0x60000015 > > > > > > [UserExtensions.TianoCore."ExtraFiles"] > > > -- > > > 2.7.0.windows.1 > > > > > > _______________________________________________ > > > edk2-devel mailing list > > > edk2-devel@lists.01.org > > > https://lists.01.org/mailman/listinfo/edk2-devel ^ permalink raw reply [flat|nested] 12+ messages in thread
[parent not found: <ED077930C258884BBCB450DB737E66224A9C366B@shsmsx102.ccr.corp.intel.com>]
* Re: [Patch 1/2] UefiCpuPkg: Add comments for PCDs definition. [not found] ` <ED077930C258884BBCB450DB737E66224A9C366B@shsmsx102.ccr.corp.intel.com> @ 2017-08-22 22:30 ` Kinney, Michael D 0 siblings, 0 replies; 12+ messages in thread From: Kinney, Michael D @ 2017-08-22 22:30 UTC (permalink / raw) To: Dong, Eric, edk2-devel@lists.01.org, Kinney, Michael D Cc: Ni, Ruiyu, Gao, Liming Eric, Yes. I like the idea of removing both OutputSchemeInvalid and ProcTraceMemDisable values. Mike > -----Original Message----- > From: Dong, Eric > Sent: Monday, August 21, 2017 6:43 PM > To: Kinney, Michael D <michael.d.kinney@intel.com>; edk2- > devel@lists.01.org > Cc: Ni, Ruiyu <ruiyu.ni@intel.com>; Gao, Liming > <liming.gao@intel.com> > Subject: RE: [edk2] [Patch 1/2] UefiCpuPkg: Add comments for > PCDs definition. > > Mike, > > I think you misuse PcdCpuFeaturesSetting for > PcdCpuProcTraceMemSize, right? > ProcTrace feature is checked by BIT44(CPU_FEATURE_PROC_TRACE) in > PcdCpuFeaturesSetting. > > If you think define OutputSchemeInvalid is redundant and propose > to remove it. I think we can also remove ProcTraceMemDisable. We > can use the first value in PcdCpuProcTraceOutputScheme and > PcdCpuProcTraceMemSize as the default value. And these values > valid only ProcTrace feature is enables in > PcdCpuFeaturesSetting. Do you think remove OutputSchemeInvalid > and ProcTraceMemDisable is ok for you? > > Thanks, > Eric > -----Original Message----- > From: Kinney, Michael D > Sent: Friday, August 18, 2017 1:39 AM > To: Dong, Eric <eric.dong@intel.com>; edk2-devel@lists.01.org; > Kinney, Michael D <michael.d.kinney@intel.com> > Cc: Ni, Ruiyu <ruiyu.ni@intel.com>; Gao, Liming > <liming.gao@intel.com> > Subject: RE: [edk2] [Patch 1/2] UefiCpuPkg: Add comments for > PCDs definition. > > Eric, > > Define PcdCpuFeaturesSetting set to 0x10 ProcTraceMemDisable as > the default. If this PCD is 0x10, then the ProcTrace feature is > enabled. If this PCD is less than 0x10, then the ProcTrace > feature is enabled. Basically, if the PCD is configured to > allocate memory for the feature then the feature is enabled. If > no memory is allocated to the feature, then the feature is > disabled. > > Define PcdCpuProcTraceOutputScheme set to 0 as the default but > also add that this PCD is ignored if PcdCpuFeaturesSetting is > set to 0x10 ProcTraceMemDisable. > > You can still do range checks for these PCDs. We just don't > need an Invalid value for PcdCpuProcTraceOutputScheme > > Thanks, > > Mike > > > -----Original Message----- > > From: Dong, Eric > > Sent: Thursday, August 17, 2017 1:52 AM > > To: Kinney, Michael D <michael.d.kinney@intel.com>; edk2- > > devel@lists.01.org > > Cc: Ni, Ruiyu <ruiyu.ni@intel.com>; Gao, Liming > <liming.gao@intel.com> > > Subject: RE: [edk2] [Patch 1/2] UefiCpuPkg: Add comments for > PCDs > > definition. > > > > Mike, > > > > My reason to defined disable options for memory size and > output scheme > > is I can use them as my default policy(all in disable status). > If not > > define disable options, I don't know which default value are > better > > than others. Also disable options also defined clearly invalid > tag and > > valuable to add user friendly code check like below: > > if ((ProcTraceData->ProcTraceMemSize >= > > EnumProcTraceMemDisable) || > > (ProcTraceData->ProcTraceOutputScheme >= > > OutputSchemeInvalid)) { > > return FALSE; > > } > > > > If you think these definitions are redundant, what's the > default value > > do you think is suitable for memory size and output scheme. > > > > Thanks, > > Eric > > -----Original Message----- > > From: Kinney, Michael D > > Sent: Thursday, August 17, 2017 3:55 PM > > To: Dong, Eric <eric.dong@intel.com>; edk2-devel@lists.01.org; > Kinney, > > Michael D <michael.d.kinney@intel.com> > > Cc: Ni, Ruiyu <ruiyu.ni@intel.com>; Gao, Liming > <liming.gao@intel.com> > > Subject: RE: [edk2] [Patch 1/2] UefiCpuPkg: Add comments for > PCDs > > definition. > > > > Eric, > > > > For a setup page, the scheme can be greyed out or hidden if > the > > feature is disabled. If the feature is disabled, it does not > make > > sense to allow the user to set the memory size or the scheme. > > > > Mike > > > > > -----Original Message----- > > > From: Dong, Eric > > > Sent: Wednesday, August 16, 2017 11:48 PM > > > To: Kinney, Michael D <michael.d.kinney@intel.com>; edk2- > > > devel@lists.01.org > > > Cc: Ni, Ruiyu <ruiyu.ni@intel.com>; Gao, Liming > > > <liming.gao@intel.com>; Dong, Eric <eric.dong@intel.com> > > > Subject: RE: [edk2] [Patch 1/2] UefiCpuPkg: Add comments for > > PCDs > > > definition. > > > > > > Hi Mike, > > > > > > Processor trace feature need to get three inputs from end > > user. 1. > > > Enabe/disable, 2. Memory size, 3, Output scheme. > > > It will have three menus in UI to let end user to select. I > > want the > > > default value for all three menus are disabled, so I add > > invalid or > > > disable for both PCDs. Maybe I can enhance > > OutputSchemeInvalid to > > > OutputSchemeDisable for consistent with > > EnumProcTraceMemDisable. > > > > > > For the BITxx issue, I have submit a patch for it, please > > help to > > > review it. > > > > > > Thanks, > > > Eric > > > -----Original Message----- > > > From: Kinney, Michael D > > > Sent: Wednesday, August 16, 2017 11:59 PM > > > To: Dong, Eric <eric.dong@intel.com>; edk2- > > devel@lists.01.org; Kinney, > > > Michael D <michael.d.kinney@intel.com> > > > Cc: Ni, Ruiyu <ruiyu.ni@intel.com>; Gao, Liming > > <liming.gao@intel.com> > > > Subject: RE: [edk2] [Patch 1/2] UefiCpuPkg: Add comments for > > PCDs > > > definition. > > > > > > Eric, > > > > > > For the PCD PcdCpuProcTraceOutputScheme, the description of > > "Invalid > > > scheme" > > > does not seem like a good description for disable. > > > > > > Do we really need the value 0x02 for > PcdCpuProcTraceOutputScheme at > > > all? > > > Can we use PcdCpuFeaturesSetting set to 0x10 > > ProcTraceMemDisable to > > > know that the feature is disabled, and only look at > > > PcdCpuProcTraceOutputScheme if PcdCpuFeaturesSetting is set > > to a value > > > where the memory size is > 0? > > > > > > Also, when looking at where these PCD values are used in > > > UefiCpuPkg\Library\CpuCommonFeaturesLib\ProcTrace.c, I see > > use of > > > BITxx to modify the MSR_IA32_RTIT_CTL values. Please use > > the bit > > > fields in the MSR_IA32_RTIT_CTL_REGISTER structure instead. > > You can > > > work on this change as a separate patch. > > > > > > Thanks, > > > > > > Mike > > > > > > > > > > -----Original Message----- > > > > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] > > On > > > Behalf Of > > > > Eric Dong > > > > Sent: Monday, August 14, 2017 12:23 AM > > > > To: edk2-devel@lists.01.org > > > > Cc: Ni, Ruiyu <ruiyu.ni@intel.com>; Kinney, Michael D > > > > <michael.d.kinney@intel.com>; Gao, Liming > > > <liming.gao@intel.com> > > > > Subject: [edk2] [Patch 1/2] UefiCpuPkg: Add comments for > > > PCDs > > > > definition. > > > > > > > > Add valid/default values for PCD PcdCpuProcTraceMemSize > > and > > > > PcdCpuProcTraceOutputScheme in the comment part. > > > > > > > > Cc: Liming Gao <liming.gao@intel.com> > > > > Cc: Ruiyu Ni <ruiyu.ni@intel.com> > > > > Cc: Michael D Kinney <michael.d.kinney@intel.com> > > > > Contributed-under: TianoCore Contribution Agreement 1.0 > > > > Signed-off-by: Eric Dong <eric.dong@intel.com> > > > > --- > > > > UefiCpuPkg/UefiCpuPkg.dec | 28 > > ++++++++++++++++++++++++++-- > > > > 1 file changed, 26 insertions(+), 2 deletions(-) > > > > > > > > diff --git a/UefiCpuPkg/UefiCpuPkg.dec > > > b/UefiCpuPkg/UefiCpuPkg.dec > > > > index 2ddeab4..b4e099d 100644 > > > > --- a/UefiCpuPkg/UefiCpuPkg.dec > > > > +++ b/UefiCpuPkg/UefiCpuPkg.dec > > > > @@ -285,12 +285,36 @@ > > > > # @ValidList 0x80000001 | 0 > > > > gUefiCpuPkgTokenSpaceGuid.PcdCpuFeaturesSetting|{0x00, > > > 0x00, 0x00, > > > > 0x00, 0x00, 0x00, 0x00, 0x00}|VOID*|0x00000019 > > > > > > > > - ## Contains the size of memory required when CPU > > > processor trace is > > > > enabled. > > > > + ## Contains the size of memory required when CPU > > > processor > > > > trace is enabled.<BR><BR> > > > > + # Default value is 0x10 which disables the processor > > > > trace.<BR> > > > > + # 0x0 - 4K.<BR> > > > > + # 0x1 - 8K.<BR> > > > > + # 0x2 - 16K.<BR> > > > > + # 0x3 - 32K.<BR> > > > > + # 0x4 - 64K.<BR> > > > > + # 0x5 - 128K.<BR> > > > > + # 0x6 - 256K.<BR> > > > > + # 0x7 - 512K.<BR> > > > > + # 0x8 - 1M.<BR> > > > > + # 0x9 - 2M.<BR> > > > > + # 0xA - 4M.<BR> > > > > + # 0xB - 8M.<BR> > > > > + # 0xC - 16M.<BR> > > > > + # 0xD - 32M.<BR> > > > > + # 0xE - 64M.<BR> > > > > + # 0xF - 128M.<BR> > > > > + # 0x10 - ProcTraceMemDisable.<BR> > > > > # @Prompt The memory size used for processor trace. > > > > + # @ValidRange 0x80000001 | 0 - 0x10 > > > > > > > > > > > > > gUefiCpuPkgTokenSpaceGuid.PcdCpuProcTraceMemSize|0x10|UINT32|0 > > > x6 > > > > 0000012 > > > > > > > > - ## Contains the processor trace output scheme when CPU > > > processor > > > > trace is enabled. > > > > + ## Contains the processor trace output scheme when CPU > > > > processor trace is enabled.<BR><BR> > > > > + # Default value is 2 which disables the processor > > > trace.<BR> # 0 > > > > + - Single Range output scheme.<BR> # 1 - ToPA(Table of > > > physical > > > > + address) scheme.<BR> # 2 - Invalid scheme.<BR> > > > > # @Prompt The processor trace output scheme. > > > > + # @ValidRange 0x80000001 | 0 - 2 > > > > > > > > > > > > > gUefiCpuPkgTokenSpaceGuid.PcdCpuProcTraceOutputScheme|0x2|UINT > > > 8| > > > > 0x60000015 > > > > > > > > [UserExtensions.TianoCore."ExtraFiles"] > > > > -- > > > > 2.7.0.windows.1 > > > > > > > > _______________________________________________ > > > > edk2-devel mailing list > > > > edk2-devel@lists.01.org > > > > https://lists.01.org/mailman/listinfo/edk2-devel ^ permalink raw reply [flat|nested] 12+ messages in thread
* [Patch 2/2] UefiCpuPkg UefiCpupkg.uni: Add new pcds comments. 2017-08-14 7:22 [Patch 0/2] Add comments for two new added Pcds Eric Dong 2017-08-14 7:22 ` [Patch 1/2] UefiCpuPkg: Add comments for PCDs definition Eric Dong @ 2017-08-14 7:22 ` Eric Dong 2017-08-16 6:40 ` [Patch 0/2] Add comments for two new added Pcds Gao, Liming 2 siblings, 0 replies; 12+ messages in thread From: Eric Dong @ 2017-08-14 7:22 UTC (permalink / raw) To: edk2-devel; +Cc: Liming Gao, Ruiyu Ni, Michael D Kinney Add prompt/help string for pcd PcdCpuProcTraceOutputScheme and PcdCpuProcTraceMemSize in UefiCpuPkg.uni file. Cc: Liming Gao <liming.gao@intel.com> Cc: Ruiyu Ni <ruiyu.ni@intel.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong <eric.dong@intel.com> --- UefiCpuPkg/UefiCpuPkg.uni | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/UefiCpuPkg/UefiCpuPkg.uni b/UefiCpuPkg/UefiCpuPkg.uni index cd0ecab..858e4a7 100644 --- a/UefiCpuPkg/UefiCpuPkg.uni +++ b/UefiCpuPkg/UefiCpuPkg.uni @@ -194,3 +194,33 @@ #string STR_gUefiCpuPkgTokenSpaceGuid_PcdCpuFeaturesSetting_PROMPT #language en-US "Actual processor feature settings." #string STR_gUefiCpuPkgTokenSpaceGuid_PcdCpuFeaturesSetting_HELP #language en-US "Specifies actual settings for processor features, each bit corresponding to a specific feature." + +#string STR_gUefiCpuPkgTokenSpaceGuid_PcdCpuProcTraceMemSize_PROMPT #language en-US "Memory size used by Processor Trace feature." + +#string STR_gUefiCpuPkgTokenSpaceGuid_PcdCpuProcTraceMemSize_HELP #language en-US "User input the memory size can be used by processor trace feature.<BR><BR>\n" + "Default value is 0x10 which disables the processor memory trace.<BR>\n" + "0x0 - 4K.<BR>\n" + "0x1 - 8K.<BR>\n" + "0x2 - 16K.<BR>\n" + "0x3 - 32K.<BR>\n" + "0x4 - 64K.<BR>\n" + "0x5 - 128K.<BR>\n" + "0x6 - 256K.<BR>\n" + "0x7 - 512K.<BR>\n" + "0x8 - 1M.<BR>\n" + "0x9 - 2M.<BR>\n" + "0xA - 4M.<BR>\n" + "0xB - 8M.<BR>\n" + "0xC - 16M.<BR>\n" + "0xD - 32M.<BR>\n" + "0xE - 64M.<BR>\n" + "0xF - 128M.<BR>\n" + "0x10 - ProcTraceMemDisable.<BR>\n" + +#string STR_gUefiCpuPkgTokenSpaceGuid_PcdCpuProcTraceOutputScheme_PROMPT #language en-US "Processor Trace output scheme type." + +#string STR_gUefiCpuPkgTokenSpaceGuid_PcdCpuProcTraceOutputScheme_HELP #language en-US "User input the processor trace output scheme type.<BR><BR>\n" + "Default value is 2 which disables the processor memory trace.<BR>\n" + "0 - Single Range output scheme.<BR>\n" + "1 - ToPA(Table of physical address) scheme.<BR>\n" + "2 - Invalid scheme.<BR>\n" \ No newline at end of file -- 2.7.0.windows.1 ^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: [Patch 0/2] Add comments for two new added Pcds. 2017-08-14 7:22 [Patch 0/2] Add comments for two new added Pcds Eric Dong 2017-08-14 7:22 ` [Patch 1/2] UefiCpuPkg: Add comments for PCDs definition Eric Dong 2017-08-14 7:22 ` [Patch 2/2] UefiCpuPkg UefiCpupkg.uni: Add new pcds comments Eric Dong @ 2017-08-16 6:40 ` Gao, Liming 2 siblings, 0 replies; 12+ messages in thread From: Gao, Liming @ 2017-08-16 6:40 UTC (permalink / raw) To: Dong, Eric, edk2-devel@lists.01.org Reviewed-by: Liming Gao <liming.gao@intel.com> >-----Original Message----- >From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Eric >Dong >Sent: Monday, August 14, 2017 3:23 PM >To: edk2-devel@lists.01.org >Subject: [edk2] [Patch 0/2] Add comments for two new added Pcds. > >v2 changes includes: Add valid values and prompt/help string for new >add pcd PcdCpuProcTraceMemSize and PcdCpuProcTraceOutputScheme. > >v3 changes includes: Add comments for default values for new >added pcd PcdCpuProcTraceMemSize and PcdCpuProcTraceOutputScheme. >Also update the help string in the .uni file to include valid value >information added in .dec file. > >Eric Dong (2): > UefiCpuPkg: Add comments for PCDs definition. > UefiCpuPkg UefiCpupkg.uni: Add new pcds comments. > > UefiCpuPkg/UefiCpuPkg.dec | 28 ++++++++++++++++++++++++++-- > UefiCpuPkg/UefiCpuPkg.uni | 30 ++++++++++++++++++++++++++++++ > 2 files changed, 56 insertions(+), 2 deletions(-) > >-- >2.7.0.windows.1 > >_______________________________________________ >edk2-devel mailing list >edk2-devel@lists.01.org >https://lists.01.org/mailman/listinfo/edk2-devel ^ permalink raw reply [flat|nested] 12+ messages in thread
* [Patch 0/2] Add comments for new Pcds @ 2017-08-09 6:32 Eric Dong 2017-08-09 6:32 ` [Patch 1/2] UefiCpuPkg: Add comments for PCDs definition Eric Dong 0 siblings, 1 reply; 12+ messages in thread From: Eric Dong @ 2017-08-09 6:32 UTC (permalink / raw) To: edk2-devel Add missed Pcds definition and comments in dec and inf files. Eric Dong (2): UefiCpuPkg: Add comments for PCDs definition. UefiCpuPkg UefiCpupkg.uni: Add new pcds comments. UefiCpuPkg/UefiCpuPkg.dec | 22 ++++++++++++++++++++++ UefiCpuPkg/UefiCpuPkg.uni | 8 ++++++++ 2 files changed, 30 insertions(+) -- 2.10.1.windows.1 ^ permalink raw reply [flat|nested] 12+ messages in thread
* [Patch 1/2] UefiCpuPkg: Add comments for PCDs definition. 2017-08-09 6:32 [Patch 0/2] Add comments for new Pcds Eric Dong @ 2017-08-09 6:32 ` Eric Dong 2017-08-09 23:08 ` Kinney, Michael D 0 siblings, 1 reply; 12+ messages in thread From: Eric Dong @ 2017-08-09 6:32 UTC (permalink / raw) To: edk2-devel; +Cc: Liming Gao, Ruiyu Ni, Michael D Kinney Cc: Liming Gao <liming.gao@intel.com> Cc: Ruiyu Ni <ruiyu.ni@intel.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong <eric.dong@intel.com> --- UefiCpuPkg/UefiCpuPkg.dec | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/UefiCpuPkg/UefiCpuPkg.dec b/UefiCpuPkg/UefiCpuPkg.dec index 2ddeab4..1f3a992 100644 --- a/UefiCpuPkg/UefiCpuPkg.dec +++ b/UefiCpuPkg/UefiCpuPkg.dec @@ -287,10 +287,32 @@ ## Contains the size of memory required when CPU processor trace is enabled. # @Prompt The memory size used for processor trace. + # 0x0: 4K, + # 0x1: 8K, + # 0x2: 16K, + # 0x3: 32K, + # 0x4: 64K, + # 0x5: 128K, + # 0x6: 256K, + # 0x7: 512K, + # 0x8: 1M, + # 0x9: 2M, + # 0xA: 4M, + # 0xB: 8M, + # 0xC: 16M, + # 0xD: 32M, + # 0xE: 64M, + # 0xF: 128M, + # 0x10: ProcTraceMemDisable + # @ValidRange 0x80000001 | 0 - 0x10 gUefiCpuPkgTokenSpaceGuid.PcdCpuProcTraceMemSize|0x10|UINT32|0x60000012 ## Contains the processor trace output scheme when CPU processor trace is enabled. # @Prompt The processor trace output scheme. + # 0: Single Range output scheme.<BR> + # 1: ToPA(Table of physical address) scheme.<BR> + # 2: Invalid scheme.<BR> + # @ValidRange 0x80000001 | 0 - 2 gUefiCpuPkgTokenSpaceGuid.PcdCpuProcTraceOutputScheme|0x2|UINT8|0x60000015 [UserExtensions.TianoCore."ExtraFiles"] -- 2.10.1.windows.1 ^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: [Patch 1/2] UefiCpuPkg: Add comments for PCDs definition. 2017-08-09 6:32 ` [Patch 1/2] UefiCpuPkg: Add comments for PCDs definition Eric Dong @ 2017-08-09 23:08 ` Kinney, Michael D 0 siblings, 0 replies; 12+ messages in thread From: Kinney, Michael D @ 2017-08-09 23:08 UTC (permalink / raw) To: Dong, Eric, edk2-devel@lists.01.org, Kinney, Michael D Cc: Gao, Liming, Ni, Ruiyu Eric, Please add the default value settings to the detailed description. For example, PcdCpuProcTraceMemSize should say that the default value is 0x10 which disables the processor memory trace. Also, the .uni file _HELP should contains the same information as the detailed description, including the set of valid values and their meanings. Please see gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel in MdePkg/MdePkg.uni for an example to follow. Thanks, Mike > -----Original Message----- > From: Dong, Eric > Sent: Tuesday, August 8, 2017 11:32 PM > To: edk2-devel@lists.01.org > Cc: Gao, Liming <liming.gao@intel.com>; Ni, Ruiyu > <ruiyu.ni@intel.com>; Kinney, Michael D > <michael.d.kinney@intel.com> > Subject: [Patch 1/2] UefiCpuPkg: Add comments for PCDs > definition. > > Cc: Liming Gao <liming.gao@intel.com> > Cc: Ruiyu Ni <ruiyu.ni@intel.com> > Cc: Michael D Kinney <michael.d.kinney@intel.com> > Contributed-under: TianoCore Contribution Agreement 1.0 > Signed-off-by: Eric Dong <eric.dong@intel.com> > --- > UefiCpuPkg/UefiCpuPkg.dec | 22 ++++++++++++++++++++++ > 1 file changed, 22 insertions(+) > > diff --git a/UefiCpuPkg/UefiCpuPkg.dec > b/UefiCpuPkg/UefiCpuPkg.dec > index 2ddeab4..1f3a992 100644 > --- a/UefiCpuPkg/UefiCpuPkg.dec > +++ b/UefiCpuPkg/UefiCpuPkg.dec > @@ -287,10 +287,32 @@ > > ## Contains the size of memory required when CPU processor > trace is enabled. > # @Prompt The memory size used for processor trace. > + # 0x0: 4K, > + # 0x1: 8K, > + # 0x2: 16K, > + # 0x3: 32K, > + # 0x4: 64K, > + # 0x5: 128K, > + # 0x6: 256K, > + # 0x7: 512K, > + # 0x8: 1M, > + # 0x9: 2M, > + # 0xA: 4M, > + # 0xB: 8M, > + # 0xC: 16M, > + # 0xD: 32M, > + # 0xE: 64M, > + # 0xF: 128M, > + # 0x10: ProcTraceMemDisable > + # @ValidRange 0x80000001 | 0 - 0x10 > > gUefiCpuPkgTokenSpaceGuid.PcdCpuProcTraceMemSize|0x10|UINT32|0 > x60000012 > > ## Contains the processor trace output scheme when CPU > processor trace is enabled. > # @Prompt The processor trace output scheme. > + # 0: Single Range output scheme.<BR> > + # 1: ToPA(Table of physical address) scheme.<BR> > + # 2: Invalid scheme.<BR> > + # @ValidRange 0x80000001 | 0 - 2 > > gUefiCpuPkgTokenSpaceGuid.PcdCpuProcTraceOutputScheme|0x2|UINT > 8|0x60000015 > > [UserExtensions.TianoCore."ExtraFiles"] > -- > 2.10.1.windows.1 ^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2017-08-22 22:27 UTC | newest] Thread overview: 12+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2017-08-14 7:22 [Patch 0/2] Add comments for two new added Pcds Eric Dong 2017-08-14 7:22 ` [Patch 1/2] UefiCpuPkg: Add comments for PCDs definition Eric Dong 2017-08-16 15:58 ` Kinney, Michael D 2017-08-17 6:47 ` Dong, Eric 2017-08-17 7:55 ` Kinney, Michael D 2017-08-17 8:52 ` Dong, Eric 2017-08-17 17:39 ` Kinney, Michael D [not found] ` <ED077930C258884BBCB450DB737E66224A9C366B@shsmsx102.ccr.corp.intel.com> 2017-08-22 22:30 ` Kinney, Michael D 2017-08-14 7:22 ` [Patch 2/2] UefiCpuPkg UefiCpupkg.uni: Add new pcds comments Eric Dong 2017-08-16 6:40 ` [Patch 0/2] Add comments for two new added Pcds Gao, Liming -- strict thread matches above, loose matches on Subject: below -- 2017-08-09 6:32 [Patch 0/2] Add comments for new Pcds Eric Dong 2017-08-09 6:32 ` [Patch 1/2] UefiCpuPkg: Add comments for PCDs definition Eric Dong 2017-08-09 23:08 ` Kinney, Michael D
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox