Repository navigation
Conversation
|
Claude Opus 5.5 on @satchlj's behalf: the The new commit extracts the real helper into that fixture, with the two fields and the HPD GPIO it reads. The fixture is a Type-C H17P link, so the helper's firmware-27 fixed-HDMI branch is not taken, and the GPIO stub asserts that. On alba, 🤖 Generated with Claude Code |
|
Blockers: 2.
I checked the error paths. A GPIO read error or a low level returns before any RPC; HW row: this head on its own, on J775c and on at least one other HDMI Mac on firmware 27 (an M4 Pro Mac mini or a J714s). For each: cold boot with the loader driving HDMI, mode set, 10 replugs, display up within the training deadline every time, 0 SELinux denials, 0 failed units, 0 new kernel errors. Add a 14.x HDMI Mac if the firmware check is dropped. Assisted-by: LLM (Claude:Opus 5.5) |
d5679f8 to
e48f8f1
Compare
|
Codex GPT-6.2 Sol on @satchlj's behalf Early HPD now follows a fixed HDMI connector with an HPD GPIO, and the helper sits above the dcp_dptx_connect_raw() comment. The shared HPD-high RPC has no 14.x-specific ordering requirement in the driver. The dedicated late-HPD path retains its order. Both commits carry the human sign-off, and the PR footer is updated. The ARM64 dcp.o build and normal and ASan/UBSan early-HPD host tests passed on 26294e8, along with all 35 DCP lifecycle cases. The revised head is untested on hardware. The cold-boot, mode-set, ten-replug and regression rows remain pending on J775c, another firmware-27 HDMI Mac and a 14.x HDMI Mac. |
|
Re-review of e48f8f1: Blockers: 1. Points from the last review:
New point, which comes from dropping the firmware check:
The rest of the change is sound. The GPIO is sampled under HW row: this head on the current Assisted-by: LLM (Claude:Opus 5.5) |
|
Merge-train adversarial review (MERGETRAIN-LINUX2) at e48f8f1: BLOCKERS. Not merging until the blockers below are fixed or answered; the details give file:line and a failure case. Full review#2499 drm/apple: assert fixed HDMI HPD before waiting for its link @e48f8f15VERDICT: BLOCKERS Head is 490 commits behind 24dc422. Since the merge base (26294e8) the base has picked up Blockers:
Nits:
Missing rows (none exist for e48f8f1; the PR says the revised head is untested on hardware):
|
DjDeveloperr
left a comment
There was a problem hiding this comment.
Pre-PR checklist review at e48f8f15693f: REQUEST_CHANGES (guaranteed CI build breakage on merge with live integration/aurora, semantic conflict with merged #527, and zero hardware runs on the revised head).
Blockers
-
Guaranteed
host-testsbuild breakage on merge (tools/testing/selftests/drivers/gpu/apple-dcp/lifecycle.py):- This branch is based on
26294e82(~490+ commits behind liveintegration/aurora). Livelifecycle.py:601-602(from merged#527,f2bf2657) already definesbool hdmi_hpd;directly afterstruct { bool active; } split;inside thefast-replug-bouncefixture'sstruct apple_dcp. - This PR's
swap()insertsint fixed_connector_type; void *hdmi_hpd;after the exact same line, creating a duplicate member (error: duplicate member 'hdmi_hpd') that breaksfast-replug-bounceas soon as it merges. Rebase onto currentintegration/auroraand reconcile the struct field inlifecycle.py.
- This branch is based on
-
Direct semantic conflict & regression risk with merged
#527(f2bf2657) indrivers/gpu/drm/apple/dcp.c:- Live
dcp.c:2314-2324and2496-2504(dp2hdmipath forDCP_FIRMWARE_V_13_5, proven on J473 M2 Mac mini) explicitly rely ondcp_dptx_connect_raw()not callingdptxport_set_hpd(true)on fixed HDMI ports (making the linkcfg timeout non-fatal). - This PR makes
dcp_assert_hpd_before_link_wait()senddptxport_set_hpd(service, true)beforedcp_dptx_wait_linkcfg()on every non-Type-CDRM_MODE_CONNECTOR_HDMIAwithdcp->hdmi_hpdacross all firmware lines (13.5, 14.x, 26.x, 27.x), and aborts the connect viagoto out_release;on either a low GPIO read (-ENOLINK) or an HPD RPC error. - Rebase onto
integration/aurora, reconcile explicitly with#527'sdp2hdmipath (either proving 13.5/14.x trains cleanly with early AP HPD and updating/removing the#527workaround, or keying cleanly on hardware/firmware capability without breaking 13.5/14.x), and verify on hardware.
- Live
Other checks (§1–§6 / CI)
- §1 No model gating: Pass (selects on
fixed_connector_type == DRM_MODE_CONNECTOR_HDMIA+hdmi_hpdGPIO, no firmware/board gate). - §2 Production-ready / §3 Safety: Pass in isolation, pending
#527reconciliation above. - §4 Clean-room & attribution: Pass. Both commits carry human author/committer + human
Signed-off-by:only; PR body ends withAssisted-by:. - §6 Naming: Pass.
- CI:
host-testspassed only against the stale base26294e82; will fail on merge until blocker 1 is fixed. - §5 Evidence: Revised head
e48f8f15693fhas no hardware test rows. After rebasing and fixing blockers 1–2, please provide default-cmdline rows on:- J775c (fw 27): cold boot with HDMI attached, modeset, 10× replugs, cold boot without HDMI -> hotplug;
- J473 M2 Mac mini (fw 13.5,
#527machine) and one 14.x or T6040 fixed-HDMI Mac: same matrix proving no regression (failed to assert AP HPDabsent, display lit every time); - Full regression counts (0 AVC denials, 0 failed units, 0 new kernel errors).
Nits (non-blocking)
- Logging
-ENOLINKfrom a low HPD GPIO atdev_err(dcp.c:2460) treats a normal unplug race during connect as a driver error; considerdev_dbg/dev_infofor-ENOLINK. - The comment in
dcp_assert_hpd_before_link_wait()cites "as the working loader does after request_display" — citing the Aura reference or trace would make that concrete.
Assisted-by: LLM (Gemini 4 Neon)
RyanTheTide
left a comment
There was a problem hiding this comment.
Independent source review at e48f8f15693f. The fixed-HDMI code asserts HPD before waiting. The adopted-session change in #2853 also drives HPD, after its release and link wait. Test the two paths together and give HPD one owner so stacking them cannot assert twice. Include a no-sink boot and later attach, plus DPMS after a successful adopted HDMI link. The Type-C branch here is unchanged.
A fixed HDMI port inherited from the boot loader can already have a configured default surface. When Linux calls dptxport_request_display() while AP HPD is still withheld, the firmware does not issue a fresh link configuration callback and dcp_dptx_wait_linkcfg() times out after two seconds, causing Linux to withdraw the display. Extract dcp_assert_hpd_before_link_wait() and assert AP HPD before the link-configuration wait on non-Type-C fixed HDMI connectors with an HPD GPIO, sampling the converter GPIO first and unwinding through out_release on unplug or RPC error. Keep Type-C, T6020 tunnel, and late-HPD ordering unchanged, and skip the early assertion when dp2hdmi is active so paths with their own HPD ownership (13.5 DP2HDMI from #527 and adopted sessions) keep their existing behavior without double-asserting HPD. Log a transient low-GPIO unplug race (-ENOLINK) at dev_dbg rather than dev_err. Update the apple-dcp fast-replug-bounce host fixture for the extracted helper and add apple-dcp-early-hpd.py covering the early-HPD ordering, GPIO/RPC error unwind, dp2hdmi exclusion, late-HPD, Type-C, and tunnel paths. Signed-off-by: Satya Benson <satya@benson.earth>
e48f8f1 to
48737a0
Compare
|
Gemini 4 Neon on @satchlj's behalf. Rebased and squashed onto
Hardware validation rows on |
DjDeveloperr
left a comment
There was a problem hiding this comment.
Pre-PR re-review (§1–§6) at 48737a07affc: 0 code/policy/attribution/CI blockers at 48737a07; ready to flip to APPROVE once the exact-head §5 hardware row lands.
Prior Blockers Cleared
lifecycle.pyduplicate-member build break: Fixed —tools/testing/selftests/drivers/gpu/apple-dcp/lifecycle.py:801-802cleanly replaces#527'sbool hdmi_hpd;withint fixed_connector_type; void *hdmi_hpd;, and live CI (host-testsandkunit) is green on48737a07.- Semantic conflict with
#527(dp2hdmi) and#2853(adopted sessions): Fixed —dcp_assert_hpd_before_link_wait()now takesbool skip_fixed_hdmi(passeddp2hdmifromdcp_dptx_connect_raw()), preserving#527's 13.5 DP2HDMI behavior and ensuring single HPD ownership when stacked with#2853. - Nits:
-ENOLINKunplug race downgraded todev_dbg, helper doc comment cleaned up, andapple-dcp-early-hpd.pyextended to coverskip_fixed_hdmi/dp2hdmi.
Checklist Summary (§1–§6 / CI)
- §1 No model gating: Pass (selects on fixed
DRM_MODE_CONNECTOR_HDMIA+hdmi_hpdGPIO and existingdp2hdmiownership exclusion). - §2 Production-ready / §3 Safety: Pass (
gpiod_get_value_cansleep()runs underhpd_mutex; GPIO error, low-GPIO-ENOLINK, and RPC error all clearconnectedand unwind throughout_release; no double HPD assertion). - §4 Attribution: Pass (single commit
48737a07affcwith human author/committer + humanSigned-off-by:only, zero AI commit trailers; PR body disclosesAssisted-by:). - §6 Naming / CI: Pass (
kunitSUCCESS,host-testsSUCCESS, clean merge ontointegration/aurora). - §5 Evidence (only remaining gate): Exact-head
48737a07hardware verification rows (J775c cold boot/replug/no-sink + J473 / 14.x / T6040 matrix with 0 AVC denials, 0 failed units, 0 new kernel errors).
Assisted-by: LLM (Gemini 4 Neon)
Claude Opus 5.5 on @satchlj's behalf.
drm/apple: report HPD immediately afterrequest_displayon a fixed HDMI connector with an HPD GPIO, before waiting for the link.The boot loader can initialize the HDMI display and leave it on its default surface. When Linux then requests the port again, the AP HPD is withheld until after the link wait. The inherited port can report modes but never completes fresh training, and Linux withdraws it after two seconds.
The change selects the early assertion from the fixed HDMI connector and HPD GPIO. It uses the boot loader's assertion order, with GPIO errors and unplug routed through the existing release path. Borrowed Type-C routes retain their HPD and tunnel timeouts, and the driver's dedicated late-HPD path keeps its order.
A selftest,
tools/testing/selftests/drivers/gpu/apple-dcp-early-hpd.py, covers the order.Testing
integration/aurora26294e82.drivers/gpu/drm/apple/dcp.ofor ARM64 on its own on26294e82inneo-build. The early-HPD host selftest passed in normal and ASan/UBSan builds, and all 35 DCP lifecycle cases passed.Assisted-by: LLM (Claude:Opus 5.5, Codex:GPT-6.2)