Commit Graph

2403 Commits

Author SHA1 Message Date
brentholtsclaw 97aa48963c Update ip objects
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2025-07-23 15:09:44 -07:00
brentholtsclaw da143f80da Update Register objects
Signed-off-by: brentholtsclaw <brent.holtsclaw@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 9ba69d2cf6 Update version to rc2
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-06-05 12:30:38 +08: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
Dan Scott 36ce4687b1 Add varstore unit tests
Signed-off-by: Dan Scott <dan.scott@intel.com>
2025-05-23 09:06:58 -07:00
Dan Scott 51b710fd4f Add True arguement to _config_convert_data() call
Signed-off-by: Dan Scott <dan.scott@intel.com>
2025-05-21 06:01:37 +08:00
Nathaniel Mitchell 23ed18bce4 Add function on objlist
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-05-21 06:01:14 +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
Dan Scott b7edeb105d Sanitize test coverage percentage variable
Signed-off-by: Dan Scott <dan.scott@intel.com>
2025-05-15 09:07:12 -07:00
Nathaniel Mitchell d3b15da507 Update remap module to look at multiple MCHBARs
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-05-08 01:07:54 +08: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 0671da48d7 Update spi modules to point to 8086.spi.spibar
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-05-08 01:07:54 +08:00
Nathaniel Mitchell 772caed91c Fix txt unit test by updating json
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 ac11d4c04f Add 'clear_scope' call after modules are run
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-05-08 01:07:54 +08:00
Nathaniel Mitchell 56dc29328e Update modules set_scope to set the scope correctly (register only on the left)
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-05-08 01:07:54 +08:00
Nathaniel Mitchell 830a8bd54b Make register and device behave correctly
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 b817cbad82 WIP - dev/chipsec2 - varstore unit tests
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-04-28 09:09:13 -07:00
Nathaniel Mitchell a84b17ca53 Update sgx_check registers to match config data (all upper case)
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-04-24 09:08:44 -07:00
Nathaniel Mitchell fba29fc251 Add preserve_field_position to is_all_field_value and is_any_field_value checks
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-04-21 09:07:11 -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
dependabot[bot] ce401685a1 Bump github/codeql-action from 3.28.10 to 3.28.11
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.28.10 to 3.28.11.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d...6bb031afdd8eb862ea3fc1848194185e076637e5)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
beta-2.0.0-rc1
2025-03-18 17:02:55 -07:00
Sara Batllori d9a8265fc5 Remove MTAG prefix from module tags and add metadata tags
Signed-off-by: Sara Batllori <sara.batllori@intel.com>
2025-03-18 16:46:35 -07:00
Sara Batllori 40c60dce69 Add archiving status for modules
Signed-off-by: Sara Batllori <sara.batllori@intel.com>
2025-03-18 16:45:27 -07:00
Nathaniel Mitchell 4b48d4a401 Add arg to pytest to check all files, fix dependency issue
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-03-18 16:45:00 -07:00
dependabot[bot] fb50e53488 Bump ossf/scorecard-action from 2.4.0 to 2.4.1
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.4.0 to 2.4.1.
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)
- [Commits](https://github.com/ossf/scorecard-action/compare/62b2cac7ed8198b15735ed49ab1e5cf35480ba46...f49aabe0b5af0936a0987cfb85d86b75731b0186)

---
updated-dependencies:
- dependency-name: ossf/scorecard-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-18 16:44:59 -07:00
dependabot[bot] 93bf33e3f8 Bump actions/upload-artifact from 4.6.0 to 4.6.1
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.6.0 to 4.6.1.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08...4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-18 16:44:59 -07:00
dependabot[bot] 0876573c6b Bump github/codeql-action from 3.28.9 to 3.28.10
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.28.9 to 3.28.10.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/9e8d0789d4a0fa9ceb6b1738f7e269594bdd67f0...b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-18 16:44:58 -07:00
Sara Batllori 5ad2c49cb3 Add Windows server 2025 to supported versions in documentation
Signed-off-by: Sara Batllori <sara.batllori@intel.com>
2025-03-18 16:43:27 -07:00
dependabot[bot] 549ada11c6 Bump step-security/harden-runner from 2.10.4 to 2.11.0
Bumps [step-security/harden-runner](https://github.com/step-security/harden-runner) from 2.10.4 to 2.11.0.
- [Release notes](https://github.com/step-security/harden-runner/releases)
- [Commits](https://github.com/step-security/harden-runner/compare/cb605e52c26070c328afc4562f0b4ada7618a84e...4d991eb9b905ef189e4c376166672c3f2f230481)

---
updated-dependencies:
- dependency-name: step-security/harden-runner
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-18 16:43:24 -07:00
Nathaniel Mitchell 2a8092ed60 Fix debugenable module with enable and debug_occured checks
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-03-18 16:29:37 -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 db92baec59 Fix up unit tests part 1
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