Skip to content

drm/apple: take the T6050 HDMI converter's DCPAV service - #3609

Merged
RyanTheTide merged 2 commits into
mainfrom
fix/dcp-t6050-hdmi-dpavserv
Nov 29, 2026
Merged

RyanTheTide merged 2 commits into
mainfrom
fix/dcp-t6050-hdmi-dpavserv

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Problem

On the 14" and 16" MacBook Pro (T6050), the built-in HDMI port runs on dcpext0 with firmware 27. Its DCPAV service (dcpav-service-epic) is announced on endpoint 0x2a with the class AppleDCPPS190 (the PS190 DP-to-HDMI converter), EPICUnit 0, on interface 1.

The driver served DCPAV on 0x28 for this processor, where nothing is announced. Even on 0x2a, dcpavserv_identity() only admits AppleDCPDP2HDMI/DCPDP13Service with unit == interface, so the service was dropped silently (a dev_dbg "admission failed: -19"). As a result:

Change

  • apple_dcp_hw_data.dpavserv_endpoint: the DCPAV endpoint where it is not the default. The T6050 dcpext sets DPAVSERV_ENDPOINT_V2. Every other platform keeps its current endpoint (0 = unchanged selection).
  • dcpavserv_identity(): on 0x2a, admit AppleDCPPS190 with unit 0, on any non-zero interface.
  • KUnit: 5 identity cases (PS190 unit 0 on two interfaces admitted; unit 1, interface 0, and PS190 on 0x28 refused).

Testing

Tested: K114s (M5 Pro) at 39e3e07 with #3542: PASS (sink EDID 'MPG 325CQRXF' via AppleDCPPS190 on 0x2a, ddcutil detect/getvcp read-only, 0 DCP crash)
Risk: two-way door · K114s, K116s (T6050 dcpext only; other SoCs keep their DCPAV endpoint)

Still to run

  • K116s (16", same T6050 dcpext): expected identical, no unit here.

On the 14" and 16" MacBook Pro (T6050), firmware 27 on dcpext0
announces its built-in HDMI port's DCPAV service (dcpav-service-epic)
on DPAVSERV_ENDPOINT_V2 (0x2a) under the class AppleDCPPS190, the
PS190 DP-to-HDMI converter, with EPICUnit 0 on a dynamic interface-id.
The driver served DCPAV on 0x28 there, where nothing is announced, and
dcpavserv_identity() would not have admitted that class and unit on
0x2a either. The port therefore fell back to firmware-derived EDID
metadata, and the DDC adapter had no service to talk through.

Give the hardware description a DCPAV endpoint and set it to 0x2a for
the T6050 dcpext, and admit AppleDCPPS190 with unit 0 there.

On a K114s with an MSI monitor on the HDMI port, the service is now
admitted, the EDID is the sink's own (monitor name included), and DDC/CI
works through it.

Signed-off-by: Ryan Murray <[email protected]>

@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: HOLD at 39e3e079 — code and KUnit identity tests are clean; awaiting the exact-head K114s bridge-kernel hardware row and queued CI.

Blockers:

  1. Post the exact-head K114s bridge-kernel hardware receipt at 39e3e079 (per the PR's "Still to run" section).
  2. Complete the queued CI checks at 39e3e079.

Checked:

  • Audited all 4 changed files (drivers/gpu/drm/apple/dcp-internal.h, drivers/gpu/drm/apple/dcp.c, drivers/gpu/drm/apple/epic/dpavservep.c, drivers/gpu/drm/apple/epic/dpavservep-identity-test.c, +32/-3) and dpavservep_init() in dpavservep.c.
  • apple_dcp_hw_t6050_dcpext sets .dpavserv_endpoint = DPAVSERV_ENDPOINT_V2 while already setting .firmware_compat = DCP_FIRMWARE_V_27_0, so ep->wire_v2 is true and dpavservep_init() opens DPAVSERV_ENDPOINT_V2 cleanly without affecting any other SoC profile (all others leave .dpavserv_endpoint = 0 and fall back to the existing iomfb_method_profile selection).
  • dcpavserv_identity() admits "AppleDCPPS190" strictly on DPAVSERV_ENDPOINT_V2 with unit == 0 and valid service->channel (1..U16_MAX), matching the 5 new KUnit test cases in dpavservep-identity-test.c (positive for unit 0 on channels 1 and 5; negative for unit 1, channel 0, and classic endpoint 0x28).
  • DCO Signed-off-by: present on 39e3e079; no Apple material or policy issues.
Evidence
  • Diff: dcp-internal.h, dcp.c, epic/dpavservep.c, epic/dpavservep-identity-test.c (+32/-3).
  • Verified dpavservep.c L833 sets ep->wire_v2 true for dcp->fw_compat == DCP_FIRMWARE_V_27_0.
  • CI at review time: 21 queued, 4 skipped (0 failures).

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Exact-head hardware row at 39e3e079 on a K114s (MacBook Pro 14" M5 Pro, T6050) with an MSI MPG 325CQRXF on the built-in HDMI port, 2026-11-29 19:34.

Kernel: Ryan's bridge build 7.3.0 (main-level + linux#3591, which starts the HDMI port's PHY). appledrm built from that tree plus exactly this PR's commit and #3542 at be1faea5, with no other changes. Loaded from a one-shot boot entry; the saved default was untouched.

Check Result
DCPAV service on dcpext0 AFK[ep:2a]: new service AppleDCPPS190 on channel 1, DCPAVSERV: AFKV2 EDID service ready on channel 1
HDMI-A-1 EDID the sink's own, 256 bytes, monitor name MPG 325CQRXF (without this PR: firmware-derived EDID metadata)
DDC/CI with #3542, read-only (i2c-3) ddcutil detect: MSI MPG 325CQRXF; getvcp 10: 100/100; getvcp 60: HDMI-2
Other outputs internal panel eDP-1 and the dock's DP-3 connected, backlight normal
Health 0 DCP crashes, 0 failed units

Back on the default kernel afterwards, unchanged.

@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 39e3e079

Blockers: none (await queued CI completion before merge).

Checked:

  • Re-reviewed after the exact-head K114s (MacBook Pro 14" M5 Pro, T6050) bridge-kernel hardware receipt at 39e3e079:
    • AFK[ep:2a]: new service AppleDCPPS190 on channel 1 and DCPAVSERV: AFKV2 EDID service ready on channel 1.
    • HDMI-A-1 returns the sink's own 256-byte EDID (MPG 325CQRXF), read-only DDC/CI (i2c-3) works with #3542, internal eDP-1 and dock DP-3 stay unaffected, with 0 DCP crashes and 0 failed units.
  • Code and 5 new KUnit identity test cases (dcp-internal.h, dcp.c, epic/dpavservep.c, epic/dpavservep-identity-test.c, +32/-3) were audited at 39e3e079 with no code changes since the prior review.
  • DCO Signed-off-by: present; no Apple material or policy issues.
Evidence
  • Exact-head K114s hardware receipt posted at 2026-11-29T08:35:27Z.
  • CI at review time: 4 passed, 22 queued (0 real failures; readiness and pr-text cancelled on re-run).

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

code-owner ping <@422957901716652033> / @DjDeveloperr: merge train at 39e3e079. App approved, K114s exact-head row (the HDMI port gets the sink's real EDID). Takes the T6050 HDMI converter's DCPAV service. Merges under the 6-point rule 1 h from now once hosted CI is green, unless you object.

@github-actions github-actions Bot added area:display Area from CODEOWNERS (bot) blast:m5 Macs affected, from Merge risk (bot) ci-failing A check failed at the PR head (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 29, 2026
@github-actions

github-actions Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Merge readiness at d49ac878: not ready yet

Check Detail
CI at head running running: KUnit avd, KUnit ave, KUnit isp, KUnit jpeg, KUnit prores, KUnit scaler
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 d49ac878, a Mac and a result in the PR body or a comment
Conflicts ok none
PR text ok Risk: two-way · K114s, K116s (T6050 dcpext only; other SoCs keep their DCPAV endpoint)

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

Merge train: holding at 39e3e079. Hosted host-tests fail in apple-dcp: not ok 44 - dpavserv-start (run 46241871770, artifact host-test-logs, apple-dcp/log line 47). That's the DPAV service start this PR changes, so the selftest fixture or the code needs updating. Everything else that has finished is green (apple-build, kunit, ane-boot). This merges as soon as host-tests passes at the new head.

dpavservep_init() now takes the DPAV service endpoint from the
processor's match data (hw.dpavserv_endpoint, the T6050 dcpext0's 0x2a)
when it names one, so the host test's apple_dcp stub no longer built.
Add the field and a case: a firmware 27 processor whose match data names
0x2a starts the service there, on AFKV2, without the legacy wait.

Signed-off-by: Ryan Murray <[email protected]>
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Host-tests fix: d49ac87 (test only). The apple-dcp dpavserv-start unit's struct apple_dcp stub had no hw.dpavserv_endpoint, so it stopped compiling after this PR's dpavservep_init() change. I added the field to the three stubs, plus a case: a firmware 27 processor whose match data names 0x2a starts on 0x2a, on AFKV2, without the legacy wait. Local tools/asahi/run-host-tests.py --only apple-dcp: 99/99 ok (was 98/99). Driver code is unchanged from 39e3e07, so the exact-head K114s row posted earlier still covers the driver.

@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 d49ac878
Blockers: None (wait for queued hosted CI host-tests/kunit/apple-build/pr-text at d49ac878 to turn green before merge).
Checked: tools/testing/selftests/drivers/gpu/apple-dcp/edid.py (new test-only commit d49ac878), driver files unchanged from approved 39e3e079 (dcp-internal.h, dcp.c, epic/dpavservep.c, epic/dpavservep-identity-test.c), DCO sign-off, and K114s bridge-kernel receipt at 39e3e079.

Evidence
  • Delta 39e3e079..d49ac878 (tools/testing/selftests/drivers/gpu/apple-dcp/edid.py, +11/-4, test-only):
    • Adds unsigned dpavserv_endpoint; to the three struct apple_dcp test stubs in edid.py, fixing the dpavserv-start host-test build break seen on 39e3e079.
    • Adds a clean regression case in startup() verifying a firmware 27 processor with hw.dpavserv_endpoint = DPAVSERV_ENDPOINT_V2 initializes endpoint.endpoint == DPAVSERV_ENDPOINT_V2, wire_v2 == true, !inline_v2, with starts == 1 and zero waits/warnings.
    • Local tools/asahi/run-host-tests.py --only apple-dcp reports 99/99 ok.
  • Driver & hardware verification: All driver files (dcp-internal.h, dcp.c, dpavservep.c, dpavservep-identity-test.c) are byte-identical to 39e3e079, which already passed review and exact-head K114s hardware testing (AppleDCPPS190 on 0x2a, sink 256-byte EDID MPG 325CQRXF, read-only DDC/CI with #3542, 0 DCP crashes, 0 failed units).
  • Hygiene: DCO Signed-off-by: present on both commits; MERGEABLE on main.

@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 29, 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 d49ac878 (K-board adversarial review, independent of the earlier approvals).

Blockers: none. Merge after the queued hosted KUnit legs finish green.

Checked (what I tried to break):

  • Scope of the endpoint move. apple_dcp_hw_t6050_dcpext is the match data for every T6050 dcpext, the USB-C ones as well as dcpext0 (HDMI), so all of them now serve DCPAV on 0x2a instead of 0x28. I checked whether any of them had something on 0x28 that this would drop. In the pre-fix probe with AFK dyndbg (traces/display/20261129-k114s-dpavprobe/dpavprobe-v3.dmesg, five DCP units, dock DP on dispext1) and in the exact-head row (row3609.dmesg), 0x28 gets no traffic on any unit. dispext1 (dock DP-3) announces only its compact video and audio services on 0x2b. Nothing that worked before is lost.
  • Identity. The PS190 branch sits after the !class || !service->channel || channel > U16_MAX guard, is limited to 0x2a, and needs unit 0. It cannot admit a service on 0x28 or on the ext26 path, and the existing H17P unit == channel rule for AppleDCPDP2HDMI/DCPDP13Service is unchanged. The 5 KUnit cases cover both sides.
  • Fallback. dpavserv_endpoint ?: (H17P ? V2 : classic) keeps every other platform's endpoint exactly as before, since 0 is not a valid DCPAV endpoint. The selftest fixture now has a case for the match-data path.
  • Values. The endpoint and class come from the K114s firmware's own announce on dcpext0 (dyndbg capture above), not from guesswork.
  • Rows. The exact-head K114s row at 39e3e079 gives the sink EDID through the service, and read-only DDC/CI with #3542 (already merged). The driver is byte-identical at d49ac878, and the delta only touches the host-test fixture. A regression row on another family isn't needed: the code only runs on the T6050 dcpext.

Non-blocking (follow-ups):

  1. dcpavserv_hdr_class() does not list AppleDCPPS190, so the HDMI port won't take the service's HDR path. That's no regression, but HDR over the built-in HDMI port will need that class plus a row.
  2. Not covered: a USB-C to HDMI adapter (MCDP29xx) on a T6050 USB-C port. Other SoCs announce that class on 0x28, and on 0x2a the H17P rule doesn't admit it. It wasn't admitted before this PR either (no 0x28 traffic was seen), so this is a gap to row later, not something this PR breaks.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Merging under the 6-point rule (Ryan 09:29, permanent), at d49ac878. (1) The review App approved at this head. (2) Full CI is green. (3/4) Rows: K114s-exact-head-row(driver-unchanged);test-fix. (5) There's no blocking review. (6) Dj was pinged here 557 min ago with no objection. Revert: git revert -m 1 <merge>.

@RyanTheTide
RyanTheTide merged commit bc503f0 into main Nov 29, 2026
37 of 46 checks passed
@RyanTheTide
RyanTheTide deleted the fix/dcp-t6050-hdmi-dpavserv branch November 29, 2026 18:04
RyanTheTide pushed a commit that referenced this pull request Dec 1, 2026
Commit e8b9a342 (#3609) admitted AppleDCPPS190 on DPAVSERV_ENDPOINT_V2
(EP 0x2a, EPICUnit 0) for firmware-27 T6050 MacBook Pro external HDMI
outputs, but omitted it from dcpavserv_hdr_class(). Because
dcpavserv_init() only calls dcp_hdr_service_bind() for classes accepted
by dcpavserv_hdr_class(), PS190 links never bind an HDR metadata service,
leaving HDR10 static metadata (MaxCLL, MaxFALL, mastering display
luminance) unsent and forcing a modeset on metadata-only updates.

Add "AppleDCPPS190" to dcpavserv_hdr_class(), add focused KUnit cases
for dcpavserv_hdr_class() in dpavservep-identity-test.c, and add an
AppleDCPPS190 prepare/init/teardown HDR bind regression in the apple-dcp
host selftest (edid.py).

Signed-off-by: vlad <[email protected]>
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:m5 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.

1 participant