Skip to content

drm/asahi: honor fault_log_ratelimit in mark_pending_events - #3608

Merged
RyanTheTide merged 1 commit into
mainfrom
fix/asahi-mark-pending-ratelimit
Dec 1, 2026
Merged

RyanTheTide merged 1 commit into
mainfrom
fix/asahi-mark-pending-ratelimit

Conversation

@maralcbr

@maralcbr maralcbr commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

What: Pass the log boolean returned by fault_log_ratelimit() in handle_timeout() and handle_fault() into mark_pending_events() so its "Pending events:" header and per-slot dev_err!() lines are suppressed alongside the rest of the rate-limited fault/timeout report, while still unconditionally marking event errors and clearing pending_stamps.

Tested: J416 (MacBook Pro 16" M2 Max, legacy G14) on 7.3 carry build 7.3.0-lab3ceda392-11ed (lab jobs j1129-174818-e436 and j1129-175551-7b35, b1129-174341-04de, clang 19.1.7 + rustc 1.93.1):

  • Ran a 4-shot Vulkan 3D fragment-hang burst (3 rapid 83 ms timeouts within FAULT_LOG_INTERVAL, clean compute verification in 1.04 ms, 6 s pause, 4th 83 ms timeout, clean compute verification in 0.59 ms).
  • Result: 1st timeout logged full report + Pending events: [0:20] flags=7, timeouts 2 and 3 emitted zero leaked Pending events: lines while recovering cleanly, and timeout 4 logged (+2 suppressed GPU fault/timeout reports) + full report + Pending events: [0:27] flags=7 (delta_banners=2, delta_pending=2, delta_suppressed=1).
  • boot-health pass (0 failed units, 0 kernel errors on clean boot j1129-174818-e436), omarchy-m-test 0.2.0 pass (0 regressions); checkpatch.pl --strict: 0 errors, 0 warnings, 0 checks.

Risk: two-way door · logging gate only inside mark_pending_events(); fault/timeout error propagation, pending_stamps clearing, and firmware recovery logic are unchanged.

handle_timeout() and handle_fault() pass the log boolean from
fault_log_ratelimit() to get_fault_info() and recover(), but
mark_pending_events() still logged "Pending events:" and each pending
stamp unconditionally with dev_err!().

Pass log into mark_pending_events() and gate its dev_err!() output on it
while keeping event error marking and pending_stamps clearing
unconditional.

Signed-off-by: Marcelo Alcantara <[email protected]>

@aurora-silicon-review aurora-silicon-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: MERGE at 87830763

Blockers: none (await queued CI completion before merge).

Checked:

  • Audited drivers/gpu/drm/asahi/gpu.rs (+21/-12) and all callers of mark_pending_events().
  • Both callers (handle_timeout() and handle_fault()) pass the log boolean returned by fault_log_ratelimit() into mark_pending_events().
  • Only the " Pending events:\n" header and per-slot dev_err!() prints are gated on if log; work error propagation (WorkError::Killed / fault/timeout error) and pending_stamps clearing remain unconditional across all #[ver(...)] builds.
  • J416 (M2 Max, G14) hardware verification with a 4-shot Vulkan fragment-hang burst confirms full report + Pending events: on timeout 1, zero leaked Pending events: lines with clean recovery on rate-limited timeouts 2–3, and (+2 suppressed GPU fault/timeout reports) + Pending events: on timeout 4, with boot-health and omarchy-m-test passing.
  • DCO Signed-off-by: present; no Apple material or policy issues.
Evidence
  • Diff: drivers/gpu/drm/asahi/gpu.rs (+21/-12).
  • Confirmed handle_timeout() (L2039) and handle_fault() (L2065) are the sole call sites of mark_pending_events().
  • CI at review time: 20 queued, 1 pending, 3 skipped (0 failures).

maralcbr added a commit to omacom/linux-aurora that referenced this pull request Nov 29, 2026
Carry four Omarchy 4.6 RC kernel fixes for J416 / Apple Silicon 7.3 until
upstream merges and retires them:
- aurora-silicon/linux#3605 (222e0e6): downgrade repeated ACIO Phase 3
  AT register read timeout RTKit syslogs to dev_dbg()
- aurora-silicon/linux#3606 (4551c62): bind ane_t6021 quietly when
  firmware is absent so the 7 PMGR domains reach sync_state()
- aurora-silicon/linux#3607 (40936f1, runtime commits 21bf1ba and
  aa3002f): fix BCM4388 codecs_v2 SoA layout and -EINVAL SCO caps
- aurora-silicon/linux#3608 (8783076): honor fault_log_ratelimit() in
  asahi mark_pending_events()

All five carried commits cherry-pick cleanly onto carry/aurora-7.3
(3058cc5) with zero conflicts and passed hardware verification on
m2-max (lab build b1129-174341-04de, jobs j1129-174818-e436 and
j1129-175551-7b35).

Signed-off-by: Marcelo Alcantara <[email protected]>
@github-actions github-actions Bot added area:gpu Area from CODEOWNERS (bot) ci-failing A check failed at the PR head (bot) door:two-way Revertible or not, from Merge risk (bot) needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Nov 29, 2026
@github-actions

github-actions Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Merge readiness at 87830763: not ready yet

Check Detail
CI at head ok 9 checks passed
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes ok none
Hardware row at head ok comment at 87830763
Conflicts ok not computed yet
PR text ok Risk: two-way · logging gate only inside markpendingevents(); fault/timeout error propagation, pendingstamps clearing, and firmware recovery logic are unchanged.

Areas: area:gpu

Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels.

@github-actions github-actions Bot removed the ci-failing A check failed at the PR head (bot) label Nov 30, 2026
@maralcbr

maralcbr commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

J416c (16-inch M2 Max, T6021) at 87830763: boots cleanly and passes 4-shot Vulkan 3D fragment-hang burst test; timeouts 2 and 3 emit zero leaked Pending events: lines while recovering cleanly, and timeout 4 logs (+2 suppressed GPU fault/timeout reports) (boot-health and omarchy-m-test pass).

Evidence

Batched carry kernel 7.3.0-lab3ceda392-11ed (lab build b1129-174341-04de, clang 19.1.7 + rustc 1.93.1; tree 2298fdf4d88289e9f5bcaf172ae0129e4afb21d6, byte-identical to omacom/linux-aurora tag aurora-7.3.0-2 / c27570ea2936 built as 7.3.0-2-1-ARCH) carrying 87830763197e cherry-picked unchanged alongside #3605 (222e0e6b), #3606 (4551c626), and #3607 runtime commits (21bf1ba0, aa3002fe).

  • Clean boot (j1129-174818-e436): booted in 29 s; boot-health PASS (0 failed units, 0 kernel errors); omarchy-m-test 0.2.0 PASS (0 regressions).
  • Targeted 4-shot Vulkan 3D fragment-hang burst (j1129-175551-7b35): 3 rapid 83 ms timeouts within FAULT_LOG_INTERVAL + clean compute verification (1.04 ms) + 6 s pause + 4th 83 ms timeout + clean compute verification (0.59 ms). Timeout 1 logged full report + Pending events: [0:20] flags=7, timeouts 2 and 3 emitted zero leaked Pending events: lines, and timeout 4 logged (+2 suppressed GPU fault/timeout reports) + full report + Pending events: [0:27] flags=7 (delta_banners=2, delta_pending=2, delta_suppressed=1).

@github-actions github-actions Bot added ci-failing A check failed at the PR head (bot) and removed needs-hw-row No hardware row at the PR head (bot) labels Dec 1, 2026
@github-actions github-actions Bot removed the ci-failing A check failed at the PR head (bot) label Dec 1, 2026
@RyanTheTide

Copy link
Copy Markdown
Contributor

Merging at 87830763197e (B2 merge train, 12-01 merge bar). Approval at this head: aurora-silicon-review[bot]. Row: the hardware row at 8783076 that the readiness check found (PR body or comment). CI: linux train L4 = main (after L3) + 34 approved PRs (#3419 dropped: conflicts): Apple driver compile pass, Apple DTBs W=1 pass, planned KUnit ane-boot/clpc/ane-pm/dcp-fabric/dcp-topology/dcp-display/macaudio/asahi/sep all pass, host tests apple-dcp + apple-scaler-recovery pass (the red host-tests on some heads were base failures since fixed on main). The rest of the hosted run is queued behind the backlog. Revert: git revert -m 1 <merge commit>.

@RyanTheTide
RyanTheTide merged commit 20ad430 into main Dec 1, 2026
32 of 48 checks passed
@RyanTheTide
RyanTheTide deleted the fix/asahi-mark-pending-ratelimit branch December 1, 2026 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:gpu Area from CODEOWNERS (bot) door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants