Skip to content

Sync aurora-wip's aop_motion trigger and macsmc RTC fixes into integration/aurora - #1062

Merged
RyanTheTide merged 7 commits into
integration/aurorafrom
mtr/sync-ours-20261107
Nov 7, 2026
Merged

RyanTheTide merged 7 commits into
integration/aurorafrom
mtr/sync-ours-20261107

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

Brings the two Aurora fixes that are on aurora-wip but not yet on integration/aurora, by merging aurora-wip at ae2d2ca (the merge of #1045). Its ancestry over integration/aurora is exactly these five commits:

The rest of aurora-wip (the J813/J873 AOP audio series merged there on 11-06) is not part of this sync.

Testing so far

  • Both fixes were booted before they merged to aurora-wip: iio: aop_motion: give each sensor its own trigger #1038 on the J616s (accel 51/s and gyro 50/s buffered through their own triggers, a foreign trigger refused, no WARN, 0 AVC); rtc: macsmc: round the whole-second offset to the nearest second #1045 on the Neo (two one-shot boots, RTC phase +0.631 -> -0.372 s, no chronyd step on the next boot, 0 AVC).
  • The merge is clean; the server-side merge commit has the same tree (22ade4d7) as the buildbox trial merge.
  • fleet18 is built from this head and qualified on the J616s, M1 Pro and M2 before this merges; the rows will be added here.

🤖 Generated with Claude Code

RyanTheTide and others added 7 commits November 7, 2026 01:13
iio-sensor-proxy finds a buffered sensor through its trigger: it looks
for "<name>-dev<id>" or "<name>-trigger", and without one it logs
"Could not find trigger name associated with ..." and does not offer the
sensor at all. The AOP accelerometer and gyroscope fill their buffers as
the AOP reports, with no trigger, so on the J616s the accelerometer was
missing from iio-sensor-proxy (HasAccelerometer false) and every boot
logged that warning.

Register a "<name>-dev<id>" trigger per device and make it the default,
the way the HID sensor hub drivers do: the buffer is a triggered buffer
whose poll function only stamps the time, and the report listener keeps
pushing the scans. The trigger never fires. Only the device's own
trigger is accepted.

Add the IIO trigger headers to the Rust bindings and a helper for the
inline iio_trigger_get().

Signed-off-by: Ryan Murray <[email protected]>
Assisted-by: LLM
Enabling a motion buffer hit WARN_ON_ONCE(IRQF_ONESHOT && !thread_fn)
in __setup_irq(): the triggered buffer requests its poll function as a
oneshot interrupt, and this one only had the time-stamping top half.
Add a threaded half that completes the trigger. The trigger never fires,
so it never runs.

Signed-off-by: Ryan Murray <[email protected]>
Assisted-by: LLM
iio: aop_motion: give each sensor its own trigger
On the parts that keep the RTC offset in whole seconds (the J700), the
clock's seconds tick with the 32768 Hz counter's. set_time() took the
counter down to whole seconds, so after a write the clock read up to a
whole second ahead of the time set. The Neo's RTC measured 0.63 s ahead
of NTP time, and chronyd stepped the system clock back 1.0 to 1.8 s on
most boots ("System clock wrong by -1.1 seconds").

Round the counter to the nearest second instead: the clock is then at
most half a second ahead or behind. The tick-offset parts are unchanged.

Signed-off-by: Ryan Murray <[email protected]>
Assisted-by: LLM
rtc: macsmc: round the whole-second offset to the nearest second
…rora

Brings the two hardware-tested Aurora fixes that landed on aurora-wip:
- iio: aop_motion: own trigger per sensor + threaded poll half (J616s)
- rtc: macsmc: round the whole-second offset to the nearest second (Neo)

Signed-off-by: Ryan Murray <[email protected]>
Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
Assisted-by: LLM
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Merge train (MTR 11-07), gate:

@RyanTheTide
RyanTheTide merged commit 4922674 into integration/aurora Nov 7, 2026
2 of 3 checks passed
@RyanTheTide
RyanTheTide deleted the mtr/sync-ours-20261107 branch November 7, 2026 02:31
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