Repository navigation
iio: aop_als: report a missing calibration blob once - #589
Conversation
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]>
|
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. |
|
Passed on the J616s in fleet10 (91 boots): exactly one aop-als-cal line, no regressions. Merging per the merge-train rule. |
On the M4 Pro (J616s) the ALS probe logs two warnings for one missing file:
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_inputreads ENODATA for the whole boot, the AOP log saysCalibration 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 noaop-als-cal.bin(the M1 Pro has it, collected by asahi_firmware's als.py from thealsioreg node in macOS). That needs a collection step in the J616s installer path, reported separately.Testing
dmesg | grep aop-als-calshows one line.🤖 Generated with Claude Code