Commit Graph

716 Commits

Author SHA1 Message Date
Sean McGinn 82274c1567 Add SBL Resiliency Support to ADL-N
Signed-off-by: Sean McGinn <sean.mcginn@intel.com>
2022-08-23 14:50:23 -07:00
Sindhura Grandhi 9361ac2d57
[ADLP] Fix build issue (#1667)
Signed-off-by: Sindhura Grandhi <sindhura.grandhi@intel.com>

Signed-off-by: Sindhura Grandhi <sindhura.grandhi@intel.com>
2022-08-19 15:01:33 -07:00
Ong Kok Tong ba6837ffb6 [ADLPS] CRB PV release update
1. Update BoardID and PlatformID for CRB board
2. Direct return after read board id from smbus to avoid boardid clashing
3. Added ddi config for CRB board
4. Update FSPM UPD due to common value across all sku

Signed-off-by: Ong Kok Tong <kok.tong.ong@intel.com>
2022-08-19 12:01:51 -07:00
Sean McGinn 1e677e5a4d Update full FW update status structure on recovery
This change makes sure that, during each recovery,
the FW update status structure is cleared and
repopulated

Without this change, in the event that there is
a full recovery and then an interrupted recovery,
the interrupted recovery is unable to resume

Signed-off-by: Sean McGinn <sean.mcginn@intel.com>
2022-08-17 11:40:43 -07:00
Sean McGinn eeb05a8a5e Add SBL resiliency common code
This change adds SBL resiliency-related code
to common SG1A, SG1B, SG02, and FWU code

Signed-off-by: Sean McGinn <sean.mcginn@intel.com>
2022-08-17 11:40:43 -07:00
M Karuppasamy 5cea7fbbf3 GPIO shell command for ADL platform
This patch supports GPIO read and write through shell command.

Signed-off-by: M Karuppasamy <karuppasamy.m@intel.com>
Signed-off-by: Sachin Kamat <sachin.kamat@intel.com>
Signed-off-by: Akshatha Thekkade <akshatha.thekkade@intel.com>
2022-08-17 11:37:28 -07:00
koktong-ong 387f4a8aaa
[ADL] Clear RTC EN SCI to avoid interrupt storming (#1661)
Clear the RTC EN SCI flag to avoid interrupt storming
that cause system hang when using rtcwake method to perform
powre management test

Signed-off-by: Ong Kok Tong <kok.tong.ong@intel.com>

Signed-off-by: Ong Kok Tong <kok.tong.ong@intel.com>
2022-08-12 10:21:36 -07:00
Randy Lin a1117575ac [EHL] UPDs for Zephyr support
1. Expose PchPseEcliteEnabled
2. PchPseSpiCs1Enable is unconfigurable, fix it.

Signed-off-by: Randy Lin <randy.lin@intel.com>
2022-08-12 08:46:36 -07:00
Sindhura Grandhi 9537bda97d [ADLS] Update FSP/VBT/UCODE/platform version since MR2 is released
- FSP version - 0C.00.69.74
- Vbt version - 1077
- Microcode version - m_07_90672_00000023
- Minor version updated to '2' for MR2.

Signed-off-by: Sindhura Grandhi <sindhura.grandhi@intel.com>
2022-08-12 08:38:25 -07:00
Sindhura Grandhi bf9ab4299f [ADLS] Tcc related fixes
- Increase PlatformMemorySize to get rid of FSP error caused
during Tcc SRAM init.
- Sort the CPUs in ascending order for Tcc validation purpose.

Signed-off-by: Sindhura Grandhi <sindhura.grandhi@intel.com>
2022-08-08 13:34:22 -07:00
Bejean Mosher 5b451b6fca [RPL-P] RPL-P DDR5 RVP Board/Platform ID support.
Added support for RPL-P DDR5 RVP board ID from EC.

Signed-off-by: Bejean Mosher <bejean.mosher@intel.com>
2022-08-07 17:21:57 -07:00
Guo Dong 49e23bb324 [RPLP] Add RPL-P PR01 board support
Signed-off-by: Guo Dong <guo.dong@intel.com>
2022-08-05 14:01:10 -07:00
Guo Dong 7440dec946 [CFL] Increase payload size
Increase the payload size to fix the build failure.

Signed-off-by: Guo Dong <guo.dong@intel.com>
2022-08-02 07:42:55 -07:00
Guo Dong 77cbf823bf [TESTS] Use GPIO table from config data
Use the GPIO table from SBL config data instead of
the one from .h file. the .h file will keep there
a while just for reference.

Signed-off-by: Guo Dong <guo.dong@intel.com>
2022-08-01 21:39:13 -07:00
Guo Dong 58d265f553 [TESTS] payload switch GPIO
Use a on board switch (Pin B3) as the GPIO to switch
UEFI payload and OsLoader. So update its setting as
GPIO IN for this purpose.

Signed-off-by: Guo Dong <guo.dong@intel.com>
2022-08-01 21:39:13 -07:00
Guo Dong 90e917e62b Enhance GPIO convert tool for GPD group support
For PAD name (e.g., GPD12), current GpioDataConvert.py get the
pad number using pad_name[4:6]. It should be changed to pad_name[3:5].

Signed-off-by: Guo Dong <guo.dong@intel.com>
2022-08-01 21:38:49 -07:00
Ong Kok Tong a5b2581f41 [ADLPS] Remove PlatformNvs parameters
Current PlatformNvs parameters are causing the power management
(S3, S4 and S5) in Windows OS. Removing the Nvs parameters will fixed
the issues.

Signed-off-by: Ong Kok Tong <kok.tong.ong@intel.com>
2022-08-01 21:17:49 -07:00
Guo Dong 0c1092528a [ADL] Remove duplicated S3 code
Restore SMM registers was done in the PostPciEnumeration.
so remove the duplicated code in EndOfStages
and call ClearS3SaveRegion() in normal path to avoid
appending multiple restore records.

Signed-off-by: Guo Dong <guo.dong@intel.com>
2022-08-01 18:11:09 -07:00
Gavin Xue ac08bd1209 [EHL] Fix incorrect PSE DMA2 BAR in ACPI code
Signed-off-by: Gavin Xue <gavin.xue@intel.com>
2022-07-30 16:48:31 -07:00
Bejean Mosher 5fe393da46 [ADL] Fix for THC1 PEP constraints appearing when device is disabled.
FSP-S UPD format for THC port assignment was updated, but PEP logic
was using the old format, and causing the PEP constraint to always be
enabled. This issue didn't seem to be causing a problem, but resulted
in noncompliant low power idle constraints.

Signed-off-by: Bejean Mosher <bejean.mosher@intel.com>
2022-07-29 12:09:08 -07:00
Aakash Panwar 4e16fe4c6b Fix build issues due to increased payload and image size.
This Patch fix the build issues due to the increased payload and image size
in windows and linux environment.
- Fixed PAYLOAD size greater than padding size issue for CML.
- Fixed FWUPDATE size greater than padding size issue for EHL.
- Fixed FV image size issue for CMLV,TGL,EHL and ADLS.

Signed-off-by: Aakash Panwar <aakash.panwar@intel.com>
2022-07-29 11:13:30 -07:00
Sindhura Grandhi 676c1b93a1 [ADLP] Upstream Build/Stitch/Cfgdata
This patch will let ADLP project to build and stitch images from
open source.

TEST = Smoke-test to boot to Windows/Yocto

Signed-off-by: Sindhura Grandhi <sindhura.grandhi@intel.com>
2022-07-28 15:10:54 -07:00
Bejean Mosher 3fe4087e70 [ADL-P] Revert USB4 CM mode to FW CM only.
Previous setting of SW-first CM mode was causing a hang during S3/S4 entry. Likely this setting requires additional ACPI/driver support which is missing.

Signed-off-by: Bejean Mosher <bejean.mosher@intel.com>
2022-07-27 10:56:43 -07:00
Bejean Mosher 15d7abd016 [ADL-N/P/PS] Workaround for S4 resume when S0ix disabled.
Remove OS version check in PEPD _STA method. This is a change to the intelpep.sys ASL device (PEPD) for low power idle support. Previously, _STA would always return present/enabled for Win10 even if S0ix config flag was disabled. Changed version always returns status based on S0ix flag. Without this workaround, S4 resume was failing on ADL-N/P/PS.

Signed-off-by: Bejean Mosher <bejean.mosher@intel.com>
2022-07-27 10:55:05 -07:00
Guo Dong 69fb535cc5 [TESTS] revert the premem gpio change for S17 board
Premem GPIO table for S17 board caused boot hang,
so revert the change back.

Signed-off-by: Guo Dong <guo.dong@intel.com>
2022-07-23 00:34:44 -07:00
Guo Dong 4ce3649eb1 [TEST-S] Update GPIO for test boards
Use the GPIO table for the test boards.
This change would help fix PCIe device detection from PCIe slot.
Late would change post memory gpio table to SBL cfg data.

Signed-off-by: Guo Dong <guo.dong@intel.com>
2022-07-22 16:05:49 -07:00
Guo Dong 8763f1e5fa [TESTS] Fix PCIE device detection issue
The PCIE device could not be detected without this change.

Signed-off-by: Guo Dong <guo.dong@intel.com>
2022-07-22 16:05:49 -07:00
Vincent Chen 1de595d3e0 [EHL] Update StitchIfwi.py and StitchIfwiConfig.py
- skip the component replacemnt if the component is not located in SBL image
- print the skipped replacement components
- indicate failure through exit status for easily diagnosing problems
  when checking stitch config parameters
- add required flash image region 5=EC for new FIT (15.40.26.2632)
- remove 'sata' stitch option since it is no function

Signed-off-by: Vincent Chen <vincent.chen@intel.com>
2022-07-22 10:26:40 -07:00
Sindhura Grandhi 09d45b857c [ADLN] Gpio Cfg data from dlt file
- Process Gpio Cfg data from the dlt file instead of the hard-coded
  GPIO table.
- The table in the PostMem hdr file is only for reference.

Signed-off-by: Sindhura Grandhi <sindhura.grandhi@intel.com>
2022-07-22 10:06:11 -07:00
Stanley Chang 625abcb2bd [Tools] Enhance GpioDataConvert to support GPD
The patch adds support of "GPD" group when parsing a .h header file.
It also
  - adds supports for Pch-N,
  - fixes leading whitespaces in h file.

Test commands:

  # h to dlt
  $ python Platform/CommonBoardPkg/Tools/GpioDataConvert.py \
      -cf Platform/AlderlakeBoardPkg/Script/GpioDataConfig.py \
      -if example_adls.h -of dlt -p s \
      -o out_adls.dlt

  # h to yaml
  $ python Platform/CommonBoardPkg/Tools/GpioDataConvert.py \
      -cf Platform/AlderlakeBoardPkg/Script/GpioDataConfig.py \
      -if example_adls.h -of yaml -p s \
      -o out_adls.yaml

  # yaml to h
  $ python Platform/CommonBoardPkg/Tools/GpioDataConvert.py \
      -cf Platform/AlderlakeBoardPkg/Script/GpioDataConfig.py \
      -if out_adls.yaml -of h -p s \
      -o out_h_from_yaml.h

  # dlt to h
  $ python Platform/CommonBoardPkg/Tools/GpioDataConvert.py \
      -cf Platform/AlderlakeBoardPkg/Script/GpioDataConfig.py \
      -if out_adls.yaml -of h -p s \
      -o out_h_from_dlt.h
  # check: compare example_adls.h and out_h_from_dlt.h

  # yaml to txt
  $ python Platform/CommonBoardPkg/Tools/GpioDataConvert.py \
      -cf Platform/AlderlakeBoardPkg/Script/GpioDataConfig.py \
      -if out_adls.yaml -of txt -p s \
      -o out_txt_from_yaml.txt

  # dlt to txt
  $ python Platform/CommonBoardPkg/Tools/GpioDataConvert.py \
      -cf Platform/AlderlakeBoardPkg/Script/GpioDataConfig.py \
      -if out_adls.dlt -of txt -p s \
      -o out_txt_from_dlt.txt

Signed-off-by: Stanley Chang <stanley.chang@intel.com>
2022-07-20 08:29:07 -07:00
Stanley Chang f61bb6c116 FWU: support OEM key revocation together with BIOS/CSME update
The steps of OEM key revocation are:
  1. Replace OEM KM (signed with key2) by updating CSME
  2. Replace BIOS region (signed with key2)
  3. Reboot with new BIOS region (to make key1 inactive)
  4. Revoke key1

Before this patch, it requires 2 firmware updates and 2 capsules for
step 1~2 and step 4 respectively. The patch combines them into a single
update/capsule.

To implement the feature, the patch:
  1. Double max # of payloads to allow CSME/CSMD/BIOS/CMDI update
     in one capsule image.
  2. Prevent from failing update of a critical component.
     e.g., if step 1(CSME) fails, step 2(BIOS) should be skipped

Verified cases:

 Case 1: Capsule having CSMD/CSMD/BIOS/CMDI.
         Expectation: successful

    $ python BootloaderCorePkg/Tools/GenCapsuleFirmware.py \
      -p CSME FWUpdate.bin \
      -p CSMD CsmeUpdateDriver.efi \
      -p BIOS new_BiosRegion.bin \
      -p CMDI cmdi.txt \
      ...(skip)

 Case 2: Capsule having CSME/BIOS/CMDI but no CSMD.
         Expectation: no update

 Case 3: Inject fault flow (no partition switch after first flash),
         Capsule having CSME/CSMD/BIOS/CMDI.
         Expectation: no CMDI update

Verification: EHL CRB

Signed-off-by: Stanley Chang <stanley.chang@intel.com>
2022-07-19 15:31:23 -07:00
Vincent Chen 3112989fdc [EHL] Update FSP/VBT/UCODE/platform version since MR4 is released
- update FSP version to MR4 FSP (09.04.25.11)
- update VBT version to MR4 FSP (244)
- update microcode version to 16
- update EHL platform version to 1.4

Signed-off-by: Vincent Chen <vincent.chen@intel.com>
2022-07-19 15:02:55 -07:00
Gavin Xue f5e230ca7c [EHL] Fix Kernel DMA driver cannot be registered issue
EHL DMA controllers are hidden at PSF level in reference code,
DMA controllers are reported as ACPI devices if ownership is Host.
So should not check DMA PCI header for DSDT table patching.
Update the change follow EHL reference code.

Signed-off-by: Gavin Xue <gavin.xue@intel.com>
2022-07-15 14:56:35 -07:00
Aiman Rosli bd05d78232 [EHL] Enable WDT for TCC
When some settings from DSO caused system hang,
the WDT would cause the system reboot.
And in the next boot, SBL would use the default
setting by not apply the DSO values.

Verify on EHL CRB.

Signed-off-by: Aiman Rosli <muhammad.aiman.rosli@intel.com>
2022-07-15 14:52:56 -07:00
Randy Lin a5dffd1171 [TGL] Ignore TCC DSO tuning on FW update process
Verify on TGL-UP3 RVP.

Signed-off-by: Randy Lin <randy.lin@intel.com>
2022-07-14 14:40:54 -07:00
Kevin Tsai 7c584d8059 [ADLN] UPD config update
Aligned FSPS UPD settings with BIOS

Signed-off-by: Kevin Tsai <kevin.tsai@intel.com>
2022-07-13 16:42:36 -07:00
Ong Kok Tong c326806ca3 [ADLN] IT8659 Sio DTT porting
1. Ported IT8659 Sio (Super IO) and DTT (Dynamic Tuning Technology)
for ADL platform
2. Added CfgData to disable or enable the SIO feature
3. Fixed warning for Linux gcc bug -Wmissing-braces in SioChip.c

Signed-off-by: Ong Kok Tong <kok.tong.ong@intel.com>
2022-07-11 08:21:32 -07:00
Vincent Chen 350a4436a5 [TGL] Update FSP/VBT/UCODE/platform version since MR6 is released
- update FSP version to IoT FSP 5143_01_MR6 (0A.00.7B.31)
- update VBT version to IoT FSP 5143_01_MR6 (250)
- update TGLU microcode version to A4
- update TGL platform version to 1.6

Signed-off-by: Vincent Chen <vincent.chen@intel.com>
2022-07-06 17:49:02 -07:00
Sindhura Grandhi 453ee0f24e
[ADLS] Disable DAM by default (#1613)
Signed-off-by: Sindhura Grandhi <sindhura.grandhi@intel.com>
2022-07-01 16:25:20 -07:00
Randy Lin ec5b20288b [EHL] Enable Ubuntu boot support
verified on EHL CRB with ubuntu 20.04.

Signed-off-by: Randy Lin <randy.lin@intel.com>
2022-06-30 10:26:00 -07:00
Sindhura Grandhi f1b0dd123f [ADLN] TSN enabling
Signed-off-by: Sindhura Grandhi <sindhura.grandhi@intel.com>
2022-06-28 15:10:39 -07:00
Aiman Rosli 7132f14a1d [Common][EHL] Adding SMBIOS Type3
Updating SMBIOS Type3 on Common package and EHL package.

Signed-off-by: Aiman Rosli <muhammad.aiman.rosli@intel.com>
2022-06-27 10:47:05 -07:00
jinjhuli f63de36c45 [ADLP] Enable GrpIdx overwrite capability
Enable GrpIdx overwrite capability when using
Config Editor tool.

Signed-off-by: jinjhuli <jin.jhu.lim@intel.com>
2022-06-27 10:34:03 -07:00
Sindhura Grandhi 9dfc41788d [ADLN] Tcc enabling
- Enable Tcc code path for N series.
- Disable WDT lock UPD since its causing the WDT to expire
even when valid DSO is provided.
- Code clean-up.

Signed-off-by: Sindhura Grandhi <sindhura.grandhi@intel.com>
2022-06-22 15:54:51 -07:00
Randy Lin b61dbf962e [EHL] Exposes FiaLaneReversalEnable FSP-M config
Signed-off-by: Randy Lin <randy.lin@intel.com>
2022-06-22 13:58:03 -07:00
Sindhura Grandhi 78010efe63 [ADLS] Disable S0ix by default
When S0ix feature is enabled, some controllers are disabled
and ethernet/lan is one of them. Hence, disable by default so
that other controllers can be enabled by default.


Signed-off-by: Sindhura Grandhi <sindhura.grandhi@intel.com>
2022-06-22 10:31:19 -07:00
Sindhura Grandhi d5e5ee9ca9 [ADLN] Add ADLN specific info
- Add CPU SKU info.
- Add Interrupt config for N series.

Test = Tested to boot to OS.

Signed-off-by: Sindhura Grandhi <sindhura.grandhi@intel.com>
2022-06-09 10:38:34 -07:00
Sindhura Grandhi d96582c1fe [ADLPS] Updated GPIO table to match BIOS PV ER3 release.
- Process the GPIO table from dlt file instead
of the hard-coded table. The mGpioTablePostMemAdlPsDdr5Rvp
is only for reference purposes.


Signed-off-by: Sindhura Grandhi <sindhura.grandhi@intel.com>
2022-06-06 10:12:42 -07:00
Randy Lin b6c2ba1bac [EHL] Read SecCapability from Mbp Data HOB as priority
Found PSDS ACPI table reporting incorrect value
and fixing by referring the BIOS method to retrieve
right value. Also Enable Platform Security Discovery.

Verify on CRB platform.

Signed-off-by: Randy Lin <randy.lin@intel.com>
2022-06-01 16:44:33 -07:00
Stanley Chang 3fbafe01fe [TGL-H] Fix Gpio group pin to pad
The patch fixes GPIO group pin to pad issue, caused by GPPC_A0
starts from the bit offset 8 instead of 0 in all registers of
mPchHGpioGroupInfo[0].

The patch also updates the GPIO settings of GPP-A group for TGL-H RVP.

Verified: TGL-H RVP

Signed-off-by: Stanley Chang <stanley.chang@intel.com>
2022-06-01 16:44:18 -07:00
Ong Kok Tong 0dc5b1da43 [ADLN] Read BoardID from SMBus
Ported the SMBus BoardID reading for ADLN
Added CfgData for BoardID get method (eg. SmBus, EC)

Signed-off-by: Ong Kok Tong <kok.tong.ong@intel.com>
2022-06-01 14:02:07 -07:00
jinjhuli be468405af [ADLPS] Add break statement
Add break statement in AcpiPlatform c file
for ADL_PS case.

Signed-off-by: jinjhuli <jin.jhu.lim@intel.com>
2022-05-27 09:05:16 -07:00
jinjhuli 3cfddd995e [ADLPS] Disable SCI for hibernate issue
SCI storm is happening for GPIO pins D13 and E00.
Disable them as not needed.

Signed-off-by: jinjhuli <jin.jhu.lim@intel.com>
2022-05-25 20:26:44 -07:00
Kalp Parikh f3941ce7b4 Revert "[ADLPS] Process GPIO from Cfg Data"
This reverts commit 9e2bd6ea8b.
2022-05-25 19:46:04 -07:00
Sindhura Grandhi 9e2bd6ea8b [ADLPS] Process GPIO from Cfg Data
- Updated GPIO table to match BIOS PV ER3 release.
- Disable SCI for D13 and E00.
- Process the GPIO table from dlt file instead
of the hard-coded table. The mGpioTablePostMemAdlPsDdr5Rvp
is only for reference purposes.
- Move DEBUG CODE END to later part of the GPIO function in
order to add GPIO prints when required.

Signed-off-by: Sindhura Grandhi <sindhura.grandhi@intel.com>
2022-05-25 19:39:42 -07:00
jinjhuli 27b3b75338 [ADLPS] FSP update for PV release
FSP UPDs update for PV milestone release

Signed-off-by: jinjhuli <jin.jhu.lim@intel.com>
2022-05-25 09:45:28 -07:00
Sindhura Grandhi e44fc9cb7b
[ADL] Fix KW issue (#1582)
This patch fixes the KW issue that is reported due to NULL
pointer deference. Moved up the code where CfgData checks for NULL.

Signed-off-by: Sindhura Grandhi <sindhura.grandhi@intel.com>
2022-05-23 10:47:29 -07:00
Raghava Gudla 38906c73bb
[ADL] Update BDF for UFS device (#1581)
This patch fixed BDF for UFS device, bus number and function
number are improperly ported and this patch fixed the issue.

Signed-off-by: Raghava Gudla <raghava.gudla@intel.com>
2022-05-23 10:22:02 -07:00
Raghava Gudla f8ffd17c39
[ADLP] Enable UFS configuration (#1580)
This patch enabled UFS configuration on ADLP platform

Signed-off-by: Raghava Gudla <raghava.gudla@intel.com>
2022-05-20 17:44:54 -07:00
Ong Kok Tong 5d792b35f8 [ADLN] FSP update for pre-alpha release
FSP update for pre-alpha milestone release

Signed-off-by: Ong Kok Tong <kok.tong.ong@intel.com>
2022-05-20 10:12:13 -07:00
Sindhura Grandhi f1844b05ba [ADLS] Resolve reboot issue on DDR4 board
This patch fixes the hang seen during a reboot cmd on ADLS DDR4 board.
Setting the DmiMaxLinkSpeed to Auto mode.

Signed-off-by: Sindhura Grandhi <sindhura.grandhi@intel.com>
2022-05-20 10:10:34 -07:00
Sindhura Grandhi 0a332af102
[ADL] Fix HsPhyInit failure (#1576)
HsPhy feature is only applicable for ADLS and not for others.
Adding a condition to apply only for it.

Signed-off-by: Sindhura Grandhi <sindhura.grandhi@intel.com>
2022-05-18 11:00:51 -07:00
jinjhuli 79eac5d32d
[ADLPS] Enable S0ix feature (#1574)
This patch enable S0ix feature in ADLPS

1. Disabled PCH LAN.
2. Added ADLPS FSPS UPD update.
3. Added ADLPS NVS value update.
4. Added ADLPS CPU SKU Device ID.

Verified: ADL-PS RVP

Signed-off-by: jinjhuli <jin.jhu.lim@intel.com>
2022-05-18 10:22:26 -07:00
Raghava Gudla 0e6cda520d Add support for getting csme boot time perf data
This patch added support to get csme boot time performance
data and display it in perf command and also before booting
to linux.

Introduced a board config option BOOT_PERFORMANCE_MASK to control
PcdBootPerformanceMask, BIT 2 now enables printing CSME boot
performance data.

Signed-off-by: Raghava Gudla <raghava.gudla@intel.com>
2022-05-11 09:02:52 -07:00
Randy Lin cae174c307 [EHL] Fix ACPI error
Sync from EHL BIOS.

Error: ACPI BIOS Error (bug): AE_AML_BUFFER_LIMIT, Field [IOF2] at
bit offset/length 712/16 exceeds size of target Buffer (664 bits)

Signed-off-by: Randy Lin <randy.lin@intel.com>
2022-05-11 08:56:16 -07:00
Sindhura Grandhi 4618fac1c4 [ADLP] Update FSP ingredients
Update FSP UPDs and VBT changes as part of the ADLP MR release.

TEST=Tested to boot to OS.

Signed-off-by: Sindhura Grandhi <sindhura.grandhi@intel.com>
2022-05-10 18:48:45 -07:00
Sean McGinn 4808bd4481 Support ACM FW Capsule Update
*Adds code to support the updating
of ACM FW via capsule

*Adds code that disallows for the
roll back of ACM FW

Signed-off-by: Sean McGinn <sean.mcginn@intel.com>
2022-05-05 10:18:26 -07:00
Vincent Chen 7400d6f0b3 fix the wrong sblopen_dir value in StitchLoader.py and StitchIfwi.py
This patch can reduce the chance of setting SBL_SOURCE when the
SBL root directory is not named as "SblOpen" or when the scripts
are run from the path other than the SBL root directory. Also note
that os.path.abspath() returns the absolute path relative to the
current working directory instead of the real path of __file__.
So in StitchIfwi.py, sblopen_dir was incorrect since the working
directory had been changed before calling stitch().

Signed-off-by: Vincent Chen <vincent.chen@intel.com>
2022-05-05 10:09:21 -07:00
Sindhura Grandhi 10a9e53b3b
[ADLN] Add GPIO configuration from Cfg Data (#1566)
Add GPP_T as part of the base cfg in order to use for
other ADL flavors like ADL PS.

Signed-off-by: Sindhura Grandhi <sindhura.grandhi@intel.com>
2022-05-02 16:45:48 -07:00
Subash Lakkimsetti bf6d59e82a
[ADL] Configure MTRR to enable full flash region cache (#1565)
FSPT doesn't allow to enable full flash code cache.
Bootloader configures MTRR in non BTG cases to avoid
performance penalty.

This fixes the ADL boot from BP1 partition.

Signed-off-by: Subash Lakkimsetti <subash.lakkimsetti@intel.com>
2022-04-29 13:13:36 -07:00
Randy Lin eac83f5ca8 [EHL] Refine the PSE FW stitch logic
PSE is enabled by default.
During SBL building, it will check the existance of PSE FW binary.
If it is missing in binaries folder, the PSEF won't be appended in
container list and casue StitchIFWI script fail if it try to update.

Signed-off-by: Randy Lin <randy.lin@intel.com>
2022-04-29 08:21:45 -07:00
Randy Lin a3eeef4e31 [EHL] Update FSP version since MR3 is released
Also set the CpuTempSensorReadEnable = 1
It was renamed from PchCpuTempSensorEnable
and removed in commit 44faa431c9

Signed-off-by: Randy Lin <randy.lin@intel.com>
2022-04-28 10:40:47 -07:00
Guo Dong 4a734902f1 [ADL] Adjust debug message level
Low debug message level to avoid too many
error message in the release build.

Signed-off-by: Guo Dong <guo.dong@intel.com>
2022-04-26 07:49:50 -07:00
Guo Dong 388640654c [ADL] Add a new CPU ID support
Add a new CPU ID in the list.
And update debug message level to avoid
error message in the release build.

Signed-off-by: Guo Dong <guo.dong@intel.com>
2022-04-26 07:49:50 -07:00
Guo Dong fde2520f5c [ADL] expose Lp5BankMode FSP UPD in SBL configuration data
The default FSP UPD value for Lp5BankMode doesn't work
for all the platforms. It would help override it using
SBL configuration data if it is exposed.

Signed-off-by: Guo Dong <guo.dong@intel.com>
2022-04-26 07:49:50 -07:00
Raghava Gudla 7aa9cf6e47
[ADLN] Changes required for ADLN FSP Sync (#1558)
This patch added changes required for ADLN FSP Sync and
also did the following

1) Added SA config for DDR5 CRB
2) Initialized VBT to enable 2 HDMI and a DP port
3) Moved FSPM config to delta file

Signed-off-by: Raghava Gudla <raghava.gudla@intel.com>
2022-04-25 13:03:34 -07:00
Maurice Ma 93317d89fc Revert "[UPX] Disable malfunctioned USB2 port"
This reverts commit 1caacefeb5.

The USB port that does not respond to USB bus enumeration is port 8 on
the newer UPX board. The old UPX board might have different behavior.
The original commit was valid on old UPX board only, and this patch
reverted it. Confirmed the USB error message disappeared on the new
UPX board after the reverting.

Signed-off-by: Maurice Ma <mauricemx.ma@gmail.com>
2022-04-25 08:58:41 -07:00
Randy Lin 147cea8839 [EHL] Fix IBECC error injection
Only enabled IehMode when IBECC error injection is disabled
Iehmode will cause failure in IBECC error injection test

Signed-off-by: Ong Kok Tong <kok.tong.ong@intel.com>
2022-04-21 12:15:38 -07:00
Sindhura Grandhi 5266d3a502 [ADLS] Fix build error
Match the FSP include path from Board Config to that of
FspBin inf file so it fixes the build issue.

Signed-off-by: Sindhura Grandhi <sindhura.grandhi@intel.com>
2022-04-15 09:23:17 -07:00
Sindhura Grandhi 6215a63638 [ADLS] Update project to be able to build/stitch from opensource
Signed-off-by: Sindhura Grandhi <sindhura.grandhi@intel.com>
2022-04-14 13:55:45 -07:00
Guo Dong c2e2dfa6ac Add BootToShell configuration item
By default OsLoader payload shell is only available in debug build.
In some case customer also wants to have shell in release build.
So add a BootToShell configuration item to enable shell in release build.
By default BootToShell is set to 0. When it is set to 1 the shell behavior
would be same in release and debug build.

NOTE: user could add this line in platform dlt file to set BootToShell.
GEN_CFG_DATA.BootToShell  |1

Signed-off-by: Guo Dong <guo.dong@intel.com>
2022-04-13 14:07:43 -07:00
Guo Dong 37befc027c [ADL-TEST] Program TSN GPIO
Add TEST-S platform to program the TSN GPIO table.

Signed-off-by: Guo Dong <guo.dong@intel.com>
2022-04-11 16:35:08 -07:00
Sindhura Grandhi b6f5c998e7 [ADLN] Fix build issue
WRDS is not defined for ADLN. Hence, add a condition so that
it is skipped for ADLN.

Signed-off-by: Sindhura Grandhi <sindhura.grandhi@intel.com>
2022-04-08 15:45:33 -07:00
Sindhura Grandhi 0209d9b3ea [ADL] Remove Cpu stepping condition for HT
The CPU stepping condition is not needed anymore for ADLS.
Removing it for now.

Signed-off-by: Sindhura Grandhi <sindhura.grandhi@intel.com>
2022-04-07 11:20:09 -07:00
Sindhura Grandhi eb23e4c4ed [ADL] Expose Timed GPIO to OS
This patch assigns Timed GPIO Cfg Data to the NVS variables
in order for the OS to load this driver.

Signed-off-by: Sindhura Grandhi <sindhura.grandhi@intel.com>
2022-04-05 15:40:49 -07:00
Sindhura Grandhi 17ca1074a8 [ADL] Add version info
This patch adds the missing version info for ADL.

Signed-off-by: Sindhura Grandhi <sindhura.grandhi@intel.com>
2022-04-04 13:13:54 -07:00
Guo Dong 977450bae8
Add platform name (#1540)
* Generate platform build name definition

Same code could be shared by different platforms. At same time,
some platform might need do minor change to the shared code.
In order to support this case, this patch updated the build tool
to generate a macro definition for current build platform name
in a header file. so the shared code could have platform specific
code change with this macro definition.
e.g. add "#define #define PLATFORM_ADLS 1" for ADLS.

Signed-off-by: Guo Dong <guo.dong@intel.com>

* [ADLS] update

FspsUpdUpdateLib could be shared by different platform,
use ADLS macro definition instead of PcdAdlLpSupport for
ADLS specific change.

Signed-off-by: Guo Dong <guo.dong@intel.com>
2022-04-01 11:55:11 -07:00
Vincent Chen cee9341f6b [CML] increase the max memory map entry number
SBL uses PcdMemoryMapEntryNumber to control the max entry
number of memory map info HOB. In some platforms, CML
encountered "Memory map failure" due to the actual entry
number exceeding it. So increase the max to accommodate
the case.

Signed-off-by: Vincent Chen <vincent.chen@intel.com>
2022-04-01 11:48:35 -07:00
Vincent Chen 8b35904cb1 [CML] Update FSP, UCODE and platform version since MR1 is released
- FSP:
  * 09.03.7B.20 for CML-S
  * 09.01.7B.20 for CML-V
  * bpmgen2_params: set VTD_BAR to 0xFED91000
- Microcode:
  * m22A0653_000000EA.mcb  # G1-Step
  * m22A0655_000000EC.mcb  # Q0-Step
- update CML platform version to 1.1

Signed-off-by: Vincent Chen <vincent.chen@intel.com>
2022-04-01 11:46:47 -07:00
Vincent Chen 6fd1141c75 [TGL] Support individual TSN ports Enable/Disable
New FSP (from 0A.00.66.12) supports switching TSN GbE ports
Enable/Disable individually. SBL requires CfgData change
accordingly to avoid build errors.

Signed-off-by: Vincent Chen <vincent.chen@intel.com>
2022-03-30 09:58:35 -07:00
Vincent Chen 87d7ebfdc8 [TGL] Update FSP and platform version since MR5 is released
- update FSP version to IoT FSP 4391_03 (0A.00.66.13)
- update TGL platform version to 1.5

Signed-off-by: Vincent Chen <vincent.chen@intel.com>
2022-03-30 09:58:14 -07:00
Raghava Gudla e8f96f53a6
[ADLS] Fix build issues (#1534)
This patch fixed build issues caused by adding L2QosEnumerationEn UPD
which is not present on other ADL platforms.

Signed-off-by: Raghava Gudla <raghava.gudla@intel.com>
2022-03-29 16:45:16 -07:00
Guo Dong 23076e447a
[RPLS] Update big core number default value (#1533)
The default big core number was set to 8, it has to be overridden if
the CPU number is not 8. Had better set to 0xFF to all active big cores.
Also it mentioned the default value is 0xFF in the help message.

Signed-off-by: Guo Dong <guo.dong@intel.com>
2022-03-29 16:28:11 -07:00
Raghava Gudla 55735b5727
[ADLS] Update fspm upds using config data (#1532)
This patch updated some more FSPM upd's using
config data.

Signed-off-by: Raghava Gudla <raghava.gudla@intel.com>
2022-03-29 13:40:01 -07:00
Sindhura Grandhi 116fe8fb62
[ADLS] Tcc updates for MR1 release (#1531)
Signed-off-by: Sindhura Grandhi <sindhura.grandhi@intel.com>
2022-03-29 12:06:33 -07:00
Raghava Gudla d1f9bb461d
[ADLS] Update FSPM upds to latest BIOS (#1530)
This patch updated FSPM UPD to latest BIOS release

Signed-off-by: Raghava Gudla <raghava.gudla@intel.com>
2022-03-29 09:01:49 -07:00
Raghava Gudla 1bfe28a366
[ADLS] Sync UPD to latest BIOS release (#1529)
This patch updated UPD to latest BIOS release

Signed-off-by: Raghava Gudla <raghava.gudla@intel.com>
2022-03-25 16:33:01 -07:00
Sindhura Grandhi d99e5f724a [ADLN] Add TSN support
Unlike ADLS, TSN link speed will be coming from the Cfg data.
New TSN GPIO table needed for ADLN board.

Signed-off-by: Sindhura Grandhi <sindhura.grandhi@intel.com>
2022-03-25 10:33:51 -07:00
Guo Dong eb91954c66 [ADL] Add a new platform
Add a new SO DDR5 platform ID 0x31.

Signed-off-by: Guo Dong <guo.dong@intel.com>
2022-03-23 14:27:51 -07:00
Stanley Chang 7e6c2dee2f [TGL] Restore AUTO payload-switching behavior
Previous commit fe6cf3272 unexpectedly changed the AUTO payload-switching
behavior. This patch restores the behavior to the original design.

Verified: TGL-UP3 RVP

Signed-off-by: Stanley Chang <stanley.chang@intel.com>
2022-03-22 22:13:37 -07:00