Skip to content

drm/apple: dcp: keep T8122's firmware 27 stop off older firmware - #4038

Merged
DjDeveloperr merged 2 commits into
feat/dcp-t8122-v27-s2rfrom
fix/t8122-dcp-s2r-fw27-only
Dec 3, 2026
Merged

DjDeveloperr merged 2 commits into
feat/dcp-t8122-v27-s2rfrom
fix/t8122-dcp-s2r-fw27-only

Conversation

@DjDeveloperr

Copy link
Copy Markdown
Contributor

What: #4037 puts the M3's (T8122) display sleep settings in its static hw data, so part of them also applies on firmware 14.7 and 26.6. This limits them to firmware 27. Stacked on #4037, lands right after it.
Tested: builds and host tests at 73eddd32ebd7: W=1 of drivers/gpu/drm/apple/, pmp-report.o and sleep.o, 0 new warnings; host tests with dcp in the name 102/103 (the one failure is a control that needs history this shallow checkout lacks), including apple-dcp. No hardware run.
Risk: two-way · T8122 on firmware 14.7 and 26.6 goes back to its display paths from before #4037; on 27.2 the same values are set, a few lines later in probe. T6030 on other firmware drops a layout it doesn't read there. No other SoC sets v27_early_stop.
Not yet: a 14.7 M3 Air with an external display and a 25G83 J613 deep sleep. The new DART routing from #4037 still applies to the 26.6 sleep.

Details

What #4037 changes on older firmware, and what this restores:

  • 26.6 external DCP: it runs as H17P, and dcp_s2r_ext_capable() accepts H17P without looking at the method table. A dry-run deep sleep then stops that firmware through dcp_s2r_ext_suspend() in place of its own retained path.
  • 14.7 and 26.6 external DCP: s2r_ext turns on the OSLOG echo, which apple,sync-syslog-ack keeps off there. This needs no option on the command line.
  • 26.6 internal DCP: its sleep turns the display DART off from D572 with dcp_s2r_layout(), now dcp_s2r_t8122, which has no streams. The streams dcp_v26_find_darts() finds are used again.

s2r_ext moves to the block in dcp_platform_probe_pipe() that already sets up the T8122 external DCP for firmware 27. The other T8122 ext fields are only read with it.

The second commit updates two comments that #4037 left behind.

T8122's s2r_ext and s2r_layout are in its static hw data, so they also
apply on firmware 14.7 and 26.6:

- The external DCP on 26.6 runs as H17P, which dcp_s2r_ext_capable()
  accepts without looking at the method table. A dry-run deep sleep then
  stops that firmware through dcp_s2r_ext_suspend() in place of its own
  retained path.
- On 14.7 and 26.6 s2r_ext turns on the external DCP's OSLOG echo, which
  apple,sync-syslog-ack keeps off there.
- The internal DCP's 26.6 sleep turns the display DART off from D572 with
  dcp_s2r_layout(), now dcp_s2r_t8122, which has no streams. The streams
  it finds itself (dcp_v26_find_darts()) are no longer used there.

Set s2r_ext where the firmware 27 external DCP is set up, and drop the
v27_early_stop layout on any other firmware. Firmware 27 is unchanged.

Fixes: 70ce55f ("drm/apple, arm64: dts: apple: support T8122 firmware 27.2 DCP/DCPext S2R")
Signed-off-by: DjDeveloperr <hey@djdev.me>
T8122 no longer takes coprocessor SLP_DDR votes, and
apple_pmp_report_check_t6030_ack() now covers it.

Signed-off-by: DjDeveloperr <hey@djdev.me>
@DjDeveloperr
DjDeveloperr requested review from a team as code owners December 3, 2026 02:53
@github-actions github-actions Bot added area:display Area from CODEOWNERS (bot) area:platform Area from CODEOWNERS (bot) area:power Area from CODEOWNERS (bot) blast:m3 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) labels Dec 3, 2026
@github-actions

github-actions Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Merge readiness at 73eddd32: not ready yet

Check Detail
CI at head running running: source, DWC3/ATC
Review ok approved by RyanTheTide
Requested changes ok none
Hardware row at head no no line with the head SHA 73eddd32, a Mac and a result in the PR body or a comment
Conflicts ok none
PR text ok Risk: two-way · T8122 on firmware 14.7 and 26.6 goes back to its display paths from before #4037; on 27.2 the same values are set, a few lines later in probe. T6030 on other firmware drops a layout it doesn't read there. No other SoC sets v27earlystop.

Areas: area:display, area:platform, area:power

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

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

Reviewed 73eddd3 against #4037. The external-stop flag now follows firmware selection, and older internal firmware goes back to its existing DART stream lookup. The firmware-27 path still gets the same settings before their first use. This fixes the older-firmware regression in the parent. Hardware rows are pending.

@github-actions github-actions Bot removed the needs-review No approving review from Core or Omarchy Mac yet (bot) label Dec 3, 2026
@DjDeveloperr
DjDeveloperr merged commit 73eddd3 into feat/dcp-t8122-v27-s2r Dec 3, 2026
5 of 7 checks passed
@DjDeveloperr
DjDeveloperr deleted the fix/t8122-dcp-s2r-fw27-only branch December 3, 2026 02:56
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) area:platform Area from CODEOWNERS (bot) area:power Area from CODEOWNERS (bot) blast:m3 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