Commit Graph

716 Commits

Author SHA1 Message Date
Vincent Chen 2e413a6843 [ADLP] Update FSP/UCODE/platform version for MR2 release
- update FSP version to IoT ADL-P MR2 (0C.01.73.10)
- update Microcode version to 423
- update platform version to 1.2

Signed-off-by: Vincent Chen <vincent.chen@intel.com>
2022-11-21 14:00:32 -07:00
bejeanmo 82d0a283c9
feat: [ADL/RPL] Add core changes to allow for platform CrashLog support. (#1760)
- Added ADL BERT table template
- Added CrashLogLib calls from ADL board init lib  at PostMemInit and
    PlatformUpdateAcpiTable
- Added CrashLogLib header and Null Lib
- Added header file for Common Platform Error Record definitions.

Signed-off-by: Bejean Mosher <bejean.mosher@intel.com>

Signed-off-by: Bejean Mosher <bejean.mosher@intel.com>
2022-11-21 12:16:48 -05:00
Guo Dong 66a8d7d141
[ADL] Update SMBIOS strings (#1757)
Code are shared for AlderLake and RaptorLake.
Just update the SMBIOS strings to reflect it.

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

Signed-off-by: Guo Dong <guo.dong@intel.com>
2022-11-16 16:18:08 -05:00
Bejean Mosher 631279c61f feat: [RPL-P] Add support for enabling FSP FuSa features.
FSP UPD FuSa toggles will be set based on new config data fields where
applicable or to predefined values when called for by the FuSa spec.
This requires setting PcdFusaSupport at build time in case platform FSP
doesn't support FuSa.

Signed-off-by: Bejean Mosher <bejean.mosher@intel.com>
2022-11-16 14:11:40 -07:00
cshur 8a900cb414 Revert "ICXD: SGX: Added SGX launch control to SBL."
This reverts commit 9fe47090c5.
2022-11-14 10:13:01 -07:00
Adithya Baglody 9fe47090c5 ICXD: SGX: Added SGX launch control to SBL.
Added SgxLeWr and the hashes as configurable parameters in
sgxconfig.yaml.

Signed-off-by: Adithya Baglody <adithya.nagaraj.baglody@intel.com>
2022-11-14 08:35:22 -07:00
Stanley Chang b6f150c0ea [ExtLib] fix invalid memory access to support large EXT fs (#1739)
This patch fixes an invalid memory access issue caused by
the fs->Ext2FsGDSize is smaller than the size of EXT2GD.

The EXT2GD is a 64-byte structure, but fs->Ext2FsGDSize is not always 32.

Before this patch, Ext2fsOpen() allocates a smaller memory than expected:
  i.e., Ext2FsGrpDes = AllocatePool (Ext2FsGDSize * Ext2FsNumCylinder);
When ReadGDBlock() loads data (E2FS_CGLOAD) into fs->Ext2FsGrpDes,
it possibly accesses mem out of the allocated Ext2FsGrpDes space.

This patch loads each element into fs->Ext2FsGrpDes.

This patch also
1. prints informative messages when OS Loader fails to load Linux files.
2. increase EHL's PLD_HEAP_SIZE (since the size of initrd in Ubuntu LiveCD
   is over 130MB)

Test method:
1. create a huge EXT FS (says, at least 36GB)
2. In the fs, place the following file/dir:
    a: non-empty file
    b: dir
    b/c: non-empty file
3. boot with SBL OS Loader and enter Shell.
4. execute "fs init <...skip...>" to init the fs
5. execute "fs ls"
6. execute "fs ls b/c"
7. execute "fs load a"
8. execute "fs load b/c"

Verify:
1. 10MB/10GB/100GB/200GB EXT2/EXT3/EXT4 FS
2. EHL CRB

Signed-off-by: Stanley Chang <stanley.chang@intel.com>
2022-11-14 08:33:16 -07:00
Kalp Parikh c68f61707f [ADL/RPL] Update default boot options
Change boot flag to 0 to enable booting
yocto/ubuntu

TEST:Boot to yocto on ADL

Signed-off-by: Kalp Parikh <kalp.parikh@intel.com>
2022-11-09 13:54:13 -07:00
cshur 91f39ba742 Revert "ICXD: SGX: Added SGX launch control to SBL."
This reverts commit a7adcc2d5e.
2022-11-07 19:42:50 -07:00
Gavin Xue 2edbfbe447 [EHL] Add SD device to platform device list
Signed-off-by: Gavin Xue <gavin.xue@intel.com>
2022-11-04 15:02:41 -07:00
Adithya Baglody a7adcc2d5e ICXD: SGX: Added SGX launch control to SBL.
Added SgxLeWr and the hashes as configurable parameters in
sgxconfig.yaml.

Signed-off-by: Adithya Baglody <adithya.nagaraj.baglody@intel.com>
2022-11-03 15:19:03 -07:00
tsaikevin d8295bc0dd
[ADLN] Verify Table ID when updating Rtd3 SSDT (#1741)
Rtd3 SSDT have CRB and RVP versions. Verify Table ID to match Platfrom SKU
when updating SSDT table.

Signed-off-by: Kevin Tsai <kevin.tsai@intel.com>

Signed-off-by: Kevin Tsai <kevin.tsai@intel.com>
2022-11-03 10:14:34 -04:00
Bejean Mosher 31fe742339 [RPL/ADL] L2 CAT not getting enabled when TCC enabled.
FspsUpdUpdateLIb was not enabling FspsUpd->FspsConfig.L2QosEnumerationEn
based on PLATFORM_ADLS, which is no longer used. L2QosEnumerationEn is
present in ADL-P,S,PS, and RPL-S,P FSP UPD, just not ADL-N, so need to
prevent compiling this code for that platform only.

Signed-off-by: Bejean Mosher <bejean.mosher@intel.com>
2022-11-02 16:37:46 -07:00
Lennert Buytenhek 5bb0cd48bb
[ICXD] Fix stitching process by getting rid of SblOpen remnants (#1737)
Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>

Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>
2022-11-02 14:05:54 -07:00
ldevathu 3eb00df31f [EHL] support multi VBT
Currently, Slim Bootloader support for multiple VBT files doesn't work on EHL.
Support for multiple VBT files, which works on other platform, does not work
correctly for EHL. However, this change can fix it locally by adding the support
from another platform into the EHL support once integrated into the public SBL

Signed-off-by: ldevathu <linggeis.daran.devathurai@intel.com>
2022-10-20 08:01:44 -07:00
Bruno Achauer aac41f89ea [QEMU] Allow building with the debug FSP
Fix two errors that prevent building QEMU SBL with the debug FSP on Linux:
- 0001-Build-QEMU-FSP-2.0-binaries.patch adds a variable "RegMask8" to
  FspmInitEntryPoint() that is written but not read; GCC treats this as
  an error;
- the resulting STAGE2 binary is larger than the 0x18000 bytes allocated
  for it.

Signed-off-by: Bruno Achauer <bruno.achauer@intel.com>
2022-10-20 07:49:21 -07:00
Bejean Mosher bac196577b fix: [RPL-P] Combined ADL-P and RPL-P RVP board IDs so either can boot.
RPL-P and ADL-P RVPs are essentially identical except for BoardID FRU.
Both need to work with SBL with RPL-P Silicon. To avoid duplicating
config data, this change will treat both as the same board.

Signed-off-by: Bejean Mosher <bejean.mosher@intel.com>
2022-10-19 12:47:10 -07:00
Guo Dong b4ce187026
[ADL] enable TCO timer by default (#1727)
TCO timer could be enabled regardless resiliency feature.
So just remove the resiliency conditional.

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

Signed-off-by: Guo Dong <guo.dong@intel.com>
2022-10-19 12:31:04 -04:00
Sean McGinn 38a3c2e799 Consider Simultaneous SG02 Corruptions in BP0 and BP1 for Resiliency
Before this change, whenever SG02 is corrupted
in both BP0 and BP1, SBL will continuously loop
trying to recover BP0 via BP1 and vice versa

This change makes it so that, if a failure is
detected on a recovery flow, the CPU halts

Signed-off-by: Sean McGinn <sean.mcginn@intel.com>
2022-10-18 14:49:32 -07:00
cshur 0372e199d2
[ICXD] Move Tcc binaries to Utilities (#1726)
Update Script files to move tcc binaries.

Signed-off-by: cshur <cs.hur@intel.com>

Signed-off-by: cshur <cs.hur@intel.com>
2022-10-18 13:29:28 -07:00
Guo Dong e81a4872a9 [RPL] Add a new RPL CPU support
Adding RAPTORLAKE 2 DT HALO support

Signed-off-by: Guo Dong <guo.dong@intel.com>
2022-10-17 14:13:02 -07:00
Sean McGinn f7c6cc599e Create OS loader shell tool for SBL component corruption
Create a tool that corrupts SBL components so that
the SBL resiliency feature can more easily be tested
and demonstrated

Signed-off-by: Sean McGinn <sean.mcginn@intel.com>
2022-10-17 11:59:04 -07:00
Vincent Chen 19f84ffea2 [EHL] Update FSP/UCODE/platform version since MR5 is released
- update FSP version to MR5 FSP (09.04.30.51)
- update microcode version to 17
- update platform version to 1.5

Signed-off-by: Vincent Chen <vincent.chen@intel.com>
2022-10-17 11:49:34 -07:00
Kalp Parikh 4aa2ac2915 feat: [ADLPS] FSP update for pre-MR1 release
FSP update for pre MR1 release

Signed-off-by: Kalp Parikh <kalp.parikh@intel.com>
2022-10-17 11:46:43 -07:00
cshur 94ab839eab [ICXD] Upstream ICX-D LCC/HCC after PV
Tested to boot Yocto and Windows.

Signed-off-by: cshur <cs.hur@intel.com>
2022-10-12 14:45:35 -07:00
bejeanmo 15f365d774
fix: [ADL] TCC was never getting enabled via the board config option. (#1715)
PcdTccEnabled was declared as a FeaturePcd which evaluates to a code symbol
and can't be used in a #if. From the preprocessor perspective it is always
undefined. Changed this pcd to a FixedPcd instead.

Signed-off-by: Bejean Mosher <bejean.mosher@intel.com>

Signed-off-by: Bejean Mosher <bejean.mosher@intel.com>
2022-10-10 16:42:22 -04:00
Karuppa-samy 107fabbebd
[ADL] GPIO shell command Klocwork issue fix (#1693)
This patch fixes initialization issue identified
by Klocwork in function GpioPadcalc.

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>

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-10-07 12:34:22 -04:00
stanley 1d9dc54502
[EHL] Enable SIO UART in COM mode (#1706)
The patch fixes SIO UART in COM mode by providing Acpi Gns
correct values.

Test method: grep 16550A /proc/tty/driver/serial
  If a SIO UART run in COM mode, its MMIO should be in
  FE020000 ~ FE035FFF (EHL serial IO in ACPI mode).

Verfiied: EHL CRB

Signed-off-by: Stanley Chang <stanley.chang@intel.com>

Signed-off-by: Stanley Chang <stanley.chang@intel.com>
2022-10-07 12:32:24 -04:00
tsaikevin 064caf9156
[ADLPS] Resolve CATERR issue from Windows shutdown (#1709)
Change USB4 CM Mode to 0. This value is consumed by FSP and UEFI BIOS but not by SBL.
Different setting causes issue with TBT device in Windows which might result in CATERR.

Tested to boot Windows and Yocto.

Signed-off-by: Kevin Tsai <kevin.tsai@intel.com>

Signed-off-by: Kevin Tsai <kevin.tsai@intel.com>
2022-10-06 11:04:15 -04:00
bejeanmo 526dc9d074
[RPL-P] COM-HPC CRB platform ID, detection, and board specific porting. (#1704)
Added new platform ID for RPLP DDR5 CRB (COM-HPC board). This board has
no EC or board ID FRU, but it is so far the only board in the ADL/RPL
family like this so it is used as a board identification criterion.
Added DdiConfig table as well.

Signed-off-by: Bejean Mosher <bejean.mosher@intel.com>

Signed-off-by: Bejean Mosher <bejean.mosher@intel.com>
2022-10-06 10:05:38 -04:00
Kalp Parikh 95c79226cb
[EHL] Fix build error (#1708)
Increase payload size to fix build issues.

Signed-off-by: Kalp Parikh <kalp.parikh@intel.com>

Signed-off-by: Kalp Parikh <kalp.parikh@intel.com>
2022-10-04 17:41:30 -04:00
Kalp Parikh 9c2df9337e
[ADL] Fix KW issue (#1707)
Fixing 2 Klocwork issues for ADL.

Signed-off-by: Kalp Parikh <kalp.parikh@intel.com>

Signed-off-by: Kalp Parikh <kalp.parikh@intel.com>
2022-10-04 16:54:00 -04:00
jinjhuli 6a647a424e
[ADLN] Update ACPI table and NVS value (#1692)
1. Update ADLN related ACPI tables
2. Update ADLN NVS value

Signed-off-by: jinjhuli <jin.jhu.lim@intel.com>

Signed-off-by: jinjhuli <jin.jhu.lim@intel.com>
2022-10-04 11:08:19 -07:00
Syahirah Sabryna 33df10a03d
[EHL] Add MemTestOnWarmBoot UPD to Config Editor (#1698)
MemTestOnWarmBoot UPD added into Config Editor. This UPD is enabled to ensure Base Memory Test is running in SBL.

Signed-off-by: Syahirah Sabryna <nur.syahirah.sabryna.mohmad@intel.com>

Signed-off-by: Syahirah Sabryna <nur.syahirah.sabryna.mohmad@intel.com>
2022-10-03 09:40:35 -04:00
Subash Lakkimsetti 7224b22977
TPM: Continue boot platform when TPM is not present (#1705)
Plaform is halted when TPM is not detected.TPM support is
enabled with BTG 0 and boot halted when PTT is not enabled
in straps.

TPM should be able to boot when TPM is not present and this
patch fixes this issue.

Signed-off-by: Subash Lakkimsetti <subash.lakkimsetti@intel.com>

Signed-off-by: Subash Lakkimsetti <subash.lakkimsetti@intel.com>
2022-10-02 21:52:57 -07:00
Ong Kok Tong fcbc331af4 [ADL] ME FIPS Mode Enablement
Implement a function to support FIPS mode enablement in ADL

Test: Booted with Windows and Yocto
Verified with FIPS enablement support in ADLN

Signed-off-by: Ong Kok Tong <kok.tong.ong@intel.com>
2022-09-25 19:23:31 -07:00
M Karuppasamy 77846dc3c1 GPIO shell command enhancement for ADL platform
Updated the GPIO shell command to take GPIO group and pin number as inputs.

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-09-21 08:28:27 -07:00
Atharva Lele bbcf03be6b
[ADLN] Update FSP UPD Parameters (#1686)
Updated FSP-M and FSP-S parameters to match with BIOS

Signed-off-by: Atharva Lele <atharva.lele@intel.com>

Signed-off-by: Atharva Lele <atharva.lele@intel.com>
2022-09-16 13:13:44 -04:00
koktong-ong 470cec62d4
[ADLPS] Add PlatformNvs for CRB (#1682)
Added M.2 related PlatformNvs GPIO value for CRB board

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

Signed-off-by: Ong Kok Tong <kok.tong.ong@intel.com>
2022-09-12 09:40:06 -07:00
Akshatha Thekkade 0b55c4b254 [ADL] Set Payload Id of LINX Payload
If Payload Id is read from generic config data then
set Payload Id of LINX Payload to 0.

Signed-off-by: Akshatha Thekkade <akshatha.thekkade@intel.com>
2022-09-09 08:47:38 -07:00
Akshatha Thekkade 9ca881bb91 [ADL] Protect TCC with a feature flag
Include TCC specific code inside TCC feature flag to avoid
build issues on unsupported platforms.

Signed-off-by: Akshatha Thekkade <akshatha.thekkade@intel.com>
Signed-off-by: Sachin Kamat <sachin.kamat@intel.com>
2022-09-09 08:47:38 -07:00
tsaikevin f1cd68c221
[ADLPS] resolve ACPI error from yocto dmesg (#1681)
Check EC UPD flag prior to publish ECDT table and send EC cmd.
On Ecless board, EC ACPI object will not be invoked.

Signed-off-by: Kevin Tsai <kevin.tsai@intel.com>

Signed-off-by: Kevin Tsai <kevin.tsai@intel.com>
2022-09-09 11:28:18 -04:00
Sean McGinn b7e7b7b93b Cover IBB corruption in SBL resiliency implementation
If TS bit flipped and it does not match FWU state,
assume ACM detected corruption in SG1A or SG1B and
recover broken BP

Add WDT trigger for recovery

Add ADL-specific WDT trigger for TS

Signed-off-by: Sean McGinn <sean.mcginn@intel.com>
2022-09-06 09:38:52 -07:00
Lakkimsetti, Subash 13f05b3e89 [ADL][RPL] Initialize TPM and Measured boot with btg profile 0
TPM is intialized by ACM with profiles 3 & 5.
This patch enables the TPM in bootloader when boot guard
is not enabled. HAVE_MEASURED_BOOT in platform
board config controls the TPM in SBL.

Signed-off-by: Subash Lakkimsetti <subash.lakkimsetti@intel.com>
2022-09-06 09:28:23 -07:00
tsaikevin c3e42632ba
[ADLPS] UPD config update (#1680)
Added UPD Ddr4OneDpc in DLT file and removed hard coded value.

Signed-off-by: Kevin Tsai <kevin.tsai@intel.com>

Signed-off-by: Kevin Tsai <kevin.tsai@intel.com>
2022-09-02 07:36:47 -04:00
Kevin Tsai aef46f64a7 [ADLPS] UPD config update
Aligned FSPM and FSPS UPD settings with BIOS

Signed-off-by: Kevin Tsai <kevin.tsai@intel.com>
2022-09-01 16:10:24 -07:00
Sindhura Grandhi 4293c38c77
[ADLPS] Add GPIO table for PS CRB for reference. (#1678)
Add the hard-coded GPIO table to the header file for reference purposes.
This table is currently part of the configuration.

Signed-off-by: Sindhura Grandhi <sindhura.grandhi@intel.com>

Signed-off-by: Sindhura Grandhi <sindhura.grandhi@intel.com>
2022-09-01 14:24:54 -07:00
Sindhura Grandhi 073e8a9147
[ADL] Memory FSP settings cleanup (#1674)
Signed-off-by: Sindhura Grandhi <sindhura.grandhi@intel.com>

Signed-off-by: Sindhura Grandhi <sindhura.grandhi@intel.com>
2022-08-30 15:52:44 -07:00
Stanley Chang f4aeac41cc [TGL] Init EC CPU fan control
Without initializing CPU fan control, EC will stop CPU fan after default
timeout. This patch initializes CPU fan control and fail safe control.

Some scenarios are related to the case: (1) bootloader shell;
(2) unexpected hang; (3) OS with no ACPI support; and (4) OS fails to
load ACPI driver

Test methods:
1. monitor CPU fan under SBL / UEFI Payload shell: expect non-stop
2. check CPU fan status after Linux starts: expect ACPI controls it

Verified: TGL RVP

Signed-off-by: Stanley Chang <stanley.chang@intel.com>
2022-08-24 09:06:08 -07:00
Sean McGinn f7a524fa1b Add comment regarding TCO timer initialization
Signed-off-by: Sean McGinn <sean.mcginn@intel.com>
2022-08-23 14:50:23 -07:00