Repository navigation
Enable Intel RAPL / powercap on generic-x86-64 - #4908
Conversation
Enable the powercap framework and the Intel RAPL driver so that CPU and package energy counters are exposed via /sys/class/powercap. This allows Home Assistant to monitor the power consumption of the host it runs on (e.g. via a command_line sensor reading energy_uj) without external hardware. The intel_rapl_msr driver also covers modern AMD (Zen) CPUs. energy_uj has been root-readable only since kernel 5.10, so this does not reintroduce the PLATYPUS side-channel concern. Closes #4907 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. ๐ โน๏ธ Recent review infoโ๏ธ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: ๐ Files selected for processing (1)
๐ค Files with no reviewable changes (1)
๐ WalkthroughWalkthroughThe generic x86-64 kernel configuration enables the Linux power-capping framework and Intel RAPL support as a loadable module. ChangesPowercap kernel support
Estimated code review effort: 1 (Trivial) | ~2 minutes Poem
๐ฅ Pre-merge checks | โ 5โ Passed checks (5 passed)
โจ Finishing Touches๐งช Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Pull request overview
Enables the Linux powercap framework and Intel RAPL support in the generic-x86-64 kernel configuration so that CPU/package energy counters are exposed under /sys/class/powercap/ (e.g. intel-rapl:*/energy_uj) for host power monitoring.
Changes:
- Enable the powercap framework (
CONFIG_POWERCAP=y). - Build Intel RAPL support as a module (
CONFIG_INTEL_RAPL=m) in the generic x86-64 board kernel config.
๐ก Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
The changes
Enable the powercap framework and the Intel RAPL driver in the generic-x86-64 kernel:
CONFIG_POWERCAP=yCONFIG_INTEL_RAPL=mThis exposes CPU/package energy counters via
/sys/class/powercap/intel-rapl:*/energy_uj, allowing Home Assistant to monitor the power consumption of the host it runs on (e.g. via acommand_linesensor feeding the Energy dashboard) without any external smart plug.Previously the merged kernel config had
# CONFIG_POWERCAP is not set, soCONFIG_INTEL_RAPLwas dropped by kconfig and/sys/class/powercapdid not exist.The
intel_rapl_msrdriver also covers modern AMD (Zen) CPUs, so this benefits both vendors.energy_ujhas been root-readable only since kernel 5.10, so this does not reintroduce the PLATYPUS side-channel concern.Closes #4907
๐ค Generated with Claude Code
Summary by CodeRabbit