02:24bozhan: is someting special needed to make mmio trace of optimus card?
02:25bozhan: and which is the best way to do it?
02:47karolherbst: bozhan: nope
02:48karolherbst: you just need to somehow start a X server for that card, but this has nothing todo with the actual mmiotrace procedure
02:58bozhan: on howto for ubuntu is suggeted to run xinit "sleep 10", did i have to run : optirun xinit "sleep 10" ?
03:11karolherbst: boxfire: nope
03:11karolherbst: "optirun -b none bash" should be fine already
03:12karolherbst: and with exit you can quit the bash and the card will turn back off and module be unloaded
03:12karolherbst: (after a while)
05:06fling: Has NVE0 GK208 (NV108) stability increased since 3.18?
05:34RSpliet: fling: is that a question or an observation?
05:45pmoreau: :( It looks like reclocking broke on my MCP79...
05:46RSpliet: pmoreau: what happened?
05:46pmoreau: I don't know, it doesn't want to work anymore
05:46pmoreau: Paste incoming
05:47pmoreau: RSpliet: https://phabricator.pmoreau.org/P19
05:47pmoreau: Around 173s-176s
05:48fling: RSpliet: a question
05:50pmoreau: Eh, why is it going through GT215 logic? Isn't MCP79 prior to GT215?
05:50RSpliet: pmoreau: hmm... I don't think anything changed in that code
05:50RSpliet: yes... but it does call gt215_clk_pre from MCP79, as the pause sequence is the same
05:50pmoreau: Guess I'll bisect :)
05:51RSpliet: well, it gives you quite a big hint :-P
05:51RSpliet: "gt215.c:332" , do you know to what line that maps in the pre-cleanup stage?
05:51pmoreau: To some weird formulation
05:52RSpliet: and check whether cleanup didn't accidentally unhook pfifo->pause
05:52RSpliet: (or all of pfifo)
05:52pmoreau: RSpliet: http://cgit.freedesktop.org/~darktama/nouveau/tree/drm/nouveau/nvkm/subdev/clk/gt215.c#n332
05:53RSpliet: ah hmm, I didn't recognise that code back :-P
05:54pmoreau: Two commits from Ben mainly modifyin it; let's have a look at those
05:55RSpliet: second read is from the wrong register
05:55RSpliet: line 329, change 2504 to 251c
05:56RSpliet: and slap skeggsb around a bit with a large trout :-D
05:57pmoreau: Ah right, http://cgit.freedesktop.org/~darktama/nouveau/commit/?id=1909665b
06:02pmoreau: RSpliet: Fixed! :-)
06:03pmoreau: So, now does plugging an external screen works somewhat better...
06:03RSpliet: slightly... it doesn't make more mem bandwidth, so I am a bit surprised it helps
06:03pmoreau: higher mem freq
06:04RSpliet: it's an IGP
06:04RSpliet: there is no mem freq :-P
06:04RSpliet: your VBIOS mentions a memfreq
06:04pmoreau: Well, the blob always bump to perflvl2 or 3 when plugging an external screen though iirc
06:05RSpliet: don't think it's touched though
06:05RSpliet: wait, no, let me re-interpret that
06:06pmoreau: Still getting some warn_slowpath and nothing on the other screen...
06:06RSpliet: yes, no, there is no memclk :-D
06:06RSpliet: sorry, got confused with the G96
06:06pmoreau: No problem :)
06:06pmoreau: It's a weird laptop
06:07RSpliet: slightly, not that weird though
06:07RSpliet: just with an NVIDIA IGP instead of an Intel one
06:08RSpliet: question is: to which GPU is the secondary monitor connected?
06:08pmoreau: And a VBIOS which doesn't to initialise parts of the card and let the driver do it instead, on the contrary to every other VBIOS out there
06:08pmoreau: The iGPU
06:08RSpliet: ah good
06:09RSpliet: so that secondary monitor problem I know nothing about
06:09RSpliet: but glad you got reclocking back to work. Will you submit a patch, or should I cook it up later (as part of a bigger push)
06:09pmoreau: It used to display something, but as soon as I launched some OpenGL stuff, it would flicker as hell
06:10RSpliet: that does sound like bandwidth problems...
06:10pmoreau: I don't care, but I'll soon have to go
06:11pmoreau: Is there some bandwith I can increase on the iGPU?
06:11RSpliet: very little, as it uses the (already fired up) system RAM
06:11pmoreau: Cause the blob didn't had any problem running glxgears without flickering iirc
06:12pmoreau: Whereas Nouveau did
06:14RSpliet: hmm, yes, well, we might not utilise bw as good as nvidia does
06:14RSpliet: idk to be honest, there's a mountain of factors
06:14RSpliet: btw, I'm sorry to ask again, but do I have your VBIOS and trace (in the repo?)
06:15pmoreau: I don't think so, or maybe only for the MCP79 and G96
06:15RSpliet: not that I will fix reclocking for the G96 straight away, but it could provide some juicy details :-)
06:15RSpliet: oh, I meant the G96
06:15pmoreau: I'll check when I come back (in an hour approx.)
06:15pmoreau: I have to run
08:07pmoreau: RSpliet: I had put a trace + strap + vbios in the nvidia_vbios repo :-)
08:07RSpliet: excellent, thanks for verifying
08:07RSpliet: I'll use that data to beat the G94 patches into shape
08:08pmoreau: (But used my new e-mail address -well not that new as I did it in March- so maybe you missed it)
08:10RSpliet: no, I just don't have access to the repo from work :-)
08:11pmoreau: Well... it can happen! :D
08:18imirkin: RSpliet: btw, i see reads from 10053c on G86 and probably G84, so i think you have to do that if everywhere
08:19RSpliet: imirkin: thanks... yes, I did find it odd not seeing those reads on the G94
08:19RSpliet: although *maybe* the blob does some post-scanning of VBIOS tables to see which features are unused
08:19RSpliet: *pre* scanning
08:19imirkin: RSpliet: my theory back in the day was that it was 100da0 for some split of gpu's, and 10053c for the other
08:19imirkin: however i have no good ideas re what that split is
08:20RSpliet: gt21x and nva0 definitely have both
08:20RSpliet: ... gt2xx
08:20imirkin: hrmph, ok
08:20imirkin: and i'm looking at a G84 trace that doesn't have a 10053c read either
08:20RSpliet: I don't think it matters if I don't put an if() around it, but I didn't even see the read in the trace
08:21imirkin: yeah that's very odd
08:21RSpliet: I guess it's easy to find out, just fake a VBIOS, set the one bit, see what the blob does with it
08:26pmoreau: Was going to ask a question, but I think I found the solution: "ERROR 5 [INVALID_STATE] 0b  chid 1 mthd 0080 data 00000000" means one of the EVO channel is unhappy about doing an update in the current state, right?
09:12fling: RSpliet: don't you have an answer for my question?
09:12RSpliet: fling: oh sorry, too much on my mind atm
09:13RSpliet: erm... not by heart, but there's been a lot of improvements throughout
09:13RSpliet: you'd have to go through https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/log/drivers/gpu/drm/nouveau to be sure
09:14RSpliet: looks like there's been some important work since
09:17fling: RSpliet: thanks for the info.
09:18imirkin: fwiw we recently added some bits that let mine (GK208) reclock fine. but i don't use its display capabilities, and that's where a lot of issues tend to crop up. so ymmv
09:19RSpliet: imirkin: I don't think we've talked about reclocking in particular :-P
09:20imirkin: and it wouldn't impact stability
09:20imirkin: but thought i'd mention it
09:20imirkin: esp since i know he's keen on all the reclocking stuff
09:20RSpliet: cool :-)
09:21fling: imirkin: thanks :>
12:19karolherbst: mupuf: there and got a little time?
13:05mupuf: karolherbst: not yet
13:05mupuf: still have some work to do for hakzsam
13:08karolherbst: mupuf: no problem. I was just thinking, maybe the VID table has to be parsed differently for PWM based chips, because my current table doesn't make much sense. I will maybe toy around a bit until you've got some time then
13:09karolherbst: *voltage table
13:17mupuf: I think it is an entirely different table
13:18karolherbst: somehow I get the feeling that since some fermi chip, the table makes no sense generally
13:19karolherbst: especially because I find stuff like this:
13:19karolherbst: Maximum voltage 1213000 µV, voltage step -12500 µV, Maximum voltage to be used 1150000 µV
13:19karolherbst: Voltage range = 1213000-825500 µV, step = -12500 µV --
13:20mupuf: we do not understand this table properly
13:21mupuf: and maybe we should compare nvbios with nouveau's interpretation of it
13:21mupuf: I am willing to trust ben on this :p
13:24karolherbst: for(int v= max_volt; v< max_volt_used; v+=volt_sept) // something like that
16:10karolherbst: uhh, master is no 4.3 based, right?
16:11imirkin_: any particular tree in mind?
16:11imirkin_: note that ben's tree rebases all the time
16:12imirkin_: which makes it pretty hard to develop against
16:12karolherbst: got a compile error against 4.1.6
16:12imirkin_: yeah, that's expected
16:12imirkin_: you need 4.2 i think
16:12imirkin_: or maybe drm-next, not sure
16:13karolherbst: don't want to change to 4.2 yet
16:13karolherbst: but the difference seems to be a minor one
16:13karolherbst: so patches should be all compatible anyway
16:16karolherbst: uhh, mhh
16:16karolherbst: I should have used the linux-4.3 branch, not 4.2
17:16marcosps1: hello :)
18:09marcosps1: imirkin: is neu a meta operation too? I can't find it in envytools docs.
18:14marcosps1: imirkin: (I say meta for the same meaning of merge op...)
19:16karolherbst: skeggsb: do you know something about that? "timeout at nouveau/drm/nouveau/nvkm/subdev/pmu/gk104.c:44/magic_()!"
19:17karolherbst: its related to the hack, and I encountered it whily I used the ported patch, but with your stuff it also happens
19:17karolherbst: I get a few of those and loading time is over 15 seconds
19:19skeggsb: hm, no. but i think i've currently got access to a machine that needs that fix, so i'll look into it after i've fixed some other things on it
19:19karolherbst: okay, thanks
19:19karolherbst: it still works though
19:19karolherbst: I get 12 timeouts in total
19:25karolherbst: skeggsb: any good idea how to add non clock information into the pstate sysfs file? I don't want to mess with the interface that much, also maybe you have already a nice idea
19:29skeggsb: honestly, my preference is to ignore changing any of that for the moment, and work towards fixing all the (many) issues that are preventing us from doing full dynamic reclocking by default.. worry about end-user tweaking after that :)
19:31karolherbst: I see
19:31karolherbst: I just wanted to add the pcie speed there, but it wasn't as simple as I thought it would
19:31karolherbst: so I didn't touch