History log of /openbmc/libcper/examples/nvidia_event_gpu_uce_ecc.cperhex (Results 1 – 1 of 1)
Revision Date Author Comments
# 7c410e29 11-Feb-2026 Daniel Osawa <dosawa@nvidia.com>

nvidia-events: Hex encoding and schema alignment

Wrap eventInfo and context data under variant keys (cpu/gpu,
opaque/type1-4/gpuMetadata/gpuLegacyXid/gpuRecommendedActions)
to match the Redfish XML

nvidia-events: Hex encoding and schema alignment

Wrap eventInfo and context data under variant keys (cpu/gpu,
opaque/type1-4/gpuMetadata/gpuLegacyXid/gpuRecommendedActions)
to match the Redfish XML schema's wrapper pattern used by all
other oneOf types in libcper.

Encode hardware identifiers and opaque fields as hex strings:
- eventHeader: type, subtype, linkId
- eventInfo.cpu: Ecid1-4, InstanceBase
- eventInfo.gpu: Pdi (0x hex), EventOriginator (raw/value dict)
- data.type1/2/3/4: key and value fields
- data.gpuMetadata: configuration, pdi (MAC-style XX:XX:...),
architectureId (decomposed raw + architecture name),
pciInfo fields (class/subclass/rev/vendorId/deviceId/etc)
- data.gpuRecommendedActions: flags
- data.opaque: flattened to direct hex string

Fix GPU context JSON schemas (gpuMetadata, gpuLegacyXid,
gpuRecommendedActions) to match their C struct definitions.

Change get_value_hex_16/32/64 signatures to void* to handle
packed struct member addresses safely with clang.

Add GPU init and UCE ECC example CPER pairs with unit tests.

Change-Id: I30602e6a34c18bf511f5eefa5cb1dd7707b2c3b0
Signed-off-by: Daniel Osawa <dosawa@nvidia.com>

show more ...