🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #3246

Bug#1151632: linux: config: consider setting DRIVER_DEFERRED_PROBE_TIMEOUT to -1 (arm64 luks laptops)

#3246
From: Ben Hutchings
Date: Thu, 05 Nov 2026 14:00
128 lines
7398 bytes
--=-s6omPtklr/9kpPmHqTlu
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Thu, 22 Oct 2026 15:48:25 +0200 Agathe Porte <agathe.porte@oss.qualcomm.=
com> wrote:
> Source: linux
> Version: 7.2.11-1
> Severity: wishlist
> X-Debbugs-Cc: debian-arm@lists.debian.org, agathe.porte@oss.qualcomm.com
> User: debian-arm@lists.debian.org
> Usertags: arm64
>=20
> Dear Maintainer,
>=20
> (self-reporting, I intent to create the necessary PRs in salsa)
>=20
> arm64 laptops that are using luks encryption need to set the
> deferred_probe_timeout=3D30 command-line option to avoid having a timeout
> while typing the LUKS password.

What specifically times-out here?
=20
> Quoting the commit [1] that introduced DRIVER_DEFERRED_PROBE_TIMEOUT as
> a Kconfig option for the justification:
>=20
> > Code using driver_deferred_probe_check_state() differs from most
> > EPROBE_DEFER handling in the kernel. Where other EPROBE_DEFER handling
> > (e.g. clks, gpios and regulators) waits indefinitely for suppliers to
> > show up, code using driver_deferred_probe_check_state() will fail
> > after the deferred_probe_timeout.
> >=20
> > This is a problem for generic distro kernels which want to support many
> > boards using a single kernel build. These kernels want as much drivers =
to
> > be modular as possible. The initrd also should be as small as possible,
> > so the initrd will *not* have drivers not needing to get the rootfs.

I don't entirely follow the logic here.  If the dependencies aren't
needed in the initramfs, that means the drivers depending on them also
aren't needed, so then shouldn't those also be excluded from the
initramfs?  (I understand that the dependencies are discovered at boot
time from the device tree and the initramfs builder won't be able to see
them.  But this still seems strange to me.)

> > Combine this with waiting for a full-disk encryption password in
> > the initrd and it is pretty much guaranteed that the default 10s timeou=
t
> > will be hit, causing probe() failures when drivers on the rootfs happen
> > to get modprobe-d before other rootfs modules providing their suppliers=
.
> >=20
> > Make the default timeout configurable from Kconfig to allow distro kern=
el
> > configs where many of the supplier drivers are modules to set the defau=
lt
> > through Kconfig.
> >=20
> > Reviewed-by: Saravana Kannan <saravanak@kernel.org>
> > Signed-off-by: Hans de Goede <johannes.goede@oss.qualcomm.com>
> > Link: https://patch.msgid.link/20260314084916.10868-1-johannes.goede@os=
s.qualcomm.com
> > [ Drop deferred_probe_timeout documentation change in
> >=C2=A0=C2=A0 kernel-parameters.txt. - Danilo ]
> > Signed-off-by: Danilo Krummrich <dakr@kernel.org>
>=20
> Since this option now allows for distributions to change the default 10s
> value to something else, we can now tweak the Debian kernel to have a
> more generous timeout (eg. 30s) or even disable the timeout so that
> taking time to enter a LUKS decryption key does not lead to driver
> timeouts on arm64 laptops.

It sounds like there have been multiple fixes here that weren't entirely
thought out:

1. Sometimes devices don't get detected in the right order, and probes
fail because dependencies haven't yet been probed.
2. Introduce -EPROBE_DEFER and retry all probes that return that.  But
now we can keep retrying probes that will never succeeed.
3. Add a timeout to (some) retries.  But now a long wait in the
initramfs will mean we timeout probes that can succeed after it hands
over to the main system.
4. Allow the time limit to be turned off at build or boot time.  GOTO 2.

You are proposing step 4, and I do agree with the reasoning for it, yet
that can also be a regression.  Would it not be better to add a way to
reduce the timeout once the main system is running?

Ben.

>=20
> Thanks,
>=20
> Agathe.
>=20
> [1]
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/d=
rivers/base/Kconfig?id=3D56e3ee721b33bdc4ce0765d370983aa4384f8a59
>=20
>=20

--=20
Ben Hutchings
Once a job is fouled up, anything done to improve it makes it worse.

--=-s6omPtklr/9kpPmHqTlu
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEErCspvTSmr92z9o8157/I7JWGEQkFAmrsijoACgkQ57/I7JWG
EQl5uw//cC1gdBDvXUQzCZ16fnQ0fyGARcO0vjqAM9iWslasAqlSDynKVuFxPF3p
2fX+SizMUHzaMNpFUef6c7MstoKndtk2t0ZcBAg/6qJ+Iebtcrvkrva2N+cmz8Zv
1PfVnNrbprSK7U5h6cjccKUSgosgpFV0uD7GZstL0ZxqDi2UaAK5cEo/PUfmDyMS
QPVi++GuNAgknJwNRvLsbU4LBBCwEfwe5efwUBuVxefKJkF5WGxU7nW5tmsAD4sT
rlKPEQhvyLQq+F9OPwdnBiZKdB0gJ7LIC+kr8XoYwrvu2ofxyzkw78cm0LWSBOgx
yiolCvTNb+DwDo5JGiwzgsaDElQslzmnwxj12n/MbNpNRL+7YluhKKckpFwRIS3q
LW3UmBXElNTJFqWA3Ty1tP4391G1D7bmfIlYc8d0kJfbnIULn2rPE/SKblZz5TiW
auK0gZ1R66aHoSLUh7qC3du6j2prUSZ4zKHpJKtKfAYs9HlvCoaWm5pt6P5oWyda
PTDC+KTPfQglklzJ70Zv3eKtQiOhOygpnqop7rXK0OjZLL6XgoWYo6KO3/ej9F0x
R9OjE8TBfqO/ryz72Fr6EXo48/W8wNd0+MD1N6nD8rUMB6SHtuiw0TkR08EewkCI
icppVDsFMVfNj8UeUR3zJnEIxXONa7siNYedU2TzOZRKg+2A4gs=
=PdwV
-----END PGP SIGNATURE-----

--=-s6omPtklr/9kpPmHqTlu--
Technical Details
Message-ID: <NW6at-a013-1@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!news.roellig-ltd.de!open-news-network.org!weretis.net!feeder8.news.weretis.net!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
References: <NR1uN-7bXB-3@gated-at.bofh.it> <NR1uN-7bXB-3@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!news.roellig-ltd.de!open-news-network.org!weretis.net!feeder8.news.weretis.net!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Ben Hutchings <ben@decadent.org.uk>
Newsgroups: linux.debian.bugs.dist,linux.debian.kernel
Subject: Bug#1151632: linux: config: consider setting DRIVER_DEFERRED_PROBE_TIMEOUT to -1 (arm64 luks laptops)
Date: Thu, 05 Nov 2026 15:00:01 +0100
Message-ID: <NW6at-a013-1@gated-at.bofh.it>
References: <NR1uN-7bXB-3@gated-at.bofh.it> <NR1uN-7bXB-3@gated-at.bofh.it>
X-Original-To: Agathe Porte <agathe.porte@oss.qualcomm.com>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Thu Nov  5 13:55:07 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.65
Reply-To: Ben Hutchings <ben@decadent.org.uk>, 1151632@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: debian-kernel@lists.debian.org
X-Debian-Pr-Message: followup 1151632
X-Debian-Pr-Package: src:linux
X-Debian-Pr-Source: linux
Content-Type: multipart/signed; micalg="pgp-sha512";
	protocol="application/pgp-signature"; boundary="=-s6omPtklr/9kpPmHqTlu"
User-Agent: Evolution 3.56.2-9 
MIME-Version: 1.0
X-Sa-Exim-Connect-IP: 212.187.182.165
X-Sa-Exim-Mail-From: ben@decadent.org.uk
X-Sa-Exim-Scanned: No (on maynard); SAEximRunCond expanded to false
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2000799
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 128
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Cc: 1151632@bugs.debian.org
X-Original-Date: Thu, 05 Nov 2026 13:52:58 +0000
X-Original-Message-ID: <3aa98c1bd24f57fe1d52e17a6bcc91a8d56c71c1.camel@decadent.org.uk>
X-Original-References: <179267690522.7706.13648352441559545735.reportbug@localhost> <179267690522.7706.13648352441559545735.reportbug@localhost>