Skip to content

soc: apple: clpc / drm/asahi: g17: preserve GPU busy share across brief idle gaps - #3407

Merged
RyanTheTide merged 3 commits into
mainfrom
fix/clpc-gpu-busy-brief-idle
Dec 1, 2026
Merged

RyanTheTide merged 3 commits into
mainfrom
fix/clpc-gpu-busy-brief-idle

Conversation

@erikwb

@erikwb erikwb commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

What: Separate clearing CLPC's cached GPU busy share (apple_clpc_gpu_clear_busy()) from brief activity clears in apple_clpc_gpu_set_active(gpu, false), and only clear BusyShare and CLPC's share in drm/asahi: g17 after BUSY_IDLE_RESET_NS (100 ms) of inactivity, firmware teardown, or system resume. Fixes the 16 ms IDLE_HOLD_NS / 32 ms APPLE_CLPC_HOLD_MS dead zone that kept paced 24–30 fps workloads pinned at the top memory/fabric column continuously.

Tested: Local checks pass at 206e5628ffd4 (arm64 QEMU KUnit clpc.kunitconfig 19/19 PASS, asahi/.kunitconfig 491/491 PASS / 4 skipped with asahi_g17_idle_hold 17/17 PASS; tools/asahi/clpc-gpu-demand-tests.py PASS across both positive groups and 29 negative controls; ./scripts/checkpatch.pl --strict 0 errors/warnings/checks); live hardware at 206e5628ffd4 (default command line, default Stage 2, Linux 7.3.0): J716c (16-inch M5 Max, T6050) in batched candidate c3da8eed6f72 (over main 9af21b007425, AC 100%, with #3400's ladder in the live DT) showed the rail floor released after a saturating GPU load (active 0, DCS 0 / SOC 0) while debugfs host_gpu busy still read (reported) 1000 permille, a stale value that clears lazily on the next activity (resume_busy_if_inactive); after a pm_test=devices suspend/resume it read (none) and a new burst went straight to level 3; J713 (M4 Air, T8132) in batched candidate b3dbf237542b (over main 9e38a276dcb4) aurora-g16 / CLPC non-regression clean (Vulkan workload #1 200 iters x 4 MiB bad=0 PASS, 3 s idle, 3x s2idle via rtcwake -d /dev/rtc1 -m freeze -s 5, Vulkan workload #2 200 iters x 4 MiB bad=0 PASS, 0 GPU faults, 0 CLPC errors); an earlier J716c run at 206e5628ffd4 paired with #3400 on default cmdline settled 15/24/30/60/120 fps paced Borealis/zink draws 45/45 samples to level 0 / DCS 1 / SOC 0 with 1,175–1,502 mW heatpipe, lifted bursts to level 3 / DCS 6 / SOC 2 30/30, released to DCS 0 / SOC 0 at idle, and reset host_gpu busy on pm_test=devices).

Risk: two-way door · G17 Macs using CLPC GPU busy-share scaling (T604x/T6050); drivers that never call apple_clpc_gpu_set_busy() (g16, g18, m5) keep busy_valid == false unchanged.

Not yet: Standalone clean main (206e5628ffd4, without #3400, where the DT-selected CLPC busy-share ladder stays disabled) J716c row scoped to g17 busy-share bookkeeping (the J716c rows so far ran with #3400's ladder in the live DT), real s2idle / deep suspend and resume on J716c (only pm_test=devices ran), and the T6041 (M4 Max) DT-selected busy-share ladder hardware run (external hardware not on site).

Details

Three bisect-safe commits on main (no code dependency on #3400; can land on main before or independently of #3400):

  1. 54bad83f2aaa (soc: apple: clpc: add apple_clpc_gpu_clear_busy()): export apple_clpc_gpu_clear_busy() (plus #else inline stub) and call it in apple_clpc_gpu_put(), keeping existing apple_clpc_gpu_set_active() behavior unchanged at this commit.
  2. 883f0567e5d6 (drm/asahi: g17: preserve CLPC busy-share window across brief idle gaps): add BUSY_IDLE_RESET_NS (100 ms), BusyShare::note_inactive(), and BusyShare::resume() in g17/power.rs, wired through g17/port.rs, g17/clpc.{c,h}, g17/mod.rs, and g17/sleep.rs. Brief inactivity clears (< 100 ms after IDLE_HOLD_NS = 16 ms) preserve the 200 ms measurement window; genuine idle gaps (>= 100 ms), firmware teardown (Firmware::drop()), and system resume (Shared::sleep_up(), since CLOCK_MONOTONIC freezes across suspend) clear both BusyShare and CLPC busy_valid before reactivating so new bursts start at the top column.
  3. 206e5628ffd4 (soc: apple: clpc: keep GPU busy share across brief inactivity): remove the unconditional if (!active) gpu->busy_valid = false; from apple_clpc_gpu_set_active(), add apple_clpc_gpu_busy_clear_test KUnit coverage in clpc.c, and extend tools/asahi/clpc-gpu-demand-tests.py with end-to-end 24 fps paced tests and negative controls (g17-brief-idle-resets-window, clpc-set-active-clears-busy).

Why the bug happened:

  • Effort::idle() clears effort_full and calls apple_clpc_gpu_set_active(false) after IDLE_HOLD_NS = 16 ms of GPU idle.
  • apple-clpc holds its previous rail vote for APPLE_CLPC_HOLD_MS = 32 ms after active goes false (48 ms total).
  • On 24 fps (41.7 ms) and 30 fps (33.3 ms) streams, every frame cleared activity at 16 ms (wiping BusyShare and gpu->busy_valid), then the next frame arrived before the 48 ms combined hold expired, forcing level 3 (DCS 6 / SOC 2) and resetting the 400 ms APPLE_CLPC_GPU_DOWN_MS timer on every frame so the top floor stayed locked at 100% duty cycle.
Evidence

Live hardware at 206e5628ffd4 (batched candidates, default cmdline, default Stage 2, Linux 7.3.0)

  • J716c (16-inch M5 Max, T6050), candidate c3da8eed6f72 over main 9af21b007425, AC 100%, #3400's ladder in the live DT: after saturating GPU load, the rail floor was already released (active 0, DCS 0 / SOC 0) while debugfs host_gpu busy still read (reported) 1000 permille at idle (a stale value that clears lazily on the next activity via resume_busy_if_inactive); after a pm_test=devices suspend/resume it read (none), and a new burst went straight to level 3.
  • J713 (M4 Air, T8132, firmware 27.2), candidate b3dbf237542b over main 9e38a276dcb4: aurora-g16 / CLPC non-regression: Vulkan workload mux: apple-display-crossbar: replace the T602x selector fields instead of OR-ing them #1 (200 iters x 4 MiB, bad=0 PASS), 3 s idle, 3x s2idle (rtcwake -d /dev/rtc1 -m freeze -s 5), Vulkan workload drm/apple: release a stale DPTX link before borrowing a Type-C route #2 (200 iters x 4 MiB, bad=0 PASS); 0 GPU faults, 0 CLPC errors.

Earlier J716c run at 206e5628ffd4 paired with #3400 (AC, headless 1080p Borealis/zink, default cmdline)

Workload Heatpipe (med) Busy share CLPC level DCS / SOC state
Idle (before) 1,096 mW none 3 (idle) DCS 0 / SOC 0 (30/30)
15 fps light 1,279 mW 0 (0–4) 0 (45/45) DCS 1 / SOC 0 (45/45)
24 fps light 1,420 mW 1 (1–1) 0 (45/45) DCS 1 / SOC 0 (45/45)
30 fps light 1,175 mW 1 (0–5) 0 (45/45) DCS 1 / SOC 0 (45/45)
60 fps light 1,285 mW 3 (0–6) 0 (45/45) DCS 1 / SOC 0 (45/45)
120 fps light 1,502 mW 7 (3–10) 0 (45/45) DCS 1 / SOC 0 (45/45)
Heavy burst 54,684 mW 1000 3 (30/30) DCS 6 / SOC 2 (30/30)
Idle (after) 1,071 mW 1000 (idle) 3 (idle) DCS 0 / SOC 0 (30/30)
pm_test=devices (paired with #3400):
BEFORE: host_gpu busy: 1000 permille (reported) level 3
AFTER:  last_vote: 0x26 reason_bits 0x2
        host_gpu busy: 1000 permille (none) level 3
dmesg Oops|BUG:|WARNING:|Call trace|GPU recovery: 0

Not yet run: clean main (206e5628ffd4, without #3400) on J716c, and real s2idle suspend/resume on J716c.

Automated tests at 206e5628ffd4

  • scripts/checkpatch.pl --strict --git a561e89792d5..HEAD: 0 errors, 0 warnings, 0 checks on all 3 commits
  • tools/asahi/clpc-gpu-demand-tests.py: PASS (both positive groups + all 29 negative controls, including g17-idle-keeps-window, g17-brief-idle-resets-window, and clpc-set-active-clears-busy)
  • ./tools/testing/kunit/kunit.py run --arch=arm64 --make_options LLVM=1 --kunitconfig=drivers/soc/apple/clpc.kunitconfig: 19/19 passed (apple-clpc-gpu 14/14, apple-clpc-policy 5/5)
  • ./tools/testing/kunit/kunit.py run --arch=arm64 --make_options LLVM=1 --kunitconfig=drivers/gpu/drm/asahi/.kunitconfig: 491 passed, 4 skipped, 0 failed (asahi_g17_idle_hold 17/17)

Prepare to decouple clearing CLPC's cached GPU busy share from brief
inactivity clears in apple_clpc_gpu_set_active(gpu, false). Export
apple_clpc_gpu_clear_busy() so GPU drivers can explicitly forget their
reported busy share after genuine idle, and call it from
apple_clpc_gpu_put() on teardown.

Signed-off-by: Erik Bourget <[email protected]>
When Effort::idle() expires after IDLE_HOLD_NS (16 ms),
Port::set_effort_full(false) unconditionally reset BusyShare and left
paced 24-30 fps workloads (33-42 ms period) unable to complete a 200 ms
BusyShare window before the next frame arrived inside CLPC's 32 ms rail
hold.

Record inactivity via BusyShare::note_inactive() and only reset the
window and call apple_clpc_gpu_clear_busy() when activity resumes after
at least BUSY_IDLE_RESET_NS (100 ms) of inactivity, as well as
unconditionally on firmware teardown and system resume (since
CLOCK_MONOTONIC does not advance across suspend). Brief inter-frame gaps
preserve the 200 ms window so low-fps paced streams settle to the lower
CLPC column, while genuine idle gaps still re-baseline and start new
bursts at the top column. Add KUnit coverage in g17/power.rs.

Signed-off-by: Erik Bourget <[email protected]>
Now that the sole apple_clpc_gpu_set_busy() consumer (drm/asahi g17)
explicitly calls apple_clpc_gpu_clear_busy() after genuine idle gaps,
system resume, and teardown, stop wiping gpu->busy_valid on every
apple_clpc_gpu_set_active(gpu, false) call.

Previously, paced 24-30 fps workloads (33-42 ms frame period) triggered
g17's 16 ms effort clear between every frame while CLPC still held its
rail vote for APPLE_CLPC_HOLD_MS (32 ms), wiping busy_valid and
resetting the 400 ms down-step timer on every frame so DCS and fabric
stayed pinned at the top column continuously.

Add a KUnit test in clpc.c covering preservation across brief inactivity
and explicit clear, and extend tools/asahi/clpc-gpu-demand-tests.py with
end-to-end 24 fps paced coverage and negative controls.

Signed-off-by: Erik Bourget <[email protected]>
@erikwb
erikwb requested review from a team and DjDeveloperr as code owners November 27, 2026 15:58

@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: HOLD at 206e5628ffd4

Blockers: Hosted CI and a T604x hardware regression. The J716c receipt includes the still-open #3400 ladder. Establish the landing order or qualify the final head on the intended base, and include a real suspend/resume row beyond the device-phase test.

Checked: Code approved. The revised paths preserve the share over short gaps and explicitly clear it for long-gap restart, teardown, and wake. Checked the saturation path also retires the inactive interval.

Evidence

The exact-head CLPC host fixture passed both positive groups and all 29 negative controls it printed, including the 24 fps, long-idle and legacy clear-on-inactive cases. This was a host run.

@github-actions github-actions Bot added area:gpu Area from CODEOWNERS (bot) area:platform Area from CODEOWNERS (bot) blast:m5 Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Nov 27, 2026
@github-actions

github-actions Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Merge readiness at 206e5628: not ready yet

Check Detail
CI at head running running: KUnit jpeg, KUnit prores, KUnit scaler, KUnit macsmc, KUnit clpc, KUnit apple-spmi-nvmem
Review ok approved by DjDeveloperr
Requested changes ok none
Hardware row at head ok in the PR body at 206e5628
Conflicts ok none
PR text ok Risk: two-way · G17 Macs using CLPC GPU busy-share scaling (T604x/T6050); drivers that never call appleclpcgpusetbusy() (g16, g18, m5) keep busyvalid == false unchanged.

Areas: area:gpu, area:platform

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

@satchlj

satchlj commented Nov 27, 2026

Copy link
Copy Markdown
Member

Exact-head hardware verification at 206e5628ffd4 on Mac Studio M5 Max (J775c, T6050 / G17C B1, kernel 7.3.0-pr3407+ built from unmodified 206e5628ffd4, booted with the J775c board DTB carrying apple,gpu-busy-memory-states / apple,gpu-busy-permille, default cmdline, AC power, Borealis Vulkan vkCmdFillBuffer pacer):

Automated host check at 206e5628ffd4

  • tools/asahi/clpc-gpu-demand-tests.py: PASS (all positive + 31 negative controls).

J775c (T6050) live CLPC matrix (286806000.power-management:performance-controller@1/status, macsmc_hwmon DC Input Power)

Workload DC Input Power (med) Busy share CLPC level DCS / SOC state Update errors
Idle (before) 10,363 mW 0 (none) 3 (idle) DCS 0 / SOC 0 (28/30) 0
15 fps light 10,720 mW 0 (0–3, reported) 0 (45/45) DCS 1 / SOC 0 (41/45) 0
24 fps light 10,727 mW 0 (0–0, reported) 0 (45/45) DCS 1 / SOC 0 (45/45) 0
30 fps light 10,572 mW 0 (0–0, reported) 0 (45/45) DCS 1 / SOC 0 (43/45) 0
60 fps light 10,591 mW 1 (1–1, reported) 0 (45/45) DCS 1 / SOC 0 (42/45) 0
120 fps light 11,156 mW 2 (1–2, reported) 0 (45/45) DCS 1 / SOC 0 (41/45) 0
Heavy burst 54,559 mW 1000 (reported) 3 (30/30) DCS 6 / SOC 2 (30/30) 0
Post-burst idle (+0.2 s..+4.0 s) — 1000 (reported, active 0) 3 (idle) DCS 0 / SOC 0 (last_vote 0x0) 0

Idle-to-burst reset check (BUSY_IDLE_RESET_NS = 100 ms)

  • After 24 fps light (level 0, DCS 1 / SOC 0) -> 150 ms genuine idle (DCS 0 / SOC 0, active 0) -> first burst submission: immediately clears busy to 0 permille (none) level 3 and jumps straight to DCS 6 / SOC 2 (last_vote: 0x26 reason_bits 0x2).

s2idle (pm_test=devices with freeze) finding on J775c

J775c only exposes mem_sleep: [s2idle] (no deep-sleep DT nodes), so asahi's Shared::sleep_up() (which only runs after a deep-sleep firmware restart) does not run on s2idle resume, and apple_clpc_resume() does not call apple_clpc_gpu_clear_busy(clpc->gpu):

BEFORE (from 24 fps level 0):
  dcs: rail 0 state 1 | soc: rail 1 state 0 | last_vote: 0x1 reason_bits 0x2
  host_gpu busy: 0 permille (reported) level 0 | host_gpu: active 1 sequence 24337
AFTER pm_test=devices (freeze):
  dcs: rail 0 state 1 | soc: rail 1 state 0 | last_vote: 0x1 reason_bits 0x2
  host_gpu busy: 0 permille (reported) level 0 | host_gpu: active 1 sequence 24337

Post-resume GPU submission succeeded cleanly (rc=0), and dmesg had 0 Oops/BUG:/WARNING:/Call trace/GPU recovery lines and 0 failed systemd units.

Note for follow-up / before merge: On s2idle, CLOCK_MONOTONIC still freezes during timekeeping_suspend(), so leaving clear_effort_and_busy() only inside deep-sleep Shared::sleep_up() (and not clearing clpc->gpu->busy_valid in apple_clpc_resume() / non-deep g17 resume) leaves stale level 0 (reported) across s2idle suspend/resume. Clearing clpc->gpu busy in apple_clpc_resume() (and resetting BusyShare on s2idle resume too, or using boottime for the idle-reset threshold) would cover both deep and s2idle cleanly.

@erikwb

erikwb commented Nov 27, 2026

Copy link
Copy Markdown
Contributor Author

Addressing the HOLD items at 206e5628ffd4:

  1. Intended base (main) and landing order with #3400: #3407 targets main directly and has no code dependency on #3400, so it can land on main first (independently of #3400). On clean main without #3400, t6050-j716c.dts leaves apple,gpu-busy-memory-states unset (has_busy == false in apple_clpc_gpu_input_demand()), so the DT-selected CLPC busy-share ladder stays disabled on J716c while g17 still exercises BusyShare::note_inactive(), BusyShare::resume(), Port::clear_effort_and_busy(), apple_clpc_gpu_set_busy(), and apple_clpc_gpu_clear_busy(). The J716c hardware rows so far ran with #3400's ladder in the live DT (batched candidate c3da8eed6f72); a standalone clean main (206e5628ffd4 without #3400) J716c row is not yet run.
  2. Real suspend/resume beyond pm_test=devices: On J716c at 206e5628ffd4 (batched candidate c3da8eed6f72) a pm_test=devices suspend/resume took host_gpu busy from (reported) 1000 permille to (none), and the next burst went straight to level 3; a real s2idle suspend/resume on J716c has not been run. At idle before suspend, debugfs still shows the last reported share until the next activity clears it lazily (resume_busy_if_inactive), while the rail floor is already released (active 0, DCS 0 / SOC 0).
  3. T604x coverage: t6041.dtsi enables apple,gpu-busy-memory-states on main and t6040/t6041 share the g17 + clpc.c busy-share path. No T6040 or T6041 hardware is on site; standalone J716c without #3400 covers only g17 busy-share bookkeeping and resume (since the DT-selected CLPC busy-share ladder stays disabled without #3400) alongside a J713 (M4, T8132, g16 + clpc.c) non-regression run at 206e5628ffd4 (batched candidate b3dbf237542b: Vulkan workload, 3 s idle, 3x s2idle, second Vulkan workload, both bad=0 PASS, 0 GPU faults, 0 CLPC errors), leaving the T6041 busy-share ladder hardware run explicitly open for a T6041 owner.
  4. Hosted CI and local verification at 206e5628ffd4: apple-build, host-tests, pr-text, rust-build, source, PMGR power state KUnit, SEP source checks, and KUnit ane-boot/ane-pm/dcp-fabric/dcp-topology passed on GitHub (remaining KUnit and pr-readiness jobs are queued). Locally at 206e5628ffd4:
    • ./tools/testing/kunit/kunit.py run --arch=arm64 --make_options LLVM=1 --kunitconfig=drivers/soc/apple/clpc.kunitconfig: 19/19 passed (apple-clpc-gpu 14/14, apple-clpc-policy 5/5).
    • ./tools/testing/kunit/kunit.py run --arch=arm64 --make_options LLVM=1 --kunitconfig=drivers/gpu/drm/asahi/.kunitconfig: 491 passed, 4 skipped, 0 failed (asahi_g17_idle_hold 17/17).
    • python3 tools/asahi/clpc-gpu-demand-tests.py: PASS (both positive groups and all 29 negative controls — correcting the earlier PR body typo of 31).
    • ./scripts/checkpatch.pl --strict --git a561e89792d5..HEAD: 0 errors, 0 warnings, 0 checks.

DjDeveloperr added a commit that referenced this pull request Nov 30, 2026
Resolved idle_check() to #3415's form (its `active` covers #3684's
retired-submission case) and kept #3407's resume_busy_if_inactive()
beside #3415's direct-admission helpers in port.rs.

Signed-off-by: DjDeveloperr <[email protected]>
@DjDeveloperr

Copy link
Copy Markdown
Contributor

J700 (Neo, G17P) row at combined SHA 936d72d0 (wip/ewb-g17-rows-20261130 = main fe9af4b6 + #3684 + #3407 + #3306 + #3415 + #3346)

Kernel: one-shot trial boot 472ed0ed with the dead-man timer and the default command line. Stock Fedora -41 was restored and verified afterwards.

  • Built warm from an existing J700 tree; the source tree was verified to equal 936d72d0 (tree 9da3305d).
  • Image sha256 27185481, aurora.ko sha256 625c14e8, vmlinux build ID a7620fb3.

Results

  • GPU use on the KDE desktop: gpubench 4-queue render (per-queue CRC ok), 2-queue compute, concurrent render + compute, vkcube --c 300 on Wayland. All completed.
  • GPU effort after work: effort_full was true during work (48/49 samples) and cleared within about 0.3 s of idle.
  • Host hold at the default idle_off_delay_ms=2: stayed off.
  • Host hold at idle_off_delay_ms=50: on during work (18 samples), released as soon as the work ended, and stayed off through 5 s of idle.
  • Wi-Fi (wld0) connected and Bluetooth (hci0) powered, before and after the sleep.
  • One test sleep (rtcwake -m mem -s 30, deep): suspended and resumed on the same boot. Afterwards Wi-Fi was up and a GPU render readback was valid. During suspend entry the log had one line, dwc3-apple 40a280000.usb: PM: device_prepare(): genpd_prepare returns -11; the suspend still completed.
  • 0 GPU faults, timeouts or submission errors; 0 WARN, 0 AVC; 0 failed units (stock: 0).
  • Kernel error lines: 11, against 12 on a stock boot, with no new kinds. SMC 0 and PCIe 0, before and after the sleep.

This PR: CLPC busy share. No CLPC debugfs status node exists on J700, so CLPC votes were not sampled; the GPU effort and hold rows above cover the G17 side.

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approved. A brief idle now marks the busy share inactive instead of forgetting it, and a gap of 100 ms or more still clears it, both here and in CLPC through apple_clpc_gpu_clear_busy(). Teardown and sleep clear it as before, clear_busy() accepts a missing provider, and drivers that never report a busy share (g16, g18, m5) are unchanged. The J716c rows ran with #3400's ladder, which main now carries. The G17P row is in: a Neo (J700) boot of a candidate carrying this head unchanged ran render, compute and concurrent work and one deep sleep, with 0 GPU faults or timeouts and no new kernel errors.

@RyanTheTide

Copy link
Copy Markdown
Contributor

Merging at 206e5628ffd4 (B2 merge train, 12-01 merge bar). Approval at this head: DjDeveloperr,aurora-silicon-review[bot]. Row: in the PR body at 206e562 (J716c). CI: linux train L2 = main (after train L1) + #1489 #3223 #3291 #3333 #3395 #3407 #3547 #3560 #3651 #3684 #3569 #3599 (candidate dd0c7bb9): Apple driver compile pass, Apple DTBs W=1 pass, planned KUnit ane-boot/clpc/ane-pm/dcp-topology/ave/asahi all pass; host-tests/dt-checks green at this head where they apply. The rest of the hosted run is queued behind the backlog. Revert: git revert -m 1 <merge commit>.

@RyanTheTide
RyanTheTide merged commit 4371589 into main Dec 1, 2026
65 of 81 checks passed
@RyanTheTide
RyanTheTide deleted the fix/clpc-gpu-busy-brief-idle branch December 1, 2026 07:30
erikwb added a commit that referenced this pull request Dec 1, 2026
Resolve tools/asahi/clpc-gpu-demand-tests.py against origin/main (#3407 and T8142 DT checks) by keeping T8132, T6050, and T8142 DT parsing and negative controls together with the brief-idle BusyShare and CLPC tests.

Signed-off-by: Erik Bourget <[email protected]>
erikwb added a commit that referenced this pull request Dec 1, 2026
Resolve idle_check() in drivers/gpu/drm/asahi/g17/mod.rs against #3684 by keeping DirectIdle::observe() and passing active (in_flight || direct_publishing) into Effort::idle() and idle_hold(), resolve drivers/gpu/drm/asahi/g17/port.rs against #3407 by preserving both the direct-publisher tracking/admission helpers and brief-idle busy-share tracking (resume_busy_if_inactive(), set_effort_full(), clear_effort_and_busy()), and update tools/asahi/g17-m5-effort-tests.py to cover DirectIdle::observe().

Signed-off-by: Erik Bourget <[email protected]>
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) area:platform Area from CODEOWNERS (bot) blast:m5 Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants