01:03 seamsverynice: Has anyone even have tried to solve the opengl "MT" aka multithreaded context issues on say more stable kepler or other families of cards under nouveau?
01:05 HdkR: karolherbst has spent some time working on it
01:11 seamsverynice: HdkR: ok that is fairly reasonably good idea to fix that.
01:13 seamsverynice: No further questions for today, generally sniffing in the docs how pushbufs cache can be mapped to communicate with the shaders, or is here someone who knows that offhand?
01:15 seamsverynice: heck i rather try to ask, is it possible to map the same cache or is that a default for memory that of PFIFO and shaders?
01:16 seamsverynice: so same memory/cache for PGRAPH and PFIFO, possible?
01:22 seamsverynice: I am pretty badass technical guy, but I am honest i do not quite parse the docs very well in that regard.
01:32 seamsverynice: on radeon i think one of the CP engines is a copy engine with access to l2 cache, i have not managed to yet understand how nvidia deals with communicating with the shader
01:41 seamsverynice: well maybe the so called PFIFO cache is a so called blockram on chip a tightly coupled memory by arm terms.
01:42 seamsverynice: on ARM this is a memory that can be addressed exactly as main memory but is as fast as blockram SRAM
01:54 seamsverynice: https://envytools.readthedocs.io/en/latest/hw/fifo/nv1-pfifo.html#space-nv1-pfifo-cache1 allright something is going on there
01:59 seamsverynice: this looks about as flexible as possible, so i missed the tlb part before, almost seams that nvidia cards are on the good side for communicating with pfifo from shaders
02:09 seamsverynice: I Myself think that every sane gpu has some type of blit engine also on the fifo, and this ought to be cached and coherent with the shader cache too
02:22 seamsverynice: yeah cheers, seems fine totally.
11:16 rhyskidd: karolherbst: i have this intermittent nouveau boot failure that i'm debugging
11:17 rhyskidd: have you ever seen "state" remaining in the gpu which then differs between a warm and cold reboot?
11:17 rhyskidd: (is with a hybrid nv96 and nvac, the macbookpro 2009)
11:18 rhyskidd: i'm scratching my head at what seems to be a hardware heisenbug ...
11:23 karolherbst: ufff
11:23 karolherbst: Lyude was debugging such an issue on the p50
11:24 rhyskidd: yeh, i'm not excited by this one ...
11:24 karolherbst: rhyskidd: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e0547c81bfcfad01cbbfa93a5e66bb98ab932f80
11:26 karolherbst: I'd try if the quirk works for you
11:26 rhyskidd: huh -- will give it a go
11:26 karolherbst: we only enable it for some p50s though
11:26 karolherbst: so you might want to adjust the checks quite a bit
11:27 rhyskidd: this hardware is so much older though, so i'm not hopeful they are related
11:27 karolherbst: who knows
11:27 karolherbst: it is some firmware mess up
11:27 karolherbst: not gpu
11:27 RSpliet: rhyskidd: IIRC pmoreau has some experience with that hardware too...
11:27 rhyskidd: thanks
11:27 karolherbst: rhyskidd: also, you need to disable the hda quirk somebody added recently to the kernel
11:28 karolherbst: as those two quirks don't play well together
11:28 RSpliet: Is it the NV96 or the NVAC failing?
11:28 karolherbst: I guess it's the dedicated one
11:28 karolherbst: wild guess :p
11:28 RSpliet: (always found that a weird combo of GPUs by the way. The NVAC presumable is the IGP, and the NV96 the dedicated one...)
11:29 rhyskidd: NV96
11:30 RSpliet: hmm ok. I think pmoreau pushed some fixes for the NVAC in such a machine in the past, not sure he did much with the NV96
11:33 rhyskidd: hangs after this: https://paste.fedoraproject.org/paste/73CQVgn5NNQZZV9EzUha1A
11:34 RSpliet: At least the reason is quite understandable :-)
11:35 rhyskidd: i'm after the why :)
11:35 karolherbst: rhyskidd: I am sure the issue is, that the firmware doesn't do a full reinit on the nv96
11:35 karolherbst: because... technically it's not required
11:35 karolherbst: and the driver can just do that inside the boot process
11:36 karolherbst: and the firmware can just skip on that
11:36 karolherbst: that's more or less the issue with the p50
11:36 rhyskidd: yeh, i do see some occasional graphics corruption during early boot that *appears* to be partial images from the old framebuffer
11:36 karolherbst: I am sure the quirk will work for you
11:37 karolherbst: you might need to change a few things for the actual checks
11:37 karolherbst: like the "ist the gpu initizalied" register
11:37 karolherbst: *initialized
11:37 karolherbst: but generally... sounds like the exact same issue
18:17 JacekJagosz: Hi, sorry for bothering. How can I check which power state my GPU is currently in?
18:17 gnarface: i forget exactly, but i'm pretty sure it is somewhere in /sys
18:19 WizardGed: cat /sys/kernel/debug/dri/0/pstate
18:19 WizardGed: I think
18:19 gnarface: something like that for sure at least
18:19 gnarface: they're hex codes though i think
18:20 gnarface: f0 is the lowest one?
18:20 gnarface: i think?
18:20 gnarface: 0f?
18:20 JacekJagosz: That command lists available states, but I don't know which one it is right now using
18:20 karolherbst: last line shows the current clocks
18:20 karolherbst: and by default no state is selected
18:23 WizardGed: JacekJagosz, I'm sure I don't have to tell you to be careful when playing with powerstates
18:24 WizardGed: I've had bad luck with my gtx 560 and pstates
18:25 JacekJagosz: Because my Fermi even with 3D workload is using the lowest one
18:25 gnarface: that's a known problem with a lot of them... there is a chart
18:26 gnarface: here: https://nouveau.freedesktop.org/wiki/FeatureMatrix/
18:26 JacekJagosz: I saw it, but was wondering if power state is listed can it be forced? With "echo 0f > /sys/kernel/debug/dri/0/pstate"
18:27 gnarface: for some of them it can be forced
18:27 gnarface: but it will also break some of them too...
18:27 JacekJagosz: For me I only get
18:27 JacekJagosz: "Error while writing to stdout write_loop: Function not implemented"
18:28 gnarface: and it's important to note that just because you can force the power state doesn't mean it will necessarily get the proper accompanying fan speed
18:28 karolherbst: JacekJagosz: only works on tesla/kepler/maxwel 1st gen
18:28 karolherbst: anyway, I found somebody to work on fermi reclocking now :D
18:28 karolherbst: RSpliet: ohh.. you also didn't look at engine reclocking issues, right?
18:30 JacekJagosz: So all Fermi's are stuck on lowest clocks or just don't allow manual reclocking?
18:31 karolherbst: JacekJagosz: it depends on the fermi GPU
18:31 karolherbst: some boot with the lowest, some with higher
18:32 JacekJagosz: Can I somehow change it?
18:33 karolherbst: if you feel adventerous.. there are some branches around of some devs trying to implement it... but I wouldn't know what's the most recent state
18:33 karolherbst: RSpliet might
18:33 karolherbst: or skeggsb
18:34 karolherbst: JacekJagosz: if your memory clocks are decently high, you could also try out to only enable the engine reclocking bits... this usually goes well, but is also quite useless if the memory speeds are too low
18:37 JacekJagosz: Unfortunately it is running at just 135MHz instead of 2000MHz. I wanted to use PRIME to have an elegant way of using Nvidia GPU. But now I don't think I'll make it work
18:40 karolherbst: JacekJagosz: probably not
18:41 karolherbst: sadly the most difficult part is left to get it working, and that's memory reclocking
18:41 JacekJagosz: Still thank you for your time, I'll look into current branches
19:23 RSpliet: karolherbst: I think skeggsb's branch has some fixes for engine clock changing
19:24 karolherbst: RSpliet: he said he didn't work on that
19:25 RSpliet: my mouldy branch is all I got https://github.com/RSpliet/kernel-nouveau-nv50-pm/commits/master
19:25 karolherbst: ahh
19:25 karolherbst: anyway.. skeggsb branch have no clk related patches
19:25 RSpliet: that and a lot of shame. I really wanted to pick up Bens stuff and push it forwards. But time. Time :'(
19:25 karolherbst: but, I found somebody who is willing into fixing the engine related stuff :p
19:26 karolherbst: I am just not sure if that's too difficult for now
19:26 karolherbst: RSpliet: well.. maybe when you find time again, all the engine stuff is out of the way
19:26 karolherbst: we already found some volting stuff going wrong horribly
19:27 RSpliet: Ohh yes, there might be some low-hanging fruit there, bridging the Fermi gap from knowledge you already generated for Kepler :-)
19:35 karolherbst: :)
19:35 karolherbst: yeah.. but that was with older version of all the tables involved
19:35 karolherbst: :D
19:40 karolherbst: RSpliet: but we also found a gf119 where the higher pstate just causes rendering to literally stop... but it can recover if you switch back to the lower pstate :)
19:40 karolherbst: that might be fun to figure out
19:41 karolherbst: but gf119 is totally weirdo gen anyway
19:45 RSpliet: It's probably not the weirdest you've ever seen.
19:46 karolherbst: I am sure it is
19:46 karolherbst: it's half kepler half fermi in too many regards
19:46 RSpliet: You haven't seen "return of the GeForce 2 memory controller" NV34?
19:46 karolherbst: skeggsb even thinks that the kepler memory reclocking code might just work
19:46 karolherbst: on a gf119
19:47 karolherbst: RSpliet: those were the insane times where everything was legit
19:47 karolherbst: being crazy while everybody is crazy, just means you are not that crazy afterall :p
19:48 RSpliet: Then there is the "let's bolt GDDR5 onto a (G)DDR2/3 memory controller" GT215
19:48 karolherbst: also.. going back a few steps was kind of a thing to do
19:48 karolherbst: intel did the same
19:48 karolherbst: RSpliet: ohh, that's probably indeed insane
19:49 RSpliet: A miracle it even worked, from what I recall
19:49 karolherbst: didn't it had like seriously low clocks though?
19:49 RSpliet: Haven't figured out whether the engineers on that project were extremely proud or deeply embarrassed :-P
19:50 karolherbst: ufff
19:50 RSpliet: We had to disable someting something multithreaded in the graphics context to make it work.
19:50 karolherbst: actually, that was legit gddr5 stuff
19:50 karolherbst: uff
19:51 karolherbst: but 850MHz isn't very fast
19:51 RSpliet: Nothing too impressive no :-P But isn't it quad-data-rate?
19:51 karolherbst: yeah
19:51 karolherbst: that's why 850
19:51 RSpliet: Oh and I almost forgot about TurboCache, which was neither turbo nor a cache... I think. Maybe it was a cache, who knows
19:52 karolherbst: wasn't it that macbook stuff, which was just a marketing name?
19:52 RSpliet: Not just macbook. Even discrete desktop graphics cards had the label
19:53 karolherbst: ahh, that was this "I can also use system memory" weirdo thing
19:53 RSpliet: yeah, but in a way so ingenious even they couldn't figure it out. It died a silent death after GeForce 6xxx
19:53 karolherbst: wasn't it even 6200 only?
19:54 karolherbst: "GeForce 6200 TurboCache" :D
19:54 karolherbst: "128–256 System RAM incl.16/32–64/128 onboard"
19:54 karolherbst: thanks...
19:54 RSpliet: And a couple of GeForce Go 7xxx models I think
19:55 RSpliet: and with I, of course I mean Wikipedia
21:28 Lyude: yay, found a modesetting bug with switching between DP connectors
21:32 HdkR: lol, wtf is a turbocache
21:33 HdkR: "Main memory is accessed using the high-bandwidth PCI-Express bus."
21:34 karolherbst: :D
21:34 HdkR: "128–256 System RAM incl.16/32–64/128 onboard"
21:34 HdkR: Oh gods. only 16MB onboard?
21:34 HdkR: That is scary bad
21:34 karolherbst: 6200
21:34 karolherbst: guess what's faster
21:34 karolherbst: PCIe :p
21:35 karolherbst: 5.6 GB/s had the onchip memory
21:35 HdkR: 4GB/s PCIe 16x gen 1
21:35 HdkR: Not much slower
21:35 karolherbst: mhhh
21:36 karolherbst: maybe it allowed the driver to skip stupid copies? :D
21:36 HdkR: Just fetch textures data directly from system memory, sounds sane :)
21:37 HdkR: Maybe if we had a fast enough interconnect today that would still be viable
21:37 HdkR: Scale PCIe to 1TB/s
21:37 karolherbst: :D
21:37 karolherbst: the plans of pcie tell us, they are not interested
21:38 Lyude: DP audio should work on nouveau, right?
21:39 karolherbst: I hope so?
21:39 HdkR: We're more likely to have one of the new high speed interconnects come along and give devices fast coherent memory access and we'll be stuck in another AGP round of devices
21:39 Lyude: it could be that I'm missing something in my minimal kernel config, but I'm not getting the sound device to come up in te gnome control center
21:39 karolherbst: HdkR: cable to connect the CPU with the gPU directly :p
21:39 Lyude: (note: quirk_nvidia_hda() is definitely working, I can at least see the PCI device for the sound thing)
21:39 karolherbst: Lyude: did you enable the alsa drivers?
21:40 karolherbst: and the codecs?
21:40 Lyude: karolherbst: yeah, let me just send you my config
21:40 Lyude: karolherbst: https://paste.fedoraproject.org/paste/Z04l4mJfj5ePMAQk1bAJHg
21:42 Lyude: snd_hda_intel seems to be binding to it as well. that part I'm entirely unsure of whether or not it's normal
21:42 karolherbst: mhhh, that's normal
21:42 karolherbst: Lyude: you might have to configure the output device
21:42 karolherbst: HDMI.... is wierd
21:42 Lyude: karolherbst: DP
21:42 karolherbst: same
21:42 Lyude: karolherbst: what exactly do you mean?
21:43 karolherbst: the output device config
21:43 karolherbst: usually you get like thousends of the same thing
21:43 karolherbst: and one works
21:43 karolherbst: the other not
21:43 Lyude: the sound device doesn't even come up when I try to select it in gnome
21:43 karolherbst: the device profile
21:43 karolherbst: heh
21:43 Lyude: as in it's not listed at all
21:43 karolherbst: it should I guess?
21:44 karolherbst: or maybe DP is super weird
21:44 Lyude: yeah I don't see it listed in puleaudio either, hm.
21:44 karolherbst: did you try HDMI?
21:44 Lyude: karolherbst: til the P50 only has DP ports. The HDMI port on it is a lie and is actually a DP port, or at least nouveau exposes it that way
21:45 karolherbst: ahh
21:45 karolherbst: anyway...
21:45 karolherbst: you should have the normal audio device settings
21:45 karolherbst: and there is this profile switch
21:45 karolherbst: to switch between duplex and... you know, the stuff
21:45 karolherbst: and you usually get tons of hdmi profiles
21:46 karolherbst: I am not 100% sure on how all that works, but you might not even get a new sound device for the GPU ones
21:46 Lyude: i'm pretty sure there should at least be a new device
21:46 karolherbst: why?
21:47 Lyude: a-ha
21:47 Lyude: there it is
21:47 Lyude: there's definitely another bug here I think
21:47 karolherbst: uff
21:47 Lyude: I'm going to make sure it's not the p50 quirk breaking the hda quirk
21:48 karolherbst: that would be fun
21:49 karolherbst: but I guess if you reset the card, you have to enable the multi-fun field again
21:49 Lyude: surprisingly, I don't believe that's actually the case
21:49 Lyude: I did a little playing around and it looks like that resetting the bus also seems to enable the HDA controller for some reason
21:50 Lyude: without us having to do it manually
21:50 karolherbst: uff
21:50 karolherbst: I slowly getting the feeling we have a really "smart" firmware on that p50 :p
21:50 Lyude: yeah
21:56 Lyude: ok cool, it isn't
21:56 Lyude: erm, conflicting with the p50 quirk I mean
21:57 Lyude: "front, left"
21:57 karolherbst: hehe
21:57 Lyude: everything works :), yay
22:00 karolherbst: cool