Repository navigation
drm/apple: dcp: enable AFK init-prop name fallback on T6030 internal DCP - #3768
DjDeveloperr wants to merge 5 commits into
Conversation
Firmware 27.2 on the T6030 internal DCP announces infrastructure services such as disp0-service without EPIC identity properties. AFK rejects those announcements and leaves the services unbound. Opt the apple,t6030-dcp hardware profile into the existing announced name fallback for firmware interfaces in the 27.0 compatibility class. Use the fallback only when the parsed properties lack EPIC identity. Keep the J716c sleep transport exception scoped to md-manager. Signed-off-by: DjDeveloperr <hey@djdev.me>
|
Hardware receipt (J516s / M3 Pro, T357
|
|
J516s (T6030, internal DCP firmware 27.2), The second wake failed the RTC latch check. This run used the integrated stack; the current PR head still needs its hardware row and independent review. |
Signed-off-by: Diljit Singh <hey@djdev.me>
Keep the parser error for an ill-formed EPIC dictionary. The T6030 announced-name fallback may recover from a missing identity, but it must reject an invalid one. Model the new match flag in the host fixture and cover a dictionary with a non-integer EPICUnit. Signed-off-by: Diljit Singh <hey@djdev.me>
Signed-off-by: Diljit Singh <hey@djdev.me>
|
Local receipt at |
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
|
J516s (T6030, M3 Pro) hardware qualification PASS for exact head
|
Add the afk_name_fallback field on apple_dcp_hw_data to the boot and edid host fixtures so v27-panel-handoff and service-rebind compile and pass. Signed-off-by: Diljit Singh <hey@djdev.me>
|
Pushed test-only host-fixture fix |
Signed-off-by: Diljit Singh <hey@djdev.me>
DjDeveloperr
left a comment
There was a problem hiding this comment.
HOLD at a57f97381dc5
The shared AFK parser now preserves a malformed identity error on every DCP. A second DCP generation needs a boot or resume on this change showing its existing services bind and the panel modesets.
Checks and evidence
I checked that only missing identity fields admit the announced-name fallback and malformed fields retain their parser error. The J516s two-wake receipt covers the runtime code. The last commit changes two host fixtures. The display KUnit group, Apple build and host checks passed.
|
J714s (M5 Pro, T6050) second-generation peer-control S2R row at exact unchanged head Candidate:
|
|
Closing as superseded. The driver change, f35156e (AFK init-prop name fallback on T6030), landed on main through #3815 as 1ca91a1. The one piece left here, the |
…T6031 Firmware 27.2 on the T6031 internal DCP announces AFK infrastructure services on SYSTEM_ENDPOINT (ep:20) without EPIC identity properties, matching T6030 (#3768). Enable afk_name_fallback on apple_dcp_hw_t6031 so those services bind by announced name under DCP_FIRMWARE_V_27_0. Also set only_120hz_modes on apple_dcp_hw_t6031 and gate the only_120hz_modes check in dcp_mode_settable() on DCP_FIRMWARE_V_27_0, with a 14.7 non-regression check in parser_internal_v27_only_120hz. Switching away from the 120 Hz boot timing crashes firmware 27.2 DCP during ALPM/link teardown, while 14.7 fixed modes stay unaffected. Signed-off-by: Acelogic <miguelc4600@gmail.com>
What: Firmware 27.2 on the T6030 internal DCP can announce AFK infrastructure services without EPIC identity properties, leaving those services unbound. Let that hardware profile use the announced service name when the parser returns
-ENOENTin the firmware-27 compatibility class.Tested: At
f35156ebd468, strict checkpatch and diff checks passed. The AFK and T6030 display host tests passed 11/11 and 3/3. The DCP host tests passed 48/48 with-Wno-unused-but-set-globalfor Clang 23. Warm AArch64 builds ofafk.oanddcp.oonpcpassed with Clang 23 and GCC 16, with zero warnings.Risk: Two-way door. The driver change applies to the internal DCP on T6030 Macs (J514s and J516s) in the firmware-27 compatibility class.
Not yet: Draft pending J516s T357 hardware boot verification. Check that AFK services bind and that the internal panel modesets and its backlight works.
Test details
The host runner takes one
--onlyfilter per invocation. With unmodified Clang 23 flags, 18 DCP runs fail at fixture compilation becausedcp-tunnel-prepare-tests.pysets the unused variablesplit_source_select_calls. The same failure reproduced onmainat19ee1b5bc9d5.Each AArch64 dry run listed only
drivers/gpu/drm/apple/afk.oanddrivers/gpu/drm/apple/dcp.o. The GCC copy usedCONFIG_GCC_PLUGINS=n.