NetBSD Problem Report #57774
From www@netbsd.org Thu Dec 14 23:03:30 2023
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id BA0871A9238
for <gnats-bugs@gnats.NetBSD.org>; Thu, 14 Dec 2023 23:03:29 +0000 (UTC)
Message-Id: <20231214230328.6C5551A923C@mollari.NetBSD.org>
Date: Thu, 14 Dec 2023 23:03:28 +0000 (UTC)
From: huskers2012@outlook.com
Reply-To: huskers2012@outlook.com
To: gnats-bugs@NetBSD.org
Subject: Old Nvidia card with Nouveau causes kernel panic on boot
X-Send-Pr-Version: www-1.0
>Number: 57774
>Category: install
>Synopsis: Old Nvidia card with Nouveau causes kernel panic on boot
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: install-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Dec 14 23:05:00 +0000 2023
>Last-Modified: Fri Dec 15 18:50:01 +0000 2023
>Originator: Huskers
>Release: 9.3 / 10.0
>Organization:
none
>Environment:
NetBSD 10.99.10 (GENERIC) amd64
>Description:
I tried to install 9.3, 10.0_RC1 and 10.99.10 (Latest) on my desktop with an old nvidia card (NV44 - 6200LE) using UEFI for boot causes kernel panic on Nouveau load.
This happens on all three versions of NetBSD.
When boot -c is chosen and nouveau is disabled I can get to console. The driver that gets selected is genfb0 as per
pcictl pci0 list -N | grep NV
I tried UEFI and normal boot but both had the same issue.
Below is what I could view and type as this message was not captured in DMESG.
nouveau0: NVIDIA NV44(044300b2)_
nouveau0: bios: version 04.44.02.45.00
nouveau0: error: imem: unable to map PRAMIN BAR 2: -35
nouveau0: error: imem: imem ctor failed, -35
nouveau0: unable to create nouveau device: 35
panic: cnopen: no console device
Found few listings on the mail list from 2022 but none calls what the fix is.
>How-To-Repeat:
use either 9.3 , 10.0_RC1 installer on an old nvidia card, on boot the kernel panics on load of nouveau with error message
>Fix:
update nouveau
>Audit-Trail:
From: matthew green <mrg@eterna23.net>
To: gnats-bugs@netbsd.org, huskers2012@outlook.com
Cc: install-manager@netbsd.org, gnats-admin@netbsd.org,
netbsd-bugs@netbsd.org
Subject: re: install/57774: Old Nvidia card with Nouveau causes kernel panic on boot
Date: Fri, 15 Dec 2023 10:58:22 +1100
> nouveau0: NVIDIA NV44(044300b2)_
> nouveau0: bios: version 04.44.02.45.00
> nouveau0: error: imem: unable to map PRAMIN BAR 2: -35
> nouveau0: error: imem: imem ctor failed, -35
> nouveau0: unable to create nouveau device: 35
> panic: cnopen: no console device
this message comes from a netbsd-only code segment:
300 imem->iomemt =3D device->func->resource_tag(device, bar);
301 iomembase =3D device->func->resource_addr(device, bar);
302 iomemsz =3D device->func->resource_size(device, bar);
303 /* XXX errno NetBSD->Linux */
304 ret =3D -bus_space_map(imem->iomemt, iomembase, iomemsz,
305 BUS_SPACE_MAP_LINEAR|BUS_SPACE_MAP_PREFETCHABLE, &imem->io=
memh);
306 if (ret) {
307 nvkm_error(&imem->base.subdev, "unable to map PRAMIN B=
AR %d"
308 ": %d\n", bar, ret);
error 35 =3D EAGAIN. that's probably coming from x86/bus_space.c:
249 bus_space_reserve(bus_space_tag_t t,
...
283 error =3D extent_alloc_region(ex, bpa, size,
284 EX_NOWAIT | (ioport_malloc_safe ? EX_MALLOCOK : 0));
which seems to imply the address is already mapped, so we'd need
to figure out what is doing this. can you post the full dmesg
from before it panics? (even if just some pictures or video?)
thanks.
.mrg.
From: xuser <xuser@sdf.org>
To: gnats-bugs@netbsd.org
Cc: install-manager@netbsd.org, gnats-admin@netbsd.org, netbsd-bugs@netbsd.org,
huskers2012@outlook.com
Subject: re: install/57774: Old Nvidia card with Nouveau causes kernel panic
on boot
Date: Thu, 14 Dec 2023 20:48:55 -0500 (EST)
Unsupported card??
xuser@sdf.org
SDF Public Access UNIX System - http://sdf.org
On Fri, 15 Dec 2023, matthew green wrote:
> The following reply was made to PR install/57774; it has been noted by GNATS.
>
> From: matthew green <mrg@eterna23.net>
> To: gnats-bugs@netbsd.org, huskers2012@outlook.com
> Cc: install-manager@netbsd.org, gnats-admin@netbsd.org,
> netbsd-bugs@netbsd.org
> Subject: re: install/57774: Old Nvidia card with Nouveau causes kernel panic on boot
> Date: Fri, 15 Dec 2023 10:58:22 +1100
>
> > nouveau0: NVIDIA NV44(044300b2)_
> > nouveau0: bios: version 04.44.02.45.00
> > nouveau0: error: imem: unable to map PRAMIN BAR 2: -35
> > nouveau0: error: imem: imem ctor failed, -35
> > nouveau0: unable to create nouveau device: 35
> > panic: cnopen: no console device
>
> this message comes from a netbsd-only code segment:
>
> 300 imem->iomemt =3D device->func->resource_tag(device, bar);
> 301 iomembase =3D device->func->resource_addr(device, bar);
> 302 iomemsz =3D device->func->resource_size(device, bar);
> 303 /* XXX errno NetBSD->Linux */
> 304 ret =3D -bus_space_map(imem->iomemt, iomembase, iomemsz,
> 305 BUS_SPACE_MAP_LINEAR|BUS_SPACE_MAP_PREFETCHABLE, &imem->io=
> memh);
> 306 if (ret) {
> 307 nvkm_error(&imem->base.subdev, "unable to map PRAMIN B=
> AR %d"
> 308 ": %d\n", bar, ret);
>
> error 35 =3D EAGAIN. that's probably coming from x86/bus_space.c:
>
> 249 bus_space_reserve(bus_space_tag_t t,
> ...
> 283 error =3D extent_alloc_region(ex, bpa, size,
> 284 EX_NOWAIT | (ioport_malloc_safe ? EX_MALLOCOK : 0));
>
> which seems to imply the address is already mapped, so we'd need
> to figure out what is doing this. can you post the full dmesg
> from before it panics? (even if just some pictures or video?)
>
> thanks.
>
>
> .mrg.
>
>
From: matthew green <mrg@eterna23.net>
To: xuser <xuser@sdf.org>
Cc: install-manager@netbsd.org, gnats-admin@netbsd.org,
netbsd-bugs@netbsd.org, huskers2012@outlook.com,
gnats-bugs@netbsd.org
Subject: re: install/57774: Old Nvidia card with Nouveau causes kernel panic on boot
Date: Fri, 15 Dec 2023 14:47:29 +1100
> Unsupported card??
it's supposed to work, but there's a bug. i don't know exactly
what yet but it seems not too impossible to figure out going on
what the PR shows so far.
i just ordered a geforce 6200 that *should* trigger the same
paths, but i won't have a chance to look until the end of the
month. can you patch this code to print more info about what
it passed to bus_space_map()? in particular:
304 ret = -bus_space_map(imem->iomemt, iomembase, iomemsz,
if you can print the values of iomembase and iomemsz that would
be useful (if you aren't sure how to do this, i can send you a
patch or kernel or .iso to test.)
also the full dmesg, to have an idea if there's something else
mapping these addresses, would be useful.
thanks.
.mrg.
From: xuser <xuser@sdf.org>
To: matthew green <mrg@eterna23.net>
Cc: install-manager@netbsd.org, gnats-admin@netbsd.org, netbsd-bugs@netbsd.org,
huskers2012@outlook.com, gnats-bugs@netbsd.org
Subject: re: install/57774: Old Nvidia card with Nouveau causes kernel panic
on boot
Date: Fri, 15 Dec 2023 11:51:06 -0500 (EST)
My geforce nvs 160 works in my dell latitude e6500
wrong iobase?
And also my opensuse on the same laptop crashed until i got the driver
from nvidia
xuser@sdf.org
SDF Public Access UNIX System - http://sdf.org
On Fri, 15 Dec 2023, matthew green wrote:
>> Unsupported card??
>
> it's supposed to work, but there's a bug. i don't know exactly
> what yet but it seems not too impossible to figure out going on
> what the PR shows so far.
>
> i just ordered a geforce 6200 that *should* trigger the same
> paths, but i won't have a chance to look until the end of the
> month. can you patch this code to print more info about what
> it passed to bus_space_map()? in particular:
>
> 304 ret = -bus_space_map(imem->iomemt, iomembase, iomemsz,
>
> if you can print the values of iomembase and iomemsz that would
> be useful (if you aren't sure how to do this, i can send you a
> patch or kernel or .iso to test.)
>
> also the full dmesg, to have an idea if there's something else
> mapping these addresses, would be useful.
>
> thanks.
>
>
> .mrg.
>
From: Venkatesh Ramakrishnan <huskers2012@outlook.com>
To: "install-manager@netbsd.org" <install-manager@netbsd.org>,
"gnats-admin@netbsd.org" <gnats-admin@netbsd.org>, "netbsd-bugs@netbsd.org"
<netbsd-bugs@netbsd.org>, "gnats-bugs@netbsd.org" <gnats-bugs@netbsd.org>
Cc:
Subject: Re: install/57774: Old Nvidia card with Nouveau causes kernel panic
on boot
Date: Fri, 15 Dec 2023 18:48:32 +0000
--_000_LV3PR84MB36020C0CDEF4B87CC5133C67BC93ALV3PR84MB3602NAMP_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Hello Matthew,
If you can send me instructions I can get it, also dmesg does not capture t=
his panic. If there is way to capture this info please suggest the steps in=
volved and I can get it.
alternatively I'm to other options as well, it is what works best.
Thanks
________________________________
From: matthew green <mrg@eterna23.net>
Sent: Thursday, December 14, 2023 10:50 PM
To: install-manager@netbsd.org <install-manager@netbsd.org>; gnats-admin@ne=
tbsd.org <gnats-admin@netbsd.org>; netbsd-bugs@netbsd.org <netbsd-bugs@netb=
sd.org>; huskers2012@outlook.com <huskers2012@outlook.com>
Subject: re: install/57774: Old Nvidia card with Nouveau causes kernel pani=
c on boot
The following reply was made to PR install/57774; it has been noted by GNAT=
S.
From: matthew green <mrg@eterna23.net>
To: xuser <xuser@sdf.org>
Cc: install-manager@netbsd.org, gnats-admin@netbsd.org,
netbsd-bugs@netbsd.org, huskers2012@outlook.com,
gnats-bugs@netbsd.org
Subject: re: install/57774: Old Nvidia card with Nouveau causes kernel pani=
c on boot
Date: Fri, 15 Dec 2023 14:47:29 +1100
> Unsupported card??
it's supposed to work, but there's a bug. i don't know exactly
what yet but it seems not too impossible to figure out going on
what the PR shows so far.
i just ordered a geforce 6200 that *should* trigger the same
paths, but i won't have a chance to look until the end of the
month. can you patch this code to print more info about what
it passed to bus_space_map()? in particular:
304 ret =3D -bus_space_map(imem->iomemt, iomembase, iomemsz,
if you can print the values of iomembase and iomemsz that would
be useful (if you aren't sure how to do this, i can send you a
patch or kernel or .iso to test.)
also the full dmesg, to have an idea if there's something else
mapping these addresses, would be useful.
thanks.
.mrg.
--_000_LV3PR84MB36020C0CDEF4B87CC5133C67BC93ALV3PR84MB3602NAMP_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<style type=3D"text/css" style=3D"display:none;"> P {margin-top:0;margin-bo=
ttom:0;} </style>
</head>
<body dir=3D"ltr">
<div style=3D"font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;=
color: rgb(0, 0, 0);" class=3D"elementToProof">
Hello Matthew,</div>
<div style=3D"font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;=
color: rgb(0, 0, 0);" class=3D"elementToProof">
<br>
</div>
<div style=3D"font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;=
color: rgb(0, 0, 0);" class=3D"elementToProof">
If you can send me instructions I can get it, also dmesg does not capture t=
his panic. If there is way to capture this info please suggest the steps in=
volved and I can get it.</div>
<div style=3D"font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;=
color: rgb(0, 0, 0);" class=3D"elementToProof">
<br>
</div>
<div style=3D"font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;=
color: rgb(0, 0, 0);" class=3D"elementToProof">
alternatively I'm to other options as well, it is what works best.</div>
<div style=3D"font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;=
color: rgb(0, 0, 0);" class=3D"elementToProof">
<br>
</div>
<div style=3D"font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;=
color: rgb(0, 0, 0);" class=3D"elementToProof">
Thanks</div>
<div id=3D"appendonsend"></div>
<hr style=3D"display:inline-block;width:98%" tabindex=3D"-1">
<div id=3D"divRplyFwdMsg" dir=3D"ltr"><font face=3D"Calibri, sans-serif" st=
yle=3D"font-size:11pt" color=3D"#000000">From: matthew green <mrg=
@eterna23.net><br>
Sent: Thursday, December 14, 2023 10:50 PM<br>
To: install-manager@netbsd.org <install-manager@netbsd.org>; g=
nats-admin@netbsd.org <gnats-admin@netbsd.org>; netbsd-bugs@netbsd.or=
g <netbsd-bugs@netbsd.org>; huskers2012@outlook.com <huskers2012@o=
utlook.com><br>
Subject: re: install/57774: Old Nvidia card with Nouveau causes kern=
el panic on boot</font>
<div> </div>
</div>
<div class=3D"BodyFragment"><font size=3D"2"><span style=3D"font-size:11pt;=
">
<div class=3D"PlainText">The following reply was made to PR install/57774; =
it has been noted by GNATS.<br>
<br>
From: matthew green <mrg@eterna23.net><br>
To: xuser <xuser@sdf.org><br>
Cc: install-manager@netbsd.org, gnats-admin@netbsd.org,<br>
netbsd-bugs@netbsd.org, huskers2012@outlook.com,<br>
gnats-bugs@netbsd.org<br>
Subject: re: install/57774: Old Nvidia card with Nouveau causes kernel pani=
c on boot<br>
Date: Fri, 15 Dec 2023 14:47:29 +1100<br>
<br>
> Unsupported card??<br>
<br>
it's supposed to work, but there's a bug. i don't know exactly<=
br>
what yet but it seems not too impossible to figure out going on<br>
what the PR shows so far.<br>
<br>
i just ordered a geforce 6200 that *should* trigger the same<br>
paths, but i won't have a chance to look until the end of the<br>
month. can you patch this code to print more info about what<br=
>
it passed to bus_space_map()? in particular:<br>
<br>
304 ret =3D -bus_spac=
e_map(imem->iomemt, iomembase, iomemsz,<br>
<br>
if you can print the values of iomembase and iomemsz that would<br>
be useful (if you aren't sure how to do this, i can send you a<br>
patch or kernel or .iso to test.)<br>
<br>
also the full dmesg, to have an idea if there's something else<br>
mapping these addresses, would be useful.<br>
<br>
thanks.<br>
<br>
<br>
.mrg.<br>
<br>
</div>
</span></font></div>
</body>
</html>
--_000_LV3PR84MB36020C0CDEF4B87CC5133C67BC93ALV3PR84MB3602NAMP_--
(Contact us)
$NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2023
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.