From a1218aef079f96fb5d6031f6d0fc76588b98573d Mon Sep 17 00:00:00 2001 From: Allan Clempe Date: Thu, 3 Dec 2026 16:10:14 +1000 Subject: [PATCH] drm/apple: enable AFK name fallback on T6041 internal DCP 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 --- drivers/gpu/drm/apple/afk.c | 3 ++- drivers/gpu/drm/apple/dcp.c | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/apple/afk.c b/drivers/gpu/drm/apple/afk.c index 643781f3ad029..52a59dc0eee57 100644 --- a/drivers/gpu/drm/apple/afk.c +++ b/drivers/gpu/drm/apple/afk.c @@ -2071,7 +2071,8 @@ static void afk_recv_handle_init(struct apple_dcp_afkep *ep, u32 channel, * H17G and firmware-27 T8142 can omit EPIC identity * for powerlog-service. J716c's sleep transport * admits only md-manager by name here. - * hw.afk_name_fallback covers firmware-27 T6030 internal DCP. + * hw.afk_name_fallback covers firmware-27 internal DCPs + * (T6030, T6031, T8122, T6041). */ epic_name = NULL; epic_class = NULL; diff --git a/drivers/gpu/drm/apple/dcp.c b/drivers/gpu/drm/apple/dcp.c index a8999fae3b017..f7d8eff7d042c 100644 --- a/drivers/gpu/drm/apple/dcp.c +++ b/drivers/gpu/drm/apple/dcp.c @@ -13102,6 +13102,7 @@ static const struct apple_dcp_hw_data apple_dcp_hw_t8132_dcpext = { static const struct apple_dcp_hw_data apple_dcp_hw_t6041 = { .iboot_handoff = "apple,t6041-handoff", .num_dptx_ports = 2, + .afk_name_fallback = true, }; static const struct apple_dcp_hw_data apple_dcp_hw_t6041_dcpext = {