Commit Graph

1744 Commits

Author SHA1 Message Date
Stanislav Lyakhov 82931b4d53 Fix import errors in hal/intel/spi_descriptor.py
Fixes the following exception that would trigger when running `chipsec_util.py`:

* ERROR: Exception occurred during import of intel.spi_descriptor: 'No module named 'chipsec.library.spi_descriptor_cfgs''

Signed-off-by: Stanislav Lyakhov <staslyakhov@gmail.com>
2026-05-29 16:37:23 -07:00
ChipSec 3ca047c7d7 Update to 2.0.4 (#2753)
Signed-off-by: Chipsec <chipsec@intel.com>
Co-authored-by: Chipsec <chipsec@intel.com>
2026-05-29 12:14:20 -07:00
Nathaniel Mitchell b330891544 Use iso format for datetime in log names when autologging 2026-05-28 15:47:42 -07:00
Dan Scott 62e6785ff4 Capture time of execution in chipsec logging
Signed-off-by: Dan Scott <dan.scott@intel.com>
2026-05-28 15:46:58 -07:00
Copilot e6743e4ab5 fix: add missing __init__.py to subpackages excluded from wheel installs (#2741)
* fix: add missing __init__.py to all subpackages lacking one

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: npmitche <40474174+npmitche@users.noreply.github.com>
2026-05-28 15:46:45 -07:00
Nathaniel Mitchell c35e42a6c0 Extend xml validator script to check for invisible characters (#2747)
* Extend xml validator script to check for invisible characters
* Extend cfg_checker to walk subdirs
* Fix iommu IRTA register size
2026-05-26 15:15:26 -07:00
Nathaniel Mitchell cf8f5c9c82 Rework spi_descriptor.py hal to use simple in-mem registers 2026-05-26 11:15:30 -07:00
Nathaniel Mitchell 27c874811b Fix config errors found by cfg_checker.py 2026-05-26 10:30:06 -07:00
ChipSec 5ca26d9ff0 Update to 2.0.3 (#2737)
Signed-off-by: Chipsec <chipsec@intel.com>
Co-authored-by: Chipsec <chipsec@intel.com>
2026-04-30 18:16:54 -07:00
dscott90 b805e2d30e Update core_parser logic (#2733)
* Update core_parser logic
* Add unit tests and remove underscore from resolve_config_include_path function

---------

Signed-off-by: Dan Scott <dan.scott@intel.com>
Co-authored-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2026-04-30 17:27:04 -07:00
Nathaniel Mitchell 3ca2431d53 Add ARL-H to chipsec 2026-04-30 14:18:24 -07:00
Nathaniel Mitchell bdc64755e7 Fix issue with platform detection not printing the 0:0.0 DID 2026-04-30 14:16:08 -07:00
Disconnect3d 3cf02e1198 Change file permission mode to octal format
Fix likely incorrect chmod permission since decimal numbers != hexadecimal numbers

TL;DR: I gave a talk on this here: https://www.youtube.com/watch?v=tRtxCCRdZOs&t=35227s
2026-04-30 14:15:36 -07:00
Nathaniel Mitchell 311a44a208 Update mmio hal/cmd to accept a bdf instance
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2026-04-21 15:22:02 -07:00
Nathaniel Mitchell b9dcda62af Resolve config issues found by extract_registers.py
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2026-04-16 13:20:34 -07:00
Nathaniel Mitchell 34015902fd Add defaults when getting options 2026-04-16 13:19:48 -07:00
ChipSec 3e4dec69a2 Update to 2.0.2 (#2719)
Signed-off-by: Chipsec <chipsec@intel.com>
Co-authored-by: Chipsec <chipsec@intel.com>
2026-03-31 14:30:40 -07:00
dscott90 32e2ba62c3 Add firmware data retrieval (#2710)
* Add firmware data retrieval
* Apply suggestions from code review
* Remove FW info native versions from linux/win helpers and added results to info module

---------

Signed-off-by: Dan Scott <dan.scott@intel.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2026-03-31 13:54:29 -07:00
Nathaniel Mitchell 65aeb72182 Add initial lnl config
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2026-03-31 09:48:57 -07:00
Nathaniel Mitchell cb76995fd3 Fix bios_wp and update how the platform stores regs and controls
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2026-03-26 14:24:59 -07:00
Nathaniel Mitchell 4928b27345 Refactor platform>ip/bar classes
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2026-03-23 16:38:26 -07:00
brentholtsclaw db40bd72bf Fix if from MMIO range within configuration
FIX: get_objlist() with a single-component name like 'PCU_MMIO' does scope
resolution that searches at Platform level (vendors), not inside any vendor.
The range IP exists at Vendor('8086') -> IP('PCU_MMIO') but is unreachable
via single-component scope. Search MEMORY_RANGES dict directly as fallback.

Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2026-03-23 16:38:26 -07:00
brentholtsclaw cf80eaaa88 Add missing functions
Classes were missing functions which could be called through recursive
properties

Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2026-03-23 16:38:26 -07:00
brentholtsclaw 477dce4c15 Core parser handle mmio ranges corrections
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2026-03-23 16:38:26 -07:00
brentholtsclaw c484301356 Remove print statement
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2026-03-23 16:38:26 -07:00
brentholtsclaw 88664faf04 Fix class issues
This fix uses deepcopy on register objects so that mutating fields do not corrupt
others.

Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2026-03-23 16:38:26 -07:00
Copilot 7747d45498 Fix: uefi decode returns success when no EFI firmware volumes are found (#2704)
* Initial plan
* Fix: Return error exit code when uefi decode fails to parse EFI firmware
* style: use f-string in uefi_cmd.py decode error message
* fix: correct NVRAM detection and add unit tests for uefi decode failure paths
* style: use f-string in decode() missing-file error log
* style: use f-string for EFI volumes log message in decode()
* fix: replace mutable default List[] with Optional[List] = None in spi.py
* Update uefi_cmd.py
* Correct logging output
* Update exception logging
* Typo fix
* Non-fixed temp directory name
* Correct return value logic

---------

Co-authored-by: dscott90 <dan.scott@intel.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2026-03-17 14:21:19 -07:00
William Leara 79f81bbb7e fix for flake8 rules related to whitespace
This commit fixes whitespace errors from checkers W291,W292,W293,W391.  They were found by running "flake8 ." from the root directory.  These are errors defined by "pycodestyle", and have no functional impact to the source.  This is simply fixing whitespace as defined by CHIPSEC's .flake8 configuration.

background:
https://www.flake8rules.com/rules/W291.html
https://www.flake8rules.com/rules/W292.html
https://www.flake8rules.com/rules/W293.html
https://www.flake8rules.com/rules/W391.html

tool versions: flake8 v7.3.0, python v3.13.11

Signed-off-by: William Leara <william.leara@dell.com>
2026-03-10 14:20:23 -07:00
Nathaniel Mitchell 99f349401a Update chipsec2 to work in UEFI Shell
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2026-03-10 13:46:56 -07:00
Nathaniel Mitchell 789284e47f Add name to log error when reading uefi fars in linux
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2026-03-10 11:57:25 -07:00
LEE YONGJIN 8391f35706 Fix typo and missing object reference in interrupt HAL
Fix an execution error in the send_smmc_SMI function by:
- Correcting the HAL module name typo (memorymem -> memory)
- Adding the missing chipset object reference (cs)

Signed-off-by: LEE YONGJIN <0jin.git@gmail.com>
2026-03-10 11:33:21 -07:00
Stanislav Lyakhov 50dbb98898 Fix import errors in uefi/spi
Fixes the following exceptions that would trigger in `chipsec_util.py`:

* ERROR: Exception occurred during import of decode_cmd: 'No module named 'chipsec.hal.uefi_compression''
* ERROR: Exception occurred during import of uefi_cmd: 'No module named 'chipsec.hal.uefi_compression''

Signed-off-by: Stanislav Lyakhov <staslyakhov@gmail.com>
2026-03-10 09:41:55 -07:00
William Leara 8d16efca06 fix misspelling of "mehanisms" to "mechanisms"
Simple spelling mistake, no functional change.  Also fixed some whitespace errors.

Signed-off-by: William Leara <william.leara@dell.com>
2026-03-05 15:25:26 -08:00
ChipSec 898b08d4af Update to 2.0.1 (#2679)
Signed-off-by: Chipsec <chipsec@intel.com>
Co-authored-by: Chipsec <chipsec@intel.com>
2026-02-13 13:36:33 -08:00
Nathaniel Mitchell df16873962 Fix function
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2026-02-13 10:48:18 -08:00
Nathaniel Mitchell 552a0e070f Update configs and files for some external tests
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2026-02-13 10:48:18 -08:00
brentholtsclaw 6d27c8b95f enforce uppercase registernames
Fix instances where registers were able to be referenced as lowercase
causing errors

Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2026-02-11 09:58:05 -08:00
Nathaniel Mitchell 5bb516e8e8 Add hst_block_db to enable smbus block_reads
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2026-02-06 14:26:17 -08:00
Nathaniel Mitchell 32aed148dd Fix error handling in spihal and debugenabled/mmconfig modules
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2026-02-06 14:26:17 -08:00
Nathaniel Mitchell ecf4e5f627 Add functionality to filter devices by enabled status
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2026-02-06 14:26:17 -08:00
Nathaniel Mitchell 44370adacb Add ARL configs
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2026-02-06 14:26:17 -08:00
Nathaniel Mitchell f4091efe39 Add RPL/PCH7xx configs to chipsec 2
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2026-02-06 14:26:17 -08:00
Nathaniel Mitchell bedad6f2ec Move P2SBC MMIO range definition to TLCs for pch5xx and 6xx
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2026-02-06 14:26:17 -08:00
Nathaniel Mitchell d57670af35 Fix call to mmio hal caseing
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2026-01-31 10:40:49 -08:00
ChipSec 12ac22cf13 Update to 2.0.0 (#2661)
Signed-off-by: Chipsec <chipsec@intel.com>
Co-authored-by: Chipsec <chipsec@intel.com>
2026-01-30 23:34:44 -08:00
Nathaniel Mitchell b61a1bf535 Fix reg.get_list_by_name to match entire string
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2026-01-30 14:13:20 -08:00
Nathaniel Mitchell 752082ced4 Minor cleanup
Fixed register definition in hostctl11gen.xml
Removed breakpoint() from platform.py

Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2026-01-29 23:42:19 -08:00
brentholtsclaw ad7e148041 Requested Fixes
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2026-01-29 13:43:54 -08:00
brentholtsclaw e5f5668159 dev/chipsec2 Add basic acpi aml parser
Add basic parser for dsdt and sdst tables to find memory regions.  Still
recommend using acpi and iasl for full results.

Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2026-01-29 13:43:54 -08:00
brentholtsclaw 4eb3f91cc2 Requested changes
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2026-01-29 13:42:02 -08:00