Skip to content

Commit 18c520d

Browse files
Add extension mechanism for getting ECC state (#310)
* Add extension mechanism for getting ECC state * Provide a new API which helps user in getting current or default ECC state. Signed-off-by: Jitendra Sharma <[email protected]>
1 parent 4659159 commit 18c520d

File tree

3 files changed

+80
-0
lines changed

3 files changed

+80
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<%
2+
import re
3+
from templates import helper as th
4+
%><%
5+
OneApi=tags['$OneApi']
6+
x=tags['$x']
7+
X=x.upper()
8+
s=tags['$s']
9+
S=s.upper()
10+
%>
11+
:orphan:
12+
13+
.. _ZES_extension_device_ecc_default_properties:
14+
15+
=====================================
16+
Device-ECC default properties Extension
17+
=====================================
18+
19+
API
20+
----
21+
22+
* Structures
23+
24+
* ${s}_device_ecc_default_properties_ext_t
25+
26+
Device-ECC properties
27+
~~~~~~~~~~~~~~~~~~~~~~~~~~
28+
29+
By default, {s}DeviceGetEccState returns the current state of the ECC counters.
30+
31+
Additionally to get default ECC state, pass ${s}_device_ecc_default_properties_ext_t to {s}DeviceGetEccState
32+
as pNext member of ${s}_device_ecc_properties_t.
33+
34+
.. parsed-literal::
35+
36+
${s}_device_ecc_properties_t getState = {${s}_STRUCTURE_TYPE_DEVICE_ECC_PROPERTIES};
37+
${s}_device_ecc_default_properties_ext_t ext = {${s}_STRUCTURE_TYPE_DEVICE_ECC_DEFAULT_PROPERTIES_EXT};
38+
getState.pNext = &ext;
39+
${x}_result_t = ${s}DeviceGetEccState(device, &getState);

scripts/sysman/common.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,10 @@ etors:
261261
value: "0x00020011"
262262
desc: $s_vf_exp2_capabilities_t
263263
version: "1.12"
264+
- name: DEVICE_ECC_DEFAULT_PROPERTIES_EXT
265+
value: "0x00020012"
266+
desc: $s_device_ecc_default_properties_ext_t
267+
version: "1.13"
264268
--- #-------------------------------------------------------------------------
265269
type: struct
266270
desc: "Base for all properties types"

scripts/sysman/eccState.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#
2+
# Copyright (C) 2025 Intel Corporation
3+
#
4+
# SPDX-License-Identifier: MIT
5+
#
6+
# See YaML.md for syntax definition
7+
#
8+
--- #--------------------------------------------------------------------------
9+
type: header
10+
desc: "Intel $OneApi Level-Zero Sysman Extension APIs Device-ECC default properties"
11+
version: "1.13"
12+
--- #--------------------------------------------------------------------------
13+
type: macro
14+
desc: "Device ECC default properties Extension Name"
15+
version: "1.13"
16+
name: $S_DEVICE_ECC_DEFAULT_PROPERTIES_EXT_NAME
17+
value: '"$S_extension_device_ecc_default_properties"'
18+
--- #--------------------------------------------------------------------------
19+
type: enum
20+
desc: "Device ECC default properties Extension Version(s)"
21+
version: "1.13"
22+
name: $s_device_ecc_default_properties_ext_version_t
23+
etors:
24+
- name: "1_0"
25+
value: "$X_MAKE_VERSION( 1, 0 )"
26+
desc: "version 1.0"
27+
--- #--------------------------------------------------------------------------
28+
type: struct
29+
desc: "This structure may be passed to $sDeviceGetEccState as pNext member of $s_device_ecc_properties_t."
30+
class: $sDevice
31+
version: "1.13"
32+
name: $s_device_ecc_default_properties_ext_t
33+
base: $s_base_properties_t
34+
members:
35+
- type: $s_device_ecc_state_t
36+
name: defaultState
37+
desc: "[out] Default ECC state"

0 commit comments

Comments
 (0)