Repository navigation
drm/apple: take the T6050 HDMI converter's DCPAV service - #3609
Conversation
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]>
There was a problem hiding this comment.
Verdict: HOLD at 39e3e079 — code and KUnit identity tests are clean; awaiting the exact-head K114s bridge-kernel hardware row and queued CI.
Blockers:
- Post the exact-head K114s bridge-kernel hardware receipt at
39e3e079(per the PR's "Still to run" section). - 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) anddpavservep_init()indpavservep.c. apple_dcp_hw_t6050_dcpextsets.dpavserv_endpoint = DPAVSERV_ENDPOINT_V2while already setting.firmware_compat = DCP_FIRMWARE_V_27_0, soep->wire_v2istrueanddpavservep_init()opensDPAVSERV_ENDPOINT_V2cleanly without affecting any other SoC profile (all others leave.dpavserv_endpoint = 0and fall back to the existingiomfb_method_profileselection).dcpavserv_identity()admits"AppleDCPPS190"strictly onDPAVSERV_ENDPOINT_V2withunit == 0and validservice->channel(1..U16_MAX), matching the 5 new KUnit test cases indpavservep-identity-test.c(positive for unit 0 on channels 1 and 5; negative for unit 1, channel 0, and classic endpoint0x28).- DCO
Signed-off-by:present on39e3e079; 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.cL833 setsep->wire_v2true fordcp->fw_compat == DCP_FIRMWARE_V_27_0. - CI at review time: 21 queued, 4 skipped (
0failures).
|
Exact-head hardware row at 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
Back on the default kernel afterwards, unchanged. |
There was a problem hiding this comment.
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 1andDCPAVSERV: AFKV2 EDID service ready on channel 1.HDMI-A-1returns the sink's own 256-byte EDID (MPG 325CQRXF), read-only DDC/CI (i2c-3) works with#3542, internaleDP-1and dockDP-3stay unaffected, with0DCP crashes and0failed 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 at39e3e079with 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 (
0real failures;readinessandpr-textcancelled on re-run).
|
code-owner ping <@422957901716652033> / @DjDeveloperr: merge train at |
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
|
Merge train: holding at |
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]>
|
Host-tests fix: d49ac87 (test only). The apple-dcp |
There was a problem hiding this comment.
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 threestruct apple_dcptest stubs inedid.py, fixing thedpavserv-starthost-test build break seen on39e3e079. - Adds a clean regression case in
startup()verifying a firmware 27 processor withhw.dpavserv_endpoint = DPAVSERV_ENDPOINT_V2initializesendpoint.endpoint == DPAVSERV_ENDPOINT_V2,wire_v2 == true,!inline_v2, withstarts == 1and zero waits/warnings. - Local
tools/asahi/run-host-tests.py --only apple-dcpreports99/99 ok.
- Adds
- Driver & hardware verification: All driver files (
dcp-internal.h,dcp.c,dpavservep.c,dpavservep-identity-test.c) are byte-identical to39e3e079, which already passed review and exact-head K114s hardware testing (AppleDCPPS190on0x2a, sink 256-byte EDIDMPG 325CQRXF, read-only DDC/CI with#3542,0DCP crashes,0failed units). - Hygiene: DCO
Signed-off-by:present on both commits;MERGEABLEonmain.
There was a problem hiding this comment.
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_dcpextis 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_MAXguard, is limited to 0x2a, and needs unit 0. It cannot admit a service on 0x28 or on the ext26 path, and the existing H17Punit == channelrule 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
39e3e079gives the sink EDID through the service, and read-only DDC/CI with #3542 (already merged). The driver is byte-identical atd49ac878, 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):
dcpavserv_hdr_class()does not listAppleDCPPS190, 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.- 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.
|
Merging under the 6-point rule (Ryan 09:29, permanent), at |
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]>
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 classAppleDCPPS190(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 admitsAppleDCPDP2HDMI/DCPDP13Servicewith unit == interface, so the service was dropped silently (adev_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 setsDPAVSERV_ENDPOINT_V2. Every other platform keeps its current endpoint (0 = unchanged selection).dcpavserv_identity(): on 0x2a, admitAppleDCPPS190with unit 0, on any non-zero interface.Testing
Exact-head K114s row at
39e3e079(with drm/apple: give external displays a DDC I2C adapter #3542): PASS, see the PR comment.KUnit
apple*(arm64 QEMU): 350 passed, 1 skipped (unrelated, as on main).Hardware, K114s (M5 Pro), MSI MPG 325CQRXF on the built-in HDMI port. Lab one-shot of Ryan's bridge kernel (main-level + phy: apple: atc-t6050-dp: start a fixed DP PHY at probe #3591 for the HDMI PHY) with this change and drm/apple: give external displays a DDC I2C adapter #3542 in appledrm:
AFK[ep:2a]: new service AppleDCPPS190 on channel 1andDCPAVSERV: AFKV2 EDID service ready;MPG 325CQRXF;i2c-3):ddcutil detectfinds the MSI,getvcp 10= 100/100,getvcp 60= HDMI-2,capabilitiesreads. All read-only;Control, same boot otherwise, without this change: no announce is taken on 0x28 or 0x2a, and the EDID comes from firmware metadata.
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