17:59 rootkea: Hello, I'm using Debian 12 with Nvidia GK208M GeForce GT 740M GPU. I already have firmware-misc-nonfree installed and lspci also shows the Nvidia GPU. But the driver is failing to load. dmesg throws this error: "failed to load nouveau/nv108_fuc084d". How do I fix this?
18:00 rootkea: Here's my lspci and relevant dmesg log: http://paste.debian.net/1284385/
18:01 Lyude: emersion: btw, I am planning on enabling atomic by default in the near future hopefully
18:02 karolherbst: Lyude: btw.. we should do this before doing so: https://gitlab.freedesktop.org/karolherbst/nouveau/-/commit/8ad0190520652e199c6f9706d9401e3314b4c3db
18:02 karolherbst: probably....
18:03 karolherbst: I think...
18:03 karolherbst: something along those lines at least
18:03 Lyude: karolherbst: send it on the ml! and yeah I'm probably going to be doing a good bit of testing before we flip the swithc
18:04 Lyude: Honestly I don't expect things to go too wrong - I've been leaving nouveau.atomic=1 set on a few of my machines for a while now and haven't seen any issues
18:04 karolherbst: yeah..
18:04 karolherbst: it's just...
18:04 karolherbst: it doesn't prevent setting bad modes
18:04 karolherbst: that's all
18:04 Lyude: karolherbst: being on legacy you mean?
18:04 karolherbst: both
18:04 karolherbst: we don't validate userspace modes at all
18:05 karolherbst: so userspace can give us any mode and we just eat it
18:05 karolherbst: and then things break obviously
18:05 Lyude: oh hm. and the connector check there isn't enough I assume?
18:05 karolherbst: yeah soo.. the fun thing about the connector check is, it's only called on modes send to userspace
18:06 karolherbst: hence why I've wrote the patch above
18:06 karolherbst: it still breaks X horribly because sometimes it tries to start with a broken mode, but...
18:06 Lyude: o-o, that is very surprising to me? I'm pretty sure we use connector checks for a couple of things-ooooooh wait this is mode_valid
18:06 karolherbst: .... yeah ....
18:06 Lyude: that explains things
18:06 karolherbst: anyway....
18:06 karolherbst: we need this check in atomic_check
18:06 karolherbst: or something else
18:06 karolherbst: but HDMI is stupid
18:07 karolherbst: sooo.. I've tried doing mode_valid on the encoder, but...
18:07 karolherbst: TMDS can be duallink on DVI
18:07 karolherbst: it's all annoynig
18:07 karolherbst: anyway... my patch fixing some stuff I was running into
18:07 Lyude: oh btw - you need to do if (IS_ERR(crtc_state)) for that, since there isn't a guarantee we can grab the mode
18:07 karolherbst: soo.. fun fact
18:07 karolherbst: ahhh
18:07 karolherbst: okay
18:08 karolherbst: anyway... on my GPU here the max is 165 MHz and modesetting DDX decided to add (besides the perfectly fine FHD@60 150MHz mode) another FHD@60 mode being 356 MHz :D
18:08 karolherbst: double scaned or whatever it's called
18:09 karolherbst: so obviously that breaks things if X uses that as the default mode...
18:09 Lyude: eesh, that's really weird. I wonder why it thinks that's a good idea
18:10 karolherbst: no clue :)
18:10 karolherbst: at least is able to detect that moving to that mode is invalid
18:10 karolherbst: just... it ignores any errors when it's the default one it chooses to start with
18:11 karolherbst: at least it works with the nouveau ddx...
18:12 Lyude: oh btw - looking into the DP issue today, going to write up a hacky fix and then see how much work my idea with passing the drm_dp_aux bus through nvkm works. anyway-I assume it actually at least checks the mode correctly with that check in place (and atomic enabled?)
18:12 karolherbst: but yeah.. will fix up that patch and send it out
18:12 karolherbst: uhhhhh
18:12 karolherbst: yeah, for dp it _should_ work
18:12 karolherbst: I know it doesn't when you use HDMI over DP :D
18:12 karolherbst: but that case is super weird
18:13 karolherbst: I think...
18:13 karolherbst: anyway... with my patch it gets validated properly against the mode
18:13 karolherbst: but it also fixes if you don't have atomic enabled, so it's a win in either case
18:15 karolherbst: Lyude: ohh btw.. it might be modesetting adding those modes, because it only saw FHD on a 4K display...... :D so maybe that's just the reason on why it's happening
18:16 Lyude: well, I think I'm nearing the end of some of my RH work so I'm probably going to be going back to focusing getting universal planes working 100% (as in, wndw ownership too) and then enable atomic
18:16 karolherbst: nice
18:16 karolherbst: I wished we had the hardware to fix DP1.3 bugs :')
18:16 karolherbst: there are some users complaining about that being broken
18:17 Lyude: i don't know which bug you're talking about but it's probably a safe bet I have some hardware for it
18:18 karolherbst: the one you know: https://gitlab.freedesktop.org/drm/nouveau/-/issues/211
18:18 karolherbst: and...
18:19 karolherbst: huh.. where is the other
18:19 karolherbst: Lyude: https://gitlab.freedesktop.org/drm/nouveau/-/issues/208
18:20 karolherbst: I tried it with my HDMI to DP connector, but.. uhhh.. that's a weird one and I run into some other bugs with that.. like invalid modes :)
18:20 Lyude: gotcha, I'll try to take a look today and see what needs to happen
18:20 karolherbst: I only have a 4K@60 DP display
18:20 Lyude: karolherbst: btw, I think we are at the time of year we're trying to spend the hw budget on stuff
18:20 Lyude: so you probably can get some more hardware if you ask
18:20 karolherbst: sadly, it's kinda my fault users run into this more often, because... of my fix with lowering the bpc :')
18:20 karolherbst: I already asked
18:21 karolherbst: so some users even had perfectly working setups at 30hz, but that fix enabled 60hz (because it's still within the limits), but that hits some DP bugs :(
18:47 Lyude: ok - hack is done hopefully, let's try the actual fix now :)