Repository navigation
Conversation
rearm() ended with mod_delayed_work_on(.., 1). When the mailbox IRQ had already queued the poll work to run now (kick() goes through poll_now() with delay 0), a submit that rearmed right after pushed that poll out a jiffy, and the poll that would have restarted the resnap timer did not run either. A completion could then be noticed up to a resnap interval (100 us) late. Queue the one-jiffy backup only if no poll is pending, as G17's backup poll does. The resnap timer's poll_now() still brings a later pending poll forward, such as the idle PB reclaim expiry that rearm used to replace, so nothing waits longer than the timer. The resnap timer restart stays: a poll that is already queued rearms after it, so the timer is started again with the new flight in view. Rebased from c474b886b5fc (written on 7.2) onto aurora-silicon/linux main: g15_repoll_us.value() is no longer dereferenced there, so that context line differs. The change itself is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Verdict: FINISH, then merge at 16fd20ed58c6
Blockers:
- Missing DCO sign-off: commit
16fd20ed58c6has no humanSigned-off-by:trailer. - Prohibited attribution trailers: remove the AI co-author trailer from the commit message and the generated-by footer from the PR description (project policy forbids AI attribution in commits and PR text).
- PR description & CI: add the required
Risk:line to the PR body sopr-textpasses, and wait for hosted CI (apple-build,host-tests,pr-text, and KUnit suites) to finish green on the updated head.
Checked:
drivers/gpu/drm/asahi/g15/poll.rs(Shared::rearm()): code logic is clean — switching the one-jiffy backup fromself.mod_poll(1)toworkqueue::system_highpri().enqueue_delayed::<Arc<Self>, POLL_WORK>(self.clone(), 1)avoids pushing an already-queuedpoll_now()(delay 0 from mailboxkick()) out by a jiffy while relying on theresnaphrtimer (poll_now()->mod_poll(0)) to pull forward any later pending idle PB reclaim expiry.- Verified
run_poll()comment update accurately reflects thatresnap'spoll_now()replaces the idle PB reclaim expiry. - Verified J516c (M3 Max, T6031) alternating A/B hardware measurements (0 GPU faults/recoveries/hangs, neutral throughput, consistent minor on-screen p99 improvement).
Evidence
- Head:
16fd20ed58c63f4a483ce34ce457a20eef88a841(base: main,MERGEABLE,+9/-4, 1 file, 1 commit). - Verified
mod_poll()andpoll_now()call sites indrivers/gpu/drm/asahi/g15/poll.rs:enqueue_delayeddrops its clonedArc<Self>cleanly when work is already pending and leaves any delay-0 work untouched.
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
Member
Author
|
Replaced by #3702: same change, with a clean commit (Signed-off-by, no trailer) and the PR template. |
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 it fixes
rearm()ended withmod_delayed_work_on(.., 1). Say the mailbox IRQ had already queued the poll work to run now (kick()goes throughpoll_now()with delay 0). A submit that rearmed right after then pushed that poll out by a jiffy. The poll that would have restarted the resnap timer didn't run either. A completion could be noticed up to a resnap interval (100 µs) late.Now the one-jiffy backup is queued only if no poll is pending, as G17's backup poll does. The resnap timer's
poll_now()still brings a later pending poll forward, such as the idle PB reclaim expiry that rearm used to replace. Nothing waits longer than the timer. The resnap timer restart stays. A poll that is already queued rearms after it, so the timer starts again with the new flight in view.One file,
drivers/gpu/drm/asahi/g15/poll.rs, +9/−4. First written on 7.2 (c474b886b5fc) and rebased here. Only a context line differs.Tested
MacBook Pro 16" M3 Max (J516C, T6031). Lab boots alternated main (972a566) and this commit, with
aurora.debug_flagsbit 49 on, two boots each. On screen means vkmark cube and shading, fullscreen on Hyprland at 120 Hz with FIFO, 70 s each.vkAcquireNextImageKHRon the compositor. They don't point at this path.Limit of the measurement
A vkmark frame takes about 0.3 ms of an 8.3 ms budget here. A completion noticed up to 100 µs late can't show up in frame times. A workload with one frame in flight near the budget wasn't tried. This is a correctness fix that measured neutral, not a performance change.
🤖 Generated with Claude Code