Skip to content

Sync omacom integration/aurora work onto 7.3 - #388

Merged
DjDeveloperr merged 6 commits into
integration/aurorafrom
aurora-wip-sync
Oct 23, 2026
Merged

DjDeveloperr merged 6 commits into
integration/aurorafrom
aurora-wip-sync

Conversation

@DjDeveloperr

Copy link
Copy Markdown
Contributor

Ports the Aurora work that landed on omacom/linux-aurora integration/aurora after the unified 7.2.10 base (44d5afc79d) onto the 7.3 tree. Commits were cherry-picked oldest first, with their original messages, authors and author dates.

omacom Author Change
1b4997bbab DjDeveloperr arm64: configs: use one shared Asahi configuration for all Macs
3894ddc020 Chris Kearney aurora-sep: count boot.bin device trees with bash 5.2 too
72b2b6c380 Marcelo Alcantara drm/apple: initialise the works the announce test's teardown drains
3345b19711 DjDeveloperr arm64: configs: asahi: build the Apple watchdog driver in
4d685a6776 Ryan Murray tools/asahi: neo-stability: build the regulatory harness with the country fallback
f692e0009b DjDeveloperr drm: apple: read property 19 as the panel level only on 14.7 firmware

Adapted: 72b2b6c380 leaves out its tools/aurora-ci/kunit-expected.json hunk. That file belongs to omacom's CI, which isn't ported. The commit message is unchanged.

Not ported:

  • The six mt7932 regulatory commits (f3d9f2fbf3, 48b5401efc, 8444fbd192, 461b019bab, f2bcebf523, cb2349d194). They are backports of work this tree already has in newer form, with 6 GHz support.
  • c2890f84c3, which is in v7.3 as 10a47fb673.
  • omacom's CI workflows (79a2a7384b, a4c5b9aa7b, 35e5c272ed, 0840734afd, 7a819dbe4b) and CODEOWNERS (d03342ec6a). They depend on omacom's repository and review rules.

Config effects:

  • The shared configuration replaces the separate J700 configs (aurora_j700_defconfig, j700.config, j700-radio.config, j700-device-parity.config), so every Mac uses one kernel configuration.
  • APPLE_WATCHDOG changes from m to y.
  • Newly enabled: SYSFB_SIMPLEFB, DMABUF_HEAPS, DMABUF_HEAPS_SYSTEM, UDMABUF, NVME_HWMON, THERMAL_NETLINK, SPI_APPLE_QSPI=m and RTC_DRV_APPLE_PMU=m.
  • On J700, RESET_APPLE_CIO now comes from the 7.3 Asahi fragment as m; omacom's 7.2.10 fragment had it as y.

Testing:

  • Built with the linux-aurora package recipe's configuration plus asahi.config, olddefconfig and CONFIG_RUST=y, giving 7.3.0-ARCH. Toolchain: clang/LLVM 18.1.8, rustc 1.85.0, and the tree's bindgen 0.73.2.
  • Image, modules (1917) and all 115 Apple DTBs build. There are no new warnings compared with the base. dcp_external_announce_test.o builds with KUnit enabled.
  • Not boot-tested on hardware.

Known issue: the neo-stability regulatory harness already fails to compile on the 7.3 base, because its C prefix lacks the 6 GHz nl80211_band types. That is unchanged by this PR.

DjDeveloperr and others added 6 commits October 22, 2026 18:08
Enable the Neo NOR, PMU RTC and speaker codec in the shared Asahi fragment alongside the common telemetry and buffer interfaces. Keep SEP prerequisites explicit and remove the dedicated Neo snapshots and fragments that disable shared Mac features.

Signed-off-by: DjDeveloperr <[email protected]>
m3_report_boot_dt() finds the device trees in m1n1's boot.bin by their
magic with grep -ob, and read each "offset:match" line. The match is the
magic's bytes, which are not valid UTF-8, and bash 5.2's read returns
nothing for such a line in a UTF-8 locale: the report then says
"device trees in boot.bin: 0" on any system with bash 5.2 (Ubuntu 24.04,
for one), and the M3 report tests fail there. Arch's bash 5.3 reads the
lines, which is why the tests pass on Omarchy.

Keep only the offsets before read sees them.

Signed-off-by: Chris Kearney <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
dcp_comp_unbind() starts with disable_work_sync(&dcp->dimensions_wq), and
dcp_disable_typec_work() disables typec_relink_wq, hdmi_settle_wq and
hdmi_recheck_wq. The external announce test fixture never initialised
those four, so each teardown hit WARN_ON(!work->func) in __flush_work().
kunit-expected.json listed the warnings as known.

Under KVM the warning is not harmless: in
announce_unbind_running_hotplug_test the teardown thread prints it, with
a register dump, to the emulated serial console before it reaches the
test point the case waits one second for, and the case times out.

Initialise the four works in the fixture, as probe does, and drop the
warnings from kunit-expected.json.

Signed-off-by: Marcelo Alcantara <[email protected]>
U-Boot on Apple silicon starts the SoC watchdog with its default 60
second timeout and leaves it running when it hands off to the kernel.
With CONFIG_WATCHDOG_HANDLE_BOOT_ENABLED the kernel keeps a running
watchdog alive, but only once apple_wdt has probed. As a module it
loads from the initramfs, or only after the root filesystem is mounted
when the initramfs does not carry it. Any initramfs stage that outlasts
the remaining timeout then ends in a hard reset: first-boot root
encryption, an initramfs rebuild, an unattended LUKS passphrase prompt
or an emergency shell.

The removed J700 defconfig built the driver in. Do the same for every
Mac so the kernel takes the watchdog over during boot regardless of
what the initramfs contains.

Signed-off-by: DjDeveloperr <[email protected]>
…ntry fallback

The country fallback reads the package digest and parses the country
code, so the regulatory code that the harness compiles now needs
SHA256_DIGEST_SIZE and isdigit(). Define the digest size and include
ctype.h in the harness prefix, the same way it already stubs the other
kernel headers.

Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
The 14.7 firmware interface publishes the panel level under property 19
instead of 15, and pr_publish now takes both IDs as the level on every
firmware version. 13.x firmware publishes property 19 as well: on a
J414s with 13.5 firmware it arrives with value 1 right before the level
under 15 (9175040, 140 nits at the 65536 scale). Read as nits it is 0.

The backlight device registers from a work item that reads the stored
level whenever it runs. If it runs between the two publishes, the
backlight registers at 0, the next swap after power-on sends the lowest
DAC value, and the panel stays at that level until userspace writes a
brightness. A first-boot setup that runs before any desktop session
leaves the panel very dim. Before the 14.7 interface was added, only
property 15 was read, as on 12.3 and 13.x firmware.

Take property 19 as the level only in the 14.7 and later templates.
Their behaviour is unchanged.

Fixes: 20ea89d ("WIP: drm: apple: Add 14.7 FW ABI")
Signed-off-by: DjDeveloperr <[email protected]>
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.

4 participants