Skip to content

iio: aop_als: report a missing calibration blob once - #589

Merged
RyanTheTide merged 1 commit into
aurora-wipfrom
claude/bootlog-aop-als-cal-nowarn
Oct 30, 2026
Merged

RyanTheTide merged 1 commit into
aurora-wipfrom
claude/bootlog-aop-als-cal-nowarn

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

On the M4 Pro (J616s) the ALS probe logs two warnings for one missing file:

iio_aop_als als.1.auto: Direct firmware load for apple/aop-als-cal.bin failed with error -2
iio_aop_als als.1.auto: no calibration (ENOENT); readings are uncalibrated

This requests the blob with request_nowarn() so only the driver's own message is left, and corrects that message and its comment. They say the sensor still reports without the blob, but the J616s VD6286 never sends a report without it: in_illuminance_input reads ENODATA for the whole boot, the AOP log says Calibration Override:0, and iio-sensor-proxy logs a "Failed to read input level" error about once a second (48,665 lines on one fleet8 boot of the J616s). The message now says the sensor may not report.

The real fix for the flood is the missing firmware, not the kernel: /lib/firmware/vendor/apple/ on the J616s has no aop-als-cal.bin (the M1 Pro has it, collected by asahi_firmware's als.py from the als ioreg node in macOS). That needs a collection step in the J616s installer path, reported separately.

Testing

  • W=1 compile of the touched objects with the universal config (Fedora Asahi base + asahi.config), no new warnings; full Image, modules and dtbs build of all four bootlog PRs together is queued on the buildbox. checkpatch clean apart from the Co-Authored-By trailer.
  • Not yet run on hardware. On the J616s: boot and check that dmesg | grep aop-als-cal shows one line.

🤖 Generated with Claude Code

Without apple/aop-als-cal.bin the probe logs two warnings for one fact,
the firmware loader's

  Direct firmware load for apple/aop-als-cal.bin failed with error -2

and the driver's own "no calibration". The driver's message is the one
that says what the file is for, so request the blob with
request_nowarn().

Correct the comment and the message as well. They say the sensor still
reports without the blob, but the VD6286 of the M4 Pro (J616s) never
sends a report without it: its channel reads ENODATA for the whole boot
and the AOP log shows "Calibration Override:0". Say that the sensor may
not report, so the warning points at the file that is missing.

Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Full universal-config build (Fedora Asahi base + asahi.config, LLVM, W=1) of aurora-wip b7edb5b plus #587, #588, #589 and #590 together: Image, modules and dtbs build OK, no warnings or errors in the touched files. Not yet run on hardware.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Boot-tested in fleet10 (7.3.0-aurora-fleet10): integration/aurora 1173b79 plus 587, 588, 589, 590, 596, 599, 600, 601, 603, 604, 605, 607 and 608, built with the shipping recipe (Fedora Asahi base + asahi.config, 0 mismatches, all distro gates). apple-dcp host selftests 80/80, and the other host tests match integration/aurora exactly (62 pass, the same 26 pre-existing failures). One-shot boots on the Neo (J700), the M2 and the M1 Pro, compared with each machine's fleet9 boot; fleet10 is now the default on all three. Full dmesg and journals are in aurora-ctl reports/fleet10-20261030.

Result for this PR: no change where it can be seen without the J616s. The M1 Pro and the M2 have the calibration blob, so neither logs either line on fleet9 or fleet10, and the Neo has no such ALS path. The check this PR needs (one aop-als-cal line on the J616s) is still open, so it stays unmerged until the J616s boot.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Passed on the J616s in fleet10 (91 boots): exactly one aop-als-cal line, no regressions. Merging per the merge-train rule.

@RyanTheTide
RyanTheTide merged commit 72b4b56 into aurora-wip Oct 30, 2026
@RyanTheTide
RyanTheTide deleted the claude/bootlog-aop-als-cal-nowarn branch October 30, 2026 07:44
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