Repository navigation
Carry the fleet10-tested boot-log fixes and page block order from aurora-wip - #616
Merged
Merged
Conversation
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)
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.
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 -xof 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)
could not get assoc infogone on the M2 and the M1 Pro.blend mode not setupgone 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_kbytesis 22528 (was 360448) on all three.journalctl -b -p 3is empty on all three.🤖 Generated with Claude Code