From f69a948d75195cfb113dc750a5236506e63adea0 Mon Sep 17 00:00:00 2001 From: Joshua Warren <816217+joshuaswarren@users.noreply.github.com> Date: Tue, 17 Nov 2026 13:30:06 +0000 Subject: [PATCH] drm/apple: record the 27.2 method-table confirmation from the 27.2.1 image A static read of Apples public 27.2.1 restore image for this board (T6050) confirms the method layout the 27.2 table already had: same class layout, swap shapes unchanged (0xff4 request, 0x6e0 response). No ID changed, so no table value moved. The read also explains 27.3s one-higher IDs from set_display_refresh_properties up: the pbl fence-notify and swap-complete methods and the trace-source swap-wait parameter exist only in 27.3. On retarget to 27.2 the pbl fence-notify row is dropped (no 27.2 method) and the MemDescRelay thunk row stays on the offset basis (no symbol in the 27.2 image). Tag values remain firmware-side knowledge pending a 27.2 boot. Proved by: the driver objects build for arm64 at this head. Signed-off-by: Joshua Warren <816217+joshuaswarren@users.noreply.github.com> --- drivers/gpu/drm/apple/iomfb_v27.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/drivers/gpu/drm/apple/iomfb_v27.c b/drivers/gpu/drm/apple/iomfb_v27.c index 27e5eef581db2..b479b708346e9 100644 --- a/drivers/gpu/drm/apple/iomfb_v27.c +++ b/drivers/gpu/drm/apple/iomfb_v27.c @@ -168,6 +168,19 @@ static const struct dcp_method_entry dcp_methods_27_0[dcpep_num_methods] = { * an unknown tag with a panic ("link_rpc_lookup callback not found"), so * dfb_ready_query, whose 27.2 tag has not been seen in a call, has no entry * here and is not sent to this build (boot_5()). + * + * The method side of this table is confirmed by a static read of Apple's + * public 27.2.1 restore image for this board (T6050): the framebuffer and + * DCP-side classes show the same method layout, with the swap request and + * response still in the v27 shapes (0xff4 / 0x6e0). The read also explains + * 27.3's one-higher IDs from here up: the pbl fence-notify and swap-complete + * methods and the trace-source swap-wait parameter exist only in 27.3, and + * 27.2 has none of them. The 27.3 table's pbl fence-notify row therefore has + * no 27.2 method and is dropped on retarget, and its MemDescRelay thunk row + * has no symbol in the 27.2 image, so it stays on the offset basis. The tag + * values themselves are registered by the firmware, not the kernelcache, so + * this read cannot confirm them; they stay as this table had them until a + * 27.2 boot does. */ static const struct dcp_method_entry dcp_methods_27_2[dcpep_num_methods] = { IOMFB_METHOD("A000", dcpep_late_init_signal),