Skip to content

soc: apple: display-gate: keep T8132 dcpext routes off without the driver - #2447

Merged
DjDeveloperr merged 2 commits into
integration/aurorafrom
j716c/t8132-dcpext-routes-need-driver
Nov 20, 2026
Merged

DjDeveloperr merged 2 commits into
integration/aurorafrom
j716c/t8132-dcpext-routes-need-driver

Conversation

@erikwb

@erikwb erikwb commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

When the loader marks a T8132 dcpext as handed over, gate_j713_dcpext_routes() enables its Type-C routes and relies on dcp_platform_probe_t8132_ext() to disable them if the controller isn't adopted. Only the T8132 display driver (CONFIG_DRM_APPLE_DCP_T8132) binds apple,t8132-dcpext, so in a kernel without it, or booted with nomodeset, that probe never runs: the routes stay enabled and the USB-C port controllers wait for mode switches that never register.

Change

  • gate_j713_dcpext_routes() leaves the routes disabled, with a log line saying why, when the T8132 display driver isn't built or nomodeset is set. The T8122 dcpext path already does the same.

With the driver built and no nomodeset, the new checks fall through and nothing changes.

aurora-silicon/aura#299 makes the loader hand the external displays over by default on T8132, which makes this case reachable without a config line.

Testing

  • drivers/soc/apple/display-gate.o builds with CONFIG_DRM_APPLE_DCP_T8132=y and =n.
  • checkpatch --strict: clean.
  • Not tested on hardware: no J713 boot of a kernel without the driver or with nomodeset.

🤖 Generated with Claude Code

…iver

The gate enables a T8132 dcpext's Type-C routes whenever the boot loader
marks it handed over, and relies on dcp_platform_probe_t8132_ext() to
disable them again if the controller isn't adopted. Only the T8132
display driver (CONFIG_DRM_APPLE_DCP_T8132) binds an apple,t8132-dcpext
node, so a kernel without it, or booted with nomodeset, never runs that
probe: the routes stay enabled and the USB-C port controllers wait for
mode switches that never register.

Leave the routes disabled in both cases, as the T8122 dcpext path
already does when its display driver is not built or nomodeset is set.

Developed with Claude Code.

Signed-off-by: Erik Bourget <[email protected]>

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

Thanks. This closes the gap that aura#299 opens. gate_j713_dcpext_routes() now leaves the routes off when nothing could adopt the controller, using the same two checks the T8122 dcpext path already makes (display-gate.c:3080 and :3280 at the tip). <video/nomodeset.h> is already included. With the driver built (=y or =m) and no nomodeset, nothing changes. gate_cs_alloc() moves below the two checks, so the early returns leak nothing.

CI is green on 7042f98: host-tests, kunit, rust-build and the DWC3/ATC builds. integration/aurora has changed display-gate.c since your base (8402dca and e538e57, the T6041 27.2 displays), and a local three-way merge is clean. Approving. I'll update the branch, merge once CI is green on the merged head, and then take aura#299.

After the merge, with a revert ready: one J713 boot with nomodeset and one with a kernel built without the T8132 driver. Each should log the new line and keep its USB-C ports working.

@DjDeveloperr
DjDeveloperr merged commit f0c5176 into integration/aurora Nov 20, 2026
7 checks passed
@DjDeveloperr

Copy link
Copy Markdown
Contributor

Merged as f0c5176 (host-tests and SEP source checks green on the updated head 5afb1a8). Post-merge verification as in my review: one J713 boot with nomodeset and one with a kernel built without the T8132 driver, each logging the new line with its USB-C ports working. A revert is ready if it doesn't hold. aura#299 goes next.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants