Re: [PATCH] thunderbolt: Defer DP tunnel teardown until display driver is ready
From: Mika Westerberg
Date: Mon Jun 01 2026 - 03:12:19 EST
Hi,
On Mon, Jun 01, 2026 at 02:50:21PM +0800, An Wu wrote:
> Hi Mika
>
> Another approach I considered is using register_module_notifier() to
> detect when a display driver module is loaded, then retrigger the DP
> tunnel setup. However, since struct module does not carry any device
> class or subsystem metadata, there is no generic way to identify
> whether a loaded module is a display driver. We would need to maintain
> a hardcoded list of known GPU module names (i915, xe, amdgpu, etc.),
> which is fragile and not scalable.
Indeed. Perhaps not to try to solve this in the kernel and instead do this
in userspace?
Have you actually measured how much initramfs size "increases" if you do
include the relevant graphics drivers and their dependencies?