03:20 imirkin: Subv: precisely.
04:09 sigod: karolherbst, any progress on nve06?
04:10 sigod: nve6 i mean
05:09 karolherbst: sigod: not really
05:10 karolherbst: I tried to look into it, but..
05:10 karolherbst: it is hard to be pretty sure the issue I encounter is indeed caused by the firmware
15:19 stsquad: can anyone point me to where the fifo errors are printed in the kernel?
15:19 stsquad: e.g.: fifo: read fault at 0001080000 engine 1b [CE2] client 18 [GR_CE] reason 02 [PTE] on channel 2 [003fbfa000 Xorg[24668]]
15:26 BootI386: stsquad: https://github.com/skeggsb/nouveau/searchq=fault+at+engine+client
15:27 BootI386: (BootI386) stsquad: https://github.com/skeggsb/nouveau/search?q=fault+at+engine+client
15:32 stsquad: is the type of fifo being used exposed somewhere? dmesg | gk and dmesg | gf give nothing
15:32 stsquad: s/|/| grep /
15:34 stsquad:guesses gk104
15:39 imirkin_: "type of fifo"?
15:40 imirkin_: oh, you mean how to read the code? it's impossible.
15:40 imirkin_: don't even try.
15:40 imirkin_: in the name of code sharing, it's a giant maze of calls between countless files
15:43 stsquad: imirkin_: well in the first instance I just want to find out if the fault information includes the size of faulting access - in which case I know the problem
15:46 imirkin_: it's the copy engine which is faulting
15:47 imirkin_: the one built into the fifo
15:48 imirkin_: at the start of some page, so ... either a resource isn't mapped or you're going too far
15:51 stsquad: imirkin_: or (in my case) it's doing a wide access on a broken PCI maybe... or at least that's want to prove/disprove
15:51 imirkin_: no
15:52 imirkin_: it's a read fault because the PTE isn't there
15:52 imirkin_: if it were a broken PCI, it'd be a bus error
15:52 imirkin_: (well, there's various levels of broken pci... but if it's just a dma access failing, it'd be reported as such)
15:53 stsquad: imirkin_: ahh ok - is this a PTE in the card or system PTE?
15:53 imirkin_: in the gpu
15:53 imirkin_: the gpu has a vm, which allows you to, among other things, point VA at vram or sysmem
15:53 imirkin_: now, the fifo is generally a cpu-side buffer, so if the dma's were getting messed up, that would mean all kinds of bs commands are going through
15:54 imirkin_: you can force it to live in vram, with nouveau.vram_pushbuf=1 iirc
15:54 imirkin_: but if dma is messed up, it could just as easily get messed up on upload into that vram area :)
15:54 imirkin_: moral of the story: dma is important.
15:56 stsquad: imirkin_: well I can try see if that changes things. The other option would be some sort of missing barrier but that would depend on something being setup on one core and assumed to be ready by a second core.
15:56 imirkin_: it's a gpu side error ...
15:57 imirkin_: the gpu reports that it received some commands to operate the copy engine. it did that. the copy engine tried to access some memory that was not mapped (for read) in the gpu vm. so you got the error.
15:57 imirkin_: note that i've seen these things happen for seemingly unexplained reasons
15:57 imirkin_: when are you seeing it?
15:59 stsquad: imirkin_: mpv -vo=opengl or even browsing in firefox. I have successfully played a whole movie with mpv -vo=xv
15:59 imirkin_: and are you on a funny setup?
15:59 imirkin_: are you one of the arm pcie gpu guys?
15:59 stsquad: imirkin_: arm64 with a broken pcie
15:59 imirkin_: right.
16:00 imirkin_: welll ... doing GL things is generally a good way to get failures with nouveau
16:00 imirkin_: things like firefox and mpv tend to trigger them
16:00 stsquad: imirkin_: I have a hack that in theory keeps everything 32 bit wide - but I'm trying to confirm
16:00 imirkin_: so i don't think you're seeing anything unexpected
16:01 stsquad: imirkin_: fair enough - if it's just general driver flakiness then there isn't much I can do
16:01 imirkin_: esp if you combine it with things like kde or gnome
16:01 stsquad: Gentoo/xorg-1.20/i3
16:02 stsquad: 4.17 kernel
16:03 imirkin_: that helps :)
16:06 stsquad: well it was really unstable on 1.19 but the latest xorg at least meant I could get past the greeter/login
16:06 stsquad: of course falling back to the proprietary driver isn't an option for us ;-)
16:06 imirkin_: hmmmm surprising
16:07 imirkin_: actually 1.20 is where people have had issues
16:07 imirkin_: are you using xf86-video-nouveau?
16:07 imirkin_: or are you trying modesetting?
16:07 orbea: only xf86-video-nouveau and DRI2 work or me after xorg-server 1.20 here
16:08 orbea: I've still been meaning to bisect it...
16:08 imirkin_: orbea: meaning what -- that modesetting doesn't work, or meaning that DRI3 doesn't work?
16:08 orbea: modesetting just gets stuck with any GL
16:08 orbea: and forces DRI3
16:09 orbea: the master is a little better, only gets stuck if I use compton
16:09 stsquad: imirkin_: well I have x11-drivers/xf86-video-nouveau-1.0.15-r1 installed but I think we have to use modesetting to get a console when booting up
16:09 imirkin_: stsquad: xorg, confusingly, ships a driver called "modesetting"
16:09 imirkin_: which uses GL to provide X acceleration
16:10 orbea: DRI3 + the nouveau ddx always seems to have been flakey here, but it seems worse last time I tried...
16:10 imirkin_: this has no connection to kernel modesetting
16:10 imirkin_: except for the fact that it uses kernel modesetting.
16:11 stsquad: imirkin_: AFAICT from Xorg.0.log it loads both drivers
16:11 imirkin_: erm
16:11 imirkin_: pastebin?
16:11 stsquad: one sec, let me join from that machine
16:13 orbea: imirkin_: the nouveau ddx + DRI2 seems very stable at least, just slightly sluggish after using modesetting for a while :P
16:13 imirkin_: orbea: it's sluggish? should be faster...
16:13 orbea: taht might be DRI3?
16:13 orbea: that made it feel faster
16:14 stsquad: stsquad_on_arm64: poke
16:15 stsquad: hmm can't talk for some reason
16:15 imirkin_: registered
16:16 imirkin_: we get annoying spammers (is there any other kind)
16:16 imirkin_: who spam annoyingly with their spam
16:16 orbea: pm the log to the registerd user? :P
16:16 imirkin_: well, the pastebin url hopefully :)
16:17 stsquad_on_arm: tries again
16:17 stsquad_on_arm: http://ix.io/1cvf
16:17 imirkin_: arm64_but_with_a_32bit_pci_bus
16:17 stsquad_on_arm: imirkin_: ^
16:18 imirkin_: ok yeah, it's all happy - loaded nouveau and everything
16:18 stsquad_dodgyarm: who knew there was a nick length limit...
16:18 imirkin_: probably the spammers :)
16:19 imirkin_: otherwise you end up with a 1MB nick...
16:20 imirkin_: anyways, by the sounds of it, the 32-bit limit has helped. i thought you had trouble mapping BAR's in the first place...
17:12 stsquad:leaves glxgears running as a soak test
17:13 imirkin_: use glxspheres - it's much heavier
17:13 imirkin_: although not so much on pci traffic i guess?
18:24 stsquad: imirkin_: hmm not part of mesa-progs?
18:25 karolherbst: stsquad: virtualgl
18:26 stsquad:unmasks and builds
18:43 stsquad: 59FPS, 74 Mixels/sec
18:44 imirkin_: vblank_mode=0
18:44 imirkin_: otherwise it syncs to vblank
18:44 stsquad: imirkin_: kernel param or application param?
18:44 imirkin_: env var
18:44 imirkin_: i.e. vblank_mode=0 glxspheres
18:45 stsquad: 206FPS, 255 Mpixels/sec
18:52 stsquad: so I guess I just need to figure out how to stop firefox hanging my system
18:52 imirkin_: try chrome :)
18:52 imirkin_: or disable the gpu accel bs in firefox
18:52 karolherbst: imirkin_: is that the same issue we have with plasma?
18:52 imirkin_: no clue
18:53 karolherbst: anyway, I want to fix that issue now
18:53 karolherbst: because it is getting rather annoying
18:53 imirkin_: :)
18:53 imirkin_: so fyi, the way i've tracked these things down before is to find an apitrace to repro with
18:53 karolherbst: on the 660 I can trigger that issue with plasma + 2x glxspheres and I am not sure if this is context switching or that or both
18:54 karolherbst: or maybe it is the same issue all along...
18:54 karolherbst: who knows
18:54 karolherbst: maybe our firmware is just super slow compared to nvidias and triggers those issues faster
18:54 imirkin_: dunno
18:54 karolherbst: yeah, me neither
18:54 imirkin_: i've generally stayed away from such issues
18:54 karolherbst: anyway, fixing one issue is a good starting point anyway
18:55 imirkin_: which isn't a great approach, but ...
18:55 karolherbst: ;)
18:55 karolherbst: personal health is also quite important :p
18:55 karolherbst: anyway, I can trigger a issue quite fast on my machine, so this should be a good starting point if you can tell with 90%+ confidence you improved the situation
18:56 imirkin_: the last "hard" issue i debugged was the program code segment switch thing which triggered with dirt rally + bindless.
18:56 stsquad: imirkin_: is the apitrace a tool for tracing gl requests? part of the nouveau tools or a general purpose one?
18:56 imirkin_: stsquad: general purpos
18:57 imirkin_: it intercepts all GL calls and knows how to record appropriate data for later replay
18:57 karolherbst: imirkin_: ohh, btw, did you keep track on what we are missing for 4.4 CTS?
18:57 imirkin_: no
18:57 imirkin_: i thought you were doing that
18:57 karolherbst: it is basically just 3d images, no?
18:57 imirkin_: for fermi/kepler, 3d images is the big-ticket feature
18:57 karolherbst: well yeah, but I didn't checked much the last months
18:57 imirkin_: i'm sure there's little stuff
18:57 imirkin_: for maxwell, 3d images should be fine
18:57 imirkin_: there are some issues with how i did bindless though
18:57 karolherbst: the last run on kepler2 for 4.5 was "Failed: 8/7445 (0.1%)"
18:58 karolherbst: I think I will work on that as well, when I have some time left
18:58 karolherbst: maybe even focusing on 4.4 only for now and see how much work would be 4.5 on top of that
18:58 karolherbst: when I get 4.4 to pass
22:19 Subv: what would be a good task for someone new who wants to contribute to nouveau? (i've never used nouveau before but i'd like to help)
22:26 karolherbst: Subv: something on the compiler is always nice
22:26 karolherbst: because you aren't invovled in most of the headaches
22:26 karolherbst: or a bug you encounter
22:27 gnarface: i have a specific request if you're really bored Subv, but most people here have already given up on it
22:27 imirkin_: "make it work"
22:27 karolherbst: gnarface: what request?
22:27 gnarface: well, yes but something *specific*
22:28 gnarface: karolherbst: https://bugs.freedesktop.org/show_bug.cgi?id=82835
22:29 Subv: debugging hangs is way out of my league for now, sorry
22:29 karolherbst: mhhh, I have 8800 GTS cars, but those are g80
22:29 karolherbst: *cards
22:30 karolherbst: Subv: well, fix bugs you encounter or are annoying to you
22:30 karolherbst: usually the best way to get started
22:30 imirkin_: gnarface: ha ha ha ha yeah
22:30 gnarface: (the one about G92 hanging on h264 decoding is clutch. getting same cards to reclock properly would be effectively full functionality for me)
22:30 imirkin_: mwk: if you ever happen to have any ideas about that btw... -^
22:31 karolherbst: ohh right, speaking about reclocking, I should finally get the patches ready ... but I really don't know what to do with them, because they are fine (tm)
22:31 gnarface: i received two anonymous tips about the video decoding thing actually but i was unable to do anything with the information
22:31 karolherbst: tips as in workarounds or as in important information?
22:32 gnarface: hints towards a fix
22:33 Subv: karolherbst: the thing is, i don't use linux as a daily driver and only have an 860m card on my laptop, i was wondering if there were specific bugs/improvements/unimplemented things i could try my hand at to familiarize myself with the nouveau code
22:34 gnarface: not an actual literal fix, but more like a description of what the hardware is probably waiting on when it appears to freeze, and also a tip that the firmware not needing to match the driver version is wrong as per the freedesktop.org page
22:35 gnarface: but also that even they haven't tested it since the legacy driver that supported this device so...
22:35 gnarface: ... mmiotraces of the firmware version freedesktop.org uses on any driver recent enough to recognize it as valid firmware will probably yield bupkus
22:36 gnarface: (which, as i've been told here is the case)
22:40 gnarface: i reached a catch-22 on this at the point that my test case was the Steam client for Linux which refused to acknowledge the legacy driver
22:40 gnarface: (otherwise this may all have worked out of the box)
22:45 HdkR: Subv: If you get a Maxwell card then it can serve two purposes for you ;)
22:46 Subv: isn't that a GM107 card though
22:46 imirkin_: gnarface: the firmware differences are the encryption keys, which are necessary to decrypt encrypted video streams
22:47 imirkin_: i'm 99.999% sure that other than those few bytes, the uploaded firmware is the same
22:47 HdkR: Subv: 860M? Depends on which one you've got. There are two cards under that name, Kepler and Maxwell
22:47 gnarface: imirkin_: from my recollection, they were themselves less sure of that
22:47 gnarface: imirkin_: it kindof seemed like they didn't know, like they hadn't even looked at it
22:48 imirkin_: ok
22:51 Subv: oh interesting, any way to check?
22:51 HdkR: lspci
22:51 HdkR: Should say
22:54 Subv: 640 cuda cores, i think this one's the maxwell version
22:54 HdkR: That it would be
22:55 HdkR: Fantastic. Optimize Dolphin's shaders in Nouveau :P
22:56 karolherbst: yeah, improving shader optimizations are always helpful
22:56 karolherbst: still have some pending stuff
22:58 karolherbst: https://github.com/karolherbst/mesa/commits/nvir_opt_shladd_const
22:58 karolherbst: that would be nice to get cleanedup :)
22:59 karolherbst: HdkR: I could imagine that an iadd3 might benefit dolphin?
22:59 karolherbst: or is dolphin float only?
23:00 HdkR: karolherbst: Dolphin is heavily integer based in the fragment shaders
23:00 karolherbst: ahh
23:00 karolherbst: so iadd3 may help indeed
23:00 HdkR: Not sure how often iadd3 might help
23:00 HdkR: imad optimizations would definitely help though :)
23:01 karolherbst: well, we have that already :p
23:01 karolherbst: but none iadd3 support
23:01 HdkR: combining mul and add = optimization?
23:02 karolherbst: yeah, why not?
23:02 HdkR: Oh yea, first good step
23:03 HdkR: :D
23:03 karolherbst: you have to start somewhere :p
23:03 HdkR: Sprinkle in some xmad for me :)
23:03 karolherbst: but iadd3 is kind of magic on nv hardware
23:03 karolherbst: because you can use that for c = add neg a neg b as well
23:04 karolherbst: normally you would end up with a neg + add instruction
23:04 karolherbst: but
23:04 karolherbst: iadd3 can take two neg modifiers
23:04 karolherbst: add only one
23:04 karolherbst: and other fun stuff
23:05 HdkR: Nice
23:05 karolherbst: well
23:05 karolherbst: you could just make iadd3 and add identical in the first place and only have a special case when having 3 operands really
23:05 karolherbst: ...
23:05 karolherbst: but well
23:06 karolherbst: I guess add is a bit faster than iadd3
23:06 karolherbst: but neg+add slower than iadd3?
23:06 karolherbst: dunno
23:06 pendingchaos: imirkin_: the low bit of the high word of a bindless handle is 1 in nouveau? why?
23:06 imirkin_: coz 0 = error :)
23:06 imirkin_: i probably could have fought it, but it wasn't worth it
23:07 imirkin_: but basically handle == 0 means "allocation error"
23:07 karolherbst: imirkin_: this patch looks ready to be merged though, no? https://github.com/karolherbst/mesa/commit/a12472f107209000ac013c2f23423ca272d129c4
23:07 karolherbst: should probably run piglit, but...
23:09 imirkin_: karolherbst: probably fine... you can't use a short immediate btw?
23:09 karolherbst: I can: https://github.com/karolherbst/mesa/commit/56d13872868547c90cd0412b732ecb693cdfdbcc
23:09 karolherbst: but check the patch ;)
23:09 imirkin_: karolherbst: i.e. shladd a << b + shortimm
23:09 imirkin_: well, based on your code, no
23:09 karolherbst: the benefit is huge
23:09 karolherbst: nah, the other patch
23:09 imirkin_: oh i see.
23:09 karolherbst: yeah...
23:10 karolherbst: codegen lacks some interfaces to really check for that
23:10 karolherbst: because we can only check for current instruction + load
23:10 imirkin_: target has some stuff
23:10 imirkin_: insnCanLoad and whatnot
23:10 karolherbst: not take that combination and tell me it works
23:10 imirkin_: kinda sorta though
23:10 karolherbst: yeah, doesn't work here
23:10 karolherbst: because we have no iadd3 instruction
23:10 karolherbst: not yet
23:10 imirkin_: what's iadd3 got to do with it?
23:11 karolherbst: because insnCanLoad can only check the given instruction + a load
23:11 imirkin_: right...
23:11 imirkin_: right.
23:11 karolherbst: exactly
23:11 imirkin_: it'd be inconveneitn
23:11 imirkin_: but doable
23:11 karolherbst: right
23:11 karolherbst: that's what I meant with lacking an interface
23:11 karolherbst: we really want to do something like: op + srcs and ask the target if this works out
23:12 karolherbst: uhm + defs
23:14 karolherbst: uhm
23:14 karolherbst: ohh wait, right, this was iscadd instead of iadd3
23:14 karolherbst: but with iadd3 I have the same issue in another patch
23:14 imirkin_: :)
23:15 karolherbst: I think with that iscadd + iadd3 patches I got to - 0.5% instructions, so it might be worth to look into that
23:16 karolherbst: huh, https://github.com/karolherbst/mesa/commit/e94edbb4b4f8bfb94db2b9891d69d8a24d1c373c
23:16 karolherbst: this aptch though
23:16 karolherbst: *patch
23:17 karolherbst: I really should take a loot at all my branches and finish the more trivial things
23:18 karolherbst: https://github.com/karolherbst/mesa/commit/65387c57110882e9c82033504b96b1f9d6319e0e ..
23:20 imirkin_: karolherbst: put a branch together
23:20 imirkin_: for me to review
23:20 karolherbst: well
23:20 karolherbst: the thing is
23:20 karolherbst: I never know which patch is correct and which not
23:21 pendingchaos: imirkin_: so for nve4 images you're suggesting https://hastebin.com/geketehaze.txt?
23:21 karolherbst: I just need time to check each patch and run piglit
23:21 karolherbst: and check the games affected
23:21 imirkin_: pendingchaos: yes, something like that
23:21 imirkin_: pendingchaos: hopefully the assumption holds!
23:21 imirkin_: it might not, but if not, things can be laid out differently. i think they're both %64 though.
23:22 pendingchaos: NVC0_CB_AUX_MP_INFO is in the way
23:22 imirkin_: no reason not to make both tables adjacent, i imagine
23:22 imirkin_: the order of things in there is largely historical
23:26 pendingchaos: I think I can do that, it would be nice if someone with a kepler card could test it though
23:26 pendingchaos: as for the NVIDIA thing for the piglit tests, I'm pretty sure the tests are correct and that any failure on the blob would be it's bug, though I think I'll run them on it anyway tomorrow
23:27 pendingchaos: in case one of the tests isn't correct
23:29 imirkin_: pendingchaos: well esp with images, there's a lot of funny business with types
23:29 imirkin_: like ... you can't just have "image2D foo", i don't think
23:29 imirkin_: you have to do "writeonly image2D foo"
23:29 imirkin_: or "layout (rgba8) image2D foo"
23:30 imirkin_: etc
23:30 imirkin_: just coz it's bindless doesn't absolve you of the format/etc requirements
23:31 imirkin_: so i'm surprised that your foo() worked without complaining that it wasn't marked writeonly
23:32 pendingchaos: yeah, it probably should be marked as writeonly
23:34 imirkin_: normally there's logic in the glsl compiler which validates this stuff
23:34 imirkin_: but i guess it wasn't being triggered
23:34 imirkin_: this whole bindless thing is, unfortunately, a pit of infinite sadness
23:34 pendingchaos: loadSuInfo32() seems to wrap bindless
23:35 imirkin_: and all the effort is largely for naught -- there are no conformance tests, and nobody uses it like this
23:35 pendingchaos: handles around 512
23:35 imirkin_: heh
23:35 imirkin_: someone was being careful!
23:35 pendingchaos: we would probably have to do something about that for the suInfoBase - bindlessBase hack
23:36 imirkin_: i guess :(
23:36 imirkin_: how about...
23:36 imirkin_: we just combine them into the same table
23:36 imirkin_: which we size at 512
23:36 imirkin_: and move on with life
23:36 imirkin_: the first 8 slots are "bound"
23:37 pendingchaos: sounds good
23:38 imirkin_: just have to be careful not to allocate more than 504 handles. seems like that should be easy.
23:38 HdkR: Doesn't EXT_shader_image_load_formatted make it so you don't need a layout qualifier on read?
23:38 imirkin_: it does
23:39 imirkin_: but that's (a) not supported in mesa right now and (b) not enabled in the shaders in question
23:39 HdkR: ah
23:39 HdkR: One or the other should be fixed then :P