Repository navigation
drm/apple: enable AFK name fallback on T6041 internal DCP - #4070
allanclempe wants to merge 1 commit into
Conversation
On the MacBook Pro 16-inch M4 Max (J616c, apple,t6041-dcp) booting with macOS 27.2 (26B123, DCP_FIRMWARE_V_27_0) firmware, the internal DCP's AFK ep:20 announces infrastructure services without EPIC identity properties. Without .afk_name_fallback set on apple_dcp_hw_t6041, afk_recv_handle_init() rejects the -ENOENT parse result with: apple-dcp 402e00000.dcp: AFK[ep:20]: failed to extract init props: -2 leaving ep:20 channel 1 (system) unbound on every boot, whereas the four external apple,t6041-dcpext instances already take the external-output fallback and bind cleanly, and T6030/T6031/T8122 internal DCPs already set .afk_name_fallback = true. Enable .afk_name_fallback = true on apple_dcp_hw_t6041 and update the matching comment in afk.c. Signed-off-by: Allan Clempe <allan.clempe@gmail.com>
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
RyanTheTide
left a comment
There was a problem hiding this comment.
The flag only changes the missing-property fallback on the T6041 internal DCP under firmware 27. Existing firmware and other AFK parse errors keep their current handling. The J616c backport demonstrates the missing identity announcement now binds. Exact-head cold boot is still pending.
|
Read at One row before the merge, since binding |
What: Set
.afk_name_fallback = trueonapple_dcp_hw_t6041so the T6041 internal DCP on macOS 27.2 (26B123,DCP_FIRMWARE_V_27_0) accepts AFKep:20infrastructure announcements that omit EPIC identity properties instead of failing withAFK[ep:20]: failed to extract init props: -2.Tested: J616c (MacBook Pro 16" M4 Max, macOS 27.2 / 26B123 stub) at
a1218aef0:scripts/checkpatch.pl --strict --no-tree(0 errors, 0 warnings, 0 checks) andtools/asahi/dcpext26-startup-tests.pyPASS; identical.afk_name_fallback = truechange booted live on J616c (linux-aurora 7.3.0-1-3.1-ARCH, built ondb6da7821954) with 0err..emergkernel messages, 0 failed systemd units, and402e00000.dcpAFKep:20channel 1 (system) bound.Risk: two-way door · T6041 Macs (
apple,t6041-dcpinternal DCP only; externaldcpextand other SoCs untouched).Not yet: Kernel rebuild and cold boot directly at rebased head
a1218aef0(live boot verification ran ondb6da7821954with the identical T6041 flag); J614c (14" M4 Max) and T6040 (M4 Pro) hardware runs.Details
apple_dcp_hw_t6030,apple_dcp_hw_t6031, andapple_dcp_hw_t8122already enable.afk_name_fallback = truefor firmware-27 internal DCPs, whileapple_dcp_hw_t6041still omitted it. On J616c (402e00000.dcp) running26B123(DCP_FIRMWARE_V_27_0),afk_recv_handle_init()logged:on every boot and left
ep:20channel 1 (system) unbound, while the four externalapple,t6041-dcpextinstances already took thedcp_has_external_output()fallback and bound cleanly. Setting.afk_name_fallback = trueonapple_dcp_hw_t6041matches the other firmware-27 internal DCPs and keeps non--ENOENTparse errors untouched. Also updates the stale comment indrivers/gpu/drm/apple/afk.c.Evidence
git format-patch -1 --stdout | perl scripts/checkpatch.pl --strict --no-tree -:0 errors, 0 warnings, 0 checks, 16 lines checkedpython3 tools/asahi/dcpext26-startup-tests.py:PASS native AFK announcements through deferred OPENPASS native D121 through actual shared-memory command and ACK bodiesapple,j616c,apple,t6041,os-fw-version/system-fw-version26B123) running7.3.0-1-3.1-ARCH(db6da7821954+.afk_name_fallback = trueonapple_dcp_hw_t6041):journalctl -k -b -p err..emerg: 0 lines (AFK[ep:20]: failed to extract init props: -2gone)systemctl --failed: 0 failed units402e00000.dcpinternal display (3456x2234, notch shown) and external display outputs operate normally