Skip to content

drm/apple: remove the orphan dcp_trace.c - #2368

Merged
RyanTheTide merged 3 commits into
mainfrom
deadweight/drm-apple-leftovers
Nov 24, 2026
Merged

RyanTheTide merged 3 commits into
mainfrom
deadweight/drm-apple-leftovers

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

What: Delete the orphan dcp_trace.c source. The driver uses its existing trace.c and trace.h.

Tested: No runtime change. KUnit and hosted host tests passed. The standalone DCP lifecycle suite passed 35 of 35, and the current merge preview deletes one unreferenced file.

Risk: Two-way door. Scope is Apple DRM source cleanup.

Not yet: Nothing needed for an unbuilt file deletion.

Evidence

The current Makefiles and Kbuild files have no target for the deleted source. The merge keeps the existing trace source, build rules and T8112 DCP compatibility code.

dcp_trace.c only defines CREATE_TRACE_POINTS and includes dcp_trace.h,
a header that does not exist. Neither the apple nor the drm Makefile
builds it, and it has been unbuilt since it came in with the DPTX
support in 4c8a637. The driver's tracepoints live in trace.c and
trace.h.

Signed-off-by: Ryan Murray <[email protected]>
dcp_check_firmware_version() maps firmware-compat 13.3.0 with firmware
13.5.0 to the 13.5 interface. The comment says this lasts until m1n1
reports 13.5 as firmware-compat. m1n1 has done that since e4ea2d53
("kboot: dcp: Use OS firmware 13.5 as compat version", 2023-11-06),
and aura carries it (src/kboot.c, V13_5B4/V13_5/V13_6_1 all report
13.5 compat), so every boot path we ship reaches the 13.5.0 branch
directly.

Signed-off-by: Ryan Murray <[email protected]>
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

No blockers.

dcp_trace.c includes a header that doesn't exist and no Makefile builds it. In dcp_check_firmware_version() (drivers/gpu/drm/apple/dcp.c:5934-5939) the 13.3-compat/13.5-firmware branch can't be reached from our loader: aura's kboot.c maps V13_5B4/V13_5 to 13.5 compat (src/kboot.c:3972-3986), so those boots take the plain 13.5.0 branch. fw_str is still used by the 14.7 check and the error message, so nothing is left unused. The branch merges cleanly into the current integration/aurora. It can leave draft.

HW row (non-blocking, confirms the loader side): M1 Pro and M2 on this head with the internal panel and an external display: same DCP firmware-compat line as production, no "is not supported" line.

Assisted-by: LLM (Claude:Opus 5.5)

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Adversarial pass at 3b528f1: no blockers. Every removed name was checked against the tree, the other open pull requests and our kits, and nothing still uses it.

Assisted-by: LLM (Claude:Opus 5.5)

@RyanTheTide RyanTheTide left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Review at 3b528f1. Please split the orphan trace file deletion from the firmware admission change. The latter removes the 13.5 firmware / 13.3 IOMFB-compatibility path for both T8112 DCP match entries. The merged apple-dcp-firmware suite in #2964 exercises that combination on the primary and external compatibles and requires both to admit 13.5. As written this would fail that contract. Keep the fallback in this cleanup unless the supported bootloader set and test contract are changed together.

Keep the 13.3 compatibility alias for 13.5 firmware on the T8112 DCP paths. The firmware contract covers both the primary and external DCP. The orphan trace source deletion remains independent.

Signed-off-by: Ryan Murray <[email protected]>
@RyanTheTide RyanTheTide changed the title drm/apple: drop the orphan dcp_trace.c and the 13.3 compat fallback (-13) drm/apple: remove the orphan dcp_trace.c Nov 23, 2026

@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.

Formal §1–§6 pre-PR checklist review at e317c219a6426e4a99815261e802a65636f15be1:

  • §1 No model gating: Pass. Net diff only deletes the orphan drivers/gpu/drm/apple/dcp_trace.c; e317c219a642 restores the 13.3/13.5 DCP firmware compatibility path in dcp.c byte-for-byte for both T8112 DCP compatibles.
  • §2 Production-ready, no hacks: Pass. Removes an unbuilt dead file that includes a non-existent dcp_trace.h; verified zero references to dcp_trace.c or dcp_trace.h in drivers/gpu/drm/apple/ or any Makefile (only unrelated dcp_trace_panel_* helpers in iomfb.c/dcp-internal.h). Still applicable on integration/aurora (dcp_trace.c still present).
  • §3 Safety: Pass (N/A; unbuilt orphan file).
  • §4 Clean-room and attribution: Pass. All 3 commits carry human author/committer (Ryan Murray <[email protected]>) and human Signed-off-by: trailers only, with zero AI trailers in commits; PR description includes Assisted-by: disclosure.
  • §5 Evidence: Pass. kunit and host-tests CI checks are green on e317c219a642, and dcp.c/Makefiles match integration/aurora byte-for-byte at HEAD.
  • §6 Naming: Pass.

Note (non-blocking): commit 3b528f1eec8f temporarily drops the 13.3/13.5 compat fallback before e317c219a642 restores it verbatim; understandable on a shared branch without force-push, and the net tree change at HEAD is clean (+0/-3). Ready to merge.

Assisted-by: LLM (Gemini 4 Neon)

@github-actions github-actions Bot added area:display Area from CODEOWNERS (bot) needs-hw-row No hardware row at the PR head (bot) needs-template PR body lacks Tested or Risk (bot) door:two-way Revertible or not, from Merge risk (bot) ready-to-merge Meets the merge policy: merge it (bot) and removed needs-hw-row No hardware row at the PR head (bot) needs-template PR body lacks Tested or Risk (bot) labels Nov 24, 2026
@github-actions

Copy link
Copy Markdown

Merge readiness at e317c219: ready to merge

Check Detail
CI at head ok 2 checks passed
Review ok approved by DjDeveloperr
Requested changes ok none
Hardware row at head ok not needed: no runtime change
Conflicts ok none
PR text ok Risk: two-way · . Scope is Apple DRM source cleanup.

Areas: area:display
Merge: gh pr merge 2368 --merge (Owners and Core through the bypass: add --admin).

Updated by pr-readiness on every push, edit and review, and every 30 minutes. Rules: merge policy · labels.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Verdict at e317c219a6426e4a99815261e802a65636f15be1: Merge.

Blockers: None.

Checked: No runtime change. Current merge preview only removes one unbuilt source file. The Makefile and Kbuild search found zero references. Exact KUnit and host-tests passed.

@RyanTheTide
RyanTheTide merged commit 933d0c3 into main Nov 24, 2026
3 checks passed
@RyanTheTide
RyanTheTide deleted the deadweight/drm-apple-leftovers branch November 27, 2026 13:21
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) door:two-way Revertible or not, from Merge risk (bot) ready-to-merge Meets the merge policy: merge it (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants