08:50 pmoreau: karolherbst: FYI, you can also break on a memory error with valgrind; I discovered that recently: https://heeris.id.au/2016/valgrind-gdb/ (scroll down to the “It’s GDB time” section)
08:51 pmoreau: But I should check libasan as well
08:56 HdkR: I also fully recommend clang's asan :D
12:40 HdkR: karolherbst: btw, did you manage to get those things? Sorry about the pain
12:41 karolherbst: something arrived and I want to pick it up from the office today
12:41 HdkR: :D
13:44 kwizart: hello, I would like to update the wiki about video firmware availability for nouveau and Fedora (via RPM Fusion)
13:44 kwizart: as mentionned here: https://nouveau.freedesktop.org/wiki/VideoAcceleration/#Firmware
13:45 kwizart: as one could use it from http://koji.rpmfusion.org/koji/packageinfo?packageID=554
13:49 karolherbst: kwizart: those are different things
13:49 karolherbst: ohh wait
13:49 karolherbst: you just want to have a link added there?
13:49 kwizart: another open question, is it possible to (even partially) build some part of the gpu firmware for nvidia hw (before thoses hw generation that requires signing) or are theses blob fully closed source content ?
13:50 kwizart: karolherbst, yep, in the lucky distro area ;)
13:50 karolherbst: kwizart: the biggest issue is just that nobody spend enough time reverse engineering those. I think we could potentially write our own
13:52 kwizart: karolherbst, you are speaking about the video firmware ? well, that's interesting up to the generation that would requires firmware signing, indeed
13:52 karolherbst: well, if somebody wants to dig into it, sure.. but we also have to do the bring up for other gens as well and stuff..
13:54 kwizart: yep with 340xx been EOL by nvidia, I'm still surprised by the number of people still using 340xx hw, so I'm trying to forward them to use nouveau and that's probably of the the missing feature ootb
13:55 kwizart: but my question about building the firmware was more related to the firmware distributed as part of the linux kernel
14:04 karolherbst: right, but for that we have to come up with our own firmware
14:07 kwizart: but if assuming a own firmware, isn't there a need for a dedicated compiler by then ? for the specific architecture used on the gpu ?
14:08 pqatsi: Hello folks! Some time ago, I had issues with my Nvidia Optimus (NVIDIA Corporation GP108M [GeForce MX150]) and nouveau and PM support wasnt complete or stable on my platform. After F31 system upgrade, i'm want to try nouveau again, but i dont know if its stable now. Someone can help-me to check my card compatibility (Specially the PM issue) with nouveau nowadays?
14:09 pqatsi: (Environment information: Notebook is a Dell Inspiron 7572 and I'm using Fedora 31 now)
14:11 imirkin: kwizart: the firmware shipped with linux is fully open -- the assembly used to generate the data is shipped alongside, you use envyas to assemble it
14:12 imirkin: pqatsi: probably not - karolherbst has a couple of patches that aren't upstream at this point
14:12 karolherbst: pqatsi: mind pastebinging your "lspci -tv" and "lspci -nn"?
14:12 karolherbst: *pastebining
14:13 imirkin: i like pastebinging...
14:16 pqatsi: karolherbst: Its here: https://paste.fedoraproject.org/paste/x9rmLU0TjRGdcfRM1MdjXg
14:18 karolherbst: pqatsi: you had those "refused to change power state" errors or something?
14:22 karolherbst: pqatsi: I am working on a fix there, but it's still unclear what the real issue is. I have a workaround you could try and see if that helps
14:23 karolherbst: pqatsi: https://copr.fedorainfracloud.org/coprs/build/1092497 I triggered a new build with some adjustments according to your lspci outputs
14:23 pqatsi: karolherbst: My last attempt was: 2018-08-24 10:59:24 pqatsi No progress with GP108M and nouveau here - even with runpm=0. There is a chance of better support in kernel 4.18 or something I can try?
14:24 karolherbst: pqatsi: right, but I am wondering what exact error you get. I guess with runpm=1 and lspci the machine just crashes or something?
14:24 karolherbst: or does it only crash when you try to render something on the GPU?
14:24 karolherbst: or does the machine just fails to boot outright
14:24 pqatsi: karolherbst: karolherbst well, I can try again, but I need to clean the house. Nvidia and bumblebee removal is enough?
14:25 pqatsi: (And also reversing masks from https://docs.fedoraproject.org/en-US/quick-docs/bumblebee/ )
14:25 karolherbst: should be, as long as nouveau gets loaded
14:25 karolherbst: I am sure that my kernel build will fix the issue, it just a matter of which issue as it fixes two
14:25 pqatsi: karolherbst: I remember machine booted well, but crashed when using 3D functions. Ill try again now
14:26 karolherbst: okay, having the dmesg output of the crash or something should help identifying which issue it exactly is
14:26 pqatsi: right. hold on some minutes plz
14:52 pqatsi: karolherbst: well, a mess happened here.
14:54 pqatsi: karolherbst: With nouveau.runpm=0 https://paste.centos.org/view/33e61c27
14:56 pqatsi: karolherbst: Boot w/o arguments: https://paste.centos.org/view/f87b84c3
14:56 pqatsi: Both did not loaded gdm
14:56 pqatsi: last resource worked is BOOT_IMAGE=(hd1,gpt3)/vmlinuz-5.3.9-300.fc31.x86_64 root=UUID=1fffc5c0-7768-406d-bec3-a5eea368c93d ro rootflags=subvol=root resume=UUID=6d09f50a-c8a4-4ae8-ae98-3a60c81efa94 rhgb quiet loglevel=3 rd.systemd.show_status=auto rd.udev.log_priority=3 LANG=pt_BR.UTF-8 pci=noaer nouveau.modeset=0
14:59 pqatsi: karolherbst: I saw you compiles a patched kernel module. Isnt possible to build just nouveau with dkms subsystem instead build a entire kernel?
15:06 karolherbst: pqatsi: ohh, you don't seem to have the runpm issue
15:06 karolherbst: it's something else
15:09 karolherbst: pqatsi: and no, we don't support dkms at all. You can build nouveau as a module but then installing it is a mess
15:10 karolherbst: pqatsi: mind adding my copr and swtching to kernel-5.3.8-9000.fc31?
15:10 karolherbst: this should fix your issue
15:10 karolherbst: hopefully
15:11 karolherbst: the pmu reset is also interesting
15:11 karolherbst: skeggsb: ever seen that?
15:13 karolherbst: pqatsi: so yeah.. no idea really what bug that is, but it seems to be something else
15:13 karolherbst: and that runpm=0 doesn't help is kind of showing that
15:14 pqatsi: karolherbst: I can install you copr, no problem
15:14 karolherbst: well you also need to downgrade the kernel as my kernel build is a bit too old there. The new one will be ready in like 10 hours or so...
15:15 karolherbst: skeggsb might know something about your issue, I'll try to talk to him about this
15:15 pqatsi: karolherbst: no issue, I can try hold it
15:16 karolherbst: pqatsi: right now booting with nouveau.modeset=0 let's you boot, right?
15:16 karolherbst: ahh yeah, you wrote it
15:16 pqatsi: karolherbst: Yup, booted with modeset=0
15:17 pqatsi: karolherbst: build link expired, do you mind to send you copr link?
15:18 karolherbst: https://copr.fedorainfracloud.org/coprs/karolherbst/Nouveau_Testing/
15:18 karolherbst: pqatsi: yeah, I removed the build as your system doesn't seem to be affected by the runpm issue at least
15:19 karolherbst: and I want to be super careful on where to enable it in order to properly pinpoint the issue
15:19 pqatsi: karolherbst: fair :)
15:20 pqatsi: Anyways, install last kernel from you repo?
15:22 karolherbst: yes
15:22 pqatsi: kernel x86_64 5.3.8-9000.fc31 copr:copr.fedorainfracloud.org:karolherbst:Nouveau_Testing 39 k
15:22 pqatsi: right one?
15:23 karolherbst: yes
15:30 pqatsi: karolherbst: You kernel works with modeset: https://paste.centos.org/view/e98f93bd
15:30 pqatsi: But something appeared as a warning on dmesg
15:30 pqatsi: karolherbst: Do you want I test something to validate?
15:30 karolherbst: yeah, DRI_PRIME=1 glxinfo
15:33 karolherbst: this pmu reset issue is still weird
15:33 njsg: Is there any known limitation in handling interlaced video with nouveau?
15:34 njsg: This would be VGA output on NV44 (if I got the card name right)
15:35 pqatsi: karolherbst: https://paste.centos.org/view/66e0fee0
15:35 karolherbst: pqatsi: yeah.. seems to work alright
15:35 karolherbst: njsg: it's broken over DisplayPort afaik, but it should work with HDMI
15:36 karolherbst: but nv44... no idea about that
15:36 karolherbst: maybe it works?
15:36 karolherbst: maybe not?
15:36 njsg: no display port nor hdmi in use
15:36 pqatsi: karolherbst: something I can do to help you to find out whats happening with pmu reset issue?
15:36 karolherbst: pqatsi: no idea, skeggsb might know more
15:37 njsg: a laptop with the radeon driver was apparently able to use that mode, but with nouveau some lines get mixed/repeated (at one point it seemed it was rendering interlaced frames as progressive, but that was possibly a coincidence)
15:37 karolherbst: mhhh
15:37 karolherbst: njsg: DVI I guess?
15:38 njsg: the physical output port is VGA, whether this is generated by the same part that generates DVI or separately I don't know
15:40 njsg: the modes are as reported by the display, I did no manual changes
15:42 karolherbst: ohh, I see
15:42 karolherbst: imirkin might know something here
15:43 karolherbst: the only thing I know is that interlaced isn't supported with DisplayPort on certain GPUs, but I only found this on maxwell ones, which are way newer
15:43 karolherbst: maybe there are some limitations on that era as well
15:43 karolherbst: njsg: I guess the non interlaced modes just work?
15:43 karolherbst: or does this display only does interlaced on higher res?
15:43 pqatsi: karolherbst and skeggsb - May be better I register a bug to keep track?
15:44 karolherbst: pqatsi: you could, but it might be it's already fixed by some work skeggsb is doing
15:46 njsg: karolherbst: the others seem to work fine, although I didn't try them all.
15:46 pqatsi: Well, ill wait here some time for a position. I just want to make sure I'll be reacheable if you need more debug
16:00 imirkin: njsg: things like that aren't often tested. it's the type of thing that *ought* to work, but might not
16:01 imirkin: njsg: a good thing to test would be if the mode works with xf86-video-nv
16:01 imirkin: (you'll have to not load nouveau if you want to use that)
16:01 imirkin: if it does, you can try to compare the code -- the nouveau pre-nv50 modesetting code is a derivative of that -nv code.
16:09 njsg: imirkin: is that the older FLOSS nVidia driver for X11?
16:12 njsg: I do have an xf86-video-nv package available, I can try installing that. Is it compatible with the kms,dri, etc kernel driver used by nouveau?
16:29 karolherbst: HdkR: so, I have everything except the case at home now :)
16:29 HdkR: woo
16:30 HdkR: Did you get the email I forwarded to you about the case in customs?
16:30 imirkin_: njsg: no, it's highly incompatible. you'll have to boot with nouveua.modeset=0
16:30 imirkin_: however it should let you test whether the code in -nv is able to bring up the right mode
16:30 karolherbst: HdkR: yes
16:30 HdkR: :+1:
16:32 karolherbst: HdkR: I think...
16:32 karolherbst: maybe I didn't
16:32 karolherbst: I got some mails at least
16:32 karolherbst: and I had to fill out some stuff
16:32 karolherbst: but the case should be in the office
16:33 karolherbst: it's just to big for our locker stations :D
16:33 karolherbst: *too
16:33 HdkR: ah, okay
16:33 HdkR: Sounds good
16:33 karolherbst: no idea if I have to pay anything ... :D
16:33 HdkR: Will have to make it up to you for all the nonsense
16:34 karolherbst: I should clarify that somehow
16:34 HdkR: lol
16:34 karolherbst: maybe I got emails on my private one
16:34 karolherbst: ahh
16:34 karolherbst: got your email
16:34 karolherbst: yeah, that's what I submited online
16:34 karolherbst: maybe they send me a letter...
16:35 karolherbst: HdkR: comming to fosdem? :D
16:36 HdkR: Wasn't really planning on it but maaybe?
16:40 njsg: imirkin_: Ok, I'll see how easy/hard it is to test -nv with my current configuration, then. (Not right now, though, a bit later maybe.)
16:43 imirkin_: njsg: the relevant modesetting code for your gpu is somewhere in https://github.com/skeggsb/nouveau/tree/master/drm/nouveau/dispnv04
16:44 imirkin_: njsg: if you look at the -nv code, you'll note a lot of obvious similarities.
16:44 imirkin_: (not sure if you're a developer, if you're not, you may be in trouble...)
16:44 karolherbst: HdkR: now I have to think about what to do with that machine, but I guess it could indeed become the controller of the CI system somehow
16:45 karolherbst: just have to figure out how to do this setup the others did as well with lava or something
16:45 imirkin_: i do have a NV44, which iirc has a VGA port, and i even have a VGA-capable flat panel, so i could hypothetically investigate, but i dunno if i'd ever have time
16:45 karolherbst: and connect the tegra with that
16:45 HdkR: Nice
16:45 HdkR: For the next set you should confirm with me if amazon.de solves the customs problem :P
16:45 karolherbst: I probably will need a switch as well.. uff
16:45 karolherbst: totally forgot about it
16:46 karolherbst: I want to create a full separate network through the controller obviously
16:46 HdkR: Ah right, network switch is worthwhile
16:46 karolherbst: and a PCIe ethernet card as well probably
16:47 karolherbst: uff, the board doesn't come with a GPU or the CPU, right?
16:48 HdkR: All the parts should be enough for a complete system other than the GPU
16:48 HdkR: and need to make sure to update the BIOS to support the CPU
16:48 HdkR: Which it supports bios flashback to flash without a CPU in it
16:49 karolherbst: yeah..
16:49 karolherbst: HdkR: the issue is just, that I probably want to have two ethernet ports on that machine :/
16:49 HdkR: ah, that board didn't have dual ethernet did it
16:49 karolherbst: yeah, and only one PCIe port
16:49 karolherbst: ohh wait
16:49 karolherbst: 3
16:50 karolherbst: I could have a x1 ethernet card
16:50 karolherbst: should be enough
16:50 HdkR: yea
16:50 HdkR: x1 is good enough for gigabit
17:01 karolherbst: HdkR: Intel PRO/1000 PT Server, RJ-45, PCIe 1.0 x1 (EXPI9400PT) is It think what I would go for.. but I guess you haven't a better clue about network cards either
17:01 HdkR: Intel usually works pretty well
17:01 karolherbst: and it has PXE support
17:01 HdkR: Which is a good thing to support
17:02 HdkR: I'll double check which one is in my threadripper system and specifically avoid that one
17:03 HdkR: Since sometimes it never comes back up from sleep
17:03 HdkR: Some random Intel one
17:04 karolherbst: mhh
17:04 karolherbst: TP-LINK TG-3468 maybe?
17:04 karolherbst: that would be cheaper
17:05 HdkR: eh. I'd trust Intel over TP-Link
17:05 karolherbst: yeah, but 12 vs 30€ :D
17:05 HdkR: hah
17:05 karolherbst: can't do PXE anyway
17:05 HdkR: boo
17:06 karolherbst: "Netis AD1103 PCIe network card 10/100/1000" mhh
17:06 karolherbst: the good thing about non intel cards is, that they don't come with that crappy management stuff :p
17:07 HdkR: hah :D
17:07 karolherbst: that netis card is also super small
17:07 karolherbst: the intel card is way too big for doing just ethernet :p
17:08 imirkin_: check out 3c509's...
17:08 imirkin_: oh actually they're smaller than i remember. hm.
17:08 karolherbst: 3c509?
17:08 karolherbst: ohh 3com
17:08 karolherbst: ehh
17:08 karolherbst: they have pcie cards? :D
17:08 karolherbst: seems pci only
17:08 karolherbst: or at most pci
17:09 HdkR: yum, ISA cards
17:09 karolherbst: ohh.. I have to check linux driver support as well
17:12 HdkR: Guess Intel is nice in that regard. Plop it in and it'll mostly just work
17:13 karolherbst: netis has propritary drivers.. uff
17:13 karolherbst: intel it is then
17:14 karolherbst: now a switch
17:15 imirkin_: 3c509 were ISA/EISA
17:15 HdkR: I usually use Netgear Prosafe switches around my apartment there
17:15 imirkin_: 3c905 were PCI
17:15 imirkin_: and for a long time were the gold standard of network cards
17:15 Pie_Mage: i actually just pitched a 3c905 like a month ago
17:15 imirkin_: Pie_Mage: i think i still have mine sitting around somewhere ... 3c905*b*, since the c versions were no good. heh.
17:15 Pie_Mage: was actually not bad for running a router
17:16 imirkin_: (why do i remember shit like that. totally useless knowledge.)
17:17 HdkR: karolherbst: https://www.amazon.com/NETGEAR-Ethernet-Unmanaged-Protection-JGS524NA/dp/B0002CWPW2 ? :D
17:17 HdkR: Has full switching throughput
17:18 HdkR: Rocksteady for me
17:21 karolherbst: HdkR: Netgear ProSAFE GS100 Desktop Gigabit Smart Switch, 8x RJ-45, PoE PD, V2 (GS108T-200)
17:22 karolherbst: ohh wait, that's wrong
17:22 karolherbst: HdkR: Netgear SOHO GS300 Desktop Gigabit Switch, 8x RJ-45, PoE (GS308P-100)
17:23 HdkR: ah, one of the lower end ones
17:24 karolherbst: HdkR: actually, I need this: Netgear S350 Desktop Gigabit Smart Managed Switch, 8x RJ-45, 2x SFP, PoE+ (GS310TP-100)
17:24 karolherbst: :D
17:24 karolherbst: I need 10W per PoE for 2 tegras
17:24 karolherbst: well, 10W per tegra
17:24 karolherbst: nano
17:24 karolherbst: and if I connect two, that's 20W
17:24 karolherbst: and PoE for proper on/off through the controller
17:26 HdkR: Oh, tegra supports poe?
17:26 karolherbst: yes
17:27 HdkR: Neat
17:27 karolherbst: so.. 8 poe slots, should be enough
17:27 karolherbst: will be 160€ in total for me :D
17:27 karolherbst: switch + ethernet card
17:28 karolherbst: the switch is the more expensive part obvisouly
17:28 HdkR: Yea, it's a decent swtich
17:28 HdkR: switch
17:40 karolherbst: ordered :)
17:42 HdkR: awesome
17:52 njsg: nv doesn't show a mode with "i" at the end, but it shows two 1024x768 modes, and I guess the one with the 43.00 rate is the interlaced one. I'll compare xrandr outputs when I reboot (so that I can run with nouveau)
17:52 imirkin_: njsg: i think the "i" is just labelling
17:52 imirkin_: you can get the full modeline from the xorg logs
17:53 imirkin_: and/or xrandr --verbose
17:54 njsg: now, on one hand, the screen is much more normal with the 43.00 one in nv, but the first few columns at the left are at the right, if you get what I mean...
17:54 imirkin_: hehe
17:54 njsg: uh, interesting, the cursor is not affected, hardware cursor, I guess
17:54 imirkin_: well, -nv probably has bugs too
17:54 njsg: which probably means it will click in the wrong place
17:54 imirkin_: hehe
17:55 njsg: I didn't see "interlace" in xrandr --verbose, is this expected?
17:55 imirkin_: might just be a 43hz mode...
17:55 njsg: the logs speak about a default 1024x768i mode not being used, but says that also about 1024x768
17:55 imirkin_: or maybe i just don't know how interlaced modes are displayed
17:56 imirkin_: pastebin the output of xrandr --verbose?
17:56 njsg: Better to compare the outputs, I also think xrandr is listing more modes than with nouveau
17:56 imirkin_: "flags can be zero or more of +HSync, -HSync, +VSync, -VSync, Interlace, DoubleScan, CSync, +CSync, -CSync"
17:56 imirkin_: so it should be showing up somewhere
17:58 imirkin_: note that there's a *minimum* clk speed too, perhaps the interlaced mode is too slow?
17:58 njsg: I don't think I see flags in --verbose
17:58 imirkin_: pastebin the output?
17:58 njsg: I know I saw them with nouveau...
17:59 imirkin_: the -nv code could just be buggy too
17:59 imirkin_: it may not have kept up with some interface change
17:59 imirkin_: or it could have been broken from the start
18:01 njsg: xrandr --verbose with nv: http://dpaste.com/0EQ773M.txt
18:01 imirkin_: you weren't kidding
18:01 imirkin_: start 0 end 0
18:01 imirkin_: that just means it's not filling in the proper values =/
18:01 imirkin_: sigh
18:02 imirkin_: xorg log may be more verbose
18:23 njsg: and here's the xorg log: http://dpaste.com/10DQ8BK.txt
18:24 imirkin_: i like the edid.
18:24 imirkin_: 101010101
18:24 imirkin_: heh
18:24 imirkin_: ok, so it has this: Modeline "1024x768i"x0.0 44.90 1024 1032 1208 1264 768 768 772 817 interlace +hsync +vsync (35.5 kHz e)
18:24 imirkin_: Clock range: 12.00 to 400.00 MHz - so you're fine
18:25 imirkin_: and in the end, you do have:
18:25 imirkin_: [ 1515.279] (II) NV(0): Modeline "1024x768i"x43.5 44.90 1024 1032 1208 1264 768 768 772 817 interlace +hsync +vsync (35.5 kHz ez)
18:25 imirkin_: so yeah, that 43 or 44mhz mode is in fact interlaced
18:25 imirkin_: it's just not shown that way in xrandr
18:25 imirkin_: (where does it get 43.5 when the mode is clearly 44.9? no clue whatsoever)
18:26 imirkin_: oh, 43.5hz refresh
18:26 imirkin_: 44.9mhz ramdac
18:26 imirkin_: duh
18:28 njsg: I seem to get a consistent result that the first few columns from the left are always shown at the right if I choose that mode.
18:28 imirkin_: so the 43hz mode should be the interlaced one
18:28 imirkin_: however in the xrandr output, it appears that the 60hz one is selected
18:28 imirkin_: ok, well that's probably fixable - some silly timing thing
18:28 imirkin_: but it does "work", right?
18:28 imirkin_: you get a picture
18:28 imirkin_: the picture roughly approximates what should be on the screen
18:29 imirkin_: and you get the interlacing artifacts you so desperately wanted
18:30 njsg: while it still has an issue, it is working better than nouveau
18:30 imirkin_: are you a developer?
18:31 imirkin_: (i.e. someone who can read and understand code, maybe even write some)
18:31 njsg: In *this* context, no, I think I never touched video drivers.
18:31 imirkin_: which context is "this"?
18:31 njsg: nouveau and nv :-)
18:31 imirkin_: that's true of everyone until they have, right
18:32 njsg: but I can work with code
18:32 imirkin_: ok, well, here's the -nv code: https://cgit.freedesktop.org/xorg/driver/xf86-video-nv/
18:32 imirkin_: and here's the nouveau code: https://github.com/skeggsb/nouveau/tree/master/drm/nouveau/dispnv04
18:33 imirkin_: i'd grep around for "interlace" and figure out what the diff is
18:33 njsg: the cursor problem can probably be worked around by disabling the hardware cursor
18:33 imirkin_: ignore all the g80_* and riva_* files in the -nv codebase
18:33 njsg: but now I wonder if the input is that good, it looks like there's wider gaps between lines in the interlaced output
18:33 pqatsi: karolherbst: After some test, I noticed the following result: https://paste.fedoraproject.org/paste/eX6PufPSXDvyw6RBQZBBkA (TL;DR: Intel with vblank_mode=0 did ~500fps fullscreen with composition but nvidia did ~60fps with a kernel warning)
18:34 karolherbst: that pmu issue will happen any time the GPU gets resumed
18:34 karolherbst: it doesn't seem to be critical though
18:34 njsg: like thin gray lines in a reverse video line in a terminal emulator, it is not visible if I choose the non-interlaced mode
18:35 njsg: or could that be an expected side effect of interlacing?
18:35 imirkin_: njsg: might i ask why you so want the interlaced mode?
18:35 imirkin_: no - interlacing should only cause tearing
18:35 imirkin_: between the even/odd fields
18:35 njsg: I was hoping it'd have less flickering
18:36 imirkin_: flickering?
18:36 imirkin_: are you on a CRT?
18:36 njsg: yes
18:36 imirkin_: the higher the refresh rate, the less flickering
18:36 imirkin_: i could see flickering at anything below 75hz ... i was pretty happy with 85hz
18:37 imirkin_: it's different for different people though
18:37 pqatsi: karolherbst: ah, ok. But this performance was expected too?
18:38 karolherbst: glxgears isn't a benchmark ;) but you can also just disbale vsync
18:38 imirkin_: pqatsi: 60fps really feels like you're beign limited by refresh rate
18:38 karolherbst: vblank_mode=1 I think
18:38 karolherbst: you need to use
18:38 imirkin_: =0 should be enough
18:38 imirkin_: but the compositor might ignore you
18:38 karolherbst: it's not
18:39 njsg: imirkin_: I can notice less flickering with the interlaced mode in nv, so at least that part seems to be working :-D
18:39 imirkin_: njsg: ah ok. it also really depends on the monitor itself.
18:39 karolherbst: anyway, prime offloading + vblank_mode=0 == broken
18:39 imirkin_: IME the flickering becomes a lot more obvious if you look stragith at the monitor, and then without moving your head, look up
18:39 karolherbst: causes Asynchronous wait on fence errors
18:40 karolherbst: or other weird things.. something is broken there
18:40 karolherbst: no idea what
18:40 karolherbst: pqatsi: vblank_mode=1 should be way better
18:40 pqatsi: imirkin_: You maybe right, how can I override it? Ive tested also with glmark2: https://paste.fedoraproject.org/paste/vw9WaMVj9vARdOVvOeX1FA
18:41 imirkin_: pqatsi: listen to karolherbst. he has a ton more experience than i do with all this offloading BS
18:41 njsg: After dinner I'll boot with modesetting and get the logs for X11 with nouveau.
18:41 karolherbst: chances are that with nouveau your GPU will still be slower, sadly
18:41 karolherbst: also, you are limited by the PCIe bandwidth
18:41 karolherbst: which is limited to 1.0 speeds anyway
18:41 karolherbst: right now
18:41 pqatsi: imirkin_ karolherbst Didnt work well: https://paste.fedoraproject.org/paste/V6XEekh3kKNHb9MR~wlT0A
18:42 pqatsi: karolherbst: Ah, where can I check the PCIe bandwidth?
18:42 karolherbst: lspci -s 01:00.0 -vv
18:43 pqatsi: karolherbst: I in fact not worried too much, since you kernel does not crashes anymore my machine :D But I want to help you to fix things if possible, at least as a tester
18:43 karolherbst: mhh, I get "FPS: 51 FrameTime: 19.608 ms" uff
18:43 karolherbst: but that's with 100% cpu load anyway :D
18:44 karolherbst: heh
18:44 karolherbst: I get 83 fps with intel
18:44 karolherbst: I blame the cpu
18:44 pqatsi: karolherbst: but why mesa did ~900fps on bench so ?
18:45 karolherbst: no clue
18:45 karolherbst: something wrong on your end?
18:45 pqatsi: Maybe something about buffer copy from nvidia to intel?
18:45 karolherbst: I get 112 fps
18:45 karolherbst: with intel now
18:45 karolherbst: ohhh wait
18:45 karolherbst: that's with 4k
18:45 karolherbst: ups
18:46 pqatsi: My res is 1920x1080 indeed
18:46 karolherbst: getting 50 fps with nouveau under 4k
18:46 pqatsi: LnkSta: Speed 2.5GT/s (downgraded), Width x4 (ok) / LnkCtl2: Target Link Speed: 8GT/s, EnterCompliance- SpeedDis- <-- This is the bus speed actually in usage?
18:46 karolherbst: uffff
18:46 karolherbst: x4 width?
18:47 karolherbst: is that an eGPU case?
18:47 karolherbst: or...
18:47 pqatsi: karolherbst: Its a Dell Notebook
18:47 karolherbst: what's wrong with your laptop...
18:47 karolherbst: weird
18:47 karolherbst: that's... harsh
18:47 karolherbst: I saw x8 in laptops
18:47 pqatsi: With integrated intel and nvidia
18:47 karolherbst: never x4
18:47 pqatsi: o.0 Maybe some bios weirdness?
18:47 karolherbst: maybe
18:47 karolherbst: x16 is pretty normal even in laptops
18:47 karolherbst: maybe... your GPU supports changing width though
18:47 imirkin_: or maybe we're supposed to upgrade the lane count but don't?
18:48 karolherbst: yeah..
18:48 karolherbst: might be
18:48 pqatsi: This is a controllable kernel flag?
18:48 karolherbst: pqatsi: mind checking with the nvidia driver?
18:48 karolherbst: nvidia should pump it up to 8.0
18:48 karolherbst: but it would be interesting to see what lane count they use
18:48 pqatsi: karolherbst: I can install it again or run a Windows instance I have here
18:48 pqatsi: My windows does have nvidia proprietary drivers
18:48 karolherbst: I'd prefer to do it with linux
18:48 karolherbst: you could give us an mmiotrace as well
18:49 karolherbst: and then we could take a look in how to implement it _if_ nvidia changes the lane count
18:49 karolherbst: increasing the speed is no biggie and we could actually do it on pascal. Lane count is what is annoying
18:49 karolherbst: I used to look into it, but... GPUs just crashed
18:49 karolherbst: so we never implemented it
18:50 pqatsi: karolherbst: So let-me check the steps: First mmiotrace (As https://www.kernel.org/doc/Documentation/trace/mmiotrace.txt ? ), after install nvidia proprietary and check bus again
18:50 pqatsi: Right?
18:50 karolherbst: ohh, no, just check with nvidia for now
18:50 karolherbst: and with lspci
18:50 karolherbst: if nvidia changes the lanes, then you could create an mmiotrace
18:51 karolherbst: but if they don't there is no need
18:51 pqatsi: right
18:51 pqatsi: installing nvidia here, hold a bit
20:19 karolherbst: imirkin_: ohh, btw, do you know why some values can end up with multiple defs all pointing to different values actually?
20:20 karolherbst: that's more or less what's happening with that RA issue
20:20 imirkin_: karolherbst: yeah, we merge nodes
20:20 karolherbst: ohh, to assign the same register, right?
20:20 imirkin_: or same group of regs, yea
20:21 karolherbst: mhhhhh
20:21 imirkin_: e.g. you have a phi node
20:21 karolherbst: ahh, right
20:21 karolherbst: mhhhh
20:21 imirkin_: which "merges" 2 values
20:21 karolherbst: but maybe we have to postpone that stuff somehow
20:21 karolherbst: it's weird to group them, but then leave them in ssa form
20:21 karolherbst: and then we "remove" an instruction to spill the value, but then everything goes south
20:21 karolherbst: because now one of the def points to invalid memory
20:21 imirkin_: yes
20:22 imirkin_: the remove is a fail
20:22 imirkin_: i tried to fix it
20:22 imirkin_: but failed almost as much as it was a fail
20:22 imirkin_: ;)
20:22 imirkin_: i had some patches
20:22 karolherbst: I don't think the remove is the issue though
20:22 imirkin_: but they broke everything
20:22 imirkin_: not the remove itself
20:22 karolherbst: the issue is, that we group without converting to a register
20:22 imirkin_: let me see if they're somewhere...
20:22 karolherbst: or at least that would be _way_ saner to guarentee that
20:23 karolherbst: or ungroup if we don't convert
20:23 karolherbst: everything else sounds like calling for trouble
20:24 imirkin_: look at the hunk in nv50_ir.cpp for this commit - https://github.com/imirkin/mesa/commit/0eddaaea62d8ef150720e87cb8d2ad2f4e4095bf
20:24 imirkin_: i think it may have been related
20:24 karolherbst: I think we have to add some layer between the IR and RA so that we can throw everything away, so our shader is still sane, but we can undo everything essentailly
20:24 imirkin_: and maybe the nv50_ir_ra if i didn't already push it
20:24 imirkin_: if this is already the current code, then there was more
20:24 karolherbst: ahh, I remember this
20:24 karolherbst: but this doesn't address the issue at all
20:25 karolherbst: the core issue is that the corrupt the entire state of the function
20:25 karolherbst: well, not entire
20:25 karolherbst: but certain values now have unrelated defs, as we redo RA essentially
20:26 karolherbst: I'd rather focusing on makeing the entire process saner than it's currently is
20:26 imirkin_: yeah, it's not great.
20:27 imirkin_: maybe there's a reasonable way to do this
20:27 imirkin_: by dumping the info into the RIG_Node
20:27 imirkin_: and not touching the LValue's
20:27 karolherbst: yeah
20:27 karolherbst: or some new struct or something
20:27 imirkin_: sure
20:27 karolherbst: something we can just delete without messing anything up
20:27 imirkin_: i'm going by memory anyways :)
20:27 imirkin_: exactly
20:28 imirkin_: fwiw i'm totally good with making the current process slightly slower (e.g. more copying) in exchange for fixing this issue
20:28 karolherbst: I mean, spilling values is still fine as long as everything is in a sane SSA form
20:28 karolherbst: so we could still do multiple rounds
20:29 karolherbst: imirkin_: I was also thinking about adding a codegen_validate thing and try to have a more well defined IR overall... maybe it even makes sense to do both at once as fixing RA will probably be a side effect of this anyway
20:32 imirkin_: uffff
20:32 imirkin_: good luck.
20:32 imirkin_: i mean, i'm all for it
20:32 imirkin_: but ... good luck.
20:32 imirkin_: we get away with a LOT of BS
20:32 karolherbst: yeah..
20:36 karolherbst: although.. we could probably add a workaround, which could address this RA issue in a non breaking way
21:34 captain-tux: Hi all, I just joined in. Does anybody know why my new GT 730 could be so sluggish? (Debian 10)
21:36 imirkin_: can you be more specific? what's sluggish?
21:39 captain-tux: Hey imirkin_, well, it basically runs worse that my old 550 Ti did, even though it should have more "raw performance" number-wise. I have two displays and as soon as I attach the second one, desktop animations become a bit laggy and video output is choppy. Didn't get that before.
21:40 imirkin_: pastebin xorg log
21:40 imirkin_: also try increasing the gpu clocks
21:40 imirkin_: GT 730 is a very weak card - i doubt it's more powerful than the 550 Ti
21:41 imirkin_: anyways, cat /sys/kernel/debug/dri/0/pstate
21:41 imirkin_: should give you a few options
21:41 imirkin_: echo'ing those options back into the file should change the power state
21:41 imirkin_: (probably called like "07" and "0f" for that particular board)
21:42 captain-tux: Ah okay, thanks. I
21:42 njsg: before I reboot with modesetting enabled, is there any other piece of useful debug information I could/should get from nv in X11?
21:43 imirkin_: njsg: nope - i mostly wanted to see if it worked at all with the -nv code
21:43 imirkin_: (if it didn't, chances of it working with nouveau were considerably decreased)
21:43 captain-tux: *I'll try that. I have to switch back to my other machine and get the logs next time. Thanks again!
21:44 imirkin_: captain-tux: also - is this a GF108 by any chance? i think they stopped playing those games after the GT 630, but at least that GPU came in a bunch of different versions
21:44 imirkin_: or is it a GK208?
21:45 njsg: both drivers can give output that can be read, but has problems. the -nv one is more readable.
21:46 njsg: Oh, is there any test pattern/image which could be used to demonstrate the issue?
21:46 imirkin_: sorry, dunno
21:46 captain-tux: imirkin_: According to Wikipedia, it's the GK208-400-A1, it appears that's the only one with DDR5 memory and it says that on the card.
21:46 imirkin_: captain-tux: ah yeah, if it's DDR5, it's probably a GK208.
21:47 njsg:goes actually take a screenshot of the interlaced mode. Hopefully the screenshot won't have any issue itself...
21:47 imirkin_: anyways, those are all shit GPUs, but with reclocking the DDR5 should actually make things fairly snappy i'd imagine
21:47 imirkin_: i've only ever used DDR3 GK208's
21:47 imirkin_: (i tend to just have whatever comes for free in dell's and can be thrown out)
21:48 imirkin_: njsg: yeah, screenshot is all software. you could take a photo, but photos of crt's are tricky
21:49 njsg: yeah, I was just trying to make sure it's gremlin-free
21:49 captain-tux: Well, thanks... :D Yes, I don't play on this machine and just use it for the displays and playing/editiong videos, but I expected it to at least do that without issue. ;)
21:50 imirkin_: yeah, should work fine
21:50 imirkin_: i use a GK208 with 2x 1920x1200 monitors without issue
21:53 captain-tux: Okay, that's reassuring. I'll head over and try to play around with those settings. Thanks again, that's a start at the very least!
21:56 imirkin_: i keep mine on the lowest perf setting too
21:56 imirkin_: but i don't use graphical animations frequently, dunno
21:59 karolherbst: imirkin_: https://github.com/karolherbst/mesa/commit/a4d6020964c6aec749db3e9de210a5a282d1c815 uff
22:00 karolherbst: this fixes the crash
22:00 karolherbst: but.. uff
22:01 imirkin_: heh
22:02 imirkin_: make sure you print the instructions after you do that
22:02 imirkin_: make sure it's the same as the original
22:02 karolherbst: you mean the one which gets deleted?
22:02 imirkin_: + spilled ops
22:02 imirkin_: i just mean the whole program
22:02 karolherbst: ohh, it's totally unrelated stuff
22:02 karolherbst: wait, I can print it
22:02 imirkin_: is it unrelated? dunno
22:02 imirkin_: if it is, whatever
22:05 karolherbst: uffff
22:05 karolherbst: how often does that happen
22:06 karolherbst: but it does seem that it's always a phi
22:07 imirkin_: ?
22:07 karolherbst: I've added a print everytime erase on the list gets called: https://gist.githubusercontent.com/karolherbst/824524eb70ed54b163cca39b9f95e9b9/raw/dadab473a89cfdacdc3a8059a82a30aa7f65f4fa/gistfile1.txt
22:07 karolherbst: that's... a lot
22:07 imirkin_: oh
22:07 imirkin_: i meant like after the whole run
22:08 imirkin_: (and before)
22:08 njsg: How'd I get the current framebuffer console video mode?
22:08 imirkin_: njsg: huh?
22:08 karolherbst: imirkin_: what should change?
22:08 imirkin_: karolherbst: nothing
22:08 imirkin_: karolherbst: if something changes, you did something wrong :)
22:08 karolherbst: so what's the point of printing? or do you mean to check for errors
22:08 karolherbst: ahhh
22:08 karolherbst: I see
22:08 njsg: I had to force 800x600 to get something usable, and it'd be good to know which mode was being used
22:09 imirkin_: on the console? fbset -i or something like that...
22:09 imirkin_: or perhaps fbset -s
22:09 imirkin_: the fbdev video mode info should also be printed in dmesg - search for nouveaufb
22:10 imirkin_: or nouveaudrmfb
22:10 imirkin_: it recently got changed
22:12 njsg: it does say 1024x768, I guess it must have been the interlaced one
22:14 imirkin_: forcing 800x600 should work ... iirc just do video=800x600 should be enough
22:15 njsg: I did video=VGA-1:800x600
22:16 karolherbst: imirkin_: everything seems fine. The only difference seems to be the inserted spills
22:16 imirkin_: njsg: yeah that should work
22:16 imirkin_: karolherbst: cool
22:16 karolherbst: I really on't like this "fix" though :D feels to much of a dirty workaround
22:17 karolherbst: but well.. it fixes the crash
22:18 karolherbst: I am now actually surprised that this crash doesn't happen more often with how many of those references there are :(
22:18 karolherbst: but maybe it's fine
22:18 karolherbst: dunno
22:43 njsg: Ah, and xrandr --verbose with nouveau: http://dpaste.com/3T8ZMK4.txt
22:43 imirkin_: ok, so that 1024x768ihas a big problem
22:43 imirkin_: clock 86.96Hz
22:43 imirkin_: something forgot to divide by 2
22:44 imirkin_: mind pastebin xorg log?
22:44 imirkin_: want to see if it's some dumb xrandr thing, or if it's for realz
22:48 imirkin_: njsg: --^
22:51 njsg: I'll pastebin in a moment
22:55 njsg: imirkin_: http://dpaste.com/2PXSBD2.txt Xorg log for nouveau
22:55 njsg: it seems to have 43.5Hz for that mode at least in some lines?
22:56 imirkin_: yeah, looks like just an xrandr artifact
22:56 imirkin_: i'll look into that
22:56 imirkin_: could you boot with drm.debug=0x1e
22:56 imirkin_: that should dump a lot of info into dmesg about modes,e tc
22:57 njsg: if it's an xrandr artifact, and I'm changing modes with xrandr, would it use the incorrect value?
22:57 imirkin_: dunno
22:57 imirkin_: that's why i want you to boot with drm.debug=0x1e
22:58 imirkin_: Output VGA-1: Strange aspect ratio (1/257), consider adding a quirk
22:58 imirkin_: wonder what that is
22:58 imirkin_: never seen that before
22:59 njsg: Actually, I saw one or two of these messages before, not four, so these ones seemed to be triggered by a specific event, let me see if I can figure what was it.
23:00 njsg: hm, no, I'm probably mistaken and I was just looking at the Xorg log.
23:03 njsg: There is still something that was triggered after X started, see http://dpaste.com/275FPXG.txt
23:05 njsg: imirkin_: I'll give the debug option a try
23:11 njsg: (is the x0.0 normal/expected, btw?)
23:11 imirkin_: dunno, but i definitely see it a lot
23:13 imirkin_: njsg: btw, i bet this monitor can do 1152x864
23:13 njsg: I should try to get the manual, I really have no idea what the specs are.
23:14 imirkin_: btw, this is what edid-decode parses the edid as:
23:14 imirkin_: https://hastebin.com/udilupufav.pl
23:14 imirkin_: noet the 1280x768i resolution. weird. and i think its vertical refresh is also not-divided...
23:15 imirkin_: interlaced modes aren't too common :)
23:15 imirkin_: and that's where the 1/257 stuff is coming from - check out those "detailed" modes
23:16 njsg: I see this has the same quirk message. Different display brand (Nokia, it seems), but at least some modes are the same (including 1024x768i): https://www.centos.org/forums/viewtopic.php?t=50927
23:16 imirkin_: yeah
23:17 imirkin_: feels like edid-decode may have a buggy mode list, since that 1280x768i seems VERY weird
23:18 imirkin_: https://git.linuxtv.org/edid-decode.git/tree/edid-decode.c#n539
23:18 imirkin_: yeah, no way that's right
23:18 imirkin_: probably a typo
23:18 imirkin_: should check with ville...
23:19 njsg: I thought you meant 1024, but no, it really says 1280
23:19 imirkin_: :)
23:19 imirkin_: the 87 may be right though
23:20 imirkin_: and it could be the 43.5 that was wrong :)
23:20 imirkin_: yeah, according to wikipedia it's 1024×768 @ 87 Hz, interlaced (1024×768i)
23:22 njsg: That would be 87 fields per second, right?
23:22 imirkin_: yes
23:22 imirkin_: aggregate of 43.5
23:34 karolherbst: imirkin_: sent the patch out
23:34 karolherbst: I hope the libasan report is a bit helpful
23:40 njsg: The manual (at least I think it is this one): https://www.manualslib.com/manual/145641/Samsung-Syncmaster-3.html?page=15#manual
23:42 imirkin_: njsg: yeah, i'm sure that's right
23:42 imirkin_: it's a standard mode
23:42 imirkin_: # 1024x768i @ 43Hz (industry standard) hsync: 35.5kHz
23:42 imirkin_: ModeLine "1024x768" 44.9 1024 1032 1208 1264 768 768 776 817 +hsync +vsync Interlace
23:42 imirkin_: from xorg's "vesamodes" file
23:43 imirkin_: so i guess it's the xorg convention to list the "effective" refresh rate
23:58 njsg: imirkin_: what should I grep the kernel log for, "drm:"?
23:58 imirkin_: just pastebin the whole thing
23:58 imirkin_: it'll be easier that way
23:59 imirkin_: make sure you include switching to the 1024x768i mode