Skip to content

feature: Add RAS module support to L0 Sysman python binding - #519

Open
aviralni wants to merge 5 commits into
oneapi-src:masterfrom
aviralni:pyzes_ras_support
Open

aviralni wants to merge 5 commits into
oneapi-src:masterfrom
aviralni:pyzes_ras_support

Conversation

@aviralni

@aviralni aviralni commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

feature: Add RAS module support to L0 Sysman python binding
Added following RAS APIs to python binding:

  1. zesDeviceEnumRasErrorSets
  2. zesRasGetProperties
  3. zesRasGetSupportedCategoriesExp
  4. zesRasGetStateExp2
  5. zesRasGetConfigExp
  6. zesRasSetConfigExp
  7. zesRasClearStateExp

Related-To: SYSM-429

Signed-off-by: Aviral Nigam aviral.nigam@intel.com

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Default destructive counter clearing, invalid threshold wrapping, and masked test failures must be addressed.

Get a fresh assessment by requesting another Copilot review.

Review effort: Balanced
Findings: 1 High severity · 1 Medium severity · 1 Low severity

Open (3)
What changed in this PR

Adds RAS support to the Sysman Python binding.

Changes:

  • Adds RAS types, structures, constants, and seven API wrappers.
  • Adds unit and black-box test coverage.
  • Documents the new APIs.
File Description
bindings/​sysman/​python/​source/​pyzes.py Implements RAS bindings.
bindings/​sysman/​python/​test/​unit_tests/​test_ras.py Tests RAS wrappers.
bindings/​sysman/​python/​source/​examples/​pyzes_black_box_test.py Adds RAS hardware tests and CLI options.
bindings/​sysman/​python/​README.md Documents supported RAS APIs.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread bindings/sysman/python/source/examples/pyzes_black_box_test.py Outdated
Comment thread bindings/sysman/python/source/examples/pyzes_black_box_test.py Outdated
Comment thread bindings/sysman/python/README.md
@shubskmr

shubskmr commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

Can the self review tool be used here?

Added following RAS APIs to python binding:

1. zesDeviceEnumRasErrorSets
2. zesRasGetProperties
3. zesRasGetSupportedCategoriesExp
4. zesRasGetStateExp2
5. zesRasGetConfigExp
6. zesRasSetConfigExp
7. zesRasClearStateExp

Along with the required handle, enums, structure types and structures
(zes_ras_properties_t, zes_ras_state_exp2_t, zes_ras_config_exp_t),
unit tests, a RAS section in the black box test and README updates.

Related-To: SYSM-429

Signed-off-by: Aviral Nigam <aviral.nigam@intel.com>
…x test

The threshold field is a c_uint64, and ctypes silently wraps values
above 2^64 - 1 (2^64 becomes 0, which disables event generation).

Related-To: SYSM-429
Signed-off-by: Aviral Nigam <aviral.nigam@intel.com>
The RAS tests ran with -r/--ras, but in zello_sysman -r is the device
reset and the RAS experimental API test is -re/--rasexp. Use -re/--rasexp
so both tools take the same options. --set-threshold and --clear-ras-state
are unchanged.

Related-To: SYSM-429
Signed-off-by: Aviral Nigam <aviral.nigam@intel.com>
Added following RAS APIs to python binding:

1. zesDeviceEnumRasErrorSets
2. zesRasGetProperties
3. zesRasGetSupportedCategoriesExp
4. zesRasGetStateExp2
5. zesRasGetConfigExp
6. zesRasSetConfigExp
7. zesRasClearStateExp

Along with the required handle, enums, structure types and structures
(zes_ras_properties_t, zes_ras_state_exp2_t, zes_ras_config_exp_t),
unit tests, a RAS section in the black box test and README updates.

Related-To: SYSM-429

Signed-off-by: Aviral Nigam <aviral.nigam@intel.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants