Repository navigation
drm/apple, phy: apple: atc: key the H17P external and T8140 DP paths on firmware and DT data, not the board - #2370
Conversation
…board dcp_external_zero_reply() answered the async D134 record with a zero reply only when the method profile was H17P external and the machine was apple,j700 and the node apple,t8140-dcpext. D134 is a record of the H17P external firmware ABI. The method profile already names that ABI: only the apple,t8140-dcpext match data sets it, and probe admits such a processor only when its apple,firmware-version and apple,firmware-compat name the supported release (dcp_h17p_external_supported()). The machine and compatible checks decided nothing more. Key the reply on the method profile alone. No change on J700, the only board with this processor. The apple-dcp host selftest now expects the reply from the method profile alone. Fixes: 08b540f ("drm/apple: answer the measured J700 external D134 record") Signed-off-by: Ryan Murray <[email protected]>
… board dcp_h17p_external_supported() returned false unless the machine was apple,j700, before checking the processor's compatible and its apple,firmware-version/apple,firmware-compat against the supported firmware release. The external H17P path depends on the display processor (the apple,t8140-dcpext compatible, whose match data selects the H17P external method profile) and on the firmware release the loader describes in the device tree. The board is not part of either. Drop the machine check and keep the compatible and firmware checks, so the firmware table is what admits the path. No change on J700, the only board with this processor. The apple-dcp host selftest now checks that the machine is never consulted. Fixes: a7a7e2f ("drm/apple: Compose the qualified J700 external display path") Signed-off-by: Ryan Murray <[email protected]>
…t the board atcphy_load_t8140_dp() returned -EOPNOTSUPP unless the machine was apple,j700. The caller only runs it for a PHY whose match data has has_t8140_dp (apple,t8140-atcphy), and the lists it applies are device tree properties passed by the bootloader. A node without them already fails the length check with -EINVAL, the caller warns, and dp_tunables stays false. Drop the machine check: the PHY compatible and the presence of the DT lists decide. The function keeps its name because has_t8140_dp, not a board, selects it. No change on J700, the only board with this PHY. Fixes: 7f67eba ("phy: apple: apply the T8140 DisplayPort setup lists") Signed-off-by: Ryan Murray <[email protected]>
The comment above dcp_external_hdr_hints() said only the H17P external path sends the hints "for now". The call site has since added unpaired firmware 27 external processors, and the reason the hints are not sent everywhere is the firmware ABI: every firmware has set_parameter_dcp, but the parameter numbers are defined by each firmware build, and macOS was seen sending these two only on the H17P external firmware (26.6.2) and on firmware 27. Say so. No functional change. Signed-off-by: Ryan Murray <[email protected]>
|
J700 (MacBook Neo) row, from one combined test kernel (integration b4cd7b3 plus this PR, #2477, #2474 and #2299), one-shot boot, compared against the production kernel:
|
|
No blockers. What I checked at 3719db6: HW row: J700 (T8140) on 3719db6 + integration with a monitor on the dock's DP output. The connector should read Assisted-by: LLM (Claude:Opus 5.5) |
|
The DT and firmware-based display path selection is still needed. Head |
There was a problem hiding this comment.
Pre-PR checklist (§1–§6) review at 3719db6faf644dd9b143c325fc23535989f216d1 (host-tests: SUCCESS; not superseded on integration/aurora).
Technical verification
All four commits apply cleanly onto live integration/aurora and have no code blockers:
dcp_external_zero_reply()(drivers/gpu/drm/apple/iomfb.c): keying onDCP_IOMFB_METHODS_H17P_EXTERNALalone is safe because onlyapple_dcp_hw_t8140_external(apple,t8140-dcpext) sets that profile, anddcp_probe()/apple_drv.cgate it viadcp_h17p_external_supported().dcp_h17p_external_supported()(drivers/gpu/drm/apple/dcp.c): removingof_machine_is_compatible("apple,j700")leaves theapple,t8140-dcpextcompatible and exactapple,firmware-version/apple,firmware-compatchecks in control.atcphy_load_t8140_dp()(drivers/phy/apple/atc.c): removingof_machine_is_compatible("apple,j700")is safe because onlyapple,t8140-atcphysetshas_t8140_dp, and missing DT lists already fail cleanly with-EINVALbefore touching registers (dp_tunablesstaysfalse).dcp_external_hdr_hints()(drivers/gpu/drm/apple/iomfb_template.c): comment-only update accurately matching live call sites.tools/testing/selftests/drivers/gpu/apple-dcp/lifecycle.py: updates both admission and D134 dispatcher host tests cleanly (minor non-blocking nit:dispatcher()stubsof_machine_is_compatible/of_device_is_compatiblecouldassert(false)likelifecycle()does).
Blockers
- §5 Hardware evidence — Neo (T8140 J700) external DisplayPort dock row remains open:
- The posted J700 boot (on a combined multi-PR test kernel, without
failed unitsreported) hadDP-1 disconnected, so neither the external D134 callback path (dcp_external_zero_reply()) nor active DisplayPort bring-up using the loaded T8140 tunables was exercised on hardware. - As already noted in
## Still to runand the 2026-11-23 comment, please post a live-head J700 run with an external DisplayPort monitor connected via the dock: connectorconnectedwith modes listed, replug + 3x s2idle, 0unknown callback/DisplayPort tunable bundle unavailable/Unsupported external display/ new kernel errors,0SELinux denials, and0failed units.
- The posted J700 boot (on a combined multi-PR test kernel, without
Checklist (§1–§6)
- §1 No model gating: Pass (removes three redundant
apple,j700board checks in favor of IP compatible, firmware ABI, and DT property presence). - §2 Production-ready: Pass (default command line, no hacks).
- §3 Safety: Pass (firmware admission and DT property validation remain intact).
- §4 Clean-room and attribution: Pass (all 4 commits
b66c454609e3,89d2a67a18de,03f5ad5410b9,3719db6faf64carry human author/committer andSigned-off-by:only, zero AI commit trailers; plainAssisted-by:in PR body). - §5 Evidence: Incomplete — see Blocker #1.
- §6 Naming: Pass.
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
DjDeveloperr
left a comment
There was a problem hiding this comment.
Verdict: FINISH, then merge at 3719db6faf64: the code is ready; it needs only a row at this head.
Blockers: none in the code. Missing row: the J700 boot had DP-1 disconnected, so neither the external D134 path nor DP bring-up with the loaded T8140 tunables ran. Needed: one J700 run at this head with an external DP monitor on the dock, the connector connected with modes listed, and a replug and an s2idle with no unknown callback, tunable bundle unavailable or Unsupported external display lines. The Neo lead will run it.
Checked: no Apple material. This removes three apple,j700 board checks. The apple,t8140-dcpext compatible with the exact firmware-version/compat checks, has_t8140_dp on apple,t8140-atcphy, and the DT tunable lists now decide, and a missing list still fails with -EINVAL before any register is touched. The selftests pass 88/88 under ASan/UBSan. CI green. This replaces my earlier review.
Evidence
Read the four commits. Nit: the dispatcher() stubs in lifecycle.py could assert(false) like lifecycle() does.
Superseded by the review at 3719db6
|
|
|
|
Problem
Three checks in the display stack test the board (
apple,j700) when another check already decides:drivers/gpu/drm/apple/iomfb.cdcp_external_zero_reply()(08b540f): the D134 zero reply requires the H17P external method profile,apple,j700andapple,t8140-dcpext. Only theapple,t8140-dcpextmatch data sets that profile, and probe admits it only for the supported firmware release.drivers/gpu/drm/apple/dcp.cdcp_h17p_external_supported()(a7a7e2f): checksapple,j700before the compatible and theapple,firmware-version/apple,firmware-compatcheck, which is the real gate.drivers/phy/apple/atc.catcphy_load_t8140_dp()(7f67eba): returns -EOPNOTSUPP unlessapple,j700. Onlyhas_t8140_dpPHYs call it, and the lists it applies are DT properties. Without them it already returns -EINVAL, and the caller warns.The comment on the external HDR brightness hints (2bec709) says "H17P only, for now". It is stale and does not give the real reason for the scope.
Change
apple,t8140-dcpextcompatible and the firmware-version/compat table decide.set_parameter_dcpexists in every firmware's method table, but parameters 3 and 6 are defined per firmware build. macOS was seen sending them only on the H17P external firmware (26.6.2) and on firmware 27, so the scope stays on those two firmware ABIs.Why this is safe:
apple,t8140-dcpextandapple,t8140-atcphyappear only in the J700 device trees, and on J700 every changed predicate gives the same result as before. No other SoC reaches the changed code.Kept as is (sweep of drivers/gpu/drm/apple)
About 114 compatible checks were classified, by firmware ABI, IP-block compatible, board loader quirk, per-board data, or generalizable. Two J700 loader quirks stay: the single-zero
apple,iomfb-surfacesencoding and the missing provider-table properties. Both describe what the J700 loader passes. The J714s-scoped firmware 27 paths and the per-SoC crossbar checks are generalizable, but this change leaves them alone because they interleave with other open display work and need hardware rows on boards not covered here.Testing
Build:
make LLVM=1 W=1 drivers/gpu/drm/apple/ drivers/phy/apple/with the release config. Baseline and patched both pass. No warnings before or after.checkpatch --strict: clean on all four patches.
tools/testing/selftests/drivers/gpu/apple-dcp/run.sh(ASan/UBSan): 88/88 pass before and after. This includes the 15,552-case D134 dispatcher test.Hardware (one-shot test kernel 7.3.0-aurora-swl1 = integration 0abc2f3 + this and the other open sweep PRs, 2026-11-20):
Still to run
connectedin/sys/class/drm/*/status, modes listed by modetest, no "unknown callback", "DisplayPort tunable bundle unavailable" or "Unsupported external display" in dmesg. Pending.Original code: Ryan Murray (D134 reply, H17P external admission, T8140 DP lists, HDR hints).