Skip to content

SAI Switch Temperature Attributes for Sub-degree Precision#2305

Closed
bp899348 wants to merge 1 commit into
opencomputeproject:masterfrom
bp899348:patch-1
Closed

SAI Switch Temperature Attributes for Sub-degree Precision#2305
bp899348 wants to merge 1 commit into
opencomputeproject:masterfrom
bp899348:patch-1

Conversation

@bp899348

Copy link
Copy Markdown

SAI_SWITCH_ATTR_TEMP_LIST returns temperature values rounded to whole degrees Celsius. This discards sub-degree precision that is available from the hardware, making it unsuitable for applications that require finer thermal granularity.

Attributes added to saiswitch.h:

SAI_SWITCH_ATTR_TEMP_LIST_RAW
SAI_SWITCH_ATTR_TEMP_BASE_TEN_PRECISION
Motivation: The existing SAI_SWITCH_ATTR_TEMP_LIST returns temperatures rounded to whole degrees Celsius, losing sub-degree precision available from hardware. These two new attributes are added to expose unrounded readings and define their unit, enabling applications to consume full hardware precision without affecting existing consumers of TEMP_LIST.

`SAI_SWITCH_ATTR_TEMP_LIST` returns temperature values rounded to whole degrees
Celsius. This discards sub-degree precision that is available from the hardware,
making it unsuitable for applications that require finer thermal granularity.
@bp899348 bp899348 closed this Jun 25, 2026
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.

1 participant