intel_dp_tunnel_detect(9)
π intel_dp_tunnel_detect(9) β like, the whole glow-up
okay so this is a page from the Kernel API Manual (yes, the kernel has lore too, bestie) and it's all about spotting a DP tunnel on a port. buckle up π
β¨ NAME β¨
intel_dp_tunnel_detect β detect a DP tunnel on a port π΅οΈββοΈ
πΈ SYNOPSIS πΈ
int intel_dp_tunnel_detect (struct intel_dp *intel_dp , struct
drm_modeset_acquire_ctx *ctx );
π¦ ARGUMENTS π¦
intel_dpβ the DP port object, aka our main character π₯ctxβ the lock context that got acquired by the connector detection handler, iykyk
π DESCRIPTION π
So the way this works: it detects a DP tunnel on the intel_dp port, turns on BW allocation mode on it if that's supported, and allocates the BW that's required on a port that's already active. slay. π
β οΈ Important caveat, no cap: the BW allocated this way must be freed by the next atomic modeset calling intel_dp_tunnel_atomic_free_bw. don't leave it hanging, that's not the vibe. π
And if intel_dp already has a tunnel detected on it, it updates that tunnel's state wrt. its support for BW allocation mode and the available BW via the tunnel. If the tunnel's state change requires it β for instance, if the tunnel's group ID has changed β the tunnel gets dropped and recreated. iconic behaviour tbh. π
π RETURN π
0in case of success β after any tunnel detected and added tointel_dpβ¨1in case the link BW via the new or an already existing tunnel has changed in a way that requires notifying user space π£- Negative error code if creating a new tunnel or updating the tunnel state failed π
π SEE ALSO π
Kernel file ./drivers/gpu/drm/i915/display/intel_dp_tunnel.c
intel_dp_tunnel_disconnect(9)intel_dp_tunnel_destroy(9)intel_dp_tunnel_bw_alloc_is_enabled(9)intel_dp_tunnel_pr_optimization_supported(9)intel_dp_tunnel_suspend(9)intel_dp_tunnel_resume(9)intel_dp_tunnel_atomic_cleanup_inherited_state(9)intel_dp_tunnel_atomic_add_state_for_crtc(9)intel_dp_tunnel_atomic_check_state(9)intel_dp_tunnel_atomic_compute_stream_bw(9)intel_dp_tunnel_atomic_clear_stream_bw(9)intel_dp_tunnel_atomic_check_link(9)intel_dp_tunnel_atomic_alloc_bw(9)intel_dp_tunnel_mgr_init(9)intel_dp_tunnel_mgr_cleanup(9)
the whole friend group fr fr π«Ά
k so that's the whole page!! it lives over in ./drivers/gpu/drm/i915/display, this edition is from October 2026, and the header's all intel_dp_tunnel_detect(9) π go forth and detect those tunnels, bestie π
β¨π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms