Skip to content

Commit

Permalink
Add check for SamplePart control
Browse files Browse the repository at this point in the history
Signed-off-by: Dan Scott <[email protected]>
  • Loading branch information
dscott90 authored and npmitche committed Nov 22, 2024
1 parent 3d11228 commit b34fd4f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions chipsec/modules/common/debugenabled.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,12 @@ def run(self, module_argv: List[str]) -> int:
if not self.is_lock_set:
self.logger.log_important('IA32_DEBUG_INTERFACE.LOCK bit is NOT set.')

if self.cs.control.is_defined('SamplePart'):
if self.cs.control.get('SamplePart') == 1:
self.logger.log_passed('CPU is a Sample Part. Test is N/A.')
self.res = self.result.getReturnCode(ModuleResult.INFORMATION)
return self.res

if (dci_test_fail == ModuleResult.FAILED) or (cpu_debug_test_fail == ModuleResult.FAILED):
self.logger.log_failed('One or more of the debug checks have failed and a debug feature is enabled')
self.res = self.result.getReturnCode(ModuleResult.FAILED)
Expand Down

0 comments on commit b34fd4f

Please sign in to comment.