Commit Graph

1707 Commits

Author SHA1 Message Date
Nathaniel Mitchell 22d0a47f88 Add hst_block_db to enable smbus block_reads
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2026-02-06 14:03:17 -08:00
Nathaniel Mitchell 19b3837432 Fix error handling in spihal and debugenabled/mmconfig modules
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2026-02-05 20:13:18 -08:00
Nathaniel Mitchell 8e3c0c914a Add functionality to filter devices by enabled status
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2026-02-05 20:13:04 -08:00
Nathaniel Mitchell 39e4affe16 Add ARL configs
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2026-02-05 20:12:46 -08:00
Nathaniel Mitchell ee7e7488be Add RPL/PCH7xx configs to chipsec 2
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2026-02-05 20:12:34 -08:00
Nathaniel Mitchell cfb598c88f Move P2SBC MMIO range definition to TLCs for pch5xx and 6xx
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2026-02-05 20:12:34 -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
brentholtsclaw b7df4e5efb dev/chipsec2 bug fixes
These changes were necessary to run chipsec2 on platform

Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2026-01-29 13:42:02 -08:00
brentholtsclaw 6c19755952 Requested Fixes
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2026-01-29 13:31:48 -08:00
brentholtsclaw 9988bc0a6e Update IOMMU to use DMAR parsing
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2026-01-29 13:31:48 -08:00
Nathaniel Mitchell 1b869ef10f minor changes to spibar0.xml (descriptions and control)
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2026-01-29 11:59:53 -08:00
Nathaniel Mitchell c45686c7b1 Fix Brotli (de)compression
Original commit for chipsec v1: 6b265feffa

Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2026-01-29 11:59:38 -08:00
Dan Scott a97a872a28 Add check to ensure proper variable type
Signed-off-by: Dan Scott <dan.scott@intel.com>
2026-01-29 11:59:38 -08:00
Dan Scott e8db09d7b4 Add additional warning codition for sgx_check module
Signed-off-by: Dan Scott <dan.scott@intel.com>
2026-01-29 11:59:38 -08:00
Tamas K Lengyel 1d3b8c5ec1 access_uefispec: accept both hex and base-10 formatted attr input
Beside the functional improvement, converting the input to int is required
depending on what Python version is being used to avoid the variable
propagating down the call-chain as a str.

Signed-off-by: Tamas K Lengyel <tamas.lengyel@oracle.com>
2026-01-29 11:59:38 -08:00
Tamas K Lengyel 0f55fedd47 linuxhelper: assign default value if None is being passed in
linuxhelper's kern_set_EFI_variable only sets default value for attr if no
value has been passed in. In some call-chains (uefi var-write) however None
is being passed in, resulting in the following error from:

struct.error: required argument is not an integer

Make attr optional input and override if value is None with default value.

Signed-off-by: Tamas K Lengyel <tamas.lengyel@oracle.com>
2026-01-29 11:59:38 -08:00
Nathaniel Mitchell 93c2a23d7c Enable MMIO BAR Address cacheing (resolves unit test failure)
Original commit for chipsec v1: 60ab31da9d

Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2026-01-29 11:59:38 -08:00
Tamas K Lengyel 1c30511638 Make uefi variable modification test more configurable
Currently the common.uefi.access_uefispec -a modify test modifications to variables
with the default variable attribute of nv | bs | rs (0x7). In this patch we make
this behavior more configurable.

By default the -a modify option will attempt to modify only the content of the variable,
but will not attempt to change the existing attributes of the variable. We have observed
cases where the test used this way uncovered more issues on variables where different
attributes were used and we did not attempt changing the attribute.

By specifying an optional attribute with -a modify,<attribute> the user can now test
variable modification with any attribute instead of just the currently hard-coded one.

Signed-off-by: Tamas K Lengyel <tamas.lengyel@oracle.com>
2026-01-29 11:59:38 -08:00
Tamas K Lengyel 913c383b1a Convert str to byte object in linuxhelper's kern_set_EFI_variable (#2536)
* Convert str to byte object in linuxhelper's kern_set_EFI_variable

This is required to be able to successfuly run the common.uefi.access_uefispec -a modify
test from under Linux and resolve the following error:

ERROR: Exception occurred during chipsec.modules.common.uefi.access_uefispec.run(): 'argument for 's' must be a bytes object'

Signed-off-by: Tamas K Lengyel <tamas.lengyel@oracle.com>

* Use recommended best practice isinstance for type checking

Co-authored-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>

---------

Signed-off-by: Tamas K Lengyel <tamas.lengyel@oracle.com>
Co-authored-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2026-01-29 11:59:38 -08:00
William Leara e3b8d0d31c remove unused imports from hypercall.py
These imports are not used within this module.

Signed-off-by: William Leara <william.leara@dell.com>
2026-01-29 11:59:38 -08:00
William Leara 855ef7ce4a remove unused imports from testcase.py
These imports are not used within this module.

Signed-off-by: William Leara <william.leara@dell.com>
2026-01-29 11:59:38 -08:00
William Leara e6a67f3be0 remove unused imports from ec.py
These imports are not used within this module.

Signed-off-by: William Leara <william.leara@dell.com>
2026-01-29 11:59:38 -08:00
William Leara 9bb36abfd9 remove unused imports from igd_cmd.py
These imports are not used within this module.

Signed-off-by: William Leara <william.leara@dell.com>
2026-01-29 11:59:38 -08:00
William Leara fa8319628f remove unused imports from vmbus.py
These imports are not used within this module.

Signed-off-by: William Leara <william.leara@dell.com>
2026-01-29 11:59:38 -08:00
William Leara 9862660a95 remove unused imports from hypercall.py
These imports are not used within this module.

Signed-off-by: William Leara <william.leara@dell.com>
2026-01-29 11:59:38 -08:00
William Leara c9b3f00344 remove unused imports from linuxhelper.py
These imports are not used within this module.  Also, fix tabs -> spaces.

Signed-off-by: William Leara <william.leara@dell.com>
2026-01-29 11:59:38 -08:00
William Leara cfb8980612 remove unused imports from smm_ptr.py
These imports are not used within this module.

Signed-off-by: William Leara <william.leara@dell.com>
2026-01-29 11:59:38 -08:00
Nathaniel Mitchell 98fc5c3b35 Minor module updates
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2026-01-29 11:59:24 -08:00
Nathaniel Mitchell e0acb2787c Move tools.vmm.common to library.intel.vmm_common
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2026-01-29 11:28:53 -08:00
Dan Scott 73d1ebc446 Fix HAL call casing in mmcfg
Signed-off-by: Dan Scott <dan.scott@intel.com>
2026-01-28 10:15:36 -08:00
ChipSec 4a328da95d Update to 2.0.0-rc5 (#2634)
Signed-off-by: Chipsec <chipsec@intel.com>
Co-authored-by: Chipsec <chipsec@intel.com>
2025-12-15 10:46:15 -08:00
brentholtsclaw 3dfc3c27b0 Minor bug fixes
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2025-12-09 13:50:59 -08:00
Nathaniel Mitchell 914219e313 dev/chipsec2: Update dalhelper with correct cpuid calls
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-12-09 13:50:28 -08:00
Nathaniel Mitchell 1259e568de Change all HAL objects in cs.hals to be lowercase
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-12-09 13:49:37 -08:00
Nathaniel Mitchell ec92093eb8 Fix getting items from the platform tree where they don't match case
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-12-09 10:17:53 -08:00
Nathaniel Mitchell ee551aa168 Populate lists for -p and --pch
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-12-09 10:17:11 -08:00
Nathaniel Mitchell e2e060d390 Update chipsec so XML names are not case sensitive
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-10-30 14:08:03 -07:00
ChipSec 4f139a4586 Update to 2.0.0-rc4 (#2589)
Signed-off-by: Chipsec <chipsec@intel.com>
Co-authored-by: Chipsec <chipsec@intel.com>
2025-10-01 11:58:22 -07:00
Nathaniel Mitchell 0427a1d178 Add filter_with_fields function to ObjList
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-10-01 10:06:52 -07:00
Nathaniel Mitchell da378b443a Update field names to be all caps
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-09-30 14:48:43 -07:00
Nathaniel Mitchell 6a45198b32 Add 'has_all_fields' function to parent register class and store vid in pci device
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-09-30 13:45:25 -07:00
Nathaniel Mitchell 5f3c7e541d Fix issue where the same control was added to CONTRLS dict multiple times
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-09-22 09:51:50 -07:00
ChipSec 0b37c55b9f Update to 2.0.0-rc3 (#2572)
Signed-off-by: Chipsec <chipsec@intel.com>
Co-authored-by: Chipsec <chipsec@intel.com>
2025-09-02 23:41:02 -07:00
Nathaniel Mitchell 932317c2c5 Update txt xml
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-09-02 15:45:38 -07:00