Commit Graph

32 Commits

Author SHA1 Message Date
Vincent Chen 32704b0653 feat: [Common] TCC tools related code clean up
Removed the source code related to TCC tools
including DSO switch, SWSRAM switch, TCC subregions
TCC Error Log switch, RTCM, RTCT
The code change applies on TGL/EHL/ADL/RPL/MTL

Signed-off-by: Vincent Chen <vincent.chen@intel.com>
2024-09-06 07:07:57 -07:00
Stanley Chang 5075639596 fix: [ASL] remove deprecated PLATFORM_ASL
The PLATFORM_{NAME} macro is dynamically defined by BuildUtility.py, which
is based on the board file name. Since ASL has been merged into ADL-N, the
PLATFORM_ASL macro has become obsolete and is no longer valid. This commit
removes all instances of the deprecated PLATFORM_ASL.

Additionally, this commit addresses an issue where PLATFORM_ADLN was not
defined in Stage1ABoardInitLib.c during the build process for ADL-N. The cause
was that ConfigDataStruct.h was not included.

Signed-off-by: Stanley Chang <stanley.chang@intel.com>
2024-08-21 08:32:40 -07:00
Randy 34a701932d feat: [RPLS] Update MR4 Release
FSP version is 0C00DE40
platform version is 1.4
Microcode Files are: ['m_07_90672_00000036.pdb', 'm_32_b0671_00000123.pdb']

Signed-off-by: Randy <randy.lin@intel.com>
2024-07-31 08:42:41 -07:00
randylintw b0b951276e
fix: [RPLP] Stitch fail when missing diag acm binary (#2238)
Cause by cefbf78dae.
The default build will include the DACM region and the replace file should be present during stitch step.

Add fusa stitch option for users who want to replace that component in the BIOS.

Signed-off-by: Randy <randy.lin@intel.com>
2024-07-29 09:43:22 +08:00
Vincent Chen fe7c3393e8
[RPLP] Update for MR2 release (#2239)
- FSP version is NEX RPL-P MR2 (0C.01.DE.40)
- Microcode version is 411d
- VBT version is 253
- platform version is 1.2

Signed-off-by: Vincent Chen <vincent.chen@intel.com>
2024-07-29 09:42:59 +08:00
bejeanmo 6782c945b4
feat: [RPL-PS] Upstream RPL-PS code. (#2231)
Add RPL-PS Platform code to public repo.

Signed-off-by: Bejean Mosher <bejean.mosher@intel.com>
2024-07-24 11:59:49 -07:00
Sindhura Grandhi 93afe0f4f7 [RPLP] Increase OS loader size to resolve build failure
Signed-off-by: Sindhura Grandhi <sindhura.grandhi@intel.com>
2024-07-23 21:37:00 -07:00
Randy cefbf78dae feat: [RPLP] support loading diagnostic acm binary
Signed-off-by: Randy <randy.lin@intel.com>
2024-07-18 08:24:32 -07:00
tsaikevin 87b1074a0f
[UPX i12] Enable UPX i12 RPL-P (#2214)
Add support for Up Xtreme i12 RPL-P based board.
The PCIe M.2 slot CN11 on the board is able to detect NVMe SSD.
Debug output is enabled at header CN9 on the board(e.g. UART1)
Tested to boot with OS loader payload and UEFI payload.

To stitch the SlimBootloader.bin with IFWI uses StitchLoader.py script with '-p' as given below:

python Platform/AlderlakeBoardPkg/Script/StitchLoader.py -i <BIOS_IMAGE_NAME> -s Outputs/rplp/SlimBootloader.bin -o sbl_upx12rp_ifwi.bin -p 0xAA000114

Signed-off-by: Kevin Tsai <kevin.tsai@intel.com>
2024-07-03 08:23:52 +08:00
stanley b81f41924d
fix: improve the DX for RsvdSmbusAddressTablePtr #2207 (#2211)
The patch improves the dev experience for configuring FSP-M UPDs:
RsvdSmbusAddressTablePtr and PchNumRsvdSmbusAddresses: Prior to this patch,
developers had to apply a memory patch at address 0xfffc3ff8, which was
cumbersome and inconvenient. With the introduction of this patch, developers
can now directly modify the DLT, simplifying the configuration steps and
improving workflow efficiency.

Signed-off-by: Stanley Chang <stanley.chang@intel.com>
2024-06-27 16:36:07 +08:00
Randy 1160c0a073 fix: [RPLP] increase RSVD_MEM_SIZE
Fix ASSERT [Stage2] BootloaderCorePkg\Library\MemoryAllocationLib\MemoryAllocationLib.c(61):
    LdrGlobal->MemPoolCurrTop >= Bottom

Signed-off-by: Randy <randy.lin@intel.com>
2024-06-17 08:11:44 -07:00
Bejean Mosher d6fdbca903 fix: Remove deprecated python imp module
Python imp module is removed in 3.12+ and will cause a build error.
Replace with importlib.machinery.SourceFileLoader.

Signed-off-by: Bejean Mosher <bejean.mosher@intel.com>
2024-06-17 08:11:02 -07:00
Stanley Chang 1f79bf92e5 ahci: fix AhciWriteBlocks and AhciGetMediaInfo
This commit fixes two AHCI operations:

1. AhciWriteBlocks: caused by wrong command
2. AhciGetMediaInfo: caused by wrong offset

The patches also updates the EFI_ATA_IDENTIFY_DATA to align with the ATA8-ACS.

In addition, this commit ports the following changes from EDK2, to enhance the
command completion and trace:

1. cc28ab7a1d7: MdeModulePkg/AtaAtapiPassThru: Check IS to check for command completion
2. b465a811006: MdeModulePkg/AtaAtapiPassThru: Add SATA error recovery flow
3. 64e25d4b062: MdeModulePkg/AtaAtapiPassThru: Restart failed packets
4. 91d95113d07: MdeModulePkg/AtaAtapiPassThru: Trace ATA packets
5. 4c7ce0d285b: MdeModulePkg AtaAtapiPassThru: Skip the potential NULL pointer access

Last, the commit adjusts OS_LOADER_FD_SIZE for several platforms for x64 build

Verified: Using BlockIoTest to test with SATA SSD disk on TGL-UP3

Signed-off-by: Stanley Chang <stanley.chang@intel.com>
2024-06-03 21:24:06 -07:00
bejeanmo 05a58dae12
fix: [RPL-P/S] increased EPAYLOAD size for latest UefiPld. (#2179)
EPAYLOAD_SIZE increased to accomodate Uefi Payload built based on
edk2-stable202311.

Signed-off-by: Bejean Mosher <bejean.mosher@intel.com>
2024-05-15 18:24:25 -07:00
Guo Dong 4e19c9d66a [RPLS]: Support FIT image payload
FIT image is a little bigger in size

Signed-off-by: Guo Dong <guo.dong@intel.com>
2024-04-24 09:32:51 -07:00
Vincent Chen 430306e4e9
[RPLS] Update FSP/UCODE for MR3 release (#2160)
- FSP version: IoT RPL-S MR3 (0C.00.CC.20)
- Microcode version: 120
- VBT version: 250
- platform version: 1.3

Signed-off-by: Vincent Chen <vincent.chen@intel.com>
2024-03-29 07:03:49 +08:00
Sindhura Grandhi 71fd467466 fix: [RPLP] Resolve gcc build error
Signed-off-by: Sindhura Grandhi <sindhura.grandhi@intel.com>
2024-03-21 14:37:59 -07:00
Vincent Chen 79944f9846 [RPLP] Update for MR1 release
- FSP version is IoT RPL-P MR1 (0C.01.CC.20)
- Microcode version is 411d
- VBT version is 253
- platform version is 1.1
- minor fixes for BoardConfigRplp.py and StitchIfwi.py
- allow TCC/TSN to be enabled by FuSa DLT file

Signed-off-by: Vincent Chen <vincent.chen@intel.com>
2024-03-19 11:27:36 -07:00
randylintw 557d4228f9
feat: [RPLS] Move Fsp/Microcode folder from platform to Silicon (#2139)
- Sync with RPL-P project.
- Keep platform with different folder to avoid fsp upstreaming problem.

Signed-off-by: Randy <randy.lin@intel.com>
2024-02-16 12:10:17 -05:00
bejeanmo c2f161ef8d
fix: [RPL-P] Epayload size too small for UEFI payload with PXE support. (#2138)
EPAYLOAD size was accidentally reverted during upstream. Increasing it
back to 2MB.

Signed-off-by: Bejean Mosher <bejean.mosher@intel.com>
2024-02-12 14:52:36 -07:00
bejeanmo ea48d3e13c
feat: [RPL-P] Upstream RPL-P code. (#2128)
* feat: [RPL-P] Upstream RPL-P code.

Upstream internal RPL-P code to Sbl open source.
FspsUpdUpdateLib updated for compatibility with both RPL-P and RPL-S.
RPL-P specific TCC code will be removed with TCC binary removal after
baseline is upstreamed.

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

* fix: [RPL-P] Addressing code cleanup review comments.

Function header comments and parameters cleaned up in FusaConfigLib.
FSP commit updated to latest, vbt removed in favor of local file.

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

* [RPL-P] Removed TCC Subregion support.

Current TCC feature design removes use of TCC subregions.

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

* [RPL-P] Moved ucode and FSP to Silicon dir, removed PLT_SOURCE, added VBTs

FSP and microcode moved to Silicon folder to be in line with other
platforms. Removed references to PLT_SOURCE env variable. Added VBTs
and removed them from .gitignore.

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

---------

Signed-off-by: Bejean Mosher <bejean.mosher@intel.com>
2024-02-05 09:44:26 -07:00
Randy 776aa78195 [RPLS] Update FSP/ucode for MR2 release
- update FSP version to IoT RPLS MR2 (0C00C650)
- Update platform version to 1.2
- Update ucode to 11f
Signed-off-by: Randy <randy.lin@intel.com>
2024-01-08 14:16:41 -07:00
bejeanmo 9fd24d480a
feat: [RPL-S] Increase UEFI payload container size to accommodate PXE. (#2088)
Increase the size of the UEFI payload container to accommodate increased
payload size from Edk2 network driver and UNDI driver.

Signed-off-by: Bejean Mosher <bejean.mosher@intel.com>
2023-12-18 00:38:13 -07:00
Guo Dong ffc576b7ce
Rpls full cfg data path (#2010)
* [RPLS] Update RPLS to align with MR1 release

Instead of sharing config data, RPL-S used full config data
from RaptorlakeBoardPkg. With this change, it updated its
default boot option (removed TCC binary) without impacting
other platforms. And in its default config data, it doesn't
need include SPD data for other platforms.

Will update FSP and Microcode separately once they are available.

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

* [RPLS] Update to use MR1 FSP

Update SBL to use MR1 FSP

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

---------

Signed-off-by: Guo Dong <guo.dong@intel.com>
2023-08-31 11:30:55 -07:00
Vincent Chen ec5c39e35a feat: [ADL] separate CfgDataDef.yaml for different PCH series
ADL groups GPIO pins into different sets for different PCH series.
The current CfgData uses ADLS's GPIO group sets as the base, and
overwrites the GrpIdx fields via DLT files for other PCH series.
This results in two issues:
1. "CfgDataTool.py export" command failed to extract DLT files
   from SBL image, since it cannot identify the proper group
   index in CfgDataExt.bin from the base table in CfgDataInt.bin
2. When using ConfigEditor.py to configure the PadGroup field of
   GPIO Payload Selection, it will map to a wrong group index.

This patch separates CfgDataDef.yaml for each of PCH series
- add _CFGDATA_DEF_FILE in BoardConfig.py
- add board extension yaml files for Adln, Adlp, Adls
  * CfgDataDef*.yaml
  * CfgData_Gpio_*.yaml
  * CfgData_PayloadSelection_*.yaml
- assign an invalid/unique GrpIdx for the unused GPIO group
  * e.g. 1F, 1E, ..
- adjust GrpIdx of CfgDataExt_Upx12.dlt based on Adlp
- revise the payload selection information in DLT files

This patch also fixes the issue:
- When ConfigEditor opens CfgDataDef.yaml more than once, the
  config changes will not be caught by "Save Config Changes to
  Delta File"
It is because the "info" argument of build_cfg_list() in
GenCfgData.py will retain its value in the lifetime of
ConfigEditor, and the offset will overflow. So need to reset
the offset for a fresh load_yaml().

Signed-off-by: Vincent Chen <vincent.chen@intel.com>
2023-08-24 09:52:21 -07:00
Kobe 20bc4cf163 feat: [Common] VBT header removal
Removed GopConfigLib and GopConfig header files
SBL will skip the runtime VBT update and will only consume updated VBT
SBL only pass the VBT reference to FSP without perform update
The updated VBTs for all platform boards will stored in VbtBin folder

Signed-off-by: Kobe <kok.tong.ong@intel.com>
2023-07-17 10:35:05 -07:00
Vincent Chen 4c80496f78
fix: remove FspInfoHob.h copy from Fsp.inf since it is not used (#1941)
Signed-off-by: Vincent Chen <vincent.chen@intel.com>
2023-06-29 09:44:23 -07:00
Sean McGinn 7d17328191 [RPL] Update copyright date
Signed-off-by: Sean McGinn <sean.mcginn@intel.com>
2023-06-12 21:38:12 -07:00
Sean McGinn b56b624273 [RPL] Setup RPL for SBL resiliency
Change board and stitch config so that SBL
resiliency can be used on RPL-S platforms

Signed-off-by: Sean McGinn <sean.mcginn@intel.com>
2023-06-12 21:38:12 -07:00
Barnes f7e5d7fefb fix [RPL-S] upstream fix for TSN that was missing
Signed-off-by: Barnes <kimberly.d.barnes@intel.com>
2023-06-12 21:31:52 -07:00
Barnes 084fa47f78 [RPL-S] Updated automation file to include RPL-S
upstream RPL-S and added the build of RPL-S to
automation

Signed-off-by: Barnes <kimberly.d.barnes@intel.com>
2023-05-01 07:40:29 -07:00
Barnes 125bdd597e [RPL-S] Upstream RPL-S
Signed-off-by: Barnes <kimberly.d.barnes@intel.com>
2023-04-28 11:15:20 -07:00