Skip to content

Carry the fleet10-tested boot-log fixes and page block order from aurora-wip - #616

Merged
RyanTheTide merged 4 commits into
integration/aurorafrom
fleet10/carry-bootlog-pageblock
Oct 30, 2026
Merged

RyanTheTide merged 4 commits into
integration/aurorafrom
fleet10/carry-bootlog-pageblock

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

This carries four aurora-wip fixes onto integration/aurora. They were boot-tested together in fleet10 and merged into aurora-wip after that.

Each commit is a cherry-pick -x of the PR commit and applied without conflicts. The resulting tree is the fleet10 tree (integration/aurora + these + #600, #601, #603, #604, #607, #608) minus the three PRs that still wait for the J616s (#589, #596, #605). So the code here is exactly what booted.

Testing (fleet10, 7.3.0-aurora-fleet10)

  • Shipping recipe build (Fedora Asahi base + asahi.config, 0 mismatches, all distro gates). apple-dcp host selftests 80/80. The other host tests match integration/aurora (62 pass, the same 26 pre-existing failures).
  • One-shot boots on the Neo, the M2 and the M1 Pro, then fleet10 became the default on all three.
  • could not get assoc info gone on the M2 and the M1 Pro. blend mode not setup gone on all three (3, 6 and 6 lines before). The bcm4377 reset pair is gone and Bluetooth comes up. A manual PCI function reset on the M1 Pro rebinds the driver.
  • min_free_kbytes is 22528 (was 360448) on all three.
  • Kernel journalctl -b -p 3 is empty on all three.
  • Per-PR details are in the comments on each PR. Full dmesg is in aurora-ctl reports/fleet10-20261030.
  • Not tested on the J616s yet. nixos-aurora keeps a vendored asahi.config and needs the usual sync for arm64: configs: asahi: Cap the page block order at 2 MiB #599.

🤖 Generated with Claude Code

RyanTheTide and others added 4 commits October 30, 2026 17:10
Since commit cda3744 ("wifi: brcmfmac bound association IEs to
returned payloads") the "assoc_info" iovar is queried with an 8-byte
buffer, the size of the two lengths the driver reads. The firmware fails
a get whose buffer is shorter than its whole association record, so
every association on the BCM4387 and BCM4388 now logs

  brcmf_get_assoc_ies: could not get assoc info (-52)

and cfg80211 gets no association request or response IEs, and the WMM
AC priorities are never read. Saved boot logs show the message on every
association after that change and on none before it.

Query with WL_ASSOC_INFO_MAX bytes as before, into the buffer the IE
queries already use, and keep the bounds checks on what the firmware
returns.

Fixes: cda3744 ("wifi: brcmfmac bound association IEs to returned payloads")
Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit cfbedf6)
Every DCP plane advertises formats with alpha but no "pixel blend mode"
property, so drm_mode_config_validate() warns once per plane at boot:

  [PLANE:35:plane-0] pixel format with alpha exposed but blend mode not
  setup. Please fix.

Without the property userspace must assume pre-multiplied alpha, while
the driver leaves is_premultiplied clear for every alpha format and DCP
blends those by coverage.

Create the property. DCP blends pre-multiplied when the surface's
is_premultiplied flag is set and by coverage when it is clear, so expose
both, with pre-multiplied as the default the uAPI documents, and set the
flag from the plane state. The H17P swap surface has no
is_premultiplied byte and its firmware applies alpha as coverage, so
H17P planes expose coverage only.

Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 4d1241d)
Probe resets the function with pci_reset_function_locked() while the
driver is bound. The driver has no reset_prepare or reset_done handler,
so since commit a3151e6 ("PCI: Warn if a running device is unaware
of reset") every boot logs

  hci_bcm4377 0000:01:00.1: resetting
  hci_bcm4377 0000:01:00.1: reset done

on the M1 Pro, the M2 and the M4 Pro. The warning has a point: a reset
from the PCI core or from sysfs while the controller runs loses its
firmware and rings, and nothing in the driver notices until commands
time out.

Add the handlers. Probe resets before it sets the driver data, and
bcm4377_pci_reset() already quiesces and restarts the controller around
its own reset, so both are left alone. Any other reset keeps the
interrupt off while it runs and then rebinds the driver, the recovery
the driver already uses after a command timeout; that path moves into
bcm4377_queue_rebind() so both callers share it.

Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit ec5c702)
With 16K pages the page block order follows the PMD order, so a page
block is 32 MiB. khugepaged sizes min_free_kbytes from the page block
size, eleven blocks per zone, which comes to 360448 kB (352 MiB) on
every 8 GB Mac with this config. The low and high watermarks follow at
440 MiB and 528 MiB, and the per-CPU page list limits are derived from
the low watermark, so another 250 to 440 MiB of free pages sits on
per-CPU lists where MemFree and MemAvailable do not count it.

On a MacBook Neo (8 GB) idling at the GNOME desktop this explains about
1.4 GiB of the 2.9 GiB that free and the desktop monitors report as
used: 1.2 GiB of watermark deductions in MemAvailable plus 265 MiB on
the per-CPU lists. kswapd also keeps about half a gigabyte free that
the page cache could use. The M2 MacBook Air shows the same 360448 kB.

Cap the page block order at 7, a 2 MiB block, the same size 4K arm64
and x86 kernels use. min_free_kbytes on the Neo drops to about 22 MiB
and the high watermark to about 37 MiB. 32 MiB transparent huge pages
are still allocated; compaction needs more free blocks to build one,
as the Kconfig help notes. THP is madvise only in our configs. CMA
areas need 2 MiB alignment instead of 32 MiB.

Booted in QEMU (virt, 6 CPUs, 8 GB, 16K pages, THP madvise) with only
this option changed:

  order 11: min_free_kbytes 411824, MemAvailable 7476144 kB
  order 7:  min_free_kbytes 45056,  MemAvailable 8026816 kB

QEMU has two zones, so its values are twice a single-zone Mac's. A
128 MiB MADV_HUGEPAGE region got 4 of 4 32 MiB THPs with no fallback
on both kernels.

Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit a6d008b)
@RyanTheTide
RyanTheTide merged commit 65ee470 into integration/aurora Oct 30, 2026
@RyanTheTide
RyanTheTide deleted the fleet10/carry-bootlog-pageblock branch October 30, 2026 06:11
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