Skip to content

J473: 2560x1440 above 165 Hz shows only a top strip; the DCP pipe clock follows the SOC state the PMP sets #3604

Done

Description

@RyanTheTide

What

Mac mini M2 (J473, T8112, macOS 27.2 system firmware) with an MSI MPG 325CQRXF on USB-C: at 2560x1440 above 165 Hz (180, 240, 280 Hz; SDR and HDR; with or without DSC; on dcp and on dcpext) the monitor shows only a strip at the top of the picture. At 144/165 Hz the picture is whole. macOS on the same mini, cable and monitor is whole at 240 and 280 Hz.

Interim: #3457 keeps external modes at or below what the 360 MHz provider clock scans (2560x1440@165 on this monitor). With #3405 (USB-C on dcpext) the MSI gets DSC 1.2, 10-bit, HDR and its VRR range within that limit.

What we know

  • The DCP firmware's mode set at 239 Hz is line for line the same on Linux and macOS (DSC 8/4 slices, 969.4 MHz pixel clock, M3 timing), including getClockFrequency(0) (360000000) < videoClock 484700000! Giving up on frequencies. So it isn't the mode, DSC or link setup.
  • Our own read-only measurement in a macOS 27.2 guest on this mini (MSI on dcpext, 10 s per mode):
    • DCP pipe clock muxes 0x23b040058 (dcp, /arm-io clock 344) and 0x23b040070 (dcpext, clock 350): 0x86100000 at 144 Hz and 0x85100000 at 240/280 Hz. Linux leaves 0x87100000 (the boot source) at every mode.
    • PMP running (CPU_CONTROL 0x10; Linux: 0). DISP DVFS state stays 0 in all modes. The SOC/ready state words change from 0x124 to 0x324 at 240 Hz and above.
  • On Linux the mux ignores writes from the AP. Writing source 5 or 6 reads back 0x87100000 at once, before or after the mode set, with one DCP or both. So the pipe clock source follows the SOC performance state, and on T8112 only the PMP sets that state.
  • Fabric/DRAM bandwidth is not the limit (PMP off: 42-60 GB/s system memcpy vs about 4.3 GB/s for 1440p280 scanout).

Fix direction

Run the T8112 PMP on 27.2 (it currently crashes about 35 s after start: RTKit PTD abort, see the #1020/#1064/#1571/#1637 history) and vote the SOC state the display needs above the provider clock (the ADT names a DP-SOC-VMAX virtual vote device). Once a start path records a verified PMP display acknowledgement, #3457 steps aside by itself.

Evidence (lab store)

  • traces/display/20261129-hv-dcp/j473/e1b-mux-dvfs.tsv (macOS mux + DVFS state words)
  • traces/display/20261129-j473-dsc/{dsc1-a,dsc3-a,dsc4-a,dsc4-b} (Linux rows: route swap, a lab mux-select build, write persistence)
  • work/display/M2MINI-DSC/strip-research.md (register map)

Activity

  1. DjDeveloperr commented on Nov 29, 2026

    @DjDeveloperr
    Contributor

    The same-monitor control and the working 144/165 Hz rows make the interim cap useful. Keep it until the T8112 PMP path has a verified display acknowledgement. The follow-up row should use the same connector and monitor, confirm the full picture at 240/280 Hz, and repeat 144/165 Hz on both display routes as controls.

  2. RyanTheTide commented on Nov 29, 2026

    @RyanTheTide
    ContributorAuthor

    More from the same macOS measurement (144 / 240 / 280 / 280 VRR): the PMP's DVFS request words (0x23b3d0040-0x5f) and the power-state request and bandwidth vote block (0x23b3d0500-0x61f, including the DCP 'Dashboard' words at +0x5d8/+0x5e0) read zero in every mode. Only the PMP's achieved state words for entries 8 and 0xa (SOC) change, 0x124 at 144 Hz to 0x324 at 240/280 Hz, along with the pipe clock mux. So macOS sends no explicit display vote. The SOC state rises from the PMP's own controllers (its controller list has SOC read/write bandwidth controllers, no display one), presumably on the higher scanout bandwidth, and the DCP pipe clock source follows the SOC state. For Linux that means the fix is the T8112 PMP running with its bandwidth controllers, not a new vote path in the display driver.

  3. added
    tracking
    on Nov 29, 2026
  4. RyanTheTide commented on Nov 29, 2026

    @RyanTheTide
    ContributorAuthor

    Kept open for T8112 PMP bring-up, with the cap from #3457 in place. The fix needs a complete picture at 240 and 280 Hz on the same setup, with 144 and 165 Hz controls.

  5. RyanTheTide commented on Nov 29, 2026

    @RyanTheTide
    ContributorAuthor

    The J473 routing changes have landed in Linux #3405 as a03face5 and Aura #544 as dc4f80ff. The paired Stage 2 build is with M2-COMBINE. This issue stays open for the full-picture checks at 240 and 280 Hz on the same setup, with the existing 144 and 165 Hz controls.

  6. RyanTheTide commented on Nov 30, 2026

    @RyanTheTide
    ContributorAuthor

    The T8112 PMP bring-up now owns this follow-up. A J473 diagnostic image is built and queued to check whether the PMP stays running. The 165 Hz cap stays in place while that test is pending.

    For closure, keep the same monitor and connector and verify a full picture at both 240 and 280 Hz, with the 144 and 165 Hz controls. A passing PMP diagnostic by itself establishes the next step toward that display test.

  7. RyanTheTide commented on Nov 30, 2026

    @RyanTheTide
    ContributorAuthor

    The first four J473 PMP-on diagnostic boots are complete and the mini was returned to saved combo30. The earlier PTD abort did not recur. The external DCP reported a startup timeout on both boots with the short D003 reply and on neither boot with the extended reply in the lab image. This supports testing the #3327 path on J473. The lab image and that PR have separate source identities.

    The three-cycle extended-reply run measured memcpy at 9.9 GB/s on the P core and 5.9 GB/s on the E core, versus 35.4 and 16.6 GB/s on saved combo30 with the PMP off. Keep the 165 Hz cap while T8112-PMP investigates the bandwidth loss. Closure still needs a full image at both 240 and 280 Hz on the same monitor and connector, with the 144 and 165 Hz controls.

  8. RyanTheTide commented on Dec 1, 2026

    @RyanTheTide
    ContributorAuthor

    J473 (T8112) memory bandwidth on macOS 27.2 with its PMP running, measured 12-01 with macOS booted under our HV and the same single-thread memcpy test as the Linux rows:

    • macOS, PMP on: memcpy P-core 40.6 GB/s, E-core 14.3 GB/s (3 runs, stable)
    • Linux, PMP on: 9.9 / 6.0 GB/s
    • Linux, PMP off: 35.4 / 16.6 GB/s

    So the PMP doesn't cap bandwidth: macOS runs it at full speed. Linux is missing a request that macOS makes. Our earlier rows already ruled out the mailbox handshake, the tunables and the registry. The likely gap is the CPU memory floor (apple,cpu-memory-floor), which T6000 and T8122 already carry and T8112 doesn't. Patch and J473 row to follow.

  9. DjDeveloperr commented on Dec 1, 2026

    @DjDeveloperr
    Contributor

    There is a PMP DCS state you can configure (DRAM controller). We've debugged a similar issue where DCP high refresh rates MMIO was affecting mem bw for no reason on M4 mini but it has been fixed.

  10. RyanTheTide commented on Dec 1, 2026

    @RyanTheTide
    ContributorAuthor

    T8112 PMP on the J473: the CPU memory floor fixes the bandwidth cap, but running the PMP breaks the USB-C display. Not ready for default-on yet.

    Branch b7/t8112-pmp-floor (59ec33bf): APPLE_USE_PMP for every T8112 board, apple,cpu-memory-floor = <0x21 2 0x25 4> with apple,pmp-tables (the T8122 layout), and T8112 confirm_ioreg_len. Tested together with #3327 (85c4cf9f). Rows on the J473 at lab merge 01002f03, kernel-only one-shots with a DTB-only trial Stage 2 (production aura and U-Boot bytes), single-thread memcpy, both monitors attached:

    DTB PMP memcpy P / E GB/s USB-C display at boot DPMS off then on
    PMP on + floor on floor raised 39.4 / 17.8 off neither display back
    same, DCPs on their PMGR domains on same boot: floor off 9.9 / 5.8, floor on 39.4 / 17.5 off neither display back
    production off 35.4 / 16.6 on both back

    For comparison, macOS on the same Mac gets 40.6 / 14.3.

    • The floor is the missing request: with it raised, Linux with the PMP on gets 39.4 / 17.5 GB/s, at or above PMP-off and macOS. After an idle drop, the governor takes about 0.5 s of sustained load to raise it again.
    • Blocker: with the PMP running, the USB-C display (DP-2, external DCP) isn't enabled at boot, and DPMS on brings neither display back. There are no crash lines. Moving the DCPs back to their PMGR domains doesn't change this. The 11-30 PMP-on rows (row C) ended the same way; that run only counted crashes, so it wasn't noticed.
    • 0 PMP crashes and 0 DCP crashes; the external DCP started with drm/apple: fill the extended firmware-27 D003 bandwidth reply #3327.

    Next: find what the display needs while the PMP runs (the DCP side of the D003/PMP report request), then land the series. Evidence: our traces/power/20261201-b7-pmpfloor-j473.

  11. RyanTheTide commented on Dec 1, 2026

    @RyanTheTide
    ContributorAuthor

    Narrowed down the T8112 PMP-on display blocker by comparing boot logs from the two J473 rows above (PMP on vs off, same kernel). With the PMP running, the USB-C display's mode set (2560x1440@165, 666 MHz pixel clock) never completes: set_digital_out_mode finished:0 followed by set_digital_out_mode timed out after about 8.6 s, then IOMFB transaction timeouts. With the PMP off, the same mode set completes in about 210 ms. HDMI at 1080p120 (297 MHz) does start. This looks like the T8122 case, where the DCP's first mode set completes only after the display's PMP report request (apple,pmp-report on the DCP nodes). T8112 needs the same request from its DCPs before the T8112 PMP series can be default-on.

  12. RyanTheTide commented on Dec 1, 2026

    @RyanTheTide
    ContributorAuthor

    Opened #3789 (fix/t8112-pmp-display-floor @ 098b53c0d52ab7) with the T8112 PMP enablement, CPU memory floor, and display clock scaling fix.

    Root cause of the PMP-on mode-set timeout and locked display clock:

    1. In t8112.dtsi, ten pmp_report child entries (pmp_report_gfx..pmp_report_scodec) were off by -2 relative to the T8112 soc-device table (SOC-AON/SOC-REST occupy records 2 and 3, shifting AGX=6, DISP=9, DISPEXT=10). With PMP running, Linux was sending DISP/DISPEXT power requests to bits 7 and 8 instead of 9 and 10, so the PMP treated the display blocks as off and ignored their DVFS requests, hanging set_digital_out_mode on high-rate modes.
    2. apple_pmp_offsets_t8112 lacked .defer_requests = true for requests probed before apple_pmp starts, and dcp_ext_wait_pmp() did not wait for PMP display acknowledgment or set pmp_display_acked on T8112 DCPs.

    J473 hardware proof (7.3.0-aurora-m2pmp, macOS 27.2 firmware, dual displays):

    • Both 231c00000.dcp and 271c00000.dcp receive PMP acknowledged the display request; PMP running (status 0x1), requests 0x600; memory floor owner admitted.
    • Single-thread mcpy with PMP on: 38.6 GB/s P-core, 17.6 GB/s E-core (floor drops cleanly to 0x101 when idle and re-raises to 38.6/17.4 GB/s).
    • MSI USB-C (DP-2) 2560x1440 mode sweep: 144 -> 165 -> 180 -> 240 -> 280 -> 144 Hz all APPLIED_OK, 0 timeouts, 0 crashes, with live DVFS-STATE scaling 0x101 (144/165/180 Hz) -> 0x301 (240/280 Hz) -> 0x101 (144 Hz) and 0x324 under load at 240/280 Hz. Acer HDMI-1 1920x1080 @ 120/180 Hz also APPLIED_OK.
    • DPMS off/on restores both displays cleanly (0 timeouts, 0 crashes).
    • 30-minute soak (37 mode-switch cycles across 165/240/280/144 Hz + periodic mcpy + mid-soak DPMS off/on): 0 PMP crashes, 0 DCP crashes, 0 timeouts, 0 AVC, 0 failed units.
  13. RyanTheTide commented on Dec 2, 2026

    @RyanTheTide
    ContributorAuthor

    Fixed on main by #3789 (T8112 PMP memory floor + display clock scaling), with #3865 for the deep-sleep follow-up. Hardware check on J473 (M2 mini) with kernel 7.3.0-aurora-fleet94 (main e7015fb): MSI on USB-C DP at 2560x1440 @ 280 Hz, 10-bit, SDR and HDR (bt2100), full frame with no strip, checked by eye. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    tracking

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions