00:35 coderobe: Hey, occasionally when using DRI_PRIME (modesetting + nouveau) the application hangs forever and after a while locks up the device - requiring a hard reset. DMESG logs this during the event: https://tmp.codero.be/UbiquitousBlackTarsier6.txt - any ideas on how to fix this?
00:36 coderobe: The kworker will continue to hang, and the cpu usage on the threads the program is running on rises to 100%
01:28 Lyude: Is there a reason we actually free and re-request the main nvkm irq in nouveau on suspend/resume instead of just leaving it allocated and letting the kernel handle it?
14:05 karolherbst: mupuf: do you have a GPU with "real" FP64 support?
14:07 mupuf: karolherbst: What gens would be that?
14:07 karolherbst: mhh
14:07 mupuf: I thought all of them had it, albeit a little slow
14:07 karolherbst: no gen really
14:07 mupuf: the titan should have fast FP64
14:07 karolherbst: the GK110 780 Ti doesn't have it, but the Titan
14:07 karolherbst: ...
14:07 karolherbst: ohh, you actually have a titan?
14:08 mupuf: yep
14:08 mupuf: GK110
14:08 karolherbst: ohh right
14:08 karolherbst: nice
14:08 karolherbst: but on those FP64 was like 1/4 of FP32, right?
14:08 mupuf: I paid more import taxes on this than I paid for most other GPUs
14:08 karolherbst: yeah, I remember
14:08 mupuf: well, something like this
14:09 mupuf: why should it matter?
14:09 mupuf: Are you making an instruction scheduler?
14:09 karolherbst: just testing
14:09 karolherbst: I just check general availability
14:09 mupuf: btw, I ran IGT on nouveau last weekend
14:10 karolherbst: I would like to have a collection of GPUs I can work on whenever I want, so I want to keep what you have in consideration as well
14:10 mupuf: https://pastebin.com/raw/99e4uCUr
14:11 karolherbst: nice
14:11 mupuf: I will check again that everything was setup properly and that it was actually using nouveau
14:11 karolherbst: well
14:11 karolherbst: not so nice?
14:11 karolherbst: yeah, it seems a bit odd
14:11 karolherbst: but yeah
14:11 mupuf: well, only ~4 fails are nouveau issues
14:11 karolherbst: good work nethertheless
14:11 karolherbst: yeah, sure
14:11 karolherbst: but 4k skips
14:11 mupuf: the rest is just IGT complaining about the lack of Intel-provided stuff
14:11 karolherbst: ohhh
14:11 karolherbst: mhh
14:12 karolherbst: might want to move those into drm core maybe
14:12 mupuf: at best, we could get 1500 tests
14:12 karolherbst: better than 150 ;)
14:12 mupuf: yep :p
14:12 mupuf: actually, right now, only ~60 are completely free of Intel-isms
14:12 karolherbst: anyway, things start to finally move here so I can jump into real testing as well
14:12 mupuf:wants to check what it looks like on the blob too :D
14:15 coderobe: reposting this from yesterday: occasionally when using DRI_PRIME (modesetting + nouveau) the application hangs forever and after a while locks up the device. The kworker will continue to hang, and the cpu usage on the threads the program is running on rises to 100% - requiring a hard reset. DMESG logs this during the event https://tmp.codero.be/Flu
14:15 coderobe: ffyVioletLeopard1.txt
14:16 coderobe: does anyone have a clue as to what causes this?
14:19 karolherbst: coderobe: nouveau.runpm=0 probably helps
14:19 coderobe: i'm assuming that would disable runtime power management entirely
14:20 karolherbst: yeah
14:20 karolherbst: what kind of device do you have?
14:20 karolherbst: I mean laptop
14:21 coderobe: this is a lenovo y50-70 with a muxless gtx 860m
14:21 coderobe: can i somehow manually manage the power state of the gpu when runpm is disabled?
14:21 coderobe: assuming that fixes the issue
14:21 karolherbst: coderobe: in theory you can do the ACPI calls yourself
14:22 karolherbst: but
14:22 karolherbst: it highly depends on your actual issues
14:22 karolherbst: I want to dig into those bugs anyway, so I kind of want to know what issues we have on what machines
14:23 coderobe: yeah, well i'd like to be able to provide more info but i don't think i can get any more info out of dmesg
14:23 karolherbst: coderobe: I think the main issue is, that _PR3 support (some win8/10+ runpm feature) is causing troubles
14:23 coderobe: also, this issue only occasionally happens
14:24 coderobe: as in, sometimes offloading like this works without issues, and sometimes it renders nothing and then hangs like described above when killed
14:24 karolherbst: an acpi_osi overwrite might also fix the bug
14:24 karolherbst: like acpi_osi='!windows8' or so
14:24 karolherbst: I never looked into that
14:24 karolherbst: and I don't really know what to put there
14:30 coderobe: should i try overriding acpi_osi first?
14:31 karolherbst: you could, but you need to do some investigation on what to put in there
14:42 karolherbst: mupuf: but do we actually support fp64 right now? I always though we just do crappy lowering with crap precision and that's why we had somebody working on getting better fp64 lowering working?
14:52 coderobe: karolherbst: it seems like acpi_usi=!windows8 fixed it - i reproduced the issue before rebooting into the new cmdline and after the reboot i can't manage to reproduce it anymore
14:52 coderobe: acpi_osi*
14:52 karolherbst: yeah, makes sense
14:52 karolherbst: thanks for confirming
14:52 coderobe: this doesn't cripple the powermanagement functionality does it?
14:53 karolherbst: not really
14:53 karolherbst: maybe you save 1W less or something
14:53 coderobe: heh alright
14:53 coderobe: thanks for the help!
14:53 karolherbst: does powertop report the power usage?
14:53 karolherbst: usually if the GPU is off the usage should be somewhere around 5-14W depending on the laptop
14:53 karolherbst: on idle
14:54 karolherbst: and around +7W or more if the GPU is on
14:55 coderobe: how long does it take for the gpu to drop to idle?
14:55 karolherbst: around 5 seconds
14:55 karolherbst: well
14:55 karolherbst: 5 seconds idle means it will be turned off
15:00 coderobe: not quite sure how to get a power report when on AC - the "usage" percentage in powertop drops from 45% to 0% when closing all offloaded applications though
15:07 karolherbst: coderobe: there should be a value in W or J as well
15:07 karolherbst: but if not, then maybe Linux doesn't support reading it out for you
15:08 karolherbst: uhm
15:08 karolherbst: coderobe: actually I doubt it will ever report it when on AC
15:08 karolherbst: because it usually only gets read out from the battery
15:18 coderobe: yeah that's what i thought
15:19 coderobe: i guess i'll notice if my battery empties faster
15:20 coderobe: next time i'm undocked and all
15:25 karolherbst: yeah
16:07 sidu: mama12
17:32 Lyude: Is it possible to test suspending a nouveau GPU (and only test that) without putting the entire machine in S3?
18:09 Lyude: nevermind, figured out a way I can test this without actually stopping the hw watchdog on this machine :)
18:21 Lyude: btw mwk regarding the subdevice init order from yesterday: it seems a lot of stuff runs fini before pci init
18:21 Lyude: so i'd assume something in there is probably getting us interrupts
19:00 Lyude: I guess the bigger question now is whether there was a reason we tore down interrupts before suspend like this
19:23 RSpliet: pmoreau: RE bug 104784, note Max is using Debian. You are permitted to question the age of their kernel
19:31 pmoreau: RSpliet: True, but Karol’s patch for preventing the kernel to lock up when reclocking a suspend card haven’t landed yet, so does’t matter how old his kernel is. :-)
19:34 Lyude: If interrupts are disabled on the MC subdev, I'm assuming that disables them for all of the sub devices
19:36 feaneron: is it usual in nouveau/linux development that patches take so long to land?
19:40 pmoreau: feaneron: They can take some time, yes. Thinking of any patches in particular? Also, it possible to miss some sometimes, and if no one pings about them, they’ll just never land.
19:40 pmoreau: *it’s possible
19:47 feaneron: i'm thinking about karol's patvh that prevents the kernel from freezing
19:49 pmoreau: Somebody that has some knowledge about that stuff (which is very few people, most likely 2) need to find some time to review those patches.
19:49 Lyude: feaneron: could you link to the patch you're referring to?
19:51 pmoreau: Lyude: I think that it’s this series: https://patchwork.freedesktop.org/series/33967/
19:52 Lyude: ah
19:52 pmoreau: Yep, patch 02 is the one that should prevent the kernel to freeze when reclocking a suspended card.
21:15 feaneron: Lyude: what pmoreau said. that patch works wonders for dual gpu laptops.
21:16 feaneron: i'm not sure what's the proper way of "upvoting" this patch series. adding a comment for that is obviously out of question