-
Notifications
You must be signed in to change notification settings - Fork 126
feat(cpufreq): RK3588 ondemand CPU DVFS with voltage calibration #1657
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Changes from 5 commits
a44de89
a93e784
43f401c
be43d32
ce32bc5
555b6ba
414672a
406c1ee
861e6a1
5c2da73
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -136,6 +136,12 @@ rockchip-soc = [ | |
| "dep:rdif-reset", | ||
| "dep:rockchip-soc", | ||
| ] | ||
| # RK3588 fixed-OPP-at-boot CPU DVFS (voltage-free rung): raises the CPU cluster | ||
| # clocks via the SCMI seam at probe time. Board-only policy; keep it opt-in. | ||
| rk3588-cpufreq = [ | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 这个 feature 会无条件编译
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 阻塞(交付/测试覆盖):这里定义的 |
||
| "rockchip-soc", | ||
| "dep:arm-scmi-rs", | ||
| ] | ||
| rockchip-pm = ["rockchip-soc", "dep:rdif-power", "dep:rockchip-pm"] | ||
| list-pci-devices = ["pci"] | ||
| pci-list-devices = ["list-pci-devices"] | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个 feature 会无条件编译
cpufreq.rs,而该文件包含 AArch64 的mrsinline asm;在普通 x86_64 宿主执行cargo test -p ax-driver --features rk3588-cpufreq会以invalid instruction mnemonic 'mrs'失败。既然这是公开且标称 board-only 的 feature,请将 AArch64 实现/re-export 用cfg(target_arch = "aarch64")约束并提供宿主 stub/测试,或以等价方式保证该 feature 的宿主检查可编译;否则新增功能无法通过该 crate 的常规测试路径。