Re: Nouveau not initializing correctly with stock kernel of NetBSD 10.0.0

Connor McLaughlan <[email protected]> Sun, 11 Aug 2024 14:40:17 +0200
Newsgroups gmane.os.netbsd.ports.x86-64
Message-ID <CABo1Du6OBq5uXFLdtwPudBiPo9choXm5C1CdtJCuoMwtmcSGWw@mail.gmail.com>
Hello Paul,

thank you for your insights.

On my box after the console has freezed, there is no way to continue
or load up x11 as it does for you - but unusable as you report.
I can then only ssh into the box to shut it down again.

So it seems nouveau is in a non-working state on netbsd 10.0?
Was it working in the past and in what release?

Best regards,
Connor

On Sun, Aug 11, 2024 at 8:42 AM Paul Goyette <[email protected]> wrote:
>
> The "core notifier timeout" and "base:-n timeout" messages happen all
> the time on my system.  The messages themselves seem to be detailed
> internal messages and don't provide any link back to real-world, so
> not very useful for debugging.
>
> On my system at least the system is  useable, modulo stalling at
> unexpected times.  See my PR kern/58053 for more details.
>
> FWIW, my system behsves quite well when using firefox or xterms;  it
> fails misersably when I throw libreoffice and/or gnucash (both from
> pkgsrc) into the mix.
>
> You can most likely get a dumb framebuffer running if you disable
> nouveau at boot.  Just interrupt the countdown, excape to the boot
> command prompt, and enter
>
>         userconf disable nouveau*
>
> Then continue booting.  You won't get any X accelleration...  :-(
>
> Good luck.
>
>
> On Sat, 10 Aug 2024, Connor McLaughlan wrote:
>
> > Hello All,
> >
> > i am trying to get a framebuffer and possibly accelerated x11 on an
> > amd64 box using nouveau.
> > The GPUs i tried are an old PCIe 8400GS and a GTS250.
> >
> > So far i had no success with a fresh install of NetBSD 10.0.0 and the
> > stock kernel, the monitor output freezes after this line, and never
> > comes back to life - i also cannot switch to other consoles or bring
> > up x11:
> >
> > [     1.000000] NetBSD 10.0 (GENERIC) #0: Thu Mar 28 08:33:33 UTC 2024
> > [     1.000000]
> > [email protected]:/usr/src/sys/arch/amd64/compile/GENERIC
> > ...
> > [     4.351708] kern.module.path=/stand/amd64/10.0/modules
> > [     4.351708] nouveau0: NVIDIA G92 (092a80a2)
> > [     4.481827] nouveau0: bios: version 62.92.9a.00.00
> > [     4.501837] nouveau0: interrupting at msi1 vec 0 (nouveau0)
> > [     4.501837] nouveau0: fb: 1024 MiB GDDR3
> > [     4.577621] Zone  kernel: Available graphics memory: 9007199254225440 KiB
> > [     4.577621] nouveau0: DRM: VRAM: 1024 MiB
> > [     4.577621] nouveau0: DRM: GART: 1048576 MiB
> > [     4.581910] nouveau0: DRM: TMDS table version 2.0
> > [     4.581910] nouveau0: DRM: DCB version 4.0
> > [     4.581910] nouveau0: DRM: DCB outp 00: 04011310 00000028
> > [     4.581910] nouveau0: DRM: DCB outp 01: 02000300 00020028
> > [     4.581910] nouveau0: DRM: DCB outp 02: 01000302 00020030
> > [     4.581910] nouveau0: DRM: DCB outp 03: 02022322 00020010
> > [     4.581910] nouveau0: DRM: DCB conn 00: 00001030
> > [     4.581910] nouveau0: DRM: DCB conn 01: 00000100
> > [     4.581910] nouveau0: DRM: DCB conn 02: 00002261
> > [     4.581910] nouveau0: DRM: MM: using CRYPT for buffer copies
> > [     4.581910] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
> > [     4.581910] [drm] Driver supports precise vblank timestamp query.
> > [     4.621920] nouveaufb0 at nouveau0
> > [     4.621920] [drm] Initialized nouveau 1.3.1 20120801 for nouveau0 on minor 0
> >
> > However the system comes up and i can ssh into it. So dmesg gives the
> > following additional info after the output freeze above - including a
> > few timeouts:
> >
> > [     4.621920] [drm] Initialized nouveau 1.3.1 20120801 for nouveau0 on minor 0
> > [     4.621920] nouveaufb0: framebuffer at 0xc0006000, size 1920x1200,
> > depth 32, stride 7680
> > [     6.623293] nouveau0: autoconfiguration error: error: DRM: core
> > notifier timeout
> > [     8.624667] nouveau0: autoconfiguration error: error: DRM: base-0: timeout
> > [     8.654687] wsdisplay0 at nouveaufb0 kbdmux 1: console (default,
> > vt100 emulation), using wskbd0
> > [     8.654687] wsmux1: connecting to wsdisplay0
> > [     8.654687] wskbd1: connecting to wsdisplay0
> > [    45.850161] wsdisplay0: screen 1 added (default, vt100 emulation)
> > [    45.850161] wsdisplay0: screen 2 added (default, vt100 emulation)
> > [    45.850161] wsdisplay0: screen 3 added (default, vt100 emulation)
> > [    45.850161] wsdisplay0: screen 4 added (default, vt100 emulation)
> >
> > My only succesfull option to get a working console output and to start
> > up x11 was to build a kernel without nouveau and only the generic
> > framebuffer. Of course then i don't have accelerated opengl in x11.
> >
> > Can someone help or give some insights on what can i do to bring up
> > nouveau successfully?
> >
> > Best regards,
> > Connor
> >
> > !DSPAM:66b84872239991016314798!
> >
> >
>
> +---------------------+--------------------------+----------------------+
> | Paul Goyette (.sig) | PGP Key fingerprint:     | E-mail addresses:    |
> | (Retired)           | 1B11 1849 721C 56C8 F63A | [email protected]    |
> | Software Developer  | 6E2E 05FD 15CE 9F2D 5102 | [email protected]  |
> | & Network Engineer  |                          | [email protected] |
> +---------------------+--------------------------+----------------------+