00:13 imirkin: i don't suppose there's anyone around with a nv4x who could test some stuff for me?
00:19 kisak: oh! well that was unexpected
00:20 imirkin: ?
00:20 kisak: I just discovered a 7800GT with a PCI-e connection in the graveyard
00:20 imirkin: oh cool
00:20 kisak: I've never used it
00:20 imirkin: that's a nv4x :)
00:20 imirkin: most nv4x hw is PCIe
00:21 imirkin: the very first one (NV40) came in AGP, as well as one later one (NV4A, aka NV44A), but most are PCIe
00:21 kisak: let's see if it'll light up a display
00:25 imirkin: and the answer is ...
00:26 imirkin: lit up so bright it exploded? :) (hopefully not)
00:30 kisak: the test box isn't posting with a 460, so more tinkering time needed
00:32 imirkin: those boards may have an extra power connector
00:36 kisak: stabilized the quirky bios and it's online, it's a gentoo 32 bit + 64 bit dual install and will take a little time to reconfigure. You want those two patches on the mailing list tested?
00:37 kisak: card did not exist in my mental inventory yesterday
00:39 imirkin: kisak: that'd be good too, but actually i'd like you to run a handful of piglits
00:39 imirkin: against almost any semi-recent version of mesa
00:39 imirkin: this code hasn't changed ... ever
00:40 kisak: let me get this system off of nvidia 390 first and I'll give it a try
00:40 imirkin: and then assuming it's what i think it is (i.e. "it works"), i'll send you a handful of patches, and ensure that things keep working
00:40 imirkin: but separately, it'd be cool if you could test that steam indeed works with the patches i posted + 1 other one
00:41 imirkin: (obviously i wouldn't necessarily recommend trying DOW3 on there...)
00:41 kisak: fwiw, I was looking in the graveyard to see what connector a 7300 has
00:42 imirkin: heh. they should all be PCIe, with a handful of exceptions
00:42 imirkin: (not by model number either)
00:44 imirkin: iirc mostly marked as 6800 ultra (nv40) and 6200 (agp/pci)
00:46 kisak: yeah, kernel and mesa needs a rebuild, so you can have any versions of those you want
00:46 imirkin: later is safer
00:46 imirkin: whatever's convenient though
00:46 kisak: ^gentoo
00:46 imirkin: s/safer/closer-to-what-im-doing/
00:47 imirkin: but you'll need to be able to apply some mesa patches later on
00:47 imirkin: so having a proper build...
00:47 kisak: yeah, that's not a problem either
00:52 imirkin: kisak: this is another commit that's needed (irrespective of steam): https://github.com/imirkin/mesa/commit/e4312e54708103da76b2ca61918c6d472c71a992
00:52 imirkin: this is the proper version of the hack that i posted in the bugzilla issue
01:00 kisak: I'll let you know when it's ready to run a baseline test
01:11 imirkin: sure. i'm going to try to figure out why texturing's messed up
01:40 kisak: 4.20.0 + mesa-git and lightdm renders a couple pixels of corruption and a cursor
01:41 imirkin: alrighty, we're in business! :)
01:42 kisak: corruption started before X started with streaking text in the VT
01:42 imirkin: hmmm
01:42 imirkin: that's unexpected
01:43 imirkin: could be a bad board... anything interesting in dmesg?
01:44 kisak: nothing in particular on this boot
01:45 imirkin: hm
01:45 imirkin: well, i normally just run X directly, without using a dm
01:45 imirkin: and control applications remotely
01:46 imirkin: otherwise it's too much hassle to flip between developing and testing
01:46 kisak: killing lightdm makes nouveau angrt with [ 468.640306] nouveau 0000:02:00.0: X[3603]: failed to idle channel 1 [X[3603]]
01:46 kisak: channel 1 and 2, 4 messages total
01:46 imirkin: great. accel is stuck.
01:47 imirkin: no other messages? pastebin dmesg perhaps?
01:48 kisak: http://dpaste.com/1REK43X
01:50 imirkin: well that just stinks. is X using modesetting or xf86-video-nouveau?
01:50 kisak: xf86-video-nouveau
01:51 imirkin: :(
01:52 imirkin: cat /proc/interruptes
01:52 imirkin: see if interrupts are being delivered to nouveau
01:53 kisak: 24: 0 0 245 0 PCI-MSI 1048576-edge nvkm
01:53 kisak: this line?
01:54 imirkin: yeah
01:54 imirkin: does that go up over time?
01:54 imirkin: (the "245")
01:54 kisak: yes
01:55 imirkin: can you try booting with nouveau.config=NvPCIE=0
02:00 kisak: cold started with that and switched to modesetting ddx at the same time, no change
02:00 imirkin: i was going to recommend keeping it with xf86-video-nouveau
02:00 imirkin: that's a lot more likely to work than modesetting is
02:00 kisak: roger
02:01 imirkin: how about adding nouveau.vram_pushbuf=1
02:07 kisak: nope
02:10 kisak: I'm going to get a 4.4 kernel on the box and see what it does
02:25 kisak: no change
02:26 imirkin: could be the board is less-than-perfect
02:26 imirkin: (i hate to blame hw though)
02:26 imirkin: did you plug the extra power connector into it?
02:26 imirkin: if not, it would definitely get cranky
02:29 kisak: yeah, it has a 6 pin pcie power connector (attached)
02:32 imirkin: one more thing - nouveau.config=NvMSI=0
02:32 imirkin: although it did seem like interrupts were flowing
02:32 imirkin: but who knows with that stuff
02:33 kisak: I'll swap pcie power connectors too
02:34 kisak: after that I'll slam the nvidia 304 driver on the system and see what that does
02:38 kisak: no luck
02:43 imirkin: urgh. all this texture stuff is giving me a headache
02:43 HdkR: woo textures
02:43 imirkin: pitch, swizzle, transfers ... bleh
02:43 imirkin: why can't i just have the docs, please
02:46 airlied: imirkin: you'd probably end up more confused :-P
02:46 imirkin: well, right now i'm guessing how the nv4x works
02:46 imirkin: coz i don't have one on-hand
02:46 imirkin: but i'm PRETTY sure it used to work
03:18 kisak: well, the good news is that the hardware is sane, bad news is it's on the nvidia 304 driver
03:19 kisak: and steam works with that
03:20 imirkin: cool
03:20 imirkin: i wonder what we're doing wrong :(
03:21 imirkin: i don't have a G70 here.
03:21 imirkin: i don't remember people complaining
03:21 imirkin: there was a massive rewrite of nouveau in kernel 4.3
03:21 imirkin: could you try a kernel prior to that perhaps?
03:23 kisak: everything older than 4.4 in portage was purged by the frothing obsession around spectre/meltdown, will take a little bit of archeology
03:26 imirkin: well
03:26 imirkin: i'm thinking livecd
03:26 imirkin: or liveusb
03:26 imirkin: of random distros
03:44 kisak: well, a centos 7 install disk has the same VT corruption
03:46 kisak: so that's some flavor of 3.10 kernel
03:47 imirkin: ok, so whatever it is, it's not new
03:47 imirkin: ain't that just super
03:47 imirkin: unfortunately whoever copied the xf86-video-nv code to nouveau decided to "simplify" it by eliminating a lot of clock calculations
03:47 imirkin: equally unfortunately, the original -nv code was buggy to begin with
03:48 kisak: oh well, sorry I can't help
03:48 imirkin: so there's no real way now, without *extensive* testing, to see what was necessary and what wasn't
03:49 airlied: kisak: depends on which centos 7 you got
03:49 airlied: since the gpu drivers are rebased in each point release
03:50 airlied: centos 7.6 is probably nwer than 4.4 :)
03:50 kisak: yeah, this is just the install disk
03:50 airlied: even the install disks are updated
03:52 airlied: if you just grabbed latest one it's likely centos 7.6 which is a pretty new graphics drivers
03:52 kisak: if that's the case, why is https://en.wikipedia.org/wiki/CentOS#Latest_version_information so detailed on 3.10 kernels
03:54 airlied: kisak: it's a 3.10 kernel
03:54 airlied: it's just backported graphics drivers
03:55 kisak: great, a frankernel
03:56 airlied: 4.17.19 drm in -957
03:56 airlied: it's called an "enterprise" kernel :-P
03:57 airlied: -862 has 4.14.0 drm
03:57 imirkin: where you take kernel vX, rebrand it as vY, and call it stable. woohoo!
03:57 airlied: imirkin: and charge money for it :-)
03:57 imirkin: that's step 3: profit!
03:57 airlied:wished it was just rebranded, would be a lot simpler :-p
03:58 imirkin: gotta at least make it look like you guys add value...
03:58 airlied: the value is not breaking some random storage drivers :-P
03:59 kisak: alright found the 2014 gentoo livedvd I was originally looking for
04:00 kisak: which has the same behavior
04:00 imirkin: can you check what kernel that is?
04:01 imirkin: 2014 ... guessing 3.16?
04:01 kisak: yeah, once I reboot it with nox
04:03 kisak: 3.15.6
04:05 kisak: airlied: thanks for the centos kernel factoid
04:06 imirkin: so close
04:06 imirkin: anyways ... 3.15 is pretty old. iirc there was a rejigger in 3.16 ... and the one before that was ... 3.13 maybe? and 3.8 before that?
05:17 imirkin: alright, i'm going to plug a nv4x in over the weekend and bang this out. the way the texture layout is done on nv30 does not follow logic.
16:54 imirkin_: someone with knowledge and a bit of time should update our CodeNames wiki page to include volta and turing
16:54 imirkin_: https://nouveau.freedesktop.org/wiki/CodeNames/
21:44 jaroslaw: hello
21:45 jaroslaw: could you tell me how can I check which version of nouveau driver I have ?
21:46 imirkin_: jaroslaw: nouveau is composed of many different bits and pieces
21:47 imirkin_: there's no single "nouveau driver"
21:47 imirkin_: [and thus no single version]
21:47 jaroslaw: uhm
21:47 imirkin_: to check your kernel version, you can run 'uname -a'
21:47 imirkin_: to check the mesa version, you can run glxinfo | grep Mesa
21:48 imirkin_: to check the ddx version, you can check your xorg logs
21:48 jaroslaw: the card I have is NV44 [Quadro NVS 285]
21:49 jaroslaw: kernel 4.4.14 and Mesa 11.2.2
21:50 jaroslaw: I have enabled GPU acceleration in ff 64.0 and looks like not eevrything works properly and I doubt if using of more up to date nouveau would help
21:50 imirkin_: you doubt correctly.
21:50 jaroslaw: the ff console (xterm) returns errors:
21:51 jaroslaw: nouveau: kernel rejected pushbuf: Cannot allocate memory
21:51 imirkin_: the GL backend (in mesa) for nv30 is ... not ideal
21:51 imirkin_: and that's what FF uses for "gpu acceleration"
21:51 jaroslaw: yeah yeah I know but for example I have other hardware with nvs290 and it works like a charm with GPU enabled in ff
21:51 imirkin_: that's a G84 or something, no?
21:52 imirkin_: G86. but same idea.
21:52 jaroslaw: but yeah I have there more modern kernel and as I remember I had compiled nouveau there by hand
21:52 imirkin_: the driver for nv50 in mesa is in much stronger shape than the one for nv30
21:52 jaroslaw: I have nv44
21:52 imirkin_: (which, tbh, in part reflects the quirkiness of the pre-nv50 hardware)
21:53 imirkin_: right -- but NVS 290 is a G86 (which is covered by the nv50 driver)
21:53 HdkR: Whoa, that's an old card
21:53 imirkin_: while NVS 285 is a NV44, which is covered by the nv30 driver
21:53 jaroslaw: oh, ok
21:53 imirkin_: HdkR: i have a FX5200 plugged in :p
21:54 imirkin_: jaroslaw: if you like, you can try the latest mesa with a few extra fixes on top for nv30: https://github.com/imirkin/mesa/commits/cts2
21:54 jaroslaw: I have FX5300 as well but it is AGP card, not possible to use on those mobos with PCIe
21:54 imirkin_: jaroslaw: however imo it's unlikely to help
21:54 imirkin_: (these will be refined, retested, and pushed out this weekend)
21:54 HdkR: Oof, FX5200 was my first dGPU :P
21:55 imirkin_: HdkR: don't consider a cirrus a dGPU?
21:55 imirkin_: :)
21:57 HdkR: I didn't have cirrus as an add-in card, no idea if I had one as an onboard version, would have been before I cared about computers :)
21:57 imirkin_: first one i remember was like a CL5242 or something like that
21:58 jaroslaw: heh I have one old Toshiba laptop with Pentium 120MHz 48MB RAM and there is Chips&Technologies 65555 "GPU" ;p
21:59 imirkin_: hm. probably CL-GD5434 actually
21:59 jaroslaw: and still can remember Trident 9000i ISA 512kB card from 486
21:59 imirkin_: since it was in a P60 with PCI
21:59 imirkin_: a variety of ISA and VLB boards preceded it, but i forget what those were
21:59 imirkin_: iow, HdkR is young
22:00 HdkR: I had a variety of ISA supporting computers but they didn't have any accelerator cards in them D:
22:00 joepublic: My first PC had an 8-bit ISA CGA-compatible video card
22:00 imirkin_: the real question is whether you remember ESDI or not
22:01 joepublic: That's a no.
22:01 imirkin_: good =]
22:01 HdkR: Nope, had to look it up.
22:01 joepublic: those machines didn't take ISA cards.
22:02 HdkR: I don't remember what connections all my devices used for HDDs back then
22:02 joepublic: I remember. MFM and RLL.
22:06 jaroslaw: in early '90s we had some 286-crap-based machines with Hercules 8 bit ISA card
22:06 jaroslaw: s
22:06 joepublic: you could join the video ram on those to the system RAM and get more than 640K. fun times.
22:09 jaroslaw: as I guess it will be better to get as newest kernel version as I can found to get the latest nouveau ?
22:10 imirkin_: kernel version won't really affect things much in your case
22:25 jaroslaw: what does, then?
22:26 imirkin_: mesa
22:26 imirkin_: which is the OpenGL implementation
22:26 imirkin_: 11.x is pretty old, but at the same time, not a ton of work has gone into nv30 (read: none). so the only changes are going to be things that broke as a result of other changes :)
22:26 jaroslaw: as I guess compiling mesa from sources won't be easy and fast? ;p
22:27 imirkin_: if you're used to compiling packages, it's pretty straightforward
22:27 imirkin_: if you're not, then there's going to be lots of "setup" to get to that point
22:28 jaroslaw: I think I will start with new kernel which will be easier - I have to do that in any way
22:28 imirkin_: ok. that's unlikely to hurt, but definitely won't help the GL situation