Skip to content

drm/apple: allow all fixed ProMotion refresh rates on T6031 - #4379

Merged
DjDeveloperr merged 1 commit into
mainfrom
feat/t6031-dcp-refresh-rates
Dec 5, 2026
Merged

DjDeveloperr merged 1 commit into
mainfrom
feat/t6031-dcp-refresh-rates

Conversation

@Acelogic

@Acelogic Acelogic commented Dec 4, 2026

Copy link
Copy Markdown
Member

What: Remove .only_120hz_modes = true from apple_dcp_hw_t6031 in drivers/gpu/drm/apple/dcp.c, update the comment in iomfb.c (T6030 and T6050 retain .only_120hz_modes = true), and add an assertion in dcp-firmware-test.c confirming apple,t6031-dcp leaves only_120hz_modes false.

With the 5-window disp-0..disp-4 ADT layout fix merged in #4359 (11306b42248e), T6031's internal ProMotion panel switches cleanly across every fixed refresh rate and across DPMS off/on without crashing DCP.

Tested:

  • scripts/checkpatch.pl --strict: 0 errors, 0 warnings, 0 checks.
  • python3 tools/testing/selftests/drivers/gpu/apple-dcp/boot.py: PASS.
  • Live bare-metal J516c verification on macOS 27.2 (26B123) with external USB-C DP 4K60 (DP-1) connected simultaneously:
    • 3456x2234@120 Hz (measured 120.08 Hz)
    • 3456x2234@60 Hz (measured 60.03 Hz)
    • 3456x2234@59.94 Hz (measured 59.98 Hz)
    • 3456x2234@50 Hz (measured 50.03 Hz)
    • 3456x2234@48 Hz & 47.95 Hz
    • DPMS OFF -> ON at 60 Hz (measured 60.03 Hz), then 60 -> 120 Hz return (measured 117.10 Hz)
    • 0 DCP crashes, 0 SErrors, 0 DART/IOMMU faults, DP-1 4K60 uninterrupted throughout.
Head Board Kernel / Firmware Result
f55fccdc J516c (MacBook Pro 16" M3 Max, T6031) 7.3.0-t6031-dcpext+ (identical apple_dcp_hw_t6031 delta on #4359), macOS 27.2 (26B123) PASS — eDP-1 live modesets across 120/60/59.94/50/48/47.95 Hz + DPMS off/on at 60 Hz with DP-1 4K60 active, 0 DCP/DART faults

Risk: two-way · T6031 (M3 Max) only — a plain revert restores .only_120hz_modes = true on apple_dcp_hw_t6031. T6030 (M3 Pro), T6050 (M5 Pro/Max), and all other SoC profiles are unchanged.

The 120 Hz-only mode lock (.only_120hz_modes = true) on apple_dcp_hw_t6031
worked around DCP crashes when switching away from the iBoot panel timing
on firmware 27.2. Commit 11306b4 ("Merge pull request #4359 from
aurora-silicon/feat/t6031-v27-2-dcpext") fixed t6031-dcp.dtsi's missing
5-window disp-0..disp-4 ADT layout, which was the underlying cause of
mode-set instability on T6031.

Drop .only_120hz_modes from apple_dcp_hw_t6031 (leaving T6030 and T6050
unchanged), update the comment in iomfb.c, and assert the T6031 profile
exposes all fixed rates in dcp-firmware-test.c.

Verified on J516c (MacBook Pro 16" M3 Max, T6031, macOS 27.2 / 26B123)
with dual-display DP-1 4K60 active: live modesets across 120, 60, 59.94,
50, 48, and 47.95 Hz, DPMS OFF -> ON at 60 Hz, and 60 -> 120 Hz return
all succeed with 0 DCP crashes, 0 SErrors, and 0 DART faults.

Signed-off-by: Acelogic <miguelc4600@gmail.com>
@Acelogic
Acelogic requested review from a team as code owners December 4, 2026 23:35
@github-actions github-actions Bot added area:display Area from CODEOWNERS (bot) blast:all Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Dec 4, 2026
@github-actions

github-actions Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Merge readiness at f55fccdc: not ready yet

Check Detail
CI at head running running: KUnit dcp-fabric dcp-topology dcp-display
Review ok approved by DjDeveloperr
Requested changes ok none
Hardware row at head ok in the PR body at f55fccdc
Conflicts ok none
PR text ok Risk: two-way · T6031 (M3 Max) only — a plain revert restores .only120hzmodes = true on appledcphwt6031. T6030 (M3 Pro), T6050 (M5 Pro/Max), and all other SoC profiles are unchanged.

Areas: area:display

Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels.

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checked the boot-rate filter and the T6031 display admission from #4049 and #4359. Removing the T6031 hardware flag opens fixed rates on the admitted 27.2 panel. The 14.7 path already bypasses this filter, and the T6030 and T6050 profiles retain their boot-rate guard. The J516c receipt exercises each advertised rate, DPMS, return to 120 Hz and a concurrent external display. The affected Apple, Host and display KUnit checks still need to complete.

@github-actions github-actions Bot removed the needs-review No approving review from Core or Omarchy Mac yet (bot) label Dec 4, 2026
@DjDeveloperr
DjDeveloperr merged commit 7b10eb1 into main Dec 5, 2026
11 checks passed
@DjDeveloperr
DjDeveloperr deleted the feat/t6031-dcp-refresh-rates branch December 5, 2026 01:25
RyanTheTide added a commit that referenced this pull request Dec 5, 2026
The previous merge of main recorded 7b10eb1 as its parent but kept
the tree of the merge with the main before it, which dropped #4379 (T6031
fixed refresh rates) from dcp.c, iomfb.c and dcp-firmware-test.c. Take
those three files as main has them; nothing else changes.

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:display Area from CODEOWNERS (bot) blast:all Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants