Repository navigation
soc: apple: display-gate: keep T8132 dcpext routes off without the driver - #2447
Conversation
…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
left a comment
There was a problem hiding this comment.
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.
|
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 |
When the loader marks a T8132 dcpext as handed over,
gate_j713_dcpext_routes()enables its Type-C routes and relies ondcp_platform_probe_t8132_ext()to disable them if the controller isn't adopted. Only the T8132 display driver (CONFIG_DRM_APPLE_DCP_T8132) bindsapple,t8132-dcpext, so in a kernel without it, or booted withnomodeset, 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 ornomodesetis 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.obuilds withCONFIG_DRM_APPLE_DCP_T8132=yand=n.checkpatch --strict: clean.nomodeset.🤖 Generated with Claude Code