From: Francis Laniel <laniel_francis@npnm.eu>
To: Lyude Paul <lyude@redhat.com>, Danilo Krummrich <dakr@kernel.org>,
Dave Airlie <airlied@redhat.com>
Cc: dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org,
Dave Airlie <airlied@redhat.com>
Subject: Re: [PATCH] drm/nouveau/devinit/gf100-: fix double vbios init checks
Date: Thu, 26 Nov 2026 16:13:43 +0200 [thread overview]
Message-ID: <5119322.GXAFRqVoOG@pmachine> (raw)
In-Reply-To: <20261123-nouveau-fix-disp-v1-1-ebdc525287ce@redhat.com>
Hi,
Le lundi 23 novembre 2026, 02:25:26 heure normale d’Europe de l’Ouest Dave Airlie a écrit :
> The initial fix from 2017 wasn't updated for modern nouveau devinit
> disable paths.
>
> Fix that and just check if display exists instead.
>
> Fixes: 2139cb633d48 ("drm/nouveau/devinit/gf100-: try to avoid double-running vbios scripts")
> Signed-off-by: Dave Airlie <airlied@redhat.com>
> ---
> drivers/gpu/drm/nouveau/nvkm/subdev/devinit/gf100.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/gf100.c b/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/gf100.c
> index 186e09ea0cb1..b256404c2454 100644
> --- a/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/gf100.c
> +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/gf100.c
> @@ -107,12 +107,12 @@ gf100_devinit_preinit(struct nvkm_devinit *base)
> * VBIOS multiple times may have detrimental effects.
> */
> if (base->post) {
> - u64 disable = nvkm_devinit_disable(base);
> + nvkm_devinit_disable(base);
> /* magic to detect whether or not x86 vbios code has
> * executed the devinit scripts to initialise the
> * board. only works if there's a display engine.
> */
> - if (!(disable & (1ULL << NVKM_ENGINE_DISP))) {
> + if (device->disp) {
> if (nvkm_rdvgac(device, 0, 0x00) ||
> nvkm_rdvgac(device, 0, 0x1a)) {
> base->post = false;
>
> ---
> base-commit: b6a9fa34ce4187cb69d3c588a4bbffc31ce5db8f
> change-id: 20261123-nouveau-fix-disp-62f59fd96fee
>
> Best regards,
>
Thank you for the patch! I tested it, and I can now boot my laptop with it:
[ 1.404564] nouveau: loading out-of-tree module taints kernel.
[ 1.404624] nouveau: module verification failed: signature and/or required key missing - tainting kernel
[ 1.739550] nouveau: detected PR support, will not use DSM
[ 1.739571] nouveau 0000:2d:00.0: enabling device (0006 -> 0007)
[ 1.739648] nouveau 0000:2d:00.0: NVIDIA GP108 (138000a1)
[ 1.776320] nouveau 0000:2d:00.0: bios: version 86.08.3e.00.26
[ 1.776582] nouveau 0000:2d:00.0: pmu: firmware unavailable
[ 1.860292] nouveau 0000:2d:00.0: fb: 2048 MiB GDDR5
[ 1.897865] nouveau 0000:2d:00.0: drm: VRAM: 2048 MiB
[ 1.897868] nouveau 0000:2d:00.0: drm: GART: 536870912 MiB
[ 1.897869] nouveau 0000:2d:00.0: drm: BIT table 'A' not found
[ 1.897871] nouveau 0000:2d:00.0: drm: BIT table 'L' not found
[ 1.897871] nouveau 0000:2d:00.0: drm: Pointer to TMDS table not found
[ 1.902700] nouveau 0000:2d:00.0: drm: MM: using COPY for buffer copies
[ 1.902820] [drm] Initialized nouveau 1.4.0 for 0000:2d:00.0 on minor 0
[ 1.902908] nouveau 0000:2d:00.0: [drm] No compatible format found
[ 1.902910] nouveau 0000:2d:00.0: [drm] Cannot find any crtc or sizes
Tested-by: Francis Laniel <laniel_francis@npnm.eu>
As 2139cb633d48 ("drm/nouveau/devinit/gf100-: try to avoid double-running vbios scripts")
is part of stable kernel, at least 6.12.118, I am wondering if this should be also posted to stable?
Particularly as some other debian users are hit by this:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=+1155040
What do you think?
Best regards,
prev parent reply other threads:[~2026-11-26 22:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 0:25 [PATCH] drm/nouveau/devinit/gf100-: fix double vbios init checks Dave Airlie
2026-11-23 0:25 ` Dave Airlie via B4 Relay
2026-11-26 14:13 ` Francis Laniel [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5119322.GXAFRqVoOG@pmachine \
--to=laniel_francis@npnm.eu \
--cc=airlied@redhat.com \
--cc=dakr@kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=lyude@redhat.com \
--cc=nouveau@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.