Repository navigation
drm/apple: remove the orphan dcp_trace.c - #2368
Conversation
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]>
|
No blockers.
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) |
|
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
left a comment
There was a problem hiding this comment.
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]>
DjDeveloperr
left a comment
There was a problem hiding this comment.
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;e317c219a642restores the 13.3/13.5 DCP firmware compatibility path indcp.cbyte-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 todcp_trace.cordcp_trace.hindrivers/gpu/drm/apple/or any Makefile (only unrelateddcp_trace_panel_*helpers iniomfb.c/dcp-internal.h). Still applicable onintegration/aurora(dcp_trace.cstill 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 humanSigned-off-by:trailers only, with zero AI trailers in commits; PR description includesAssisted-by:disclosure. - §5 Evidence: Pass.
kunitandhost-testsCI checks are green one317c219a642, anddcp.c/Makefiles matchintegration/aurorabyte-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)
|
Merge readiness at
Areas: Updated by pr-readiness on every push, edit and review, and every 30 minutes. Rules: merge policy · labels. |
|
Verdict at 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. |
What: Delete the orphan
dcp_trace.csource. The driver uses its existingtrace.candtrace.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.