Repository navigation
arm64: dts: apple: t6050: allow idle ps_isp_sys domain to power off - #3329
Conversation
When two or more devices in the same genpd enter RPM_SUSPENDING concurrently, each device's genpd_runtime_suspend() calls genpd_power_off(genpd, true, ...) before runtime PM updates either device to RPM_SUSPENDED. Both calls can observe not_suspended > 1 and decline power-off, leaving the domain powered on after every member reaches RPM_SUSPENDED. When genpd_power_off() declines solely because all non-suspended devices are currently in RPM_SUSPENDING, queue genpd->power_off_work. In genpd_power_off_work_fn(), if any device is still mid-suspend, wait on its runtime PM wait queue outside genpd_lock() until RPM_SUSPENDING completes and reevaluate power-off. Signed-off-by: Erik Bourget <[email protected]>
During apple_isp_probe(), apple_isp_attach_genpd() holds a DL_FLAG_RPM_ACTIVE supplier reference on the primary power domain (ps_isp_sys). On boards with deferred firmware start (T6050), probe enabled runtime PM while the ISP device was still RPM_SUSPENDED, so the post-probe idle request could not suspend it and release supplier references until the first stream ended. Mark the device active under a probe runtime PM reference before enabling runtime PM and release it with pm_runtime_put_sync() at the end of probe (unwinding cleanly on error), so ps_isp_sys and the ISP DARTs suspend immediately after probe when no stream is active. Also return -EPROBE_DEFER from apple_isp_init_iommu() when DT lists iommus but no IOMMU domain is attached yet. Signed-off-by: Erik Bourget <[email protected]>
T6050 ISP DARTs (apple,t6050-isp-dart) previously assumed ps_isp_sys stayed powered at runtime, so runtime suspend only saved registers when system sleep was described and runtime resume only restored them when system sleep had set isp_sleep_lost. Allowing ps_isp_sys to power off between camera streams resets the host streams, remaps, and v2.4 error reporting masks. Prepare apple-dart for runtime ps_isp_sys power-off: - For isp_host DARTs, create managed supplier links without DL_FLAG_RPM_ACTIVE in apple_dart_probe_device(). On link creation failure, clean up private data and master_cfg and return -ENODEV so supplier registration scans never roll back DART registration while apple-isp defers probe if its IOMMU domain is missing. - Require pm_runtime_resume_and_get() to succeed across all DARTs in paging, identity, and blocked attach before touching MMIO, unwinding prior references on failure. - Hold a runtime PM reference across apple_dart_hw_reset() in apple_dart_remove() so removing a suspended DART never accesses powered-off registers. - Guard apple_dart_isp_host_reset() with live apple_dart_is_locked() and revision-appropriate apple_dart_fault_pending(), and unmask host stream fault reporting with the revision-appropriate mask (DART_T8110_V2_ERROR_MASK and host SID bits in ERR_SID_ENABLE(0) on v2.2+/v2.4, leaving secure streams 4/5/8/9 untouched). - Save host stream registers (and v2.2+ ERR_IRQ_ENABLE) on every runtime suspend when not already marked lost, check retention on runtime resume, and restore and verify ENABLE_STREAMS, TCR, and all TTBRs before clearing isp_sleep_lost (leaving it set on failure). - Skip noirq DAPF replay for isp_host DARTs, since ps_isp_sys may still be off at wake and apple-isp owns and reprograms the DAPF via apple_isp_program_dapf() on every firmware boot. Signed-off-by: Erik Bourget <[email protected]>
Every other Apple Silicon board leaves ps_isp_sys managed by runtime PM rather than forcing apple,always-on. On T6050 boards sharing t6050-j716c-isp.dtsi (J716c, J714s, and K116s), isp0 and its DARTs stay disabled until the loader hands over camera firmware; when enabled, apple-isp releases its probe runtime PM references after probe and reprograms the DAPF on every firmware boot while apple,t6050-isp-dart saves and restores host streams and error reporting across runtime ps_isp_sys power-off. Drop apple,always-on from ps_isp_sys so the domain powers off when idle instead of staying on continuously. Signed-off-by: Erik Bourget <[email protected]>
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
…sids apple_dart_attach_dev_paging_unguarded() now acquires and releases per-DART runtime PM references via apple_dart_cfg_pm_get() and apple_dart_cfg_pm_put(). Include both helpers in the standalone bcm4377-radio-sids.py harness extraction list so the test compiles against the updated function. Signed-off-by: Erik Bourget <[email protected]>
DjDeveloperr
left a comment
There was a problem hiding this comment.
Verdict at d3cf4ca61518: no code blockers found. Not approving yet: CI is still running, and the hardware rows that exercise the new paths are still owed (see below).
The PR is five commits, not only the DT change: the generic genpd core, apple-isp probe, apple-dart's ISP power-loss restore, the T6050 DT and a selftest. Only the DT commit is T6050-only. The genpd and apple-isp changes run on every Mac.
Blockers: none.
Checked:
- genpd (
drivers/pmdomain/core.c).- The per-device test is equivalent to before:
!pm_runtime_suspended()is now "runtime PM disabled or status notRPM_SUSPENDED". - New: when power-off is declined only because every remaining device is
RPM_SUSPENDING,power_off_workis queued.- The work function takes a reference to one suspending device and waits, outside
genpd_lock(), on itspower.wait_queueuntil the status changes.rpm_suspend()doeswake_up_all()on every status change. - It then re-evaluates.
- A suspend that fails, leaving the device active, ends the loop, because "all suspending" no longer holds.
- The work function takes a reference to one suspending device and waits, outside
- It is safe for IRQ-safe domains (Apple PMGR sets
GENPD_FLAG_IRQ_SAFE): queueing from atomic context,get_device()under the lock,put_device()after it. - Parent re-evaluation queues the parent's own work.
- This fixes a race that exists upstream too, two devices suspending at once each seeing the other as not yet suspended, so it would be worth sending to linux-pm. Here it means more Apple domains can now power off than before, on every Mac.
- The per-device test is equivalent to before:
- apple-isp probe.
- The device is marked active under a probe reference before
pm_runtime_enable(), and released withpm_runtime_put_sync()at the end of probe. - Every later failure unwinds through
disable_rpm(disable,set_suspended,put_noidle), including thehalt_firmwarepath. - The ISP's runtime callbacks are no-ops, and
apple_isp_detect_camera()boots the firmware explicitly. So on Macs withoutdeferred_startthe only change is that the supplier domains are held through probe and released at its end. -EPROBE_DEFERis returned only when DT listsiommusbut no domain is attached yet.
- The device is marked active under a probe reference before
- apple-dart.
- Attach (paging, identity, blocked) now fails cleanly if a DART can't resume (
apple_dart_cfg_pm_get()unwinds the earlier references), instead of a WARN and touching unpowered MMIO. remove()resumes the DART aroundapple_dart_hw_reset().- The ISP host DARTs:
- skip
DL_FLAG_RPM_ACTIVE; a link failure frees the master cfg and returns-ENODEV, and the earlier borrowed-DART error path no longer leaks it; - save host stream state on every runtime suspend that hasn't already lost it;
- on resume, check retention (
ENABLE_STREAMS, error masks, TCR, every TTBR), and otherwise reset, restore and verify, keepingisp_sleep_lostset on failure.
- skip
- Dropping
power_retainedfor ISP DARTs is safe: TLB sync always doespm_runtime_resume_and_get()first, and the suspend and resume ISP branches return before thepower_retainedchecks. - Skipping the noirq DAPF replay for ISP DARTs relies on apple-isp reprogramming the DAPF at every firmware boot, as the commit says.
- Attach (paging, identity, blocked) now fails cleanly if a DART can't resume (
- DT.
- The compiled
t6050-{j716c,j714s,k116s}.dtbkeepapple,no-auto-pmonisp-sysand no longer haveapple,always-on. - No other Apple SoC DT sets
apple,always-ononps_isp_sys. isp0and its three DARTs staystatus = "disabled"until the loader enables them.
- The compiled
- Build and tests.
make W=1(asahi config, LLVM, arm64) buildsdrivers/pmdomain/core.o,drivers/iommu/apple-dart.oanddrivers/media/platform/apple/isp/isp-drv.owith no new warnings. The only one, an unusedapple_isp_hw_t6040atisp-drv.c:1343, is on a line this PR doesn't touch.- The three T6050 dtbs build.
checkpatch --strictis clean on all five commits.- Host tests: dart 16/16, isp 25/25, radio-sids 1/1.
- Merge and text. The PR merges into current
main(8e2ee15f3ca3) without conflicts. Commit and PR text are plain, with no attribution.
Owed before merge:
- CI at this head.
host-testsandpr-textpass;apple-build,dt-checksand the KUnit jobs were still pending when I posted this. - A row that actually exercises the new ISP paths. The J716c row ran with
isp0and its DARTs disabled in DT. So the domain powering off there had no consumers, and the ISP probe, DART save/restore across runtime power-off, and capture all went untested on hardware.- Needed: a loader-enabled T6050 (J714s) at this head:
isp-sysoff at idle, then a camera capture, then idle again (domain off) and a second capture. - Above all, the second capture must work. That checks that both the host streams and the secure core's streams (4/5/8/9, which the restore leaves alone) are still usable after the domain was off.
- Needed: a loader-enabled T6050 (J714s) at this head:
- A system sleep with the domain off.
memsleep and resume on J714s or J716c withisp-sysoff: no row covered S2R. - Regression boots on other generations, for the genpd and apple-isp changes. At least one each of M1/M2, M3 and M4, plus the Neo, ideally with a camera open/close on one of them:
pm_genpd_summarybefore and after idle, a display power cycle, a sleep/resume, and no new kernel errors. The PR lists these under Not yet; they are needed before merge for shared code.
Evidence
Head d3cf4ca61518d4bbfae423ca3cfa11f58f7fe5e4, base ef26a43be753; merged with main 8e2ee15f3ca3: clean. Linux aarch64 host.
| Check | Result |
|---|---|
checkpatch.pl --strict (5 commits) |
0 errors, 0 warnings, 0 checks each |
make LLVM=1 W=1 drivers/pmdomain/core.o drivers/iommu/apple-dart.o drivers/media/platform/apple/isp/isp-drv.o |
builds; only the existing isp-drv.c:1343 unused-variable warning |
make apple/t6050-{j716c,j714s,k116s}.dtb + dtc -I dtb -O dts |
builds; isp-sys: status = "okay", apple,no-auto-pm, no apple,always-on |
run-host-tests.py --only dart / isp / radio-sids |
16/16, 25/25, 1/1 |
gh pr checks |
host-tests and pr-text pass; apple-build, dt-checks and KUnit pending |
|
All CI jobs at On the requested hardware rows:
|
RyanTheTide
left a comment
There was a problem hiding this comment.
Verdict at d3cf4ca6: not yet. Please split, then rows.
1. The genpd core change is its own PR. drivers/pmdomain/core.c reworks genpd_power_off() into genpd_power_off_wait(). It now counts RPM_SUSPENDING devices, treats runtime-PM-disabled devices as not suspended, and re-queues power_off_work. That changes when every genpd domain on every Mac, and every other platform, may power off. It's the core path behind our s2idle domain work. It needs its own PR, with a description of the race it fixes (which device stays in RPM_SUSPENDING, and why the existing one_dev_on handling isn't enough), and regression rows on genpd-heavy Macs. We can run the J616s s2idle domain check (pmgr dyndbg domain-off counts), the J713 and the M1 Pro.
2. The ISP path isn't exercised by the row. On the J716c, Stage 2 keeps isp@580000000 disabled, so the row proves ps_isp_sys turns off with no ISP consumer. It doesn't prove the new apple-isp runtime suspend/resume or the DART host-stream restore (apple_dart_isp_host_enable_errors()) work. That needs a T6050 with the ISP enabled and a camera capture across an idle power-off and back, or a note that this part waits for the ISP bring-up.
3. Smaller: dropping apple,always-on on the J716c is fine once (1) and (2) are covered. The bcm4377-radio-sids.py selftest change looks unrelated to the ISP; please say why it's here or move it.
…uspends" Split the genpd core change out into its own PR. This reverts commit 3e41b92. Signed-off-by: Erik Bourget <[email protected]>
Read-modify-write DART_T8110_ENABLE_STREAMS in apple_dart_isp_host_reset() so non-host enables (such as the secure core's streams 4/5/8/9) survive initial reset and runtime power-off restore. Use persistent managed DL_FLAG_PM_RUNTIME supplier links (without DL_FLAG_STATELESS, DL_FLAG_RPM_ACTIVE, or DL_FLAG_AUTOREMOVE_*) for isp_host DARTs in apple_dart_probe_device() so the driver core enforces consumer-before-supplier unbind ordering across primary and secondary ISP DARTs and retains dormant links if a secondary DART unbinds. Driver core owns managed link lifetime on registered consumers (calling device_link_del() or device_link_remove() WARNs in device_link_put_kref()), so return -ENODEV on link failure and let driver core purge links on device unregistration. Add host test coverage in tools/asahi/apple-dart-isp-host-tests.py (plus negative controls). Signed-off-by: Erik Bourget <[email protected]>
|
Updated at
Verification at
|
There was a problem hiding this comment.
Verdict: MERGE at 2358b528
Blockers: none (re-run the cancelled pr-text and readiness checks before landing; 21/21 build/host/KUnit CI checks green).
Checked:
8b78ec7fcleanly splits out thedrivers/pmdomain/core.cgenericgenpdchange into its own follow-up, and2358b528preserves non-host DART stream enables on ISP reset with persistent managedDL_FLAG_PM_RUNTIMEISP supplier links +apple-dart-isp-host-tests.py.- Exact-head hardware verification at
2358b5286c54across three Mac generations (default cmdline, 0 ISP/DART errors): J713 (M4 Air / T8132: 16 ISP domainsoff-0 -> on -> off-0with/dev/video01280x720 NV12 capture), J716c (M5 Max / T6050:isp-sysand childrenoff-0across 2xpm_test=devices), and J313 (M1 Air / T8103: 14 ISP domainsoff-0 -> on -> off-0across 60-frame 1280x720 NV12 capture). - Checked for Apple material, tool attribution, private serials, and board gating: clean;
MERGEABLEonmain.
Evidence
- Head:
2358b5286c54(base: main,mergeable: MERGEABLE,+880/-61across 7 files).
|
code-owner ping <@422957901716652033> / @DjDeveloperr: merge train at |
|
Merging under the 6-point rule (Ryan 09:29, permanent), at |
Signed-off-by: Ryan Murray <[email protected]>
|
Forward-merged |
There was a problem hiding this comment.
Verified both merge parents and compared the functional diff against each respective main base. All changed lines match the reviewed revision, with the ISP domain status change following the main-branch DTS rename. Source approval at the current head. Keep current CI and retain the documented distinction between idle-off on the tested J716c and post-capture idle-off on loader-enabled T6050.
|
@RyanTheTide @DjDeveloperr Verified the forward-merged head
Patch equivalence, local checks, and live CI at
|
|
Merging under the 6-point rule (Ryan 09:29, permanent), at |
Main already owns the shared T6050 camera description (ISP, its three DARTs and power states) with the loader reserving the firmware segments and enabling isp0, so the K114c only needs its own include and the per-board sensor overrides. The ISP and its DARTs stay disabled in the source DTB with aliases for the loader handoff, and no static reserved-memory region is carried, so bisectable history contains only the safe setup. Reviewed-as: erikwb asked to keep main's shared description and add only the K114c include and board overrides, without restoring the always-on ISP system vote that aurora-silicon#3329 removed (aurora-silicon#2566).
What: Allow the T6050
ps_isp_syspower domain to power off when idle (when the ISP is disabled now, and after capture once the split-outgenpdconcurrent-suspend fix lands) by preparingapple-ispandapple,t6050-isp-dartfor runtime domain power-off and droppingapple,always-onfromarch/arm64/boot/dts/apple/t6050-isp.dtsi(with thebcm4377-radio-sids.pyandapple-dart-fwhost-test updates plusapple-dart-isp-host-tests.pycoverage).Tested: Build/tests and live hardware at merged head
8cfb9fbf37b4acrossJ716c(T6050),J713(T8132), andJ313(T8103, unisolated post-deep-S2R regression), with hashes, commands, and historical runs in Evidence:T6050, batched3545ebecb76f,5/7blob-identical,2/7hunks-present, default cmdline):isp-sys,isp_cpu/fe/dprx/secure/be/clr, andispsens0stayedoff-0at idle and across 4×pm_test=devices+ 2×pm_test=platform,0ISP/DART errors, 6-item smoke pass (aurora-peripherals.servicewarm-reboot baseline failure also on default/control). Caveat: ISP-disabled idle-off only (Stage 2 DT keepsisp@580000000andisp0_dart{,1,2}status = "disabled").T8132, batched76649338a1bc,5/7blob-identical,2/7hunks-present, default cmdline +panic=10): 14isp_*domains (14off-0before -> all14onduring 90-frame/dev/video0capture -> all14off-04 s and 10 s after close,0ISP/DART faults), 8-item smoke pass (0failed units,0AppArmor denials;1one-offbrcmfmacring line on76649338a1bc,0times in the preceding 8 boots, no recurrence over 5×wlan0down/up + 5×s2idle; attribution remains open). (Earlier2358b5286c545-frame capture logged16ISP domains includingispsens0/1.)T8103, Group Amain+ 9 PRs, verified byte-identical against this PR merged alone onto the samemain, undocked) — UNISOLATED POST-DEEP-S2R REGRESSION: boot smoke, 3× DPMS off/on, 2× deep S2R, and pre-sleep/dev/video0capture passed (14isp_*domainson->off-0;ispsens0-3off-0), but capture failed after the first deep-S2R resume (apple-ispfirmware boot-19, DART translation fault), whereas baselinemain(ee36fbdcd1c8) captured successfully after its first deep-S2R resume (before J313 became unreachable on the second baseline deep S2R). An isolated#3329-only kernel was built and parity-checked but never booted before J313 became unreachable, so isolated#3329verification on J313 is required before merge.8cfb9fbf37b4:W=1build (apple-dart.o,isp-drv.o,core.o, 7×t6050-*.dtbCHECK_DTBS=y),run-host-tests.py(--only dart17/17,--only isp26/26,--only radio-sids1/1), KUnitisp(59/59), cleangit merge-treeagainstorigin/main(18058ea228e2), and 17/21 CI checks pass (4 KUnit suites pending, 0 failing, 1 supersededreadinesscancelled).Risk: two-way door · T6050 Macs sharing
t6050-isp.dtsi(J714c,J714s,J716c,J716s,K114s,K116c,K116s) plus sharedapple-dartandapple-ispruntime PM paths on all Apple Silicon Macs.Revert:
git revert -m 1 <merge-commit>onmain(kernel driver, DT, and test changes only; no persistent on-disk, ESP, or Stage 2 state is modified).Not yet:
#3329-only verification onJ313(T8103) after hardware recovery (required before merge): determine whether the Group A post-deep-S2R/dev/video0capture failure (apple-ispfirmware boot-19, DART translation fault — which passed after the first deep S2R on baselinemainee36fbdcd1c8) is caused by#3329or another Group A PR (#3329-only kernel was built and parity-checked but never booted before J313 became unreachable on baselinemain's second deep S2R).J716c(M5 Max 16" MacBook Pro, T6050) fullmemS2R confirmingisp-sysoff-0before and afterdeepsleep (unattended RTC wake is blocked becauseapple,t6050-pmu-rtchas nointerruptsint6050-j716c-sleep.dtsi/rtc-apple-pmu.c, confirmed byrtcwake -m no -s 5leavingwakealarmset withalrm_pending: no);J713(M4 MacBook Air, T8132)deepsleep oncemain's pre-existingJ713deep-sleep reset is fixed; idle-off after capture and two captures separated by confirmedps_isp_syspower-off on loader-enabled T6050 hardware (awaits both loader ISP bring-up, e.g.J714s— since Stage 2 keepsisp@580000000andisp0_dart{,1,2}status = "disabled"onJ716c— and the separategenpdconcurrent-suspend follow-up PR for3e41b9296041, because withdrivers/pmdomain/core.creverted in8b78ec7fdf88, concurrentisp0_dart{,1,2}runtime suspends can still leaveps_isp_syspowered on after capture, so theapple-ispdeferred-start runtime PM andapple,t6050-isp-darthost-stream restore paths across runtime domain power-off are not yet exercised on T6050 hardware); and external non-lab Macs (M2,M3,Neo).Details
media: apple: isp(9d3ee6bc27f2): On deferred-start boards (T8132,T8140),apple_isp_probe()enabled runtime PM whileisp->devwas stillRPM_SUSPENDED, leavingDL_FLAG_RPM_ACTIVEsupplier references pinned until the first stream ended. Mark the device active under a probe runtime PM reference (pm_runtime_get_noresume()+pm_runtime_set_active()) beforepm_runtime_enable()and release it withpm_runtime_put_sync()at probe end (unwinding throughdisable_rpmon error), and return-EPROBE_DEFERfromapple_isp_init_iommu()when DT listsiommuswithout an attached domain yet.iommu/dart(b3078844c41f+2358b5286c54): Prepareapple,t6050-isp-dart(isp_host) for runtimeps_isp_syspower-off:DL_FLAG_PM_RUNTIME, withoutDL_FLAG_STATELESS,DL_FLAG_RPM_ACTIVE, orDL_FLAG_AUTOREMOVE_*) inapple_dart_probe_device(), preserving consumer-before-supplier unbind ordering across all primary and secondary ISP DARTs and retaining dormant links if a secondary DART unbinds; return-ENODEVon link failure (after freeingv27_clientandcfg, letting driver core manage link lifetime until unregistration) so a supplier registration scan never rolls back DART registration whileapple-ispdefers probe if its domain is missing.apple_dart_hw_reset()inapple_dart_remove()and requirepm_runtime_resume_and_get()to succeed across all DARTs viaapple_dart_cfg_pm_get()/apple_dart_cfg_pm_put()in paging/identity/blocked attach before MMIO.apple_dart_isp_host_reset()withapple_dart_is_locked()andapple_dart_fault_pending(), read-modify-writeDART_T8110_ENABLE_STREAMS(readl | DART_T6050_ISP_HOST_SIDS) instead of overwriting non-host bits, and restore v2.2+/v2.4 host error masks (DART_T8110_V2_ERROR_MASK,DART_T6050_ISP_HOST_SIDSinERR_SID_ENABLE(0), savedERR_IRQ_ENABLE) viaapple_dart_isp_host_enable_errors()without disturbing secure streams4/5/8/9.save_err_irq_enable) on every runtime suspend when!isp_sleep_lost, check retention viaapple_dart_isp_host_retained()on runtime resume, and restore + verifyDART_T8110_ENABLE_STREAMS,DART_TCR, and allDART_TTBRs inapple_dart_isp_host_restore()before clearingisp_sleep_lost.apple_dart_dapf_replay()forisp_hostDARTs sinceapple-ispowns and reprograms DAPF on every firmware boot.arm64: dts: apple: t6050(924144c81c38, carried acrossmain's rename tot6050-isp.dtsiat8cfb9fbf37b4): Dropapple,always-onfrom&ps_isp_sysinarch/arm64/boot/dts/apple/t6050-isp.dtsi(shared byt6050-j714c.dts,t6050-j714s.dts,t6050-j716c.dts,t6050-j716s.dts,t6050-k114s.dts,t6050-k116c.dts, andt6050-k116s.dts).selftests: apple(d3cf4ca61518): Extractapple_dart_cfg_pm_get(andapple_dart_cfg_pm_put(intools/testing/selftests/drivers/apple/bcm4377-radio-sids.pyso the standaloneapple-dart.charness compiles against the updatedapple_dart_attach_dev_paging_unguarded()fromb3078844c41f.pmdomain: core(8b78ec7fdf88): Revert3e41b9296041(drivers/pmdomain/core.c) so the genericgenpdconcurrent-suspend reevaluation change goes in its own follow-up PR (required for reliableps_isp_sysidle-off after capture on loader-enabled T6050 hardware, because concurrentisp0_dart{,1,2}runtime suspends can otherwise observenot_suspended > 1ingenpd_power_off()and leaveps_isp_syspowered on). OnJ716c,isp@580000000andisp0_dart{,1,2}remainstatus = "disabled"in Stage 2 DT, sops_isp_syshas no attached consumers and achieves idle-off with the ISP disabled without thatgenpdchange.2358b5286c54): Addtools/asahi/apple-dart-isp-host-tests.py(registered intools/asahi/run-host-tests.py) testing productionapple_dart_isp_host_reset()/_restore()/_retained()preservation of non-host/secure SIDs4/5/8/9across simulated runtime power-off andapple_dart_probe_device()/apple_dart_release_device()persistent managedDL_FLAG_PM_RUNTIMElinks and-ENODEVfailure handling (withoverwrite-enable-streams,stateless-isp-link, andignore-isp-link-failurenegative controls verifying each mutation's exact expected assertion failure message).Evidence
8cfb9fbf37b4(Merge branch 'main' into fix/j716c-isp-sys-idle-off, mergingmain9632cbf32c90):ef26a43be753..2358b5286c54(witht6050-j716c-isp.dtsi->t6050-isp.dtsi) against8cfb9fbf37b4^2..8cfb9fbf37b4shows every PR hunk is identical (arch/arm64/boot/dts/apple/t6050-isp.dtsi,drivers/iommu/apple-dart.c,drivers/media/platform/apple/isp/isp-drv.c,tools/asahi/apple-dart-fw/fixture.c,tools/asahi/apple-dart-isp-host-tests.py,tools/asahi/run-host-tests.py,tools/testing/selftests/drivers/apple/bcm4377-radio-sids.py).git merge-tree --write-tree origin/main 8cfb9fbf37b4againstorigin/main(18058ea228e2): clean (1ef6987f468de952bd1f06d2420bad88288bf937).git diff --check 8cfb9fbf37b4^2..8cfb9fbf37b4: clean.scripts/checkpatch.pl --strict --git 8b78ec7fdf88..2358b5286c54: 0 errors, 1 genericMAINTAINERSreminder for new filetools/asahi/apple-dart-isp-host-tests.py(covered byF: tools/asahi/), 0 checks.ARCH=arm64 LLVM=1 W=1(aurora_defconfig) at8cfb9fbf37b4:drivers/iommu/apple-dart.o(0 warnings),drivers/media/platform/apple/isp/isp-drv.o(0 new warnings; pre-existing unusedapple_isp_hw_t6040at line 1343),drivers/pmdomain/core.o(0 new warnings; pre-existing upstreamgenpd_power_offkernel-doc warning at line 975), andapple/t6050-{j714c,j714s,j716c,j716s,k114s,k116c,k116s}.dtbbuilt cleanly (power-controller@3a0label = "isp-sys"omitsapple,always-on;;CHECK_DTBS=ypasses with 0 new warnings on ISP or power-controller nodes).8cfb9fbf37b4:python3 tools/asahi/run-host-tests.py --only dart(17/17),--only isp(26/26), and--only radio-sids(1/1) all PASS.8cfb9fbf37b4:./tools/testing/kunit/kunit.py run --arch=arm64 --make_options LLVM=1 --kunitconfig=drivers/media/platform/apple/isp/.kunitconfigPASS (59/59).8cfb9fbf37b4(gh pr checks 3329): 17 passing (apple-build,dt-checks,host-tests,pr-text / pr-text, latestreadiness / readiness, and 12KUnitjobs:ane-boot,ane-pm,asahi,avd,ave,dcp-fabric,dcp-topology,isp,jpeg,prores,scaler,spi-hid-apple), 4 pending (KUnit macsmcin progress;KUnit apple-spmi-nvmem,KUnit trusted-keys,KUnit clpcqueued), 0 failing, 1 supersededreadinessrun cancelled.8cfb9fbf37b4(2026-11-28):3545ebecb76f(origin/mainb897ccb4e71c+ 18 PRs,CONFIG_ARM_APPLE_SOC_CPUFREQ=m, AC power, default cmdline;5/7files blob-identical,2/7hunks-present,0not provable). Hashes:Image.gzSHA-256d56efde4c7232208bd29d5c4e5890319e0050595dd4f4b1c3844df6656a08312,t6050-j716c.dtbSHA-256d2f0db7a5026ae9cc4e1cff61dca38b4d1b363d47e5bad696ef65c7d715517e0, modules SHA-2569d5782bcf02ea60a225278c9319431f902b495f6beb485d79d127c0fb2fccc92, one-shotaura-tryStage 2 SHA-256b7d99286395ddd7dadccc6d9593f4bd55391d9e787af97c18b45f58688d9885d(default Stage 2/kernel/DTB unchanged).isp-sys,isp_cpu,isp_fe,isp_dprx,isp_secure,isp_be,isp_clr, andispsens0stayedoff-0at idle and after 2×pm_test=devices(freeze), 2×pm_test=devices(mem), and 2×pm_test=platform(rc=0,fail=0);0ISP/DART errors (Stage 2 DT keepsisp@580000000andisp0_dart{,1,2}status = "disabled"). Smoke:eDP-13456x2234@120enabled, 4 input devices,wlan00% loss,AppleJ716+AppleJ716HPAIenumerated (speakerguardd-v2active), BorealisApple M5 Max (G17C B1)+vkcube --c 180OK,0failed user units,0LSM denials,0Oops/BUG/fault (aurora-peripherals.servicewarm-reboot baseline failure also on control/default;40err+lines pre-existing vs55-line default boot exceptPM: suspend debugand 3 DPMSa display-interface open failuresyslog lines).76649338a1bc(5/7files blob-identical,2/7apple-dart.c+ host-test list hunks-present, default cmdline +panic=10), kernel SHA-256e8e9fd2813dd6347176d0e4a55a70d1c694bdab75817c3ab83c441c203140491, one-shot Stage 2 SHA-256f7d4e2f7ebbfb423bd71f233f1aef7af0a39091b288a749d25f9250eb80adbfa, DTBceacf1d413c651396f4c1dfd9fa27b15c710dd849e46c2753fcff0a23a6681c6.pm_genpd_summaryin this 2026-11-28 capture lists 14isp_*domains on J713 (14off-0before capture -> all14onduring 90-frame1280x720NV12 capture on/dev/video0,v4l2-ctl --stream-mmapto/dev/null, ~30.2fps, rc0-> all14off-04 sand10 safter close,0ISP/DART faults). Smoke:eDP-12560x1664@60, MTP input,wlan00% loss,speakerguardd-v2protected tone rc0, Borealisglmark25,099,0failed units,0AppArmor denials (4err+lines: 3 baseline +1one-offbrcmfmacring line recorded on76649338a1bc,0times in the preceding 8 boots on J713, no recurrence across 5×wlan0down/up and 5×s2idle; attribution remains open).main+#3085,#3290,#3329,#3333,#3495,#3506,#3546,#3289,#3320, verified byte-identical against each PR merged alone onto the samemain, undocked on battery), kernel SHA-256888c041944da96032a9252504c4d5543b906fd98717234eca5e091150af85798, one-shot Stage 2 SHA-256949dc089ed390b7535dd5ef2a6e99975c3026658e58dbd9d17e9b20d2bbb7d71:/dev/video0capture worked: all14isp_*domains turnedon(ispsens0-3stayedoff-0on T8103) and returned tooff-0afterwards.rtcwake -d rtc1 -m mem -s 30),/dev/video0capture failed (apple-ispfirmware boot-19, DART translation fault). On baselinemain(ee36fbdcd1c8, kernel SHA-256f750b04aebd30c439edbd3b995c17b3fd9ad805a4561dadc7ecbf78040c89289),/dev/video0capture after the first deep S2R succeeded (before J313 became unreachable on the second baseline deep S2R). An isolated#3329-only kernel was built and parity-checked but never booted before J313 went unreachable, so attribution between#3329and the other Group A PRs remains open pending recovery.0AVC denials,1baseline failed unitspeakerguardd-v2-switchtest.servicealso on baselinemain), 3× DPMS off/on pass, 2× deep S2R pass (0Oops/BUG/WARN).2358b5286c54(prior tomain9632cbf32c90forward merge, default command line):ispsens0/1)off-0at idle ->onduring/dev/video0(apple-isp)1280x720NV12 capture (5frames =6,912,000bytes,0ISP/DART errors) -> back tooff-0immediately and 5 s after close.isp-sys, allisp_*subdomains, andispsens0stayedoff-0before and after 2×pm_test=devicescycles,0ISP/DART errors (exercises ISP-disabled idle-off while Stage 2 DT keepsisp@580000000andisp0_dart{,1,2}status = "disabled", distinct from post-capture idle-off on loader-enabled T6050 hardware).isp_*domains andispsens0-3off-0at idle; 60-frame1280x720NV12 capture at30.1fps (Y mean~66) brought 14 domainsonand returned all tooff-0after close; 3× open/close loops all returnedoff-0; 30-frame capture afters2idlesucceeded and returnedoff-0. In that earlier snapshot's baseline comparison, ISP capture afterdeepsleep failed with-ENODEV+apple-darttranslation-fault flood similarly on that earliermainbaseline, and domains returned cleanly tooff-0; note that the current8cfb9fbf37b4Group A vsmain(ee36fbdcd1c8) comparison above leaves post-deep-S2R attribution open pending isolated#3329testing on J313.d3cf4ca61518(predate both thedrivers/pmdomain/core.crevert8b78ec7fdf88and2358b5286c54;#issuecomment-7221028898):T6050 / J716cin candidate3e4078f656d5(mainfcb124279183plusd3cf4ca61518, default cmdline):ps_isp_sys(isp-sys) and child domains (isp_cpu,isp_fe,isp_dprx,isp_secure,isp_be,isp_clr,ispsens0) alloff-0after boot (isp@580000000isstatus = "disabled"in Stage 2 DT),0new failed units,0LSM denials,0ISP kernel errors (memS2R not reached because precedings2idledid not wake via RTC alarm); earlierd3cf4ca61518run verifiedisp-sysoff-0across 2× DPMS OFF/ON cycles oneDP-1+ dual3840x2160@240external displays.T8103 / J313in fleet candidate5509a254a6bd(default cmdline, docked): allisp_*andispsens*domainsoff-0after boot, after/dev/video0open/close, and after each of 2 deep sleeps and ans2idle; 3 DPMS cycles clean;0failed units,0AppArmor denials. Attribution caveat: 2 deep sleeps and ans2idleresumed in the clean runs, while one full run hung ins2idleand was reset by the watchdog, which later runs and a kernel with onlyd3cf4ca61518merged onmain(2 deep sleeps +s2idle, docked) did not reproduce, so that watchdog reset was not attributed to this PR.T8132 / J713(deferred_startapple-isp, firmware 27.2) in fleet candidate90de523e9ed9: allisp_*andispsens*domainsoff-0at idle, 4 s into a 60-frame/dev/video0capture (~26 fps, exit0), and after close/re-open; 3 DPMS cycles clean;0failed units,0AppArmor denials; onebrcmfmacring 4: r_ptr 0 outside depth 0line (not compared with amain-only control because that control boot did not complete). Sleep/resume caveat: a deep sleep (rtcwake -d /dev/rtc1 -m mem -s 15) on that candidate did not resume (the Mac reset, PMU panic counter1on the next boot); not attributed to a PR in the candidate or tomain(main-only control boot did not complete), so no sleep or resume claim was made for J713 in that run.