Skip to content

v2.5.13 - #600

Merged
spandruvada merged 4 commits into
masterfrom
thermald_next
Sep 10, 2026
Merged

spandruvada merged 4 commits into
masterfrom
thermald_next

Conversation

@spandruvada

Copy link
Copy Markdown
Contributor

v2.5.13 release

priyjain1 and others added 4 commits September 3, 2026 15:55
During thermald initialisation, read_cooling_devices() scans all
qcom-spel:* nodes under /sys/class/powercap/ and creates a
cthd_sysfs_cdev_spel object for every discovered domain/constraint
combination.  Because device_name is hardcoded to "SPEL" in the
constructor, every object's update() call matches the single PPCC
entry in the XML config and writes the PPCC-derived power limit to
hardware — even for domains and constraints that the XML config never
intended to manage.

Fix this by consulting the XML <CoolingDevices> section before
entering the SPEL discovery loop.  A set of cdev type names that are
explicitly listed in the config is built once; any discovered SPEL
cdev whose generated type name (spel_controller_<domain>_pl<N>) is
absent from that set is skipped before update() is called, preventing
an unintended PL write to hardware.

When no SPEL cdevs are listed in the XML config the set is empty and
the guard is not entered, preserving the existing behaviour.

Signed-off-by: Priyansh Jain <priyansh.jain@oss.qualcomm.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Priyansh Jain <priyansh.jain@oss.qualcomm.com>
… miss

check_cpu_id() prints " Need Linux PowerCap sysfs" on any intel_id_table[]
miss, without checking whether powercap is actually present. The message
dates to 9b1fae1, where it was meant to state a requirement rather than a
finding: an unmatched CPU can still be driven as long as the kernel exposes
powercap sysfs. It reads as a diagnosis, so on a machine with a fully
populated /sys/class/powercap/intel-rapl it points at the wrong subsystem
and costs time to chase.

Stat the path and report whichever case actually applies.

Signed-off-by: Karan Shukla <karan_shukla@live.com>
Refer to README.txt for details.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
@spandruvada
spandruvada merged commit 5fdc5bb into master Sep 10, 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.

3 participants