We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d9d8512 + b931e44 commit ddfa683Copy full SHA for ddfa683
4 files changed
.github/workflows/release.yml
@@ -63,10 +63,16 @@ jobs:
63
if [[ "${override_version}" != "" ]]; then
64
flags+=("--override-version=${override_version}")
65
fi
66
- brussels init "$group" HEAD "${flags[@]}" >brussels-manifest.json
+ brussels init "$group" "$ref" "${flags[@]}" >brussels-manifest.json
67
env:
68
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
69
group: ${{ github.event.inputs.group }}
70
+ # We choose to release the commit in which the workflow is defined.
71
+ # Most of the times this will be the "main" branch. If the developer
72
+ # chooses a different branch to run the workflow on though (in the
73
+ # GitHub "Run Workflow" UI), this will correctly release the branch
74
+ # they requested (as that will be the executed workflow).
75
+ ref: ${{ github.workflow_sha }}
76
override_version: ${{ github.event.inputs.override-version }}
77
78
- name: Upload the release manifest
app/gimlet/base.toml
@@ -991,7 +991,7 @@ device = "isl68224"
991
description = "DIMM/SP3 1.8V A0 power controller"
992
power.rails = [ "VPP_ABCD", "VPP_EFGH", "V1P8_SP3" ]
993
power.phases = [ [ 0 ], [ 1 ], [ 2 ] ]
994
-sensors = { voltage = 3, current = 3 }
+sensors = { temperature = 3, voltage = 3, current = 3 }
995
refdes = "U352"
996
997
[[config.i2c.devices]]
task/idle/src/main.rs
@@ -11,21 +11,20 @@ extern crate userlib;
11
12
#[unsafe(export_name = "main")]
13
fn main() -> ! {
14
+ #[allow(clippy::empty_loop)]
15
loop {
- if cfg!(feature = "insomniac") {
16
- // In insomniac-mode, we just spinloop to absorb idle cycles. This
17
- // is useful on certain processors where entering a low-power state
18
- // interrupts debugging.
19
- //
20
- // Note that this is an explicit nop rather than an empty block
21
- // because an empty `loop {}` is technically UB and will be replaced
22
- // by a trap, bringing the system to a halt with no tasks runnable.
23
- // So, do not get clever and remove this.
24
- cortex_m::asm::nop();
25
- } else {
26
- // Wait For Interrupt to pause the processor until an ISR arrives,
27
- // which could wake some higher-priority task.
28
- cortex_m::asm::wfi();
29
- }
+ // In insomniac-mode, we just spinloop to absorb idle cycles. This
+ // is useful on certain processors where entering a low-power state
+ // interrupts debugging.
+ //
+ // An empty loop *used* to cause UB, due to a bug in LLVM (see
+ // https://github.com/rust-lang/rust/issues/28728), but was later fixed
+ // by the upgrade to LLVM12, which resolved this in Rust 1.52.0 (see
+ // https://github.com/rust-lang/rust/pull/81451).
+ // Wait For Interrupt to pause the processor until an ISR arrives,
+ // which could wake some higher-priority task.
+ #[cfg(not(feature = "insomniac"))]
+ cortex_m::asm::wfi();
30
}
31
task/power/src/bsp/gimlet_bcdef.rs
@@ -21,9 +21,9 @@ pub(crate) static CONTROLLER_CONFIG: [PowerControllerConfig;
rail_controller!(Core, raa229618, vddcr_soc, A0),
rail_controller!(Mem, raa229618, vdd_mem_abcd, A0),
rail_controller!(Mem, raa229618, vdd_mem_efgh, A0),
- rail_controller_notemp!(MemVpp, isl68224, vpp_abcd, A0),
- rail_controller_notemp!(MemVpp, isl68224, vpp_efgh, A0),
- rail_controller_notemp!(MemVpp, isl68224, v1p8_sp3, A0),
+ rail_controller!(MemVpp, isl68224, vpp_abcd, A0),
+ rail_controller!(MemVpp, isl68224, vpp_efgh, A0),
+ rail_controller!(MemVpp, isl68224, v1p8_sp3, A0),
rail_controller!(Sys, tps546B24A, v3p3_sp_a2, A2),
rail_controller!(Sys, tps546B24A, v3p3_sys_a0, A0),
rail_controller!(Sys, tps546B24A, v5_sys_a2, A2),
0 commit comments