Commit Graph

261 Commits

Author SHA1 Message Date
Aiden Park b76d65801e [QEMU] Support -smp option up-to 255
This will detect CPUs up-to 255 and update MADT ProcessorLocalApic entries
with the detected CPU information.
- Set PcdCpuMaxLogicalProcessorNumber to 255 in QEMU BoardConfig.py

Test>
qemu-system-x86_64 -machine q35 -nographic -serial mon:stdio
                   -pflash Outputs/qemu/SlimBootloader.bin
                   -smp 8

Signed-off-by: Aiden Park <aiden.park@intel.com>
2019-09-09 09:06:57 -07:00
Aiden Park 4803d940b1 [MpInit] Allow a Board to configure PcdCpuMaxLogicalProcessorNumber
Make PcdCpuMaxLogicalProcessorNumber configurable on a Board
- PcdCpuMaxLogicalProcessorNumber = 16 by default
- Configurable by CPU_MAX_LOGICAL_PROCESSOR_NUMBER in BoardConfig.py

Signed-off-by: Aiden Park <aiden.park@intel.com>
2019-09-09 09:06:57 -07:00
Aiden Park dbe7aaa987 [ACPI] Append Processor Local APIC entries into MADT in runtime
Currently, the common hook UpdateMadt() was updating fixed size of
ProcessorLocalApic entries.
This allows the hook to append ProcessorLocalApic entries with the number
of detected CPUs in runtime.

Signed-off-by: Aiden Park <aiden.park@intel.com>
2019-09-09 09:06:57 -07:00
Aiden Park 63439af6db [AcpiInitLib] Allocate ACPI tables from low to high memory (#314)
To make PlatformUpdateAcpiTable() hook its contents and length easily,
allocate a memory from low to high and appends each tables to higher direction

Signed-off-by: Aiden Park <aiden.park@intel.com>
2019-09-06 09:11:10 -07:00
Himanshu Sahdev 09245f4e54 BootloaderCore: Handle BIST failure in SecEntry (#311)
- Add BistVal in STAGE1A_ASM_HOB structure
- Use MM0 register to preserve the BIST value
- Push BistVal while setup HOB in stack
- Add check for CPU BIST failure and halt the system when failed

Signed-off-by: Himanshu Sahdev aka CunningLearner sahdev.himan@gmail.com
2019-09-06 09:10:41 -07:00
Himanshu Sahdev dbd92ac9c1 BootloaderCorePkg/Stage1A/Ia32/Vtf0/ReadMe.txt: Updating ReadMe
Signed-off-by: Himanshu Sahdev aka CunningLearner <sahdev.himan@gmail.com>
2019-09-04 16:00:10 -07:00
CunningLearner a46605d970 Optimize Stage1A early boot init (#308)
- Clear interrupts at EarlyInit16
- Restore BIST value to EAX register

Signed-off-by: Himanshu Sahdev aka CunningLearner sahdev.himan@gmail.com
2019-09-03 22:32:28 -07:00
Raghava Gudla b04859eb18 Added XML patching for CFLS and CFLH platforms
This patch added support for CFLS and CFLH stitching by patching
proper xml file for the platforms.

Signed-off-by: Raghava Gudla <raghava.gudla@intel.com>
2019-09-03 15:10:55 -07:00
Guo Dong 9435382022 [CFL] Add pre-memory GPIO program
Currently in Stage1B it defined gpio table for pre-memory, but no one
program that gpio table. This patch adds it.
Move full GPIO table program from Stage1B to Stage2
Remove unused global variable mRsvdSmbusAddressTable in Stage1B.

TEST= Build success.

Signed-off-by: Guo Dong <guo.dong@intel.com>
2019-09-03 15:08:05 -07:00
Raghava Gudla 6c53f7d8de Generate BPMGen2 parameters for CFL/WHL
This patch will patch parameters for BpmGen2
based on the example file provided in the BpmGen2
package.

Signed-off-by: Raghava Gudla <raghava.gudla@intel.com>
2019-09-03 13:20:48 -07:00
James Gutbub 49e2f0994f Resolve Klocwork issue in FWU code
If capsule header is NULL or no payloads
found in the capsule return EFI_NOT_FOUND.

Signed-off-by: James Gutbub <james.gutbub@intel.com>
2019-09-03 11:28:33 -07:00
Grandhi 5275a93191 Add ACM3 binary into BIOS region
Signed-off-by: Grandhi <sindhura.grandhi@intel.com>
2019-08-30 16:45:35 -07:00
Raghava Gudla 348aad235a Simplify xml patching in stitchifwi
This patch will use a list of xml changes required and
patch them in a loop rather than patching each change
seperately.

This patch also add parameter to indicate platform for which
ifwi is getting build.

Signed-off-by: Raghava Gudla <raghava.gudla@intel.com>
2019-08-30 13:32:07 -07:00
Raghava Gudla e8d08aacdb Remove using FitHelp.py in StitchIfwi
This patch will remove FitHelp.py dependency from StitchIfwi
and reuses code from IfwiUtility to patch ACM binary.

This patch also fixed some case dependency required for python
in xml file patching. without this fix, fit does not work as
expected.

Signed-off-by: Raghava Gudla <raghava.gudla@intel.com>
2019-08-29 15:08:06 -07:00
Sai Talamudupula d22277655a [CFL] GPIO config for Upx board
Configure Gpio pins and update ClkFeatures for PCIE RootPorts.

Signed-off-by: Sai Talamudupula <sai.kiran.talamudupula@intel.com>
2019-08-29 14:50:07 -07:00
James Gutbub 327fbac532 Resolve Klocwork issues in Payload & Platform
Klocwork scanning reported several issues in the
PayloadPkg and Platform code folders, this commit
aims to resolve all of the issues currently being
reported in these folders.

Signed-off-by: James Gutbub <james.gutbub@intel.com>
2019-08-29 10:39:22 -07:00
Maurice Ma cc46751e0c Fix CfgDataTool issue on some platforms (#294)
CfgDataTool was originally developed for APL. On APL, the CFGDATA
region name is 'CFGD'.  However, on all other platform, the name
is 'CNFG'. This patch modified the script to handle both. And it
fixed #293.

Signed-off-by: Maurice Ma <maurice.ma@intel.com>
2019-08-28 10:13:46 -07:00
Maurice Ma 866493b926 Fix klocwork scanning issues in BootloaderCommonPkg
Fixed several issues reported by klockwork scanning.

Signed-off-by: Maurice Ma <maurice.ma@intel.com>
2019-08-28 09:33:45 -07:00
Subash Lakkimsetti c3c754a10d Add TCG2 physical presence ACPI to CommonBoardPkg
TpmSsdt.asl is common for supported platforms
SMIE for SMI control access is defined in Platform DSDT
for CFL and APL.

Signed-off-by: Subash Lakkimsetti <subashx.lakkimsetti@intel.com>
2019-08-27 14:57:07 -07:00
Aiden Park 1e33df6aaa [APL] Change debug log level to VERBOSE in HdaLib
To reduce redundant log messages from HdaLib, lower debug log level
from DEBUG_INFO to DEBUG_VERBOSE.

Signed-off-by: Aiden Park <aiden.park@intel.com>
2019-08-26 18:20:55 -07:00
Raghava Gudla 86397f6f75 Add shell command to trigger firmware update
This patch will add shell command to trigger firmware
update on CFL/WHL platforms.

Signed-off-by: Raghava Gudla <raghava.gudla@intel.com>
2019-08-26 18:20:40 -07:00
Aiden Park c722e2da65 [APL] Fix StitchLoader failure in Linux
Linux case-sensitive issue. Update StitchLoader.py with the exact file name.

Signed-off-by: Aiden Park <aiden.park@intel.com>
2019-08-26 18:19:20 -07:00
Raghava Gudla 7641cff41a Seperate SPD config data from memory config data
This patch will seperate SPD config data from memory configuration data,
as a small change in the SPD config data is resulting in duplication
of the memory config data. After sperating SPD config data, duplication
of whole memory cfg data is not required and would result in saving space.

Signed-off-by: Raghava Gudla <raghava.gudla@intel.com>
2019-08-23 14:29:08 -07:00
Raghava Gudla 953c53b572 Fix invalid string in Configuration data
This patch will fix an invalid string in the
configuration data for CFL/WHL platforms.

Signed-off-by: Raghava Gudla <raghava.gudla@intel.com>
2019-08-23 14:14:02 -07:00
Maurice Ma 4e13be369f [QEMU] Add repo clean command before building QEMU FSP
This patch run repo clean to remove previous generated files before
starting a new QEMU FSP build.

Signed-off-by: Maurice Ma <maurice.ma@intel.com>
2019-08-23 14:10:58 -07:00