Skip to content

T6040: power the ISP down while the camera is idle - #1827

Merged
RyanTheTide merged 2 commits into
integration/aurorafrom
j6isppwr/isp-runtime-pm
Nov 13, 2026
Merged

RyanTheTide merged 2 commits into
integration/aurorafrom
j6isppwr/isp-runtime-pm

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

T6040 kept its ISP firmware resident, so the ISP power domains (isp_sys, isp_cpu, isp_fe, isp_dprx, isp_secure, isp_be, isp_clr, ispsens0) stayed on from boot to shutdown and the ISP device never runtime-suspended, even with no camera client.

  • arm64: dts: apple: t6040: describe the first ISP DART's address filter (the dapf register window and the ranges from the ADT's dart-isp0 dapf-instance-0), so the DART driver writes them back after the ISP system domain was off.
  • media: apple: isp: T6040 uses the T8140 model: firmware restart from its own memory, coprocessor quiesce before the power-down, 5 s idle stop after a stream. The camera is still detected at probe, so the formats offered (P010 included) are unchanged. Without apple,dapf-ranges on the DART the firmware stays resident as before.

Tested on the J616s (7.3.0-aurora-fleet71 + this series, the J616s DTB with the new DART properties):

  • after probe and 5 s after every stream all eight ISP domains are off and 580000000.isp is runtime-suspended
  • 10/10 start/stop cycles of 30 frames to /dev/null, a reopen within the idle window (1.25 s warm vs 1.47 s from power-down for 30 frames)
  • s2idle x3 with a stream after each wake, and a stream running across s2idle
  • 0 AVC denials, 0 DART faults, no ISP errors in the kernel log
  • idle Total System Power (panel off, 120 s, same boot): 3.744 W before, 3.601 W after
  • KUnit arm64 (apple-isp suites): 48/48; checkpatch --strict clean

🤖 Generated with Claude Code

The first ISP DART filters the ISP firmware's accesses to the PMGR, PMP
and DSID windows it uses. The bootloader programs that filter, and it
goes off with the ISP system domain. Describe its register window and the
bootloader's ranges, from the ADT's dart-isp0 dapf-instance-0 in the ADT's
order, so the DART driver writes them back when the DART powers up again.

With that, the ISP can be powered down while the camera is idle and its
firmware can start again for the next stream.

Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
T6040 kept its firmware resident: it started at probe and ran until the
driver was unbound, so the ISP domains, among them isp_sys, isp_fe and
ispsens0, stayed on from boot to shutdown, also when no application
used the camera.

T6040 runs T8140's coprocessor and firmware interface, and its firmware
starts again from its own memory the same way. Use T8140's model: after
the camera detection at probe the firmware stops and the ISP powers
down; each stream starts it again, and it stays up for 5 s after a
stream so that an application that reopens the camera soon does not
wait for another start. The coprocessor is quiesced before its domains
go off.

The camera is still detected at probe, so the formats offered from the
start, P010 among them, are unchanged. A device tree without the ISP
DART's address filter ranges keeps the firmware resident, as before.

Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
@RyanTheTide
RyanTheTide merged commit fadf213 into integration/aurora Nov 13, 2026
2 checks passed
@RyanTheTide
RyanTheTide deleted the j6isppwr/isp-runtime-pm branch November 13, 2026 13:14
DjDeveloperr pushed a commit that referenced this pull request Nov 14, 2026
T6041 uses the T6040 ISP model, which powers the ISP down while the
camera is idle (#1827) once the first ISP DART describes its address
filter. T6041's DART has none, so the firmware stays resident, and the
ISP power domains stay on from boot to shutdown.

Describe the filter: the dapf register window and the ranges from the
J616c ADT's dart-isp0 dapf-instance-0, in the ADT's order. They are the
T6040 ones plus a DSID window for each of the two extra AMCCs.

On a J616c (binned M4 Max, six AMCCs) with this filter in its device
tree, every ISP domain is off at idle and the ISP device is runtime
suspended. The camera streams, and the ISP powers down again after it.

Signed-off-by: AxxzyWasTaken <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant