151 Commits

Author SHA1 Message Date
brentholtsclaw d6458e9e81 LGTM warning fixes
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2020-06-30 11:12:45 -07:00
brentholtsclaw a21f08eda5 Fix NextFwFileSection read past buffer and import cleanup
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2020-06-30 11:12:45 -07:00
brentholtsclaw 738c9b31a4 Changes to uefi decompress functions
Created hal.uefi_fv to contain uefi_fv functions
Modified Guids to use UUID
function cleanup

Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2020-06-30 11:12:45 -07:00
brentholtsclaw beacd44206 Add is_enabled function to hal.igd update common.xml
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2020-06-29 16:04:19 -07:00
Aaron Frinzell 41788a611b SPI access updates 2020-06-29 09:32:09 -07:00
brentholtsclaw 84e13e9b59 Misc functional fixes
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2020-06-11 15:00:10 -07:00
Frinzell 881e119307 spd.py minor updates 2020-05-29 14:05:03 -07:00
p-state 3a981cba61 add SMBIOS_SYSTEM_INFO_2_0 2020-05-20 15:57:51 -07:00
p-state b4134e94d2 don't pass value twice; use value index instead 2020-05-20 15:57:51 -07:00
p-state 367f8b746e fix empty table if only SMBIOS v2 is available 2020-05-20 15:57:51 -07:00
brentholtsclaw 45ef668234 Add ability to use LENGTH and ADMSKXXX regs within client atom
Depends on #844
Fix for issue #877

Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2020-05-01 08:21:45 -07:00
brentholtsclaw bdc5a20611 Move Cfg class to chipset.py
Delete file
Move class to chipset.py
Remove imports from common.py

Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2020-04-22 16:26:11 -07:00
BrentHoltsclaw 4f3b7236ba Remove duplicate configuration from common.py and move specific configuration to hal files
Signed-off-by: BrentHoltsclaw <brent.holtsclaw@intel.com>
2020-04-22 16:26:11 -07:00
brentholtsclaw 4492206438 HAL fixes from LGTM (3/3)
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2020-04-17 09:13:02 -07:00
brentholtsclaw 32d0633fcf HAL fixes from LGTM (2/3)
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2020-04-16 12:00:36 -07:00
brentholtsclaw f2b0d31d31 HAL fixes from LGTM (1/3)
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2020-04-16 12:00:18 -07:00
brentholtsclaw dfd80953aa Edit display_SPI_Ranges_Access_Permissions output
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2020-03-26 12:58:09 -07:00
BrentHoltsclaw 7d9215ba27 Fix decompress pfs and readability
Signed-off-by: BrentHoltsclaw <brent.holtsclaw@intel.com>
2020-03-02 15:28:00 -08:00
Nathaniel Mitchell 59e9caf6fe Fixing syntax issue when comparing variable to literal.
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2020-02-28 15:46:27 -08:00
Assaf Carlsbad d4a0bacc57 Fix TPM's _send_command method to be compatible with Python 3. 2020-02-05 11:14:51 -08:00
Assaf Carlsbad 5789e2125d Fix logging of the Flash Descriptor signature. 2020-02-05 11:14:33 -08:00
Nathaniel Mitchell 157104bff4 Fixed copy right year and removed enterprise verbiage.
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2020-02-05 11:08:38 -08:00
Nathaniel Mitchell dfc9d5953a Fixed errors caused by list_EFI_variables in Windows.
Fixing issues in helper/modules that are caused by some versions of windows blocking runtime access to UEFI varialbes. Also fixed issue print_buffer issue when using --hal.

Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2020-02-05 11:08:38 -08:00
BrentHoltsclaw 24e97b3e56 Update SDFP commit
Moved sfdp to common configuration
updated spi hal to use register functions opposed to xml parsing

Signed-off-by: BrentHoltsclaw <brent.holtsclaw@intel.com>
2020-01-23 08:55:00 -08:00
Sushmith Hiremath 407ab6a4bc - SFDP module to parse JDEC parameter table
- Bug fixes in spi_util

Signed-off-by: Sushmith Hiremath <sushmith.m.hiremath@intel.com>
2020-01-23 08:55:00 -08:00
nha 49cf932164 a more elegant solution 2020-01-13 10:35:03 -08:00
nick 80211480a3 remove debug 2020-01-13 10:35:03 -08:00
nick 7b4ad36493 ACPI SMI py2/3 fix 2020-01-13 10:35:03 -08:00
BrentHoltsclaw 43a0c414c2 Fixup fake guid creation
Signed-off-by: BrentHoltsclaw <brent.holtsclaw@intel.com>
2019-12-19 15:45:16 -08:00
BrentHoltsclaw 99f2c0a04b Fixup spi_uefi File/Section parsing
Signed-off-by: BrentHoltsclaw <brent.holtsclaw@intel.com>
2019-12-19 15:45:16 -08:00
Assaf Carlsbad 8a2c941f3c Fix VirtMemory base class initialization. 2019-12-18 16:29:41 -08:00
NicholasArmour aa770f770f requested changes 2019-12-05 15:48:55 -08:00
NicholasArmour 81d04c5752 added comments, moved some code around 2019-12-05 15:48:55 -08:00
NicholasArmour 71a1768751 SMM communication protocol 2019-12-05 15:48:55 -08:00
Calvin Balke e10c11cd82 Added bugfix for issue 765 in msgbus HAL code
See issue 765 for more information
2019-12-05 15:48:07 -08:00
BrentHoltsclaw 88673d56ec Fix decode functionality
Fix error when cannot decode EFI_SECTION_USER_INTERFACE
Fix error in File size logic within NextFwFile functionality

Signed-off-by: BrentHoltsclaw <brent.holtsclaw@intel.com>
2019-11-18 15:14:27 -08:00
Erik Bjorge 40ff7cffbf Get extended BIOS R/W access information
Use the Flash Descriptor Observability registers to OR in the settings
from the flash descriptor to the existing FRAP register fields.

Signed-off-by: Erik Bjorge <erik.c.bjorge@intel.com>
2019-11-18 15:13:59 -08:00
Evgeny Zinoviev b77607a0e4 Fix decoding of S3 bootscript EDKCompat opcodes
Signed-off-by: Evgeny Zinoviev <me@ch1p.io>
2019-11-06 20:25:49 -08:00
Evgeny Zinoviev 89e5a6a6ef Fix broken s3script_modify
S3 bootscript patching was broken because of incorrect format string
used in __str__ method of class op_io_pci_mem, which was raising KeyError.

Signed-off-by: Evgeny Zinoviev <me@ch1p.io>
2019-11-06 20:25:20 -08:00
p-state 17da5461cf More varstore parsing fixes (#728)
* No need to convert to bytes

This led to creation of b'' characters in the file names.

* Correct get_nvar_name (was wrong on python 3)

* Fix NVAR variable store parsing

Fixes wrong guids and python3 compatibility. Working with bytes using python 2/3 compatible `_ord` function.

* Really fix python3 EVSA variable issue

* Fix blank header check (python 3)
2019-10-31 14:24:40 -07:00
BrentHoltsclaw 7f929901bf Add logic to iobar fixed address fallback
Also fallback to fixed address if base address is 0

Signed-off-by: BrentHoltsclaw <brent.holtsclaw@intel.com>
2019-10-31 14:23:55 -07:00
Erik Bjorge 736871e5f9 Adding initial SMBIOS support (#722)
* Initial SMBIOS HAL and Command

- Only searches for the Entry Point structure
- Currently only detects 2.x structures correctly

Signed-off-by: Erik Bjorge <erik.c.bjorge@intel.com>

* Added support for 64bit 3.x entry point

Signed-off-by: Erik Bjorge <erik.c.bjorge@intel.com>

* Updated command processing

Signed-off-by: Erik Bjorge <erik.c.bjorge@intel.com>

* Added ability to parse structures based on header

Signed-off-by: Erik Bjorge <erik.c.bjorge@intel.com>

* Updated command processing

- Made command processing a bit more flexible
- Improved logging messages
- Added place holders for future functionality

Signed-off-by: Erik Bjorge <erik.c.bjorge@intel.com>

* Added ability to get structures by type

Signed-off-by: Erik Bjorge <erik.c.bjorge@intel.com>

* Added string extraction support

- Also added some initial code for decoding type 0 structure information
- Updated interface to make things cleaner

Signed-off-by: Erik Bjorge <erik.c.bjorge@intel.com>

* Added decode support

- Only supports partial decode of Type 0 (2.0) structure

Signed-off-by: Erik Bjorge <erik.c.bjorge@intel.com>

* Removed unused variable

- Also fixed tool name in timing string

Signed-off-by: Erik Bjorge <erik.c.bjorge@intel.com>

* Adding basic BIOS Information module

- Adding module to get the BIOS Information SMBIOS data

Signed-off-by: Erik Bjorge <erik.c.bjorge@intel.com>

* Python 3 updates

- Requires additional Python 3 UEFI HAL changes

Signed-off-by: Erik Bjorge <erik.c.bjorge@intel.com>
2019-10-31 14:17:47 -07:00
Erik Bjorge 3354a4e729 Additional Python 3 updates
Signed-off-by: Erik Bjorge <erik.c.bjorge@intel.com>
2019-10-24 14:11:50 -07:00
Erik Bjorge dcaa9e1548 Only display when HAL logging enabled
Signed-off-by: Erik Bjorge <erik.c.bjorge@intel.com>
2019-10-21 14:48:40 -07:00
Erik Bjorge f924595fd6 Updated UEFI Configuration Table detection.
If the VA in the UEFI System Table is not mapped the UEFI Runtime
Serivices Table PA and VA will be used to compute the UEFI Configuration
Table address using its VA.

This is a final attempt to get a valid address.

Signed-off-by: Erik Bjorge <erik.c.bjorge@intel.com>
2019-10-21 14:48:00 -07:00
BrentHoltsclaw 5ea7200d28 Edit acpi_smi hal functions
Signed-off-by: BrentHoltsclaw <brent.holtsclaw@intel.com>
2019-10-21 14:47:30 -07:00
BrentHoltsclaw 076b9a9b0c Fixup windows output errors within decode
Signed-off-by: BrentHoltsclaw <brent.holtsclaw@intel.com>
2019-10-21 14:17:39 -07:00
BrentHoltsclaw 02657ef53b Fix conversion of modulo to format
Signed-off-by: BrentHoltsclaw <brent.holtsclaw@intel.com>
2019-10-21 13:10:32 -07:00
BrentHoltsclaw fdac78506d Fix python3 evsa variable issue
Signed-off-by: BrentHoltsclaw <brent.holtsclaw@intel.com>
2019-09-24 12:22:47 -07:00
BrentHoltsclaw b1bfb491a7 Satisfy unittest errors
Signed-off-by: BrentHoltsclaw <brent.holtsclaw@intel.com>
2019-09-24 12:22:28 -07:00