Skip to content

arm64: dts: apple: t6050: allow idle ps_isp_sys domain to power off - #3329

Merged
RyanTheTide merged 8 commits into
mainfrom
fix/j716c-isp-sys-idle-off
Nov 29, 2026
Merged

RyanTheTide merged 8 commits into
mainfrom
fix/j716c-isp-sys-idle-off

Conversation

@erikwb

@erikwb erikwb commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

What: Allow the T6050 ps_isp_sys power domain to power off when idle (when the ISP is disabled now, and after capture once the split-out genpd concurrent-suspend fix lands) by preparing apple-isp and apple,t6050-isp-dart for runtime domain power-off and dropping apple,always-on from arch/arm64/boot/dts/apple/t6050-isp.dtsi (with the bcm4377-radio-sids.py and apple-dart-fw host-test updates plus apple-dart-isp-host-tests.py coverage).
Tested: Build/tests and live hardware at merged head 8cfb9fbf37b4 across J716c (T6050), J713 (T8132), and J313 (T8103, unisolated post-deep-S2R regression), with hashes, commands, and historical runs in Evidence:

  • J716c (T6050, batched 3545ebecb76f, 5/7 blob-identical, 2/7 hunks-present, default cmdline): isp-sys, isp_cpu/fe/dprx/secure/be/clr, and ispsens0 stayed off-0 at idle and across 4× pm_test=devices + 2× pm_test=platform, 0 ISP/DART errors, 6-item smoke pass (aurora-peripherals.service warm-reboot baseline failure also on default/control). Caveat: ISP-disabled idle-off only (Stage 2 DT keeps isp@580000000 and isp0_dart{,1,2} status = "disabled").
  • J713 (T8132, batched 76649338a1bc, 5/7 blob-identical, 2/7 hunks-present, default cmdline + panic=10): 14 isp_* domains (14 off-0 before -> all 14 on during 90-frame /dev/video0 capture -> all 14 off-0 4 s and 10 s after close, 0 ISP/DART faults), 8-item smoke pass (0 failed units, 0 AppArmor denials; 1 one-off brcmfmac ring line on 76649338a1bc, 0 times in the preceding 8 boots, no recurrence over 5× wlan0 down/up + 5× s2idle; attribution remains open). (Earlier 2358b5286c54 5-frame capture logged 16 ISP domains including ispsens0/1.)
  • J313 (T8103, Group A main + 9 PRs, verified byte-identical against this PR merged alone onto the same main, undocked) — UNISOLATED POST-DEEP-S2R REGRESSION: boot smoke, 3× DPMS off/on, 2× deep S2R, and pre-sleep /dev/video0 capture passed (14 isp_* domains on -> off-0; ispsens0-3 off-0), but capture failed after the first deep-S2R resume (apple-isp firmware boot -19, DART translation fault), whereas baseline main (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 #3329 verification on J313 is required before merge.
  • Build, DT, host tests, KUnit, and CI at 8cfb9fbf37b4: W=1 build (apple-dart.o, isp-drv.o, core.o, 7× t6050-*.dtb CHECK_DTBS=y), run-host-tests.py (--only dart 17/17, --only isp 26/26, --only radio-sids 1/1), KUnit isp (59/59), clean git merge-tree against origin/main (18058ea228e2), and 17/21 CI checks pass (4 KUnit suites pending, 0 failing, 1 superseded readiness cancelled).
    Risk: two-way door · T6050 Macs sharing t6050-isp.dtsi (J714c, J714s, J716c, J716s, K114s, K116c, K116s) plus shared apple-dart and apple-isp runtime PM paths on all Apple Silicon Macs.
    Revert: git revert -m 1 <merge-commit> on main (kernel driver, DT, and test changes only; no persistent on-disk, ESP, or Stage 2 state is modified).
    Not yet:
  • Isolated #3329-only verification on J313 (T8103) after hardware recovery (required before merge): determine whether the Group A post-deep-S2R /dev/video0 capture failure (apple-isp firmware boot -19, DART translation fault — which passed after the first deep S2R on baseline main ee36fbdcd1c8) is caused by #3329 or another Group A PR (#3329-only kernel was built and parity-checked but never booted before J313 became unreachable on baseline main's second deep S2R).
  • J716c (M5 Max 16" MacBook Pro, T6050) full mem S2R confirming isp-sys off-0 before and after deep sleep (unattended RTC wake is blocked because apple,t6050-pmu-rtc has no interrupts in t6050-j716c-sleep.dtsi / rtc-apple-pmu.c, confirmed by rtcwake -m no -s 5 leaving wakealarm set with alrm_pending: no); J713 (M4 MacBook Air, T8132) deep sleep once main's pre-existing J713 deep-sleep reset is fixed; idle-off after capture and two captures separated by confirmed ps_isp_sys power-off on loader-enabled T6050 hardware (awaits both loader ISP bring-up, e.g. J714s — since Stage 2 keeps isp@580000000 and isp0_dart{,1,2} status = "disabled" on J716c — and the separate genpd concurrent-suspend follow-up PR for 3e41b9296041, because with drivers/pmdomain/core.c reverted in 8b78ec7fdf88, concurrent isp0_dart{,1,2} runtime suspends can still leave ps_isp_sys powered on after capture, so the apple-isp deferred-start runtime PM and apple,t6050-isp-dart host-stream restore paths across runtime domain power-off are not yet exercised on T6050 hardware); and external non-lab Macs (M2, M3, Neo).
Details
  1. media: apple: isp (9d3ee6bc27f2): On deferred-start boards (T8132, T8140), apple_isp_probe() enabled runtime PM while isp->dev was still RPM_SUSPENDED, leaving DL_FLAG_RPM_ACTIVE supplier 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()) before pm_runtime_enable() and release it with pm_runtime_put_sync() at probe end (unwinding through disable_rpm on error), and return -EPROBE_DEFER from apple_isp_init_iommu() when DT lists iommus without an attached domain yet.
  2. iommu/dart (b3078844c41f + 2358b5286c54): Prepare apple,t6050-isp-dart (isp_host) for runtime ps_isp_sys power-off:
    • Create persistent managed runtime-PM supplier links (DL_FLAG_PM_RUNTIME, without DL_FLAG_STATELESS, DL_FLAG_RPM_ACTIVE, or DL_FLAG_AUTOREMOVE_*) in apple_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 -ENODEV on link failure (after freeing v27_client and cfg, letting driver core manage link lifetime until unregistration) so a supplier registration scan never rolls back DART registration while apple-isp defers probe if its domain is missing.
    • Hold runtime PM across apple_dart_hw_reset() in apple_dart_remove() and require pm_runtime_resume_and_get() to succeed across all DARTs via apple_dart_cfg_pm_get() / apple_dart_cfg_pm_put() in paging/identity/blocked attach before MMIO.
    • Guard apple_dart_isp_host_reset() with apple_dart_is_locked() and apple_dart_fault_pending(), read-modify-write DART_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_SIDS in ERR_SID_ENABLE(0), saved ERR_IRQ_ENABLE) via apple_dart_isp_host_enable_errors() without disturbing secure streams 4/5/8/9.
    • Save host stream state (and v2.2+ save_err_irq_enable) on every runtime suspend when !isp_sleep_lost, check retention via apple_dart_isp_host_retained() on runtime resume, and restore + verify DART_T8110_ENABLE_STREAMS, DART_TCR, and all DART_TTBRs in apple_dart_isp_host_restore() before clearing isp_sleep_lost.
    • Skip noirq apple_dart_dapf_replay() for isp_host DARTs since apple-isp owns and reprograms DAPF on every firmware boot.
  3. arm64: dts: apple: t6050 (924144c81c38, carried across main's rename to t6050-isp.dtsi at 8cfb9fbf37b4): Drop apple,always-on from &ps_isp_sys in arch/arm64/boot/dts/apple/t6050-isp.dtsi (shared by t6050-j714c.dts, t6050-j714s.dts, t6050-j716c.dts, t6050-j716s.dts, t6050-k114s.dts, t6050-k116c.dts, and t6050-k116s.dts).
  4. selftests: apple (d3cf4ca61518): Extract apple_dart_cfg_pm_get( and apple_dart_cfg_pm_put( in tools/testing/selftests/drivers/apple/bcm4377-radio-sids.py so the standalone apple-dart.c harness compiles against the updated apple_dart_attach_dev_paging_unguarded() from b3078844c41f.
  5. Split pmdomain: core (8b78ec7fdf88): Revert 3e41b9296041 (drivers/pmdomain/core.c) so the generic genpd concurrent-suspend reevaluation change goes in its own follow-up PR (required for reliable ps_isp_sys idle-off after capture on loader-enabled T6050 hardware, because concurrent isp0_dart{,1,2} runtime suspends can otherwise observe not_suspended > 1 in genpd_power_off() and leave ps_isp_sys powered on). On J716c, isp@580000000 and isp0_dart{,1,2} remain status = "disabled" in Stage 2 DT, so ps_isp_sys has no attached consumers and achieves idle-off with the ISP disabled without that genpd change.
  6. Host test coverage (2358b5286c54): Add tools/asahi/apple-dart-isp-host-tests.py (registered in tools/asahi/run-host-tests.py) testing production apple_dart_isp_host_reset() / _restore() / _retained() preservation of non-host/secure SIDs 4/5/8/9 across simulated runtime power-off and apple_dart_probe_device() / apple_dart_release_device() persistent managed DL_FLAG_PM_RUNTIME links and -ENODEV failure handling (with overwrite-enable-streams, stateless-isp-link, and ignore-isp-link-failure negative controls verifying each mutation's exact expected assertion failure message).
Evidence
  • Head 8cfb9fbf37b4 (Merge branch 'main' into fix/j716c-isp-sys-idle-off, merging main 9632cbf32c90):
    • PR patch equivalence: diffing ef26a43be753..2358b5286c54 (with t6050-j716c-isp.dtsi -> t6050-isp.dtsi) against 8cfb9fbf37b4^2..8cfb9fbf37b4 shows 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 8cfb9fbf37b4 against origin/main (18058ea228e2): clean (1ef6987f468de952bd1f06d2420bad88288bf937).
    • git diff --check 8cfb9fbf37b4^2..8cfb9fbf37b4: clean.
    • scripts/checkpatch.pl --strict --git 8b78ec7fdf88..2358b5286c54: 0 errors, 1 generic MAINTAINERS reminder for new file tools/asahi/apple-dart-isp-host-tests.py (covered by F: tools/asahi/), 0 checks.
    • ARCH=arm64 LLVM=1 W=1 (aurora_defconfig) at 8cfb9fbf37b4: drivers/iommu/apple-dart.o (0 warnings), drivers/media/platform/apple/isp/isp-drv.o (0 new warnings; pre-existing unused apple_isp_hw_t6040 at line 1343), drivers/pmdomain/core.o (0 new warnings; pre-existing upstream genpd_power_off kernel-doc warning at line 975), and apple/t6050-{j714c,j714s,j716c,j716s,k114s,k116c,k116s}.dtb built cleanly (power-controller@3a0 label = "isp-sys" omits apple,always-on;; CHECK_DTBS=y passes with 0 new warnings on ISP or power-controller nodes).
    • Host tests at 8cfb9fbf37b4: python3 tools/asahi/run-host-tests.py --only dart (17/17), --only isp (26/26), and --only radio-sids (1/1) all PASS.
    • KUnit at 8cfb9fbf37b4: ./tools/testing/kunit/kunit.py run --arch=arm64 --make_options LLVM=1 --kunitconfig=drivers/media/platform/apple/isp/.kunitconfig PASS (59/59).
    • CI at 8cfb9fbf37b4 (gh pr checks 3329): 17 passing (apple-build, dt-checks, host-tests, pr-text / pr-text, latest readiness / readiness, and 12 KUnit jobs: ane-boot, ane-pm, asahi, avd, ave, dcp-fabric, dcp-topology, isp, jpeg, prores, scaler, spi-hid-apple), 4 pending (KUnit macsmc in progress; KUnit apple-spmi-nvmem, KUnit trusted-keys, KUnit clpc queued), 0 failing, 1 superseded readiness run cancelled.
  • Live hardware runs at head 8cfb9fbf37b4 (2026-11-28):
    • J716c (M5 Max 16" MacBook Pro, T6050, firmware 27.2): batched candidate 3545ebecb76f (origin/main b897ccb4e71c + 18 PRs, CONFIG_ARM_APPLE_SOC_CPUFREQ=m, AC power, default cmdline; 5/7 files blob-identical, 2/7 hunks-present, 0 not provable). Hashes: Image.gz SHA-256 d56efde4c7232208bd29d5c4e5890319e0050595dd4f4b1c3844df6656a08312, t6050-j716c.dtb SHA-256 d2f0db7a5026ae9cc4e1cff61dca38b4d1b363d47e5bad696ef65c7d715517e0, modules SHA-256 9d5782bcf02ea60a225278c9319431f902b495f6beb485d79d127c0fb2fccc92, one-shot aura-try Stage 2 SHA-256 b7d99286395ddd7dadccc6d9593f4bd55391d9e787af97c18b45f58688d9885d (default Stage 2/kernel/DTB unchanged). isp-sys, isp_cpu, isp_fe, isp_dprx, isp_secure, isp_be, isp_clr, and ispsens0 stayed off-0 at idle and after 2× pm_test=devices (freeze), 2× pm_test=devices (mem), and 2× pm_test=platform (rc=0, fail=0); 0 ISP/DART errors (Stage 2 DT keeps isp@580000000 and isp0_dart{,1,2} status = "disabled"). Smoke: eDP-1 3456x2234@120 enabled, 4 input devices, wlan0 0% loss, AppleJ716 + AppleJ716HPAI enumerated (speakerguardd-v2 active), Borealis Apple M5 Max (G17C B1) + vkcube --c 180 OK, 0 failed user units, 0 LSM denials, 0 Oops/BUG/fault (aurora-peripherals.service warm-reboot baseline failure also on control/default; 40 err+ lines pre-existing vs 55-line default boot except PM: suspend debug and 3 DPMS a display-interface open failure syslog lines).
    • J713 (M4 MacBook Air, T8132, firmware 27.2): batched candidate 76649338a1bc (5/7 files blob-identical, 2/7 apple-dart.c + host-test list hunks-present, default cmdline + panic=10), kernel SHA-256 e8e9fd2813dd6347176d0e4a55a70d1c694bdab75817c3ab83c441c203140491, one-shot Stage 2 SHA-256 f7d4e2f7ebbfb423bd71f233f1aef7af0a39091b288a749d25f9250eb80adbfa, DTB ceacf1d413c651396f4c1dfd9fa27b15c710dd849e46c2753fcff0a23a6681c6. pm_genpd_summary in this 2026-11-28 capture lists 14 isp_* domains on J713 (14 off-0 before capture -> all 14 on during 90-frame 1280x720 NV12 capture on /dev/video0, v4l2-ctl --stream-mmap to /dev/null, ~30.2 fps, rc 0 -> all 14 off-0 4 s and 10 s after close, 0 ISP/DART faults). Smoke: eDP-1 2560x1664@60, MTP input, wlan0 0% loss, speakerguardd-v2 protected tone rc 0, Borealis glmark2 5,099, 0 failed units, 0 AppArmor denials (4 err+ lines: 3 baseline + 1 one-off brcmfmac ring line recorded on 76649338a1bc, 0 times in the preceding 8 boots on J713, no recurrence across 5× wlan0 down/up and 5× s2idle; attribution remains open).
    • J313 (M1 MacBook Air, T8103) — unisolated post-deep-S2R regression: batched Group A (main + #3085, #3290, #3329, #3333, #3495, #3506, #3546, #3289, #3320, verified byte-identical against each PR merged alone onto the same main, undocked on battery), kernel SHA-256 888c041944da96032a9252504c4d5543b906fd98717234eca5e091150af85798, one-shot Stage 2 SHA-256 949dc089ed390b7535dd5ef2a6e99975c3026658e58dbd9d17e9b20d2bbb7d71:
      • Pre-sleep /dev/video0 capture worked: all 14 isp_* domains turned on (ispsens0-3 stayed off-0 on T8103) and returned to off-0 afterwards.
      • Post-sleep capture failed: after the first deep-S2R resume (rtcwake -d rtc1 -m mem -s 30), /dev/video0 capture failed (apple-isp firmware boot -19, DART translation fault). On baseline main (ee36fbdcd1c8, kernel SHA-256 f750b04aebd30c439edbd3b995c17b3fd9ad805a4561dadc7ecbf78040c89289), /dev/video0 capture 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 #3329 and the other Group A PRs remains open pending recovery.
      • Group A smoke & sleep: boot smoke pass (0 AVC denials, 1 baseline failed unit speakerguardd-v2-switchtest.service also on baseline main), 3× DPMS off/on pass, 2× deep S2R pass (0 Oops/BUG/WARN).
  • Prior live hardware runs at 2358b5286c54 (prior to main 9632cbf32c90 forward merge, default command line):
    • J713 (M4 MacBook Air, T8132): all 16 ISP power domains (including ispsens0/1) off-0 at idle -> on during /dev/video0 (apple-isp) 1280x720 NV12 capture (5 frames = 6,912,000 bytes, 0 ISP/DART errors) -> back to off-0 immediately and 5 s after close.
    • J716c (M5 Max 16" MacBook Pro, T6050): isp-sys, all isp_* subdomains, and ispsens0 stayed off-0 before and after 2× pm_test=devices cycles, 0 ISP/DART errors (exercises ISP-disabled idle-off while Stage 2 DT keeps isp@580000000 and isp0_dart{,1,2} status = "disabled", distinct from post-capture idle-off on loader-enabled T6050 hardware).
    • J313 (M1 MacBook Air, T8103): all 14 isp_* domains and ispsens0-3 off-0 at idle; 60-frame 1280x720 NV12 capture at 30.1 fps (Y mean ~66) brought 14 domains on and returned all to off-0 after close; 3× open/close loops all returned off-0; 30-frame capture after s2idle succeeded and returned off-0. In that earlier snapshot's baseline comparison, ISP capture after deep sleep failed with -ENODEV + apple-dart translation-fault flood similarly on that earlier main baseline, and domains returned cleanly to off-0; note that the current 8cfb9fbf37b4 Group A vs main (ee36fbdcd1c8) comparison above leaves post-deep-S2R attribution open pending isolated #3329 testing on J313.
  • Historical pre-revert hardware runs at d3cf4ca61518 (predate both the drivers/pmdomain/core.c revert 8b78ec7fdf88 and 2358b5286c54; #issuecomment-7221028898):
    • T6050 / J716c in candidate 3e4078f656d5 (main fcb124279183 plus d3cf4ca61518, default cmdline): ps_isp_sys (isp-sys) and child domains (isp_cpu, isp_fe, isp_dprx, isp_secure, isp_be, isp_clr, ispsens0) all off-0 after boot (isp@580000000 is status = "disabled" in Stage 2 DT), 0 new failed units, 0 LSM denials, 0 ISP kernel errors (mem S2R not reached because preceding s2idle did not wake via RTC alarm); earlier d3cf4ca61518 run verified isp-sys off-0 across 2× DPMS OFF/ON cycles on eDP-1 + dual 3840x2160@240 external displays.
    • T8103 / J313 in fleet candidate 5509a254a6bd (default cmdline, docked): all isp_* and ispsens* domains off-0 after boot, after /dev/video0 open/close, and after each of 2 deep sleeps and an s2idle; 3 DPMS cycles clean; 0 failed units, 0 AppArmor denials. Attribution caveat: 2 deep sleeps and an s2idle resumed in the clean runs, while one full run hung in s2idle and was reset by the watchdog, which later runs and a kernel with only d3cf4ca61518 merged on main (2 deep sleeps + s2idle, docked) did not reproduce, so that watchdog reset was not attributed to this PR.
    • T8132 / J713 (deferred_start apple-isp, firmware 27.2) in fleet candidate 90de523e9ed9: all isp_* and ispsens* domains off-0 at idle, 4 s into a 60-frame /dev/video0 capture (~26 fps, exit 0), and after close/re-open; 3 DPMS cycles clean; 0 failed units, 0 AppArmor denials; one brcmfmac ring 4: r_ptr 0 outside depth 0 line (not compared with a main-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 counter 1 on the next boot); not attributed to a PR in the candidate or to main (main-only control boot did not complete), so no sleep or resume claim was made for J713 in that run.

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]>
@erikwb
erikwb requested review from a team as code owners November 26, 2026 23:17
@erikwb
erikwb requested review from LiamRay11 and malik-na November 26, 2026 23:17
@github-actions github-actions Bot added area:bringup Area from CODEOWNERS (bot) area:media Area from CODEOWNERS (bot) area:platform Area from CODEOWNERS (bot) blast:all 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 26, 2026
@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Merge readiness at 8cfb9fbf: not ready yet

Check Detail
CI at head running running: KUnit macsmc, KUnit clpc, KUnit apple-spmi-nvmem, KUnit trusted-keys
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes ok none
Hardware row at head no no line with the head SHA 8cfb9fbf, a Mac and a result in the PR body or a comment
Conflicts ok none
PR text ok Risk: two-way · T6050 Macs (J716c, J714s, K116s) plus shared apple-dart and apple-isp runtime PM paths on all Apple Silicon Macs.

Areas: area:bringup, area:gpu, area:media, area:platform

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 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.

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 not RPM_SUSPENDED".
    • New: when power-off is declined only because every remaining device is RPM_SUSPENDING, power_off_work is queued.
      • The work function takes a reference to one suspending device and waits, outside genpd_lock(), on its power.wait_queue until the status changes. rpm_suspend() does wake_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.
    • 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.
  • apple-isp probe.
    • The device is marked active under a probe reference before pm_runtime_enable(), and released with pm_runtime_put_sync() at the end of probe.
    • Every later failure unwinds through disable_rpm (disable, set_suspended, put_noidle), including the halt_firmware path.
    • The ISP's runtime callbacks are no-ops, and apple_isp_detect_camera() boots the firmware explicitly. So on Macs without deferred_start the only change is that the supplier domains are held through probe and released at its end.
    • -EPROBE_DEFER is returned only when DT lists iommus but no domain is attached yet.
  • 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 around apple_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, keeping isp_sleep_lost set on failure.
    • Dropping power_retained for ISP DARTs is safe: TLB sync always does pm_runtime_resume_and_get() first, and the suspend and resume ISP branches return before the power_retained checks.
    • Skipping the noirq DAPF replay for ISP DARTs relies on apple-isp reprogramming the DAPF at every firmware boot, as the commit says.
  • DT.
    • The compiled t6050-{j716c,j714s,k116s}.dtb keep apple,no-auto-pm on isp-sys and no longer have apple,always-on.
    • No other Apple SoC DT sets apple,always-on on ps_isp_sys.
    • isp0 and its three DARTs stay status = "disabled" until the loader enables them.
  • Build and tests.
    • make W=1 (asahi config, LLVM, arm64) builds drivers/pmdomain/core.o, drivers/iommu/apple-dart.o and drivers/media/platform/apple/isp/isp-drv.o with no new warnings. The only one, an unused apple_isp_hw_t6040 at isp-drv.c:1343, is on a line this PR doesn't touch.
    • The three T6050 dtbs build.
    • checkpatch --strict is 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-tests and pr-text pass; apple-build, dt-checks and the KUnit jobs were still pending when I posted this.
  • A row that actually exercises the new ISP paths. The J716c row ran with isp0 and 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-sys off 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.
  • A system sleep with the domain off. mem sleep and resume on J714s or J716c with isp-sys off: 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_summary before 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

@erikwb

erikwb commented Nov 27, 2026

Copy link
Copy Markdown
Contributor Author

All CI jobs at d3cf4ca61518 have now completed and passed (20 successful checks: apple-build, dt-checks, host-tests, pr-text, readiness, and all 15 KUnit jobs, plus 3 superseded cancellations including pr-text — specifically 2 readiness and 1 pr-text).

On the requested hardware rows:

  • J716c (T6050) at d3cf4ca61518 in candidate 3e4078f656d5 (default command line): pm_genpd_summary confirms ps_isp_sys and all child domains (isp_cpu, isp_fe, isp_dprx, isp_secure, isp_be, isp_clr, ispsens0) are off-0 after boot (isp@580000000 is status = "disabled" in the Stage 2 DT on J716c, so no camera capture is possible here), with 0 new failed units, 0 LSM denials, and 0 ISP kernel errors. mem S2R (isp-sys off-0 before sleep and after wake) was not reached because the preceding s2idle test did not wake via RTC alarm, so J716c mem S2R remains under **Not yet:**.
  • J713 (M4 Air / T8132, deferred_start apple-isp, firmware 27.2) in fleet candidate 90de523e9ed9 (main fcb124279183 plus the unchanged heads fa6ca3bf0e0b (ASoC: apple: enable J716c (16-inch M5 Max) AOP audio, v2-only speakers, jack and mic array #3085), 42a2c37fd846 (pwm: apple: runtime suspend on zero duty cycle #3219), 3b32d06f7ae5 (thunderbolt: hold a shared-rate DP re-link while its display reads the DPRX #3269), 4654596c5a86 (drm/apple: pause and settle presentation during firmware-27 paired stop #3305), d3cf4ca61518 (arm64: dts: apple: t6050: allow idle ps_isp_sys domain to power off #3329) and 5dde1e7a4ffb (serial: apple-dockchannel: stop idle console drain timer, back off RX, and add sleep PM #3335)): pm_genpd_summary shows every isp_* and ispsens* domain off-0 at idle, 4 s into a 60-frame capture from /dev/video0 (about 26 fps, exit 0) and after its close, and again after a second open and close; 3 DPMS off/on cycles on eDP-1 clean; 0 failed units, 0 AppArmor denials. Sleep/resume failed: A deep sleep on that candidate (rtcwake -d /dev/rtc1 -m mem -s 15) did not resume: the Mac reset, and the next boot read PMU panic counter 1. It is not yet attributed to a PR in the candidate or to main (the main-only control boot did not complete), so no sleep or resume claim is made for J713. kernel err lines: the apple-dcp AFK init props -2, unsupported DFB layout and apple_sep matching lines that every boot of this Mac prints, plus two apple-dcp lines saying the two external display processors are unusable (probe failed: -110; main has no 27.2 support for them) and one brcmfmac ring 4: r_ptr 0 outside depth 0 line, in a driver no PR in the candidate touches (not compared with a main-only control: that boot did not complete).
  • J313 (M1 Air / T8103, non-deferred_start apple-isp) in fleet candidate 5509a254a6bd (adds d3cf4ca61518 unchanged; default command line, docked): every isp_* and ispsens* domain is off-0 at idle after boot, after opening and closing /dev/video0, and after each of 2 deep sleeps and an s2idle; 3 DPMS off/on cycles clean; 0 failed units, 0 AppArmor denials, no kernel errors beyond the dock's and the deep-sleep resume lines. 2 deep sleeps and an s2idle resumed in the clean runs; one full run hung in s2idle and was reset by the watchdog, which later runs and a kernel with only d3cf4ca61518 merged on main (2 deep sleeps + s2idle, docked) did not reproduce, so it is not attributed to this PR.
  • Remaining external coverage not available locally: a loader-enabled T6050 (J714s) run testing two camera captures separated by idle ps_isp_sys power-off (since J716c keeps isp0 disabled in DT), plus M2, M3, and Neo (J700) regression boots.

@RyanTheTide RyanTheTide 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.

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]>
@erikwb

erikwb commented Nov 28, 2026

Copy link
Copy Markdown
Contributor Author

Updated at 2358b5286c54 (stacked cleanly on 8b78ec7fdf88 over d3cf4ca61518):

  1. Preserve non-host ENABLE_STREAMS bits in apple_dart_isp_host_reset(): Read-modify-write DART_T8110_ENABLE_STREAMS (apple_dart_readl(dart, DART_T8110_ENABLE_STREAMS) | host) instead of writing host alone, so any enabled non-host / secure core streams (4/5/8/9) survive both initial reset and runtime power-off restore. Added tools/asahi/apple-dart-isp-host-tests.py (registered in tools/asahi/run-host-tests.py) exercising production apple_dart_isp_host_reset(), _restore(), and _retained() across v2.2/v2.4 with secure SIDs 4/5/8/9 active, plus an overwrite-enable-streams negative control checking the exact expected assertion failure message.
  2. Keep persistent managed DL_FLAG_PM_RUNTIME links for isp_host DARTs: Switched isp_host supplier links in apple_dart_probe_device() to persistent managed DL_FLAG_PM_RUNTIME links (without DL_FLAG_STATELESS, DL_FLAG_RPM_ACTIVE, or DL_FLAG_AUTOREMOVE_*) so the driver core enforces consumer-before-supplier unbind ordering across all primary and secondary ISP DARTs and keeps the link dormant if a secondary DART unbinds, returning -ENODEV on link failure after freeing v27_client and cfg (driver core owns managed link lifetime on registered consumers and purges them on unregistration, whereas device_link_del()/device_link_remove() would WARN in device_link_put_kref()). Covered in tools/asahi/apple-dart-isp-host-tests.py with stateless-isp-link and ignore-isp-link-failure negative controls checking each mutation's exact expected assertion failure message.
  3. PR body / evidence updates: Distinguished ps_isp_sys idle-off with the ISP disabled (isp@580000000 and isp0_dart{,1,2} status = "disabled" on J716c) from idle-off after capture on loader-enabled T6050 hardware, recorded the outstanding genpd concurrent-suspend follow-up PR dependency (3e41b9296041) in **Not yet:** and Details following the 8b78ec7fdf88 revert of drivers/pmdomain/core.c, labeled the origin/main (33d1cad08623, base ef26a43be753) merge check and the pre-revert d3cf4ca61518 rows as historical, and added exact-head (2358b5286c54) hardware rows across J713, J716c, and J313.

Verification at 2358b5286c54:

  • Build, host tests, and KUnit: ARCH=arm64 LLVM=1 W=1 (aurora_defconfig) passes with 0 warnings in apple-dart.o and 0 new warnings in isp-drv.o/core.o; run-host-tests.py passes --only dart (17/17), --only isp (26/26), and --only radio-sids (1/1); KUnit drivers/media/platform/apple/isp/.kunitconfig passes (59/59).
  • J713 (M4 MacBook Air, T8132): all 16 ISP power domains (isp_*, ispsens0/1) off-0 at idle → on during /dev/video0 (apple-isp) 1280x720 NV12 capture (5 frames = 6,912,000 bytes, 0 ISP/DART errors) → back to off-0 immediately and 5 s after close.
  • J716c (M5 Max 16" MacBook Pro, T6050): isp-sys, all isp_* subdomains, and ispsens0 stayed off-0 before and after 2× pm_test=devices cycles, 0 ISP/DART errors (ISP-disabled idle-off while Stage 2 DT keeps isp@580000000 and isp0_dart{,1,2} status = "disabled", distinct from post-capture idle-off on loader-enabled T6050 hardware).
  • J313 (M1 MacBook Air, T8103): all 14 isp_* domains and ispsens0-3 off-0 at idle; 60-frame 1280x720 NV12 capture at 30.1 fps (Y mean ~66) brought 14 domains on and returned all to off-0 after close; 3× open/close loops all returned off-0; 30-frame capture after s2idle succeeded and returned off-0. Note: ISP capture after deep sleep fails with -ENODEV + apple-dart translation-fault flood identically on baseline main (not introduced by #3329), and domains still return cleanly to off-0 with no leak.

@github-actions github-actions Bot added the area:gpu Area from CODEOWNERS (bot) label Nov 28, 2026

@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 2358b528

Blockers: none (re-run the cancelled pr-text and readiness checks before landing; 21/21 build/host/KUnit CI checks green).

Checked:

  • 8b78ec7f cleanly splits out the drivers/pmdomain/core.c generic genpd change into its own follow-up, and 2358b528 preserves non-host DART stream enables on ISP reset with persistent managed DL_FLAG_PM_RUNTIME ISP supplier links + apple-dart-isp-host-tests.py.
  • Exact-head hardware verification at 2358b5286c54 across three Mac generations (default cmdline, 0 ISP/DART errors): J713 (M4 Air / T8132: 16 ISP domains off-0 -> on -> off-0 with /dev/video0 1280x720 NV12 capture), J716c (M5 Max / T6050: isp-sys and children off-0 across 2x pm_test=devices), and J313 (M1 Air / T8103: 14 ISP domains off-0 -> on -> off-0 across 60-frame 1280x720 NV12 capture).
  • Checked for Apple material, tool attribution, private serials, and board gating: clean; MERGEABLE on main.
Evidence
  • Head: 2358b5286c54 (base: main, mergeable: MERGEABLE, +880/-61 across 7 files).

@RyanTheTide

Copy link
Copy Markdown
Contributor

code-owner ping <@422957901716652033> / @DjDeveloperr: merge train at 2358b528. The review App approved this head (NEON-PR-REVIEW2's adversarial pass). Rows: J713+J716c+J313. This merges under the 6-point rule 1 h from now, once hosted CI is green, unless you object.

@RyanTheTide

Copy link
Copy Markdown
Contributor

Merging under the 6-point rule (Ryan 09:29, permanent), at 2358b528. (1) The review App approved at this head. (2) Full CI is green. (3/4) Rows: J713+J716c+J313. (5) There's no blocking review. (6) Dj was pinged here 118 min ago with no objection. Revert: git revert -m 1 <merge>.

@RyanTheTide

Copy link
Copy Markdown
Contributor

Forward-merged main (9632cbf3) into this branch at 8cfb9fbf (normal push, your commits untouched). GitHub reported a conflict that git's own merge didn't reproduce, so this was the quickest way to land it. Everything else was ready: App approved, CI green, rows J713 + J716c + J313, Dj pinged 2 h ago. It merges as soon as CI and the App re-approval at 8cfb9fbf are in.

@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.

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.

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

erikwb commented Nov 28, 2026

Copy link
Copy Markdown
Contributor Author

@RyanTheTide @DjDeveloperr Verified the forward-merged head 8cfb9fbf37b4 (main 9632cbf32c90 into fix/j716c-isp-sys-idle-off), and flagging that the new J313 Group A post-deep-S2R ISP capture failure changes the basis for the merge decision relative to the earlier 2358b528 readiness check:

  • Merge blocker — J313 (T8103) post-deep-S2R regression (unisolated): in batched Group A (888c041944da96032a9252504c4d5543b906fd98717234eca5e091150af85798, Stage 2 949dc089ed390b7535dd5ef2a6e99975c3026658e58dbd9d17e9b20d2bbb7d71, verified byte-identical against this PR merged alone onto the same main), pre-sleep /dev/video0 capture worked (14 isp_* domains on then off-0; ispsens0-3 stayed off-0), but capture failed after the first deep-S2R resume (apple-isp firmware boot -19, DART translation fault), whereas baseline main (ee36fbdcd1c8, f750b04aebd30c439edbd3b995c17b3fd9ad805a4561dadc7ecbf78040c89289) 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 went unreachable, so isolating #3329 alone on J313 once J313 is recovered is required before merge.
  • J716c (T6050, batched 3545ebecb76f, 5/7 blob-identical, 2/7 hunks-present, default cmdline): Image.gz d56efde4c7232208bd29d5c4e5890319e0050595dd4f4b1c3844df6656a08312, Stage 2 b7d99286395ddd7dadccc6d9593f4bd55391d9e787af97c18b45f58688d9885d; isp-sys, isp_cpu/fe/dprx/secure/be/clr, and ispsens0 stayed off-0 at idle and across 4× pm_test=devices + 2× pm_test=platform, 0 ISP/DART errors, 6-item smoke pass (aurora-peripherals.service warm-reboot baseline failure also on default/control). Note that J716c exercised ISP-disabled idle-off (Stage 2 DT keeps isp@580000000 and isp0_dart{,1,2} status = "disabled"), and the loader-enabled T6050 two-capture test remains outstanding (awaiting both loader ISP bring-up, e.g. J714s, and the split-out genpd concurrent-suspend fix for 3e41b9296041).
  • J713 (T8132, batched 76649338a1bc, 5/7 blob-identical, 2/7 hunks-present, default cmdline + panic=10): kernel e8e9fd2813dd6347176d0e4a55a70d1c694bdab75817c3ab83c441c203140491, Stage 2 f7d4e2f7ebbfb423bd71f233f1aef7af0a39091b288a749d25f9250eb80adbfa; pm_genpd_summary shows 14 isp_* domains (14 off-0 before -> all 14 on during 90-frame 1280x720 NV12 /dev/video0 capture at ~30.2 fps -> all 14 off-0 4 s / 10 s after close, 0 ISP/DART faults), 8-item smoke pass (0 failed units, 0 AppArmor denials; 1 one-off brcmfmac ring line recorded on 76649338a1bc, 0 times in the preceding 8 boots, no recurrence over 5× wlan0 down/up + 5× s2idle; attribution remains open). (Earlier 2358b5286c54 5-frame capture logged 16 ISP domains including ispsens0/1.)

Patch equivalence, local checks, and live CI at 8cfb9fbf37b4:

  • Diffing ef26a43be753..2358b5286c54 (after main's t6050-j716c-isp.dtsi -> t6050-isp.dtsi rename) against 8cfb9fbf37b4^2..8cfb9fbf37b4 confirms every PR hunk is identical; git merge-tree --write-tree origin/main 8cfb9fbf37b4 (18058ea228e2) is clean (1ef6987f468de952bd1f06d2420bad88288bf937).
  • make -j32 O=_build ARCH=arm64 LLVM=1 W=1 (aurora_defconfig): apple-dart.o (0 warnings), isp-drv.o (0 new warnings), core.o (0 new warnings), and all seven T6050 DTBs (CHECK_DTBS=y) pass; run-host-tests.py (--only dart 17/17, --only isp 26/26, --only radio-sids 1/1) and KUnit isp (59/59) pass; checkpatch.pl --strict (0 errors, 1 MAINTAINERS new-file notice for tools/asahi/apple-dart-isp-host-tests.py).
  • Live gh pr checks 3329 at 8cfb9fbf37b4: 17 passing (apple-build, dt-checks, host-tests, pr-text / pr-text, latest readiness / readiness, and 12 KUnit jobs: ane-boot, ane-pm, asahi, avd, ave, dcp-fabric, dcp-topology, isp, jpeg, prores, scaler, spi-hid-apple), 4 pending (KUnit macsmc in progress; KUnit apple-spmi-nvmem, KUnit trusted-keys, KUnit clpc queued), 0 failing, and 1 cancelled superseded readiness run.

@RyanTheTide

Copy link
Copy Markdown
Contributor

Merging under the 6-point rule (Ryan 09:29, permanent), at 8cfb9fbf. (1) The review App approved at this head. (2) Full CI is green. (3/4) Rows: J713+J716c+J313;fwd-merge-only. (5) There's no blocking review. (6) Dj was pinged here 791 min ago with no objection. Revert: git revert -m 1 <merge>.

@RyanTheTide
RyanTheTide merged commit edb5c7e into main Nov 29, 2026
23 of 24 checks passed
@RyanTheTide
RyanTheTide deleted the fix/j716c-isp-sys-idle-off branch November 29, 2026 01:13
joshuaswarren added a commit to joshuaswarren/linux that referenced this pull request Nov 30, 2026
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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:bringup Area from CODEOWNERS (bot) area:gpu Area from CODEOWNERS (bot) area:media Area from CODEOWNERS (bot) area:platform Area from CODEOWNERS (bot) blast:all Macs affected, from Merge risk (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)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants