Re: [PATCH v3 0/3] drm/amd: Enable 2x1 tiled display support on Apple Retina iMacs
From: Alex Deucher
Date: Wed Nov 25 2026 - 11:01:51 EST
On Tue, Nov 24, 2026 at 8:06 PM Richard Lane <richardlanedev@xxxxxxxxx> wrote:
>
> Hi folks,
>
> Apple 21.5" 4K (iMac18,2, iMac19,2) and 27" 5K (iMac15,1, iMac17,1,
> iMac18,3, Polaris-based iMac19,1) Retina iMacs drive their internal
> 4096x2304 or 5120x2880 panel as a 2x1 tiled display using two streams
> over an internal eDP root link and a secondary DP link.
>
> At boot, the Apple EFI firmware initializes only a single pipe and
> leaves the secondary DP tile unlatched with HPD deasserted. Because the
> secondary tile reports HPD low and requires a vendor-specific DPCD
> handshake before it responds as a DisplayPort sink, amdgpu currently
> fails to detect the second tile, leaving Linux limited to single-tile
> resolutions.
>
> This series enables full dual-tile operation on DCE < 12 Apple 4K/5K
> Retina iMacs so that the internal panel behaves like a standard
> DisplayID tiled monitor:
>
> 1. Calculate the pre-OS framebuffer reservation in GMC v7 and v8 using
> mmGRPH_PITCH and the mmGRPH_PRIMARY_SURFACE_ADDRESS offset from
> vram_start so the full relocated Apple EFI scanout surface is
> preserved during boot handover without vendor-specific quirks.
> 2. Latch the root eDP link via DPCD 0x4F1 prior to EDID read on Apple
> hardware (DCE < 12), point the secondary DP link to the root eDP
> link (apple_imac_peer) via an EDID quirk covering 4K and 5K Retina
> iMacs, latch the secondary tile via DPCD 0x4F1 on the root eDP link,
> write the 3-byte Boot Camp source table (0x310) on the secondary
> link, keep the secondary tile out of D3 power-down, and unlatch the
> TCON back to single-pipe mode on suspend/shutdown. Once unlocked,
> DRM's DisplayID parser populates has_tile, tile_group, and
> tile_is_single_monitor on both connectors natively. (DCE >= 12
> support for Vega-equipped iMac19,1, iMacPro1,1, and 2020 iMac20,x is
> noted as TODO.)
> 3. Compute context->bw_ctx.bw.dce.all_displays_in_sync in
> dce100_validate_bandwidth() using
> resource_are_streams_timing_synchronizable() and copy it to
> pp_display_cfg->all_displays_in_sync in
> dce_pplib_apply_display_requirements(), matching the existing DCE 11
> bw_calcs() flow so SMU7 can downclock MCLK at idle on DCE <= 10
> without modeset underflows.
I've reviewed and applied patches 1 and 3. I had a question on patch 2.
Alex
>
> Changes in v3:
> - Patch 2: Added pre-EDID DPCD 0x4F1 latch on the root eDP link in
> dm_helpers_read_local_edid() so dual-tile detection works even when
> third party bootloaders are not present on the EFI partition. Added
> 21.5" 4K Retina iMac panel IDs (AE19/1A for iMac18,2 and iMac19,2)
> and renamed apple_5k_peer / amdgpu_dm_apple5k_unlatch() to
> apple_imac_peer / amdgpu_dm_apple_imac_unlatch().
> - Patch 3: Dropped the dm_pp_apply_display_requirements() call in
> amdgpu_dm.c and instead computed all_displays_in_sync in
> dce100_validate_bandwidth() and copied it in
> dce_pplib_apply_display_requirements() (dce_clk_mgr.c) to match the
> existing DCE 11 bw_calcs() path.
>
> Changes in v2:
> - Patch 1: Replaced the hardcoded 64 MiB Apple quirk in amdgpu_gmc.c
> with a generic calculation in gmc_v7_0_get_vbios_fb_size() and
> gmc_v8_0_get_vbios_fb_size() using mmGRPH_PITCH and
> mmGRPH_PRIMARY_SURFACE_ADDRESS.
> - Patch 2: Dropped the DRM_MODE_CONNECTOR_eDP override in
> amdgpu_dm_connector.c in favor of DRM's native DisplayID tile
> properties (has_tile, tile_group, tile_is_single_monitor).
> Renamed tiled_peer to apple_5k_peer and set it only on the secondary
> DP link, removing dm_helpers_wire_tiled_peer(),
> dc_link_is_apple_5k_secondary(), and inline explanatory comments.
> - Patch 3: Made the PowerPlay sync check generic for any combination of
> synchronized displays by checking timing_sync_info.group_size ==
> params.stream_count instead of tiled_peer.
>
> Regards,
> Richard
>
> Richard Lane (3):
> drm/amdgpu: use pitch and surface offset for GMC v7/v8 fb size
> drm/amd/display: unlock secondary tile on Apple 4K/5K iMac panels
> drm/amd/display: report synced displays to PowerPlay on DCE <= 10
>
> drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c | 8 +++--
> drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c | 8 +++--
> .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 19 +++++++++++
> .../amd/display/amdgpu_dm/amdgpu_dm_helpers.c | 34 +++++++++++++++++++
> .../display/dc/clk_mgr/dce100/dce_clk_mgr.c | 3 ++
> drivers/gpu/drm/amd/display/dc/dc.h | 1 +
> .../drm/amd/display/dc/link/link_detection.c | 7 +++-
> .../dc/link/protocols/link_dp_capability.c | 4 +++
> .../display/dc/link/protocols/link_dp_phy.c | 3 ++
> .../dc/resource/dce100/dce100_resource.c | 9 +++++
> 10 files changed, 89 insertions(+), 7 deletions(-)
>
> --
> 2.55.0