Skip to content

thermald: handle large RAPL PL1 values in restore registration - #593

Merged
spandruvada merged 1 commit into
masterfrom
thermald_next
Aug 14, 2026
Merged

thermald: handle large RAPL PL1 values in restore registration#593
spandruvada merged 1 commit into
masterfrom
thermald_next

Conversation

@spandruvada

Copy link
Copy Markdown
Contributor

The RAPL restore path parsed constraint_*_power_limit_uw through the signed int reader, which fails for valid values above INT_MAX (for example 4095000000 uW). That caused restoration registration to be skipped and exit restore count to stay zero.

Read PL1 as an unsigned sysfs value for registration, store it in a wider type, and restore it via string write to preserve full value range. Also update logs to print the wider PL1 type.

The RAPL restore path parsed constraint_*_power_limit_uw through the signed int reader, which fails for valid values above INT_MAX (for example 4095000000 uW). That caused restoration registration to be skipped and exit restore count to stay zero.

Read PL1 as an unsigned sysfs value for registration, store it in a wider type, and restore it via string write to preserve full value range. Also update logs to print the wider PL1 type.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
@spandruvada
spandruvada merged commit abfef89 into master Aug 14, 2026
2 checks passed
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