00:07 imirkin: on boot:
00:07 imirkin: [ 38.358531] nouveau 0000:01:00.0: disp: outp 00:0006:0344: training (min: 1 x 270 MB/s)
00:07 imirkin: on resume:
00:07 imirkin: [ 72.344911] nouveau 0000:01:00.0: disp: outp 00:0006:0344: training (min: 4 x 540 MB/s)
00:08 imirkin: that's not going to go so well ... that's DP 1.2, not supported by your GPU
00:08 imirkin: so, question is, why does it think it needs so much bw, and why does it even consider 540MB/s
00:09 pedahzur: Haven't a clue. :)
00:09 imirkin: on boot: disp: outp 00:0006:0344: data 169155 KB/s link 0 KB/s mst 0->0
00:10 imirkin: on resume: disp: outp 00:0006:0344: data 281925 KB/s link 0 KB/s mst 0->
00:10 pedahzur: Note that log includes resuming twice.
00:10 imirkin: oh. right. the "on boot" is actually "on first resume"
00:11 pedahzur: So the black screen results from an invalid DP version read?
00:12 imirkin: well, it's the result of unsuccessful DP link training
00:12 pedahzur: ah
00:12 imirkin: which is a pre-requisite for DP things working
00:28 pedahzur: Does does it need to retry? Or have a "special case" for that card that says "No! It's not DP 1.2...don't believe it!" :)
00:29 pedahzur: Is there anything I can run at the command line to retry the train/init?
00:49 skeggsb: there's two bugs here
00:50 skeggsb: in the failing case, we're trying to use 30bpc (nfi why, haven't looked at that yet), and there's not enough DP bandwidth for that
00:50 skeggsb: that's the core issue
00:51 skeggsb: secondary bug where we pick an insane rate to train at (also don't know why yet)
00:51 skeggsb: the second issue only happens because of the first one, so, that should be the focus :P
00:51 pedahzur: logging off for the day. If there is something you would like me to try, please reply to the mailing list thread.
00:54 skeggsb: i'm not sure i'll be able to properly look more until tomorrow at least anyway, perhaps imirkin will see what causes the first issue before i get there
01:07 imirkin: unlikely that i ever will :)
01:08 imirkin: maybe some read returning 0xffffffff or something?
01:32 skeggsb: fixed the second issue while i was eating lunch.. but won't help the actual bug
01:34 imirkin: heh
01:34 imirkin: lol
01:34 imirkin: that's a good one
01:34 skeggsb: amazing
01:34 imirkin: apparently units matter, huh
01:35 imirkin: index into array != value in array... who knew
01:35 skeggsb: best guess on the other is that connector->display_info.bpc is "0" on resume, and our default is 10bpc in that case
01:35 skeggsb: and we also don't bother to validate bw when selecting that value..
01:35 imirkin: oh yeah, that seems reasonable
01:36 imirkin: although it should be able to do the higher bw with 2x240MB/s
01:36 imirkin: er, 2x270
01:36 skeggsb: no, the sink only has 1 lane
01:36 imirkin: o
01:36 imirkin: is 324MB/s DP1.2?
01:37 skeggsb: no, but either end of a DP connection is allowed to support 1/2/4 lanes
01:37 imirkin: oh, 324MB/s = 162x2, nevermind
01:38 imirkin: so that would mean that we try to link train before edid becomes available?
01:39 skeggsb: i'm not too sure how that happens, we don't train the link until modeset, and presumably we have edid at that point
01:41 imirkin: but maybe the decision is done before?
02:04 imirkin: cosurgi: did you get a chance to try out that patch?
11:55 tretinha: hello! i have a GeForce 920MX, running arch linux with nouveau drivers
11:56 tretinha: i'd like to record with obs but i have NVENC problems
11:56 tretinha: do any of you know any solution to this?
11:57 tretinha: kernel; 5.4.10-arch1-1
11:58 tretinha: i have installed "libva-mesa-driver" and "mesa-vdpau" from arch linux with not lucky
11:58 tretinha: no*
12:24 karolherbst: tretinha: we don't support video encoding
12:24 tretinha: there's no way around it?
14:10 joepublic: sure there is, but it would take many coders and much time
14:14 karolherbst: imirkin: before digging too much into it, but I think the crash in RA I tried to fix is essentially caused by this line: https://cgit.freedesktop.org/mesa/mesa/tree/src/gallium/drivers/nouveau/codegen/nv50_ir_ra.cpp#n963
14:14 karolherbst: does that make sense to you as well?
14:16 imirkin: sure, "caused"
14:17 imirkin: it's like a core part of the algorithm though, so not easily removed
14:17 karolherbst: yeah... but I had this idea to save it somewhere else and do the actual step later
14:17 karolherbst: but... that sounds a bit messy to do for this one
14:18 karolherbst: but maybe I figure something out...
14:18 karolherbst: just.. it feels messy
16:01 karolherbst: uff, actually, it wasn't that bad
16:02 karolherbst: might even send a patch out tomorrow
16:09 karolherbst: imirkin: something like that in less ugly? https://github.com/karolherbst/mesa/commit/3e9c41238b08a45d74e81153d19d945d778decab
16:10 imirkin_: heh. map on Value * ... what could possibly go wrong
16:10 imirkin_: would it make sense to index it by RIG node id?
16:14 karolherbst: maybe
16:14 karolherbst: I also have to handle removed Values/nodes
16:15 imirkin_: uff
16:15 imirkin_: the whole Value removing stuff is dodgy
16:15 imirkin_: you really don't want to *delete* them
16:20 karolherbst: well, it happens when you delete instructions
16:21 karolherbst: which we do when we spill
16:26 imirkin_: right
16:27 karolherbst: sometimes I am thinking about moving to ralloc and only mark objects as dead so we can assert on that.. but that would also require quite some time and we already have some polled allocation stuff going on actually
16:27 karolherbst: it's just not hierarchical
16:28 imirkin_: yes, values are alloc'd out of a pool
16:28 imirkin_: calim was trying to avoid doing too much c++ stuff
16:28 imirkin_: since mesa was fairly anti-c++ at the time
16:28 imirkin_: that's why there are all these semi-stl things
16:28 karolherbst: he could have defined new container types with custom allocators.. would be less painful I think
16:29 imirkin_: was trying to avoid templates and whatnot
16:29 karolherbst: like using basic_list to have a pooledList
16:29 karolherbst: but yeah..
16:29 imirkin_: i went rogue with the tr1 unordered_map stuff :)
16:29 karolherbst: well
16:29 karolherbst: now we require c++14 anyway
16:30 imirkin_: right
16:30 imirkin_: like i said - different time.
16:30 karolherbst: we could clean up so much stuff.. maybe I even go ahead and do it
16:32 karolherbst: anyway, I will think about the RA fix a bit, but I think the current approach goes into the right direction.. just need to make it look nicier and handle those weirdo corner cases
17:53 pqatsi: Hello!
17:53 pqatsi: karolherbst: Do you mind build kernel-headers package into https://copr.fedorainfracloud.org/coprs/karolherbst/Nouveau_Testing/ too?
17:53 karolherbst: why?
17:53 karolherbst: the headers would be the same
17:54 karolherbst: or... wait...
17:54 karolherbst: they wouldn't
17:54 karolherbst: uff
17:54 pqatsi: karolherbst: I'm using you kernel since we found a patch you did stoped a nouveau crash on my machine, so I dont use upstream kernel anymore. But now Ill being forced to build a module outside mainline kernel
17:54 pqatsi: And fedora version mismatches yours
17:55 pqatsi: "Package kernel-headers-5.4.7-200.fc31.x86_64 is already installed." :(
17:55 karolherbst: ohh wait
17:55 karolherbst: the repo contains the kernel-headers
17:55 karolherbst: you might just need to upgrade
17:55 pqatsi: karolherbst: isnt here https://copr.fedorainfracloud.org/coprs/karolherbst/Nouveau_Testing/build/1144524/ and dnf does not found too
17:56 karolherbst: mhh, interesting
17:56 karolherbst: pqatsi: actually, I think you hit a different error
17:56 karolherbst: you need kernel-devel
17:56 karolherbst: kernel-headers are just the UAPI
17:57 pqatsi: https://paste.centos.org/view/dc3633c7#rpMjwavO2B2wxbShSKunJYNCrU2lBlQ0
17:58 karolherbst: I don't have issues building out of tree modules, so I would have noticed if something would be missing
17:59 pqatsi: karolherbst: hmmm, What i'm facing is this: https://paste.centos.org/view/54610f7f
17:59 karolherbst: # ls /usr/src/kernels/: 5.4.10-9001.fc31.x86_64 5.4.7-9001.fc31.x86_64 5.4.8-200.fc31.x86_64 here
17:59 karolherbst: pqatsi: do you have kernel-devel installed?
18:00 karolherbst: or just do "dnf install /usr/src/kernels/5.4.10-9001.fc31.x86_64"
18:00 pqatsi: [root@manauara rts5139]# rpm -qi kernel-devel-`uname -r` | grep ^Version
18:00 pqatsi: Version : 5.4.10
18:00 karolherbst: use the dnf install command
18:00 karolherbst: that should help
18:01 pqatsi: karolherbst: "dnf install /usr/src/kernels/5.4.10-9001.fc31.x86_64" says its already installed
18:01 karolherbst: heh
18:01 karolherbst: check "ls /usr/src/kernels/" then
18:01 karolherbst: ohhh wait
18:01 karolherbst: Documentation/Kconfig doesn't exist for real
18:02 karolherbst: but..
18:02 karolherbst: the same thing with the fedora kernel
18:02 pqatsi: karolherbst: Hmmm, Ill check a way to just remove from module Im trying to build
18:03 karolherbst: the file does exist in the kernel tree though
18:03 karolherbst: maybe that could be considered a fedora bug?
18:04 pqatsi: hmmm :(
18:04 karolherbst: ohh
18:04 karolherbst: with_doc in the spec file
18:04 karolherbst: uff
18:05 pqatsi: karolherbst: Also https://bugzilla.redhat.com/show_bug.cgi?id=1478726
18:05 karolherbst: mhh, I could enable it.. let me see how to do that
18:06 pqatsi: karolherbst: If you dont mind, please. I think as I need to do with NVidia, ill need to do with my realtek card reader too: Changes in kernel at every upgrade :(
18:08 karolherbst: pqatsi: triggered a new build.. might take 10 hours or so
18:09 pqatsi: karolherbst: thank you so much :)
18:10 karolherbst: pqatsi: https://copr.fedorainfracloud.org/coprs/build/1144781
18:10 karolherbst: pqatsi: I think there will be a new kernel-doc package when it's done
18:12 pqatsi: Ok! Ill keep my eyes on the build. Thanks!
18:30 pqatsi: karolherbst: A bit offtopic, but my module is requiring a include contained in kernel-debug package. Do you know how can I include the path of debug symbols in make? (Ref.: https://paste.centos.org/view/f1e1181e)
18:31 karolherbst: pqatsi: it could be that the module simply doesn't compile against a newer kernel...
18:32 pqatsi: Hmmm, fair :(
18:32 karolherbst: ohh.. but that header isn't shipped either
18:32 karolherbst: odd
18:33 karolherbst: pqatsi: I think for this error you could file a bug against fedora
18:35 pqatsi: karolherbst: I'll need think a way to boot with nouveau blacklisted in the fedora kernel, as I think may developers cannot accept a report against non-official kernel.
18:35 karolherbst: boot with nouveau.modeset=0
18:35 pqatsi: karolherbst: Anyways, I found this bug: https://bugzilla.redhat.com/show_bug.cgi?id=1758710
18:38 pqatsi: karolherbst: Maybe this https://bodhi.fedoraproject.org/updates/FEDORA-2019-68d7f68507 patch arent applied to you kernel?
18:38 karolherbst: I use the fedora sources
18:39 pqatsi: weird :/
18:39 karolherbst: yeah
18:50 pqatsi: karolherbst: As pointed in https://patchwork.openembedded.org/patch/155873/, a "cp -R /usr/src/debug/kernel-5.4.fc31/linux-5.4.11-9001.fc31.x86_64/security/selinux/include/ /usr/src/kernels/5.4.10-9001.fc31.x86_64/security/selinux/" worked. This is a upstream bug?
18:52 pqatsi: same goes to "LANG=en_US cp -R /usr/src/debug/kernel-5.4.fc31/linux-5.4.11-9001.fc31.x86_64/tools/include/tools/be_byteshift.h /usr/src/kernels/5.4.10-9001.fc31.x86_64/tools/include/tools/" :(
21:30 imirkin_: Lyude: since you're the resident DP expert ... can you look at the mail thread on nouveau@ subject 'Display broken after resume from suspend' ?
21:30 Lyude: imirkin_: sure thing
21:30 imirkin_: and see if there's (a) anything odd that jumps out at you and (b) any reason for the bpc to be messed up
21:30 Lyude: oh no bpc
21:31 imirkin_: is that like "oh, no bpc"? or "oh no! bpc!"? :)
21:31 Lyude: second :P, I fixed some bpc related stuff recently
21:31 imirkin_: it _seems_ like it gets the bpc wrong on resume
21:32 imirkin_: but unclear how that would happen
21:32 imirkin_: but also haven't read oodles of code
21:32 Lyude: iirc on certain connectors sometimes the bpc can get changed between suspend/resume, although we're supposed to never change the bpc when applying duplicated states (so when we resume, we always keep the exact same bpp we had before suspending with the expectation that if connectors changed userspace will do a modeset to change it)
21:33 pedahzur: Lyude: That's my thread. The latest kernel dump is two resumes. The first one works, the second one fails: laptop is awake, can ssh in, screen back-light on, but black screen.
21:33 cosurgi: imirkin_: I didn't try this patch yet ( https://github.com/skeggsb/nouveau/commit/dd09ebc623e3b3f2ee1ebd9df53bb0754b1dc79b ) . Sorry.
21:33 imirkin_: cosurgi: oh, no worries
21:33 Lyude: pedahzur: what kernel is this btw?
21:33 imirkin_: cosurgi: you're the one with SIBGUS's :)
21:33 pedahzur: Lyude: One sec. I think it's in the top-of-thread e-mail.
21:33 imirkin_: i'm in no rush
21:33 pedahzur: Lyude: Linux joyful 5.3.0-26-generic #28-Ubuntu SMP Wed Dec 18 05:37:46 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
21:34 cosurgi: imirkin_: I will let you know definitely. Yeah, I know ;)) Before I will be starting another round of calculations I will reboot with it.
21:34 pedahzur: Ubuntu 19.10
21:34 cosurgi: imirkin_: I want current calculations to finish first. Will take a couple more days.
21:34 Lyude: ahh, pedahzur - think you could try a newer kernel and see if that fixes your issue?
21:34 imirkin_: cosurgi: sure, whenever
21:35 pedahzur: Lyude: Certainly could. I'm up to date on that box. From where do you want me to pull it?
21:35 Lyude: pedahzur: for ubuntu uhhhh, one sec
21:35 imirkin_: cosurgi: you should start a datacenter at your place
21:35 imirkin_: get some quad-socket boards or something
21:37 Lyude: pedahzur: I -think- this should be what you want, note I don't run ubuntu myself: https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.5-rc6/
21:37 pedahzur: Lyude: I mean, this is a "scratch" system. I could try 20.04...but I'm not even sure that's Alpha yet. :)
21:38 imirkin_: Lyude: are you talking about the thing where you added 8bpc caps?
21:38 Lyude: pedahzur: I don't think you'll get a mainline kernel with 20.04 though
21:38 Lyude: imirkin_: yeah
21:38 imirkin_: that's just a hack that will happen to work out here
21:39 Lyude: imirkin_: yeah, when I've got time i need to implement proper max bpc support
21:39 imirkin_: but the issue here is that connector_info.bpc is wrong
21:39 imirkin_: not the max bpc support.
21:40 Lyude: imirkin_: yes, but-that patch series also moves the bpc into the atomic state so we use that when resuming a state, instead of connector_info.bpc
21:40 imirkin_: (or at least, that's our guess ... coz it starts at 6, and then ends up with the 10 settings)
21:40 imirkin_: aha, ok
21:40 imirkin_: so that should be much better then
21:41 imirkin_: Lyude: this one, right? https://github.com/skeggsb/nouveau/commit/880b2e7ab3a2aacb16ea48d2c92eb11b93cc59ea
21:41 Lyude: imirkin_: bingo
21:41 pedahzur: Lyude: I'll give it a go! :)
21:42 imirkin_: pedahzur: alternatively patch the above into your tree
21:42 imirkin_: yeah, looking at connector->display_info seems quite dodgy
21:42 pedahzur: Yeah, if i can find an image it's already in, then I'm happy with that. :)
21:42 pedahzur: So 880b2e7ab3a2aacb16ea48d2c92eb11b93cc59ea is in 5.5-rc6?
21:43 Lyude: pedahzur: yep
21:43 imirkin_: that commit hash is bogus
21:43 pedahzur: Spiffy.
21:43 Lyude: also ^
21:43 imirkin_: but a proper variant against the linux kernel tree is there, i think
21:43 pedahzur: OK
21:43 imirkin_: https://github.com/skeggsb/linux/commit/ac2d9275f371346922b31a388bbaa6a54f1154a4
21:44 imirkin_: that's an actual commit in the kernel tree.
21:53 cosurgi: imirkin_: the electricity is damn too expensive. I prefer to put most of my servers in the university server room. Where electricity is free ;))
21:54 imirkin_: hehe
21:55 pedahzur: Lyude: Welp...5.5.0-rc6. Same behavior. First resume works, second does not. Do you want more dmesg logs?
21:56 Lyude: pedahzur: yeah, suspend/resume with "drm.debug=0x116 log_buf_len=50M" added to your kernel commandline at boot (remove the quotes)
21:56 Lyude: then get me the dmesg from that
21:58 pedahzur: OK
21:58 imirkin_: oooh, 116, fancy
21:58 imirkin_: everyone has their favorite drm.debug setting :)
21:58 Lyude: imirkin_: hehe
21:59 pedahzur: My favorite debug setting is ALL_THE_THINGS. :)
22:04 pedahzur: Lyude: Only 432K...are you sure we have the right debug settings? :)
22:05 Lyude: pedahzur: yep
22:05 pedahzur: OK, with log len set to 50M, I was expecting more.:)
22:05 Lyude: i just set it to 50M so I never have to ask for a log twice :P
22:05 pedahzur: Gotcha.
22:06 pedahzur: Lyude: Sent to the list.