Repository navigation
HID: dockchannel, soc: apple: rtkit: drop the pre-open report warning and quiet oslog - #311
Merged
Merged
Conversation
The MTP firmware starts sending reports for an interface as soon as the host enables it. dchid_create_interface_work() enables the interface first and only then allocates and registers the HID device, while the reports are handled on the interface's own workqueue. The keyboard sends its first report in that window on every boot, so the driver logs Report received but keyboard is not initialized! and reads iface->hid while the create work is still writing it. A report that arrives before the HID device is open has nobody to go to either way: the existing open check already dropped it once the device was registered. Make the open flag the only gate, so this expected state no longer warns, and use release/acquire on it so a reader that sees the device open also sees iface->hid. Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]>
Besides the buffer request, RTKit firmware sends oslog messages of types 2 to 5 during normal operation. Types 3 to 5 arrive in a burst when SMC, DCP and AOP firmware boot, and were logged at info level, four or five lines per co-processor on every boot. Type 2 arrives once per boot from the AOP and the MTP, and was logged as an unknown message with a warning. None of them expects a reply: the co-processors keep running, and keyboard, trackpad and AOP sensors keep working after they arrive. The payload is not decoded, so the lines say nothing actionable. Log all four types at debug level and keep the warning for types that have not been seen. Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]>
Eight messages lack a trailing newline, so the next message can be
appended to the same console line, and two carry typos ("firmwareS",
"expFected"). No functional change.
Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
Input and RTKit polish for the J700 internal keyboard and trackpad (MTP over DockChannel):
Report received but keyboard is not initialized!and readiface->hidwhile the create work was still writing it. The open flag is now the only gate, and it uses release/acquire ordering.Regression test
neo-input-check.shchecks, among other things, no "is not initialized" line and no "Unknown oslog" line. Before this series both fail on every boot; with it, 12/12 checks pass on every release boot. Keyboard and trackpad both enumerate as input devices, the internal keyboard wake source stays enabled, and ALS still reports.Risk
Hardware qualification (MacBook Neo J700, 2026-10-15)
This series was qualified on the Neo inside the 2026-10-15 release stack: aurora-wip ac89582 plus, in merge order, tipd polish, input polish, speaker KUnit, SEP (#303), DCP sleep fixes, platform polish, audio polish, radio polish, power polish and fixes, and storage polish. It used the published 5f config with LLVM=1 and clang 22, and modules installed with INSTALL_MOD_STRIP=1. Each test was a one-shot GRUB boot. The saved default stayed on the public 5f kernel. The DTB came from Stage 2 and was not changed.
Results on the release kernels (7.1.12-aurora-rel-g257ca7bed, then -g3faecd4f7 with audio and radio added), and on the earlier integration kernels that also carried the held USB wake line (-integ-ge78a80fd8, -g07a8a7ff4, -g32b5436bd):
runningwith no failed units.neo-public5f-20261015). No new kernel warning types appeared. These went away as expected: dockchannel "keyboard is not initialized", AOP "Unknown oslog message", and the PMGR "always-on domain ... not on at boot" ×8 (now info).dcp-s2idle-regress.sh 6 30 5, 6/6 cycles per run, 3 runs. The DCP mailbox rate in s2idle was about 3 IRQ/s, down from about 62/s.tools/aurora-wake/s2idle-rtc-regression.sh -c 5 -s 20passed 5/5 per run. W1 ran 10 RTC cycles with the lsusb count steady at 13, and no "HC died", Host System Error or DART fault.Evidence:
/Volumes/AuroraS500/aurora-ctl/artifacts/integ-20261015/(per-boot dmesg, journal and checks; scripts are inscripts/).🤖 Generated with Claude Code