From: "Nate DeSimone" <nathaniel.l.desimone@intel.com>
To: "devel@edk2.groups.io" <devel@edk2.groups.io>,
"Chiu, Chasel" <chasel.chiu@intel.com>
Cc: "Ma, Maurice" <maurice.ma@intel.com>, "Zeng, Star" <star.zeng@intel.com>
Subject: Re: [edk2-devel] [PATCH] IntelFsp2Pkg: Add FSP*_ARCH_UPD.
Date: Fri, 5 Jun 2020 01:17:01 +0000 [thread overview]
Message-ID: <MWHPR1101MB2160BA77E8CE58549C00A56ACD860@MWHPR1101MB2160.namprd11.prod.outlook.com> (raw)
In-Reply-To: <20200604074322.17336-1-chasel.chiu@intel.com>
Hi Chasel,
Feedback inline below.
Thanks,
Nate
> -----Original Message-----
> From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Chiu,
> Chasel
> Sent: Thursday, June 4, 2020 12:43 AM
> To: devel@edk2.groups.io
> Cc: Ma, Maurice <maurice.ma@intel.com>; Desimone, Nathaniel L
> <nathaniel.l.desimone@intel.com>; Zeng, Star <star.zeng@intel.com>
> Subject: [edk2-devel] [PATCH] IntelFsp2Pkg: Add FSP*_ARCH_UPD.
>
> REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2781
>
> Introduce FSPT_ARCH_UPD and FSPS_ARCH_UPD to support debug events
> and multi-phase silicon initialization.
>
> Cc: Maurice Ma <maurice.ma@intel.com>
> Cc: Nate DeSimone <nathaniel.l.desimone@intel.com>
> Cc: Star Zeng <star.zeng@intel.com>
> Signed-off-by: Chasel Chiu <chasel.chiu@intel.com>
> ---
> IntelFsp2Pkg/Include/FspEas/FspApi.h | 55
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 55 insertions(+)
>
> diff --git a/IntelFsp2Pkg/Include/FspEas/FspApi.h
> b/IntelFsp2Pkg/Include/FspEas/FspApi.h
> index ed40f9538c..88c5b49e61 100644
> --- a/IntelFsp2Pkg/Include/FspEas/FspApi.h
> +++ b/IntelFsp2Pkg/Include/FspEas/FspApi.h
> @@ -106,6 +106,27 @@ typedef struct {
> } FSP_UPD_HEADER;
>
> ///
> +/// FSPT_ARCH_UPD Configuration.
> +///
> +typedef struct {
> + ///
> + /// Revision Revision of the structure is 1 for this version of the
> specification.
> + ///
> + UINT8 Revision;
> + UINT8 Reserved[3];
> + ///
> + /// Length Length of the structure in bytes. The current value for this field
> is 32.
> + ///
> + UINT32 Length;
> + ///
> + /// FspDebugHandler Optional debug handler for the bootloader to
> +receive debug messages
> + /// occurring during FSP execution.
> + ///
> + FSP_DEBUG_HANDLER FspDebugHandler;
> + UINT8 Reserved1[20];
> +} FSPT_ARCH_UPD;
> +
> +///
> /// FSPM_ARCH_UPD Configuration.
> ///
> typedef struct {
> @@ -146,6 +167,32 @@ typedef struct {
> UINT8 Reserved1[4];
> } FSPM_ARCH_UPD;
>
> +typedef struct {
> + ///
> + /// Revision Revision of the structure is 1 for this version of the
> specification.
> + ///
> + UINT8 Revision;
> + UINT8 Reserved[3];
> + ///
> + /// Length Length of the structure in bytes. The current value for this field
> is 32.
> + ///
> + UINT32 Length;
> + ///
> + /// FspEventHandler Optional event handler for the bootloader to be
> +informed of events
> + /// occurring during FSP execution.
> + ///
> + FSP_EVENT_HANDLER FspEventHandler;
> + ///
> + /// A FSP binary may optionally implement multi-phase silicon
> +initialization,
> + /// This is only supported if the FspMultiPhaseSiInitEntryOffset
> +field in FSP_INFO_HEADER
> + /// is non-zero.
> + /// To enable multi-phase silicon initialization, the bootloader must
> +set
> + /// EnableMultiPhaseSiliconInit to a non-zero value.
> + ///
> + UINT8 EnableMultiPhaseSiliconInit;
> + UINT8 Reserved1[19];
> +} FSPS_ARCH_UPD;
> +
> ///
> /// FSPT_UPD_COMMON Configuration.
> ///
> @@ -154,6 +201,10 @@ typedef struct {
> /// FSP_UPD_HEADER Configuration.
> ///
> FSP_UPD_HEADER FspUpdHeader;
> + ///
> + /// FSPT_ARCH_UPD Configuration.
> + ///
> + FSPT_ARCH_UPD FsptArchUpd;
We might want to put an #if here. I think some people may want to build an FSP that only supports 2.0 or 2.1 with a newer version of EDK2. Maybe we need a new FixedAtBuildPcd for choosing whether to include FSPS/T_ARCH_UPD or not.
> } FSPT_UPD_COMMON;
>
> ///
> @@ -178,6 +229,10 @@ typedef struct {
> /// FSP_UPD_HEADER Configuration.
> ///
> FSP_UPD_HEADER FspUpdHeader;
> + ///
> + /// FSPS_ARCH_UPD Configuration.
> + ///
> + FSPS_ARCH_UPD FspsArchUpd;
We might want to put an #if here. I think some people may want to build an FSP that only supports 2.0 or 2.1 with a newer version of EDK2. Maybe we need a new FixedAtBuildPcd for choosing whether to include FSPS/T_ARCH_UPD or not.
> } FSPS_UPD_COMMON;
>
> ///
> --
> 2.13.3.windows.1
>
>
>
prev parent reply other threads:[~2020-06-05 1:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-04 7:43 [PATCH] IntelFsp2Pkg: Add FSP*_ARCH_UPD Chiu, Chasel
2020-06-05 1:17 ` Nate DeSimone [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=MWHPR1101MB2160BA77E8CE58549C00A56ACD860@MWHPR1101MB2160.namprd11.prod.outlook.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox