Skip to content

drm/apple: dcp: stop the T6040 internal DCP in s2idle too - #3884

Merged
RyanTheTide merged 1 commit into
mainfrom
fix/t6040-dcp-s2idle
Dec 2, 2026
Merged

RyanTheTide merged 1 commit into
mainfrom
fix/t6040-dcp-s2idle

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

What: Drop the !t6040 clause from dcp_t6041_internal_capable() so T6040 (M4 Pro) stops and cold-starts its internal DCP across s2idle (and, on firmware 27, runtime DPMS) like T6041, as merged in #3861. Follow-up to #3861, as proposed there.

T6040 has the same display-power block as T6041 (same address, apple,t6041-display-power fallback) and the same apple,t6041-dcp internal DCP; its deep sleep (#2215) already stops and restarts that DCP through dcp_t6041_stop_dev(). The KUnit DPMS policy case now expects T6040 to be capable.

Tested:

Risk: two-way · T6040 (revert restores the T6041-only gate; T6041 path unchanged).

Not yet: T6040 on firmware 27 (runtime DPMS power cycle); 26.x-firmware DPMS-off power for T604x is linux#3866.

The internal-DCP stop across s2idle and runtime DPMS leaves out T6040
(M4 Pro). T6040 has the same display-power block as T6041 (same
address, apple,t6041-display-power fallback), the same apple,t6041-dcp
internal DCP, and its deep sleep already stops and restarts that DCP
through the same dcp_t6041_stop_dev() path. Nothing in the hardware
calls for the exclusion, so drop it.

On the J616s (16-inch M4 Pro, 26.6.2 firmware, main's DT), s2idle now
stops and cold-starts the internal DCP: 4/4 s2idle cycles (one entered
with DPMS off) and a deep sleep pass with the panel back each time.
Suspend and resume each take about 0.16 s longer. The runtime DPMS
power cycle only runs on the soft-DPMS (H17P/firmware 27) route, so on
26.6 firmware DPMS-off is unchanged (3.57 W against 3.56 W, 20/20
cycles); it applies to a T6040 on firmware 27 the same as on T6041.

The KUnit capability check now expects T6040 to be capable.

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

Reviewed 95178f3. T6040 has the same display-power block and internal DCP, and its deep sleep already stops that DCP through dcp_t6041_stop_dev(), so dropping the t6040 exclusion is consistent. The KUnit DPMS policy case is updated to match. One note for the record: on firmware 27 this also turns on the runtime DPMS power cycle for T6040, which the PR lists under Not yet. Merge waits on the exact-head J616s row and CI.

@github-actions github-actions Bot added area:display Area from CODEOWNERS (bot) blast:m4 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) labels Dec 2, 2026
@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Merge readiness at 95178f3b: not ready yet

Check Detail
CI at head ok 9 checks passed
Review ok approved by DjDeveloperr
Requested changes ok none
Hardware row at head no no line with the head SHA 95178f3b, a Mac and a result in the PR body or a comment
Conflicts ok none
PR text ok Risk: two-way · T6040 (revert restores the T6041-only gate; T6041 path unchanged).

Areas: area:display

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

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Exact-head hardware row at 95178f3b: J616s (M4 Pro, T6040, 26.6.2 stub, production b18 Stage 2 7fecfd77, apple,sleep-host-stop=y, mem_sleep='s2idle [deep]') — PASS.

  • Kernel: one-shot 7.3.0-aurora-b7t60x built at 95178f3b7832f08af3f1b385f8d66865ec6f4198 (appledrm build-id 710a47451ed44a2a8877000899f89b1dfd303d2a), saved 7.3.0-aurora-fleet94 untouched.
  • s2idle: 4/4 PASS (3x DPMS-on + 1x DPMS-off, 21 s rtc1 wake each, rc=0, fail=0, same boot, dpms=On after wake / DPMS-on). On all 4 cycles, 402e00000.dcp logged T6041 S2R: down by the host stop, own suspend skipped / still down by the host stop, own resume skipped and cold-started (RTKit: Initializing (protocol version 12)) cleanly on resume.
  • deep: 1/1 PASS (DPMS-on, 21 s rtc1 wake, rc=0, success=4->5, fail=0, same boot, dpms=On).
  • DPMS cycles: 19/20 read On within the 4 s poll (cycle 12's dcp_poweron() started right before the 4 s read; cycles 13–20 all passed cleanly); 0 kernel DCP errors/crashes; failed_units=0.
  • Restored to saved 7.3.0-aurora-fleet94 (Enforcing, running, 0 failed, next_entry empty).

@RyanTheTide
RyanTheTide merged commit ba787ac into main Dec 2, 2026
10 of 11 checks passed
@RyanTheTide
RyanTheTide deleted the fix/t6040-dcp-s2idle branch December 2, 2026 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:display Area from CODEOWNERS (bot) blast:m4 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)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants