Commit Graph

446 Commits

Author SHA1 Message Date
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 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
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 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
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
Nathaniel Mitchell 98fc5c3b35 Minor module updates
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2026-01-29 11:59:24 -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 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 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
Nathaniel Mitchell 874e550090 Undo intel/cpu changes.
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-09-02 10:20:38 -07:00
Nathaniel Mitchell 37829d0122 Clean up based on comments
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-09-02 10:20:38 -07:00
brentholtsclaw 92cfae82fb dev/chipsec2 fixes
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2025-09-02 10:20:38 -07:00
Nathaniel Mitchell c50165a2a4 Add 'is_enabled' to regs and 'filter_enabled' to objlist
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-09-01 22:45:59 -07:00
Nathaniel Mitchell 56c1a0e3f9 Resolve issues with unit tests
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-07-23 15:09:44 -07:00
Nathaniel Mitchell 99f9b9c6f4 Update files
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-07-23 15:09:44 -07:00
BrentHoltsclaw 513fa89384 dev/chipsec2 hal.cpu hal.spi registers.mm_msgbus fixes (#2520)
* dev/chipsec2 hal.cpu hal.spi registers.mm_msgbus fixes

Found the following updates needed when using the framework

Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>

* Fix test_cpu unit test

Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>

---------

Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
Co-authored-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-07-09 09:18:08 -07:00
Nathaniel Mitchell f0fa02312d Refactor hide_p2sb and update docstring
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-06-05 11:58:33 +08:00
brentholtsclaw 7a0afc76c3 Split the hal and util_cmds
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2025-06-05 11:35:52 +08:00
brentholtsclaw 77bb71e895 Splitting msgbus and mm_msgbus
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2025-06-05 11:35:52 +08:00
brentholtsclaw 51065bc7a9 Fix locks functionality to work with register objects
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2025-06-05 07:54:21 +08:00
brentholtsclaw 8e6d16c252 Update mmcfg write to use hals
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2025-06-05 07:10:18 +08:00
brentholtsclaw 5ee89e8675 Split mmcfg into separate hal
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2025-05-28 00:06:20 +08:00
brentholtsclaw f7f5f2c610 Add pci write function for hal
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2025-05-15 09:07:28 -07:00
Nathaniel Mitchell e918c17494 Clean up debug and commented out code
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-05-08 01:07:54 +08:00
Nathaniel Mitchell 14bda6657d Update iommu unit tests
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-05-08 01:07:54 +08:00
Nathaniel Mitchell 5aaf69f6d0 Get iommu working
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-05-08 01:07:54 +08:00
Nathaniel Mitchell e2139e954d Fixup framework with platform object
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-05-08 01:07:54 +08:00
Nathaniel Mitchell 7f669cfd2d Add register specific functions to platform.py
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-05-08 01:07:54 +08:00
Nathaniel Mitchell b8d11ca5d9 Initial commit for new Cfg.platform object and register structure
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-05-02 09:06:31 -07:00
Nathaniel Mitchell 439c1a4d09 General update to chipsec2
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-04-18 12:00:31 -07:00
Nathaniel Mitchell bea2860e8e Update device functions and port register.read*/write* functions
Updated the device.get_obj/objlist functions to match the other types e.g. "get_list_by_name" and "get_instance_by_name".

Updated register.read/read_field/write/write_field functions to first get the register objects, then read*/write* from there.

Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-03-18 16:29:21 -07:00
Nathaniel Mitchell de6ffa0409 Update smbus hal, cmd and unit tests
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-03-17 09:07:19 -07:00
Nathaniel Mitchell f5c1fe5c62 Wrap spi_descriptor as a hal object, fix hal loading issue
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-03-12 09:07:23 -07:00
Nathaniel Mitchell c8cfacd732 Move paging from hal to library
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-03-12 09:07:23 -07:00
Nathaniel Mitchell 088a2ca69c Fixup spi HAL and additional unit tests
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-03-11 20:45:54 -07:00
Nathaniel Mitchell 947f67a6e1 Fix acpi tests
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-03-11 20:45:54 -07:00
Nathaniel Mitchell 4b65243d9c Fix more unit tests
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-03-10 09:06:35 -07:00
Nathaniel Mitchell 74818ec960 Fix up more modules. Adl now matching legacy run
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-03-07 21:08:24 -08:00
Nathaniel Mitchell 9d3e2842f0 fix iobar, and a few modules
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-03-05 07:59:36 -08:00
Nathaniel Mitchell b59f5a5525 Fix second level mmio ranages
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-03-05 07:59:36 -08:00
Nathaniel Mitchell b9c9b0afac Few fixes, mostly WRT mmio
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-03-05 07:59:36 -08:00
Nathaniel Mitchell 443b019f32 Few fixes, mostly WRT mmio
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-03-05 07:59:36 -08:00
Nathaniel Mitchell f0fb769d70 Move acpi_tables to library from hal
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-03-04 22:15:21 -08:00
Nathaniel Mitchell 7e1a53149e Add fix to interrupts_cmd
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-03-04 22:15:21 -08:00
Nathaniel Mitchell 29d1a2a364 Update to hals
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-03-04 22:15:21 -08:00