400 Commits

Author SHA1 Message Date
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
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 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
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 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 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
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
brentholtsclaw 92cfae82fb dev/chipsec2 fixes
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2025-09-02 10:20:38 -07:00
Tamas K Lengyel ff41621178 OsIndicationsSupported is only RO after ExitBootServices
The access_uefispec module currently reports OsIndicationsSupported should be
read-only even when the module is ran from UEFI shell before ExitBootServices
has been called. This is a false positive, OsIndicationsSupported is expected
to be read-write before ExitBootServices.

See https://uefi.org/specs/UEFI/2.10/03_Boot_Manager.html, variables that
should be read-only in all cases are specifically called out as:
"Should be treated as read-only". OsIndicationsSupported is not listed as such.

After ExitBootServices the following applies, as specified in
https://uefi.org/specs/UEFI/2.10/08_Services_Runtime_Services.html#setvariable:

"Once ExitBootServices() is performed, only variables that have
EFI_VARIABLE_RUNTIME_ACCESS and EFI_VARIABLE_NON_VOLATILE set can be set with
SetVariable()."

Signed-off-by: Tamas K Lengyel <tamas.lengyel@oracle.com>
2025-07-30 23:58:27 -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 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 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 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 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 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
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 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 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 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 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 b5a34ffd49 Update rtclock module
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-03-03 09:04:08 -08:00
Nathaniel Mitchell 89488d514e Fix up rtclock and smm_dma modules and cpu hal+unit tests
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-02-25 10:37:52 -08:00
Nathaniel Mitchell 7d459745ac Fix modules debugenabled and me_mfg_mode
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-02-18 13:19:38 -08:00
Nathaniel Mitchell 7725ebe841 Enable bios_wp module to run successfully on ADL
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-02-18 13:19:38 -08:00
Nathaniel Mitchell 6164ca86db Update to enable mmio
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-02-18 13:19:38 -08:00
Dan Scott a64ae4263e Add module result assignment to sample part checking logic
Signed-off-by: Dan Scott <dan.scott@intel.com>
2025-02-18 10:37:44 -08:00
Dan Scott 8336f59a20 Resolve minor issues with scan_image tool
Signed-off-by: Dan Scott <dan.scott@intel.com>
2025-02-18 10:37:43 -08:00
Dan Scott 263934f79e Sgx_sample_check 2025-02-18 10:37:06 -08:00
Dan Scott c30175a311 Check CPU for sample part during sgx_check module
Signed-off-by: Dan Scott <dan.scott@intel.com>
2025-02-18 10:37:04 -08:00
Sara Batllori c4be346ac0 Add util to decode tests' name/id
Signed-off-by: Sara Batllori <sara.batllori@intel.com>
2025-02-18 10:36:35 -08:00
Carles Pey 5bb68870a0 Refactor variable usage and statistics collection
Signed-off-by: Carles Pey <carles.pey@nccgroup.com>
2025-02-18 10:36:34 -08:00
Carles Pey 3452b21d78 Simplify the average calculation
Signed-off-by: Carles Pey <carles.pey@nccgroup.com>
2025-02-18 10:36:34 -08:00
Carles Pey 2a8403b61a Implement SMI detection using the standard deviation
Signed-off-by: Carles Pey <carles.pey@nccgroup.com>
2025-02-18 10:36:33 -08:00
BrentHoltsclaw 0165a61fec Dev/uefi hal (#2377)
* Add Win Cert types to uefi_fv and spi_uefi
* Move uefi search to library.uefi folder
* Move uefi_fv to library.uefi
* Move uefi_compression to library.uefi>
* Move uefi_common to library.uefi
* Move uefi_platform to library.uefi
* Move spi_uefi to library.uefi
* Add library.uefi.sleep_scripts file
* Move S3 functionality into sleep_state file
* Add varstore and variable files to library.uefi
* Fixup Flake8 suggestions
* Rename library uefi files to remove uefi_
* This change changes the filename of any file under the library.uefi to remove the uefi as part of the name.
* Fix Errors when testing changes

Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2025-02-12 09:13:50 -08:00
Nathaniel Mitchell b53f1d86b0 Update portio HAL to import halbase and simplify api
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2024-12-16 14:40:15 -08:00
Nathaniel Mitchell aaaa9e58a2 Update hal references to use cs.hals
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2024-12-10 12:22:31 -08:00
Nathaniel Mitchell 53cb4720f2 More module updates
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2024-12-03 12:50:38 -08:00