01:20 karolherbst: mupuf, imirkin, imirkin_: you don't have any ideas left, what I could try out? Or is it just likely its not possible anymore and there is another way somehow?
03:20 mupuf: karolherbst: if setting the frequency to 862 MHz is stable (no crashes), then the voltage is high-enough!
03:26 karolherbst: its not stable
03:27 karolherbst: or let me rephrase it: sometimes my system has a hang crash with 0a sometimes
03:27 karolherbst: mupuf: but is there another reason why I don't get twice the performance?
03:27 karolherbst: or more?
03:28 karolherbst: oa has more than double gpu clock and doubled memory clock
03:28 karolherbst: allthough with antichamber I got doubled performance, but doubled memory clock was enough to get this
03:29 karolherbst: doubled gpu clock only got me like 10% more
03:30 mupuf: karolherbst: well, if the game is memory-bound, increasing the core clock won't help much
03:30 mupuf: and this also may be due to our really poor compiler
03:30 mupuf: for instruction scheduling*
03:31 mupuf: that would force a stall
03:32 karolherbst1: .. mhh
03:32 mupuf: power management is not the only problem of nouveau
03:33 karolherbst1: this was in 07 state now
03:33 mupuf: but congrats on getting reclocking working on your machine!
03:33 karolherbst1: mhh
03:33 huehner: hmm debian just enabled mmiotrace by default in their kernel images (not yet uploaded)
03:33 mupuf: huehner: finally!!!
03:33 karolherbst1: thing is: cstate doesn't seem to work in general
03:33 mupuf: define work?
03:33 karolherbst1: mupuf: do you want to test my cstate patches on other gpus?
03:33 karolherbst1: mhh
03:33 karolherbst1: not enabled
03:34 mupuf: I have a ton of patches to review for hakzsam_...
03:34 karolherbst1: let me reprhase that: pstate always sets to cstate with index 0
03:34 karolherbst1: I see
03:34 mupuf: hmm, always? I have seen this issue in my case too
03:34 mupuf: looks like a regression
03:34 karolherbst1: did you check cstates though?
03:34 mupuf: yes
03:34 karolherbst1: also clocking isn't set if volting fails
03:35 mupuf: right, this is unusual that there would be no voltage support
03:35 karolherbst1: maybe cstates work if the 0 one sets to highest
03:35 karolherbst1: but I have like 36 cstates
03:35 karolherbst1: both in 0a and 0f
03:39 karolherbst: mupuf: who could I ask to test the cstate work? Sadly the other card I have access to is a 630M :/
03:43 mupuf: I can give you access to my reverse engineering machine
03:43 mupuf: and plug the cards you want me to plug
03:43 karolherbst: would be nice
03:43 mupuf: I have an nve6 and nve7
03:44 mupuf: desktop GPUs
03:44 karolherbst: the cstate patches aren't architecture specific
03:44 karolherbst: should work on every card tm
03:45 karolherbst: the thing with my card was just, that 07 and 0a have the same lowest clock, so the clock didn*t change at all
03:45 karolherbst:
03:46 huehner: mupuf: i think debian 4.1 when it is uploaded will be first version to have it enabled, i can give it a spin then on my 960 to confirm
04:14 karolherbst: mhhh
04:14 karolherbst: seems like its a common problem, that X reacts not that good to a nouveau load
04:51 karolherbst: mhh
04:52 karolherbst: iterating over the cstate of the clk->states opses for me when clk->pstate==NVIF_CONTROL_PSTATE_ATTR_V0_STATE_CURRENT :/
05:01 karolherbst: mupuf: but how does it work with the rev eng machine?
05:01 mupuf: there is a webgui I designed that allows you to boot the machine
05:02 mupuf: and see the LED state
05:02 karolherbst: can I also see content of dmesg or whats inside sysfs?
05:03 mupuf: you'll get root access
05:03 mupuf: through ssh
05:04 karolherbst: ahh
05:04 karolherbst: okay
05:04 karolherbst: 4.1 kernel?
05:04 mupuf: I will update everything
05:04 karolherbst: I also ported my patches back to 3.19
05:04 karolherbst: to test it on the fermi card
05:04 karolherbst: but it won't work unless you can actually change the pstate :(
05:04 mupuf: and you'll use nouveau out of the tree to easily load and reload the nouveau module
05:05 karolherbst: scripts or insmos/modprobe calls?
05:05 karolherbst: *insmod
05:05 mupuf: I have scripts, but do your thing :D
05:05 karolherbst: mhh, right I would need X to actually test the speed
05:05 mupuf: not a problem again
05:05 karolherbst: forget that it isn't a laptop there
05:06 karolherbst: yeah, its easy for me here, because DRI3 doesn*t require DDX, so no open fd and stuff
05:06 mupuf: this machine is used for this kind of work
05:06 karolherbst: I can easily replace module while X is running
05:06 karolherbst: yeah, I figured
05:06 mupuf: but I am at work right now, so I can't do it now
05:06 karolherbst: k
05:07 karolherbst: I can do other stuff anyway :D
05:09 karolherbst: is there somebody online with the voltage change issue? Maybe you want to test part of the patches too
05:10 mupuf: karolherbst: who is this?
05:11 karolherbst: don't know, imirkin told me there were some with such issues
05:11 karolherbst: but never told me who
05:12 karolherbst: the issue where you get -22 from volt after changing pstate
05:14 karolherbst: mupuf: [ 1786.479825] nouveau E[ CLK][0000:01:00.0] failed to raise voltage: -22 [ 1786.479827] nouveau E[ CLK][0000:01:00.0] error setting pstate 0: -22
05:14 mupuf: well, you do not have any GPIO for changing the VID
05:14 mupuf: so, no wonder it fails :D
05:15 karolherbst: yeah I know
05:15 karolherbst: but I couldn't change cstates or freqs
05:15 mupuf: well, I would say that you need to patch nouveau so as trying to change the voltage wouldn't fail
05:16 mupuf: but still throw a debug message, just for good measure
05:16 karolherbst: allthough pstate did change, but not the cstate
05:16 karolherbst: yeah, already did that
05:16 karolherbst: fallback mechanism where it fallbacks to the nearest lower possible voltage
05:17 karolherbst: the table didn't find a match with the requested voltage
05:17 mupuf: oh, I get it, maybe the cstate does not change because the voltage does not go up
05:17 karolherbst: https://github.com/karolherbst/nouveau/commit/1b40601a51a3128ba8a5e19c124b47679be23302
05:17 mupuf: is that what you are trying to say?
05:17 karolherbst: no, it was a code problem
05:18 karolherbst: but basically yes
05:18 mupuf: it sure is, the hw does not care
05:18 mupuf: it will crash if you don't do the right thing, that's it
05:18 karolherbst: this line: https://github.com/karolherbst/nouveau/blob/1b40601a51a3128ba8a5e19c124b47679be23302/drm/nouveau/nvkm/subdev/clk/base.c#L104
05:18 karolherbst: set_id returned faulty
05:18 mupuf: yeah, the patch you cooked look like patches mlankhorst and I wrote a while ago
05:18 karolherbst: I see
05:20 karolherbst: strange is, that there is a voltage table and everything in the rom for me :/
05:20 mupuf: oh, dude!
05:21 mupuf: I don;t know how imirkin missed this
05:21 karolherbst: and each cstate has its own voltage entry
05:21 karolherbst: ?
05:21 mupuf: 129 = PWM based serial VID voltage control.
05:21 mupuf: GPIO 0: line 0 tag 0x81 [???] OUT DEF 0 param 1 gpio: normal SPEC_OUT 0x5d [???]
05:21 karolherbst: :D
05:21 karolherbst: and he said I shouldn*t grep for gpio
05:22 karolherbst: "GPIO 0: line 0 tag 0x81 [???] OUT DEF 0 param 1 gpio: normal SPEC_OUT 0x5d [???]"
05:22 karolherbst: yeah
05:22 mupuf: well, I had completely forgotten about this craziness
05:22 mupuf: I tried adding support for it on one of my gpu
05:22 mupuf: possibly the maxzell
05:22 mupuf: maxwell
05:22 karolherbst: you know I get errors about vid 3 and 7 though?
05:23 mupuf: nouveau does not know how to handle this *at all*
05:23 karolherbst: I see
05:23 mupuf: so you should not care at all about what stupidity nouveau does
05:23 karolherbst: okay
05:23 karolherbst: so whats the issue then? nouveau just don't know how to speak to the gpios/vids?
05:24 mupuf: ok, you don't see the problem properly
05:24 mupuf: each GPU has a voltage regulator
05:24 karolherbst: yeah
05:25 mupuf: and selecting the wanted voltage can be done by multiple means
05:25 mupuf: i2c, gpios or ... PWM
05:25 karolherbst: ahh, and my card needs the pwm method?
05:25 mupuf: nvidia never used the i2c one
05:25 mupuf: yes
05:25 mupuf: the vbios tells us that in the GPIO table
05:26 mupuf: it says that GPIO 0 is actually PWM based serial VID voltage control.
05:26 karolherbst: could it be, that pwm support is just missing in my kernel and nouveau can't pick it up because of that or because nouveau simply can't do it
05:26 mupuf: we can see that because the tag is 0x81
05:26 mupuf: and nvidia documented that in 2013 for us
05:26 mupuf: ftp://download.nvidia.com/open-gpu-doc/DCB/1/DCB-4.0-Specification.html
05:26 mupuf: look for 129
05:26 karolherbst: yeah
05:27 karolherbst: I see it
05:28 mupuf: so, to add support for this, we need to find the pwm controller
05:28 mupuf: wait a sec.... I seem to remember to have found it ... unless it was the one for the fan
05:28 mupuf: darn it
05:28 mupuf: we are in for a treat!
05:28 karolherbst: good thing: I can't control the fan anyway
05:28 karolherbst: :D
05:28 mupuf: hehe
05:29 karolherbst: how does someone "search" for such a pwm
05:29 karolherbst: should I look at the card?
05:29 karolherbst: its a mxm one
05:29 mupuf: nah, it is inside the chipset
05:29 karolherbst: so the fan pwm should be labled I guess
05:29 mupuf: and not documented
05:29 karolherbst: pitty
05:29 karolherbst: wait
05:29 karolherbst: mhh
05:30 mupuf: the way I do it, is changing the frequency and lookng for differences in the registers
05:30 karolherbst: I think the fan is connected to my board anyway
05:30 karolherbst: and not to the gpu
05:30 karolherbst: card
05:30 mupuf: this is a laptop, so yes
05:30 mupuf: it has nothing to do with the PWM-based VID
05:30 karolherbst: k
05:30 mupuf: anyway, have to go! My benchmarks finished running
05:30 karolherbst: ... sad ...
05:30 karolherbst: way home or work?
05:32 mupuf: I am at the office
05:32 mupuf: but I do not work on nouveau in my day job
05:32 mupuf: only on my spare time
05:32 mupuf: which I do not seam to allocate a lot of to nouveau lately
05:33 mupuf: still passionate about the project though, but summer is there, more or less!
05:33 karolherbst: yeah :/
05:33 karolherbst: would be nice to know what I have to do to figure out how to talk to the pwm
05:33 mupuf: so, I take advantage of the fact that the sun stays up so long!
05:34 mupuf: Well, I use my peek_diff tool usually
05:34 karolherbst: I guess there is no "tutorial" site how to use a tool for testing nvidia cards :D
05:34 mupuf: But hey, how about we look into this tonight?
05:34 mupuf: :D
05:34 mupuf: of course not :D
05:34 karolherbst: :D
05:34 karolherbst: but I once devleoped on an arm board
05:35 karolherbst: so its not that new to me anymore
05:35 mupuf: good
05:35 karolherbst: it also had 2! pwms :D
05:35 mupuf: well, you seem definitely fit for nouveau development!
05:35 karolherbst: maybe
05:35 mupuf: I'll try my best to get you started properly
05:35 karolherbst: I like more writing server software though I think :D
05:35 mupuf: ah ah, I would hate it :D
05:36 karolherbst: I can't stand GUI development though
05:36 karolherbst: not because its bad
05:36 karolherbst: but because you always see dirty hacks and stuff which should ever be done
05:37 mupuf: you mean, like web development on a server?
05:37 karolherbst: no, anything UI related really
05:37 karolherbst: I would like to do that though, but I know I am not good at it yet
05:38 karolherbst: or do you mean the server dev part?
05:38 karolherbst: there I like service based stuff the most, which always leads to service based architectures inside clients I have to write :D
05:38 mupuf: meh, it was supposed to be a troll, but it did not work
05:38 karolherbst: :D
05:38 karolherbst: won't work on me I guess :p
06:00 karolherbst: ahhh
06:11 karolherbst: what are the pwms in nvatiming?
06:14 mupuf: the fan ones
06:14 karolherbst: both?
06:14 mupuf: well, some of them
06:14 karolherbst: look at this: https://gist.github.com/karolherbst/f3db380c5db889e02ca3
06:14 mupuf: yeah, there are 4 of them
06:14 mupuf: or 5 actually
06:14 karolherbst: mhh
06:14 mupuf: nvidia keeps adding more
06:14 karolherbst: I only have 2
06:14 karolherbst: or at least the tool says so
06:14 mupuf: nvatiming does not k now about the others
06:14 karolherbst: I see
06:14 Nuc1eoN: hello
06:15 karolherbst: mupuf: so to find the right one, we would "add" more pwms to the driver or just write a little bit higher values and see what happens?
06:15 mupuf: karolherbst: you should be using the proprietary driver if you want to see what register we should update
06:15 karolherbst: becuase?
06:16 karolherbst: no problem with that, but I would like to know why :D
06:16 mupuf: because nouveau does not change the reg :D
06:16 mupuf: as simple as this
06:16 mupuf: this is not done by the hw
06:16 karolherbst: but in this nvatiming output you clearly see the difference because stock master and my patched ones. didn't know it was that much at all
06:16 mupuf: it is handled by the kernel driver
06:16 karolherbst: ahh
06:21 karolherbst: mhh nvatimings doesn't find my gpc
06:21 karolherbst: oh well
06:21 karolherbst: have to trust the kernel output then
06:22 Nuc1eoN: hi i use nouveau and get errors at boot, look at this https://gist.github.com/Nuc1eoN/a925d32e8cb34d6aa432
06:22 Nuc1eoN: dmesg + xoglog
06:22 karolherbst: 740m huh
06:22 Nuc1eoN: everything *seems* to work
06:23 Nuc1eoN: karolherbst: what about it?
06:23 karolherbst: which one? :D
06:23 Nuc1eoN: wut
06:23 Nuc1eoN: nvidia 2gb i think
06:23 karolherbst: ahh GK208
06:23 Nuc1eoN: how cards under the same name are there? :P
06:24 mupuf: karolherbst: nvatimings was meant for nv50-c0
06:24 karolherbst: k
06:24 karolherbst: I think the errors aren't important
06:24 mupuf: indeed
06:25 Nuc1eoN: somebody with the same error seemed to have alreaddy sought for help on this irc channel http://people.freedesktop.org/~cbrill/dri-log/index.php?channel=nouveau&date=2015-02-07
06:25 karolherbst: Nuc1eoN: are all of your video outputs connected intel?
06:25 Nuc1eoN: and same cpu
06:25 Nuc1eoN: karolherbst: what do you mean?My default card is intel
06:25 karolherbst: yeah, but do you have hdmi, dvi outputs
06:25 karolherbst: and do they work?
06:25 karolherbst: or
06:25 karolherbst: what gives your xrandr
06:26 Nuc1eoN: I never tried them
06:26 karolherbst: all your outputs should be listed in xrandr
06:26 karolherbst: bad thing is, some laptops have outputs connected to the dedicated card
06:27 karolherbst: then the errors might be important somehow, because you might get the idea to conect a display and use the nouveau driver for them
06:27 Nuc1eoN: karolherbst: I added xrandr outoput to gist;)
06:27 karolherbst: ohh there are more errors
06:28 karolherbst: yeah, seems like you are lucky
06:28 karolherbst: DP, HDMI and VGA connected to intel
06:28 Nuc1eoN: lucky? well that it works you mean ? :P
06:28 karolherbst: yeah
06:28 karolherbst: you should have only these 3 right?
06:28 Nuc1eoN: well its a thinkpad so i guess it's not the worst shit
06:29 karolherbst: I can*t say much about the PIBUS errors though
06:29 Nuc1eoN: actually i only have got hdmi and vga O.o
06:29 Nuc1eoN: no dp
06:29 karolherbst: do you know how to hardware hack? then you might add one :p
06:30 Nuc1eoN: lol, so it is generally supported? :P
06:30 karolherbst: I would say so
06:30 karolherbst: oh wait
06:30 karolherbst: nah, its DP over HDMI
06:31 Nuc1eoN: ah ok :P
06:31 Nuc1eoN: so what does all this mean for me? what do those errors mean?
06:31 karolherbst: but you said everything works fine?
06:31 Nuc1eoN: well it seems
06:31 karolherbst: any performance intense stuff tested?
06:31 Nuc1eoN: although i didnt try to connect externel monitors
06:32 Nuc1eoN: karolherbst: nope just basic workflow on plasma5
06:32 karolherbst: I see, you don't use the card usually
06:32 karolherbst: mhhh
06:32 Nuc1eoN: some apps seem to crash with xkb error but it might as well be the fault of the new plasma5 / qt5
06:32 karolherbst: do you want to use the nvidia card at all?
06:33 karolherbst: like for games or other GL intense stuff
06:33 Nuc1eoN: Well, so far id didnt try because I feared the results :D I just bought this laptop and want to clear those errors
06:33 karolherbst: I see
06:33 Nuc1eoN: *it's a brand new laptop
06:34 karolherbst: you could use the prop driver though if you want
06:34 Nuc1eoN: becasue they look kinda scary
06:35 Nuc1eoN: heh so whats the issue with those nouveau erros?
06:35 karolherbst: the thing is for you know: do you for any reasons want only use the open driver, or is the nvidia one fine by you?
06:35 karolherbst: don't know
06:35 Nuc1eoN: I would like to use the open source one because i like open source :)
06:35 karolherbst: isn't that important if you don't want to use the card anyway
06:35 karolherbst: I see
06:35 Nuc1eoN: if i need more intense stuff i oot win8 and its okay:P
06:35 karolherbst: the thing is currently, that the card will use power
06:36 karolherbst: a lot
06:36 karolherbst: and its on all the time until you do something against it
06:36 Nuc1eoN: actually prime should prevent that
06:37 Nuc1eoN: or at least thats how i understand prime....
06:37 karolherbst: yeah I know, but it can cause problems
06:37 karolherbst: I don't know if runpm defaults to on for you or at all
06:37 karolherbst: I don't use runpm, because its a little bit messy on my system
06:38 karolherbst: mupuf: would you say all of these nouveau errors are kind of unimportant and he should simply test to use the card?
06:38 Nuc1eoN: ac0:DIS: :DynOff:0000:01:00.0
06:38 Nuc1eoN: 1:IGD:+:Pwr:0000:00:02.0
06:38 Nuc1eoN: cat /sys/kernel/debug/vgaswitcheroo/switch
06:38 Nuc1eoN: gives me that it's off
06:39 karolherbst: by the way "GPU voltage: 600000uv" :) looks suspicous
06:39 karolherbst: k
06:39 Nuc1eoN: when it's not used
06:39 karolherbst: then it seems to work
06:39 karolherbst: my system just randomly crashed in the past with it
06:39 Nuc1eoN: 600000uv ? uuh
06:40 mupuf: karolherbst: sorry, can't answer right now
06:40 karolherbst: its a different problem I try to fix today with mupuf maybe
06:41 Nuc1eoN: what will you try to fix?
06:41 karolherbst: Nuc1eoN: what you could do is this: just use the system as is and if something strange happens (system hangs, black screen forever, suspend doesn't work)
06:41 karolherbst: reclocking stuff
06:42 karolherbst: voltage can't be set on my card with current means
06:42 karolherbst: and it seems you have the same issue
06:42 karolherbst: but its unrelated to the errors
06:42 mupuf: Nuc1eoN: no idea about your errors
06:42 mupuf: but if everything seems fine, don't worry about it then
06:42 karolherbst: the TMDS and flat panel table seems unimportant though
06:42 karolherbst: becuase he has nothing connected to the card
06:43 Nuc1eoN: do you think it might help to report it to the bugtracker?
06:43 karolherbst: Nuc1eoN: if there is nothing wrong otherwise I don't think somebody will care enough to be honest
06:44 karolherbst: so if you don't have something like: suspend messes up system if nouveau loaded, or nouveau OpenGL is messed up or anything, then its likely that not much will change directly
06:45 karolherbst: these error could be fixed though through other issues
06:45 karolherbst: but maybe the firmware is a little bit messed up or something
06:45 karolherbst: I wouldn't bother too much until you have real problems
06:46 Nuc1eoN: karolherbst: since intel is my main card i guess, there dont show any problems... maybe i shóuld try to activate the nvidia one by default and see what happens
06:46 karolherbst: mhh
06:46 karolherbst: I won't do that
06:47 karolherbst: https://wiki.freedesktop.org/nouveau/Optimus/
06:47 karolherbst: this might help you to use the card
06:47 karolherbst: there are "ways" to use the nvidia card for everything, but I really see the point in that
06:47 karolherbst: *don't
06:47 Nuc1eoN: damn why does nouveau such so much
06:47 Nuc1eoN: I would have taken an amd card but ffs there are no laptops with amd cards
06:47 Nuc1eoN: *suck
06:48 karolherbst: did you ever tried to use the card? maybe it works without problems
06:48 Nuc1eoN: no, since i always just used the default configuration
06:48 Nuc1eoN: somebidy on arch forums
06:48 Nuc1eoN: told he has got rid of those rrors
06:48 Nuc1eoN: by using bumblebee
06:49 karolherbst: propritary driver then
06:49 karolherbst: isn't nouveau anymore
06:49 Nuc1eoN: karolherbst: https://bbs.archlinux.org/viewtopic.php?pid=1479490
06:49 Nuc1eoN: bumblebee works with nouveau too
06:49 karolherbst: yeah it does, but the guy uses the prop driver
06:49 Nuc1eoN: so probably bad firmwarE?
06:50 Nuc1eoN: since he has got the same issues
06:50 karolherbst: could be everything until somebody with more knowledge says something
06:50 Nuc1eoN: with same hw as far as i can tell
06:50 karolherbst: to be really honest: I see a lot of hacky stuff in arch wikis, so I just say his system was messed up from the beginning anyway
06:51 karolherbst: his X error most likely means, that his system tried to run X on the nvidia card
06:52 karolherbst: you could do the followig if you want
06:52 karolherbst: 1. blackloust nouveau
06:52 imirkin: uhm, nouveau should auto-suspend the card when not in use
06:52 karolherbst: 2. install only bbswitch
06:52 karolherbst: 3. load bbswitch at boot
06:52 karolherbst: this will not load nouveau and turn the card off
06:52 karolherbst: but
06:52 karolherbst: then you mess a little bit around if you want to use nouveau later
06:53 karolherbst: so you should decide how you want to use your nvidia card, so we can decide on a good solution
06:53 karolherbst: or just leave the system as is and wait until something bad happens
06:53 karolherbst: try suspending the system for example
06:53 imirkin: Nuc1eoN: what is the problem with the present setup btw?
06:53 karolherbst: imirkin: he doesn't have any ;)
06:53 karolherbst: only some errors in dmesg
06:53 imirkin: ignore them and move on
06:54 Nuc1eoN: yeah it'S a new laptop and new system and i just wanted get get knowledge wtf happens :P
06:54 karolherbst: imirkin: do you know what mupuf found for my gpu voltage problem?
06:54 karolherbst: Nuc1eoN: come back if something really happens ;)
06:54 imirkin: Nuc1eoN: double-check that the card is turning off... cat the vga switcheroo file and make sure it's in DynOff state
06:54 imirkin: Nuc1eoN: if it is, then you're all set
06:54 karolherbst: this works
06:54 Nuc1eoN: imirkin: it is ;)
06:54 Nuc1eoN: ok thx guys!
06:55 imirkin: karolherbst: yeah, he found my incompetence. i thought i checked all the gpio's :( and i didn't see it futz with gpio's around the reclock in your mmiotrace.
06:55 Nuc1eoN: there seem to be many with theat voltage issue
06:55 karolherbst: yeah
06:55 karolherbst: will fix today (tm)!
06:55 Nuc1eoN: just google "nouveau 600000uv"
06:55 karolherbst: yeah
06:56 karolherbst: the issue is simple though
06:56 karolherbst: nouveau can't read the voltage and falls back to the first entry in the voltage table
06:56 karolherbst: which is exactly this value
06:56 karolherbst: it can't set it either, so pstate doesn't really work on these cards too
06:57 Nuc1eoN: ok cya guys :D
07:03 mupuf: imirkin: yeah, I do not know where they do the write to the voltage controller
07:03 mupuf: possibly in pdaemon
07:04 mupuf: I know I spent some time trying to add support for my maxwell
07:04 imirkin: could be. did you look at his trace?
07:04 mupuf: I had completely forgotten about this issue
07:05 mupuf: nope, I guess this is a job for tonight
07:05 imirkin: i assumed it'd be in the reclock sequence
07:05 Nuc1eoN: suspend seems to work corrrectly
07:05 imirkin: but didn't find anything obvious in its proximity
07:05 mupuf: it is
07:05 karolherbst: Nuc1eoN: nice
07:05 mupuf: but it may be a command sent to pdaemon
07:05 imirkin: right
07:05 imirkin: but all of the commands were known by the parser
07:05 imirkin: not to say that one of them isn't supposed to do this ;)
07:06 mupuf: oh, right!! the work of RSpliet landed
07:06 karolherbst: ?
07:07 mupuf: You are my king Roy!
07:07 mupuf: :p
07:07 imirkin: hehe
07:08 mupuf: 0x138000 may be of interest for this
07:08 mupuf: or 0x08c384
07:08 karolherbst: did I miss something?
07:08 mupuf: 0x08c384 looks really good if we assume the duty cycle is fixed
07:09 mupuf: well, actually, it looks good, full stop
07:09 mupuf: the range sounds interesting
07:09 mupuf: will check it tonight
07:09 karolherbst: right
07:10 karolherbst: which time? So that I can plan it right :D
07:10 karolherbst: or is it something else now?
07:10 mupuf: I have work for two more hours
07:11 karolherbst: okay, no problems
07:11 karolherbst: I have to work too, but I work at home, so its fine :D
07:11 mupuf: :)
07:12 karolherbst: html gui stuff though :(
07:12 imirkin: aka the stuff you said you hated?
07:12 karolherbst: I don't hate it
07:12 karolherbst: I only get the feeling everything will break in a day
07:13 karolherbst: its always depressive to look at gui code
07:13 karolherbst: aka work in GUIThread stuff and so on :O
07:13 karolherbst: then I always think: how could someone
07:13 karolherbst: like in 99% in all mobile apps
07:13 karolherbst: *of
07:15 karolherbst: but its only for this day and one another, then its backend time again
07:23 karolherbst: is there anybody working on fermi pstate stuff currently?
07:26 mupuf: noone is working on reclocking except RSpliet
07:26 karolherbst: okay
07:26 mupuf:stoppped working on it ages ago... and never managed to get back to it
07:27 karolherbst: today :p
07:27 karolherbst: kind of
07:27 mupuf: yeah, voltage management
07:28 mupuf: kind of :D
07:28 mupuf: but this is mostly REing
07:28 mupuf: that, I have not stopped
07:28 karolherbst: I hope we will get this working, will be awesome
07:28 karolherbst: and I hope my cstate stuff will help cards with working volt stuff too. WIll be interesting
07:29 imirkin: mupuf: wait, so why didn't skeggsb like the inexact match thing for voltage?
07:29 imirkin: we'll need that anyways even if we find how to work the voltage regulator...
07:29 mupuf: oh, was it skeggsb who turned it down?
07:30 imirkin: mupuf: you said that approach was rejected
07:30 mupuf: that seems to ring a bell
07:30 mupuf: ah, possible
07:30 imirkin: i can't imagine anyone else who would have done the rejecting :p
07:30 mupuf: rejected or never submitted?
07:30 imirkin: ah, maybe never submitted
07:30 mupuf: mlankhorst was the one with the most complete patchset
07:30 mupuf: I bugged him a lot to finish the REing of the voltage table
07:31 mupuf: which is full of weird stuff
07:33 mlankhorst: I have no idea where the constants came from..
07:34 imirkin: mlankhorst: iirc you had a branch somewhere with nouveau patches that were never upstreamed... but i can't find it
07:34 imirkin: is it gone?
07:34 mlankhorst: no idea, should be master
07:36 imirkin: mlankhorst: master of http://cgit.freedesktop.org/~mlankhorst/linux/ ?
07:37 mlankhorst: think so
07:37 imirkin: k
07:37 karolherbst: whats that?`http://cgit.freedesktop.org/~mlankhorst/linux/commit/?id=eba67a7e007f3f79cd56379c257273b2f06f6d6f
07:38 imirkin: ah yeah, there it is, off the front page. (the guard pages)
07:38 karolherbst: imirkin: which one?
07:38 imirkin: vm guard pages change
07:38 mlankhorst: guard pages are awesome. :p
07:39 karolherbst: http://cgit.freedesktop.org/~mlankhorst/linux/commit/?id=feb10f91b83c139b837ec89efcdd3022b4a457fb ?
07:39 imirkin: ye
07:39 karolherbst: what does it do? :D
07:39 imirkin: it adds guard pages around all allocations
07:40 karolherbst: ahh
07:41 mlankhorst: http://cgit.freedesktop.org/~mlankhorst/linux/commit/?id=0bd462a3b50e829f964696db198f564ea5242fd7 would have identified that a flink can cause duplicate gem handles..
08:04 karolherbst: on which cards are pstates currently working?
08:05 mupuf: pstate = the 4 levels and cstate = boost, right?
08:05 karolherbst: something like that ;)
08:06 karolherbst: https://wiki.freedesktop.org/nouveau/PowerManagement/
08:06 karolherbst: is this table correct?
08:06 karolherbst: allthough fermi would be also "mostly"
08:07 mupuf: nah, this is a bit stupid what we did
08:07 karolherbst: okay
08:07 mupuf: this is way too corse
08:07 mupuf: coarse
08:07 mupuf: and it is hard to know when we are done...
08:07 karolherbst: the cstate changes should work on all cards, where you can set the pstate to the non -1 one
08:08 karolherbst: even if its the 07 one, but chances are you only get one usefull cstate
08:09 karolherbst: cstates currently seems pretty much tied to pstates anyway
08:09 mupuf: yes
08:09 mupuf: we have no support for the pstates
08:09 mupuf: err, cstates
08:09 karolherbst: but before a pstate isn't set I can't get the cstates :/
08:09 mupuf: well, as in, boost
08:10 karolherbst: I don't talk about boost though
08:10 karolherbst: its all within the pstate range without boost
08:10 karolherbst: so it should be fine
08:11 karolherbst: mhh but right, boosts ...
08:11 karolherbst: maybe if we get it to work, I might try to get this to work, too :/
08:11 karolherbst: but this will be a lot of RE
08:15 mupuf: not at all
08:15 mupuf: the RE is mostly done
08:15 mupuf: but before boost, we need dynamic reclocking
08:15 mupuf: boost is just a slightly different way of writing the reclocking algorithm
08:16 karolherbst: ahh nice
08:16 mupuf: we yeah, no reverse necessary
08:16 mupuf: we know everything already
08:16 karolherbst: also down boost reclocking?
08:16 mupuf: what the heck does this mean? :D
08:16 karolherbst: my card is clocked at 135MHz with blob :)
08:16 karolherbst: 405MHz with nouveau
08:16 mupuf: right
08:16 mupuf: you mean downclocking
08:16 mupuf: yes, it is the same feature
08:17 karolherbst: that's why I said "boost" :p
08:17 mupuf: dynamic reclocking, (or DVFS) is actually the concept of scaling voltage and frequency based on how much each clock domain is used
08:17 karolherbst: yeah I know
08:18 karolherbst: would be be possible to clock under these 405MHz yet without voltage changes or is it a hard requiernment?
08:18 karolherbst: like card will be damaged otherwise or it simply won't work
08:19 mupuf: why would you not want to lower the voltage?
08:19 mupuf: changing the voltage is a safe operation
08:19 karolherbst: yeah, I was aksing because of clocking
08:20 mupuf: as long as the damn thing does not overheats
08:20 karolherbst: aka what happens if some underclocks but don't undervolts
08:20 karolherbst: okay
08:20 mupuf: you get a higher power consumption
08:20 CounterPillow: hi, this list is outdated; nvidia recently introduced a feature set F: https://wiki.freedesktop.org/nouveau/VideoAcceleration/
08:20 mupuf: the goal is to always have the lowest possible voltage
08:21 mupuf: because the power usage increases dramatically when increasing the voltage and/or the temperature
08:22 karolherbst: okay, so if the csates are changed, voltage has to be changed as well, and if the gpu is inside the lowest "boosted" cstate, then the voltage is really low then
08:22 karolherbst: or should be set really low
08:24 mupuf: booster cstate?
08:24 mupuf: let's put it this way
08:24 mupuf: there are 4 performance levels
08:25 mupuf: but then, the core clock is a bit more flexible than this
08:25 mupuf: since it has something like 45 possible clocks
08:26 karolherbst: yeah
08:26 mupuf: so, the idea is that inside a performance level, the core clock can be adjusted to keep the voltage as low as possible
08:26 karolherbst: yeah
08:26 karolherbst: but whats about outside of these ranges
08:26 mupuf: since I guess this is where the timings are the most problematic
08:26 mupuf: unspecified behaviour
08:26 karolherbst: mhh
08:26 karolherbst: but how do I get my card then to 135MHz?
08:27 mupuf: overclockers usually go there
08:27 karolherbst: if all pstates only say "405" is minimum
08:27 mupuf: when you say your card is at 135Mhz, you mean the memory clock?
08:27 karolherbst: no, gpu
08:27 mupuf: an nvidia GPU has something like 16 clocks
08:27 mupuf: so it is never clocked at ONE frequency
08:27 mupuf: there is no GPU clock
08:28 karolherbst: okay, then the thing nvidia-settings is reporting as gpu clock
08:28 mupuf: unless you talk about hte crystal, and it is either 25 or 27MHz in this cae
08:28 mupuf: ok, then it is the core clock
08:28 karolherbst: all pstate have 405MHz minimum clock in ouveau currently
08:28 karolherbst: but nvidia-settings also showed 135MHz on full idle
08:28 karolherbst: max is fine
08:28 mupuf: interesting
08:28 karolherbst: yeah
08:29 mupuf: well, nvidia used to have a shader clock and a core clock
08:29 karolherbst: max clock isr gith for all pstates though
08:29 mupuf: but starting from kepler, they stopped doing this IIRC
08:29 karolherbst: first one has also 405 max in blob
08:30 mupuf: core was = shader / 2
08:31 mupuf: I guess we can ignore that for the moment
08:31 mupuf: I have a tool to trace what the blob is doing
08:31 mupuf: we will run it on your machine to see what is going on
08:32 karolherbst: https://imgur.com/2NZ0EYR
08:32 imirkin: CounterPillow: which is even more unsupported ;)
08:33 karolherbst: this is nouveau pstate: https://gist.github.com/karolherbst/28b5064c8a7687d7a7d8
08:33 CounterPillow: Of course, I never intended to imply that it is.
08:33 CounterPillow: Just letting you know in case you missed it
08:33 imirkin: thanks :) it adds vp9 and whatnot?
08:33 imirkin: ah, h.265. neat.
08:34 karolherbst: strange enough: the blob driver switches PCIe modes up to 3.0
08:34 karolherbst: according to pstate
08:34 karolherbst: pstate 2 is always in PCIe 3.0 mode
08:34 karolherbst: maybe this might cause the 0f troubles?
08:34 karolherbst: or does nouveau also do 3.0?
08:36 imirkin: i don't think we have logic for switching pcie modes
08:36 imirkin: i highly doubt it's in any way related to stability... just more power, more speed, etc
08:36 mupuf: karolherbst: I see
08:37 mupuf: I agree with imirkin
08:37 mupuf: should be safe
08:37 mupuf: we do not support changing the number of lanes on the fly
08:37 imirkin: CounterPillow: added to the list, thanks for the heads up
08:37 mupuf: xexaxo had an experiment where he managed to decrease the number of lanes
08:37 CounterPillow: imirkin: no problem
08:37 karolherbst: but is nouveau able to use PCIe 3.0?
08:37 mupuf: but increasing then led to ... a crash
08:37 imirkin: karolherbst: nouveau doesn't "use" pci anything.
08:38 CounterPillow: Also, I hope nouveau won't get into patents trouble if someone adds H.265 support. It's even more risky than H.264 at the moment because there are two competing patent pools.
08:38 karolherbst: okay
08:38 karolherbst: so its more like drm or even more lowlevel
08:38 imirkin: CounterPillow: well, for now, there's no accel of any kind on GM20x
08:39 imirkin: so... future problem :)
08:39 CounterPillow: \o/
08:39 CounterPillow: oh, can somebody explain the significance of this? are these header files useful that nvidia contributed? https://github.com/kfractal/nouveau/commit/f2e6c736a0d9475bc65f5d41a9df3bf56a0c823c
08:39 mupuf: CounterPillow: hopefully, nvidia will allow us to redistribute the video decoding firmwares!
08:39 mupuf: CounterPillow: yes, they are
08:40 CounterPillow: neat
08:40 imirkin: useful, but limitedly so
08:40 imirkin: names are nice. but nowhere near as nice as docs.
08:40 mupuf: the significance: It's great but we already had this information under another form
08:43 mupuf: karolherbst: going back home
08:43 karolherbst: nice :)
09:27 imirkin: wow, GM206 has H265 but GM204 doesn't? that's crazy.
09:28 mwk: that's quite usual
09:28 mwk: introducing new vdec features in the middle of a family
09:28 mwk: like VP3 introduced in G98
09:29 imirkin: VP3 was *totally* different too
09:29 mwk: yeah.
09:30 mwk: someone said the idea is that higher end cards are usually used with i7s that can deal with the crazy codecs on their own...
09:30 karolherbst: :D
09:30 karolherbst: but then they are useless anyway
09:30 mwk: well
09:31 mwk: my feeling is just they they want to stagger the release of new stuff
09:31 karolherbst: or low end is just too underclocked, so they are too slow for the new hot stuff
09:31 karolherbst: (tm)
09:31 karolherbst: but I thnk this is quite common to do so
09:58 jhol: I don't know if this is helpful at all - I have a GeForce GTX750 if anyone needs some experiments running on a very modern GPU
10:15 imirkin_: jhol: it should kinda semi-work with linux 4.1
10:15 imirkin_: and modesetting
10:15 imirkin_: jhol: did anything come of your efforts to get tv working on nv50-era gpu's?
10:16 imirkin_: jhol: vdpau remains completely undone on there btw, if you're looking for a project :)
10:22 jhol: imirkin_: so I've been rather busy for the past few months relocating to the US
10:22 jhol: the TV stuff got a bit distracted
10:22 jhol: first because I heard the whole back-end was going to get rewritten on atomic
10:23 imirkin_: jhol: meh, the atomic thing doesn't prevent RE'ing how to operate the thing
10:23 jhol: also I heard the news about nvidia releasing register listings
10:23 jhol: - is that relevant to this?
10:25 imirkin_: could be
10:25 imirkin_: but it's mostly relevant to GK20A/GM20B
10:25 imirkin_: which means most likely not
10:30 Karlton: anyone know anything about dri3 and why kwin hates my nvidia card? :D
10:31 imirkin_: Karlton: which gpu do you have?
10:31 imirkin_: oh right, some kepler no?
10:31 Karlton: yeah
10:31 imirkin_: optimus or desktop?
10:31 Karlton: desktop
10:31 imirkin_: nouveau ddx from git?
10:31 Karlton: yeah
10:31 karolherbst: dri3 doesn't need ddx
10:31 karolherbst: though
10:31 imirkin_: karolherbst: by that logic you don't need xf86-video-intel :p
10:32 imirkin_: somewhere your logic breaks down though
10:32 karolherbst: then you should ask for intel ddx ;)
10:32 imirkin_: karolherbst: why? he only has an nvidia board
10:32 karolherbst: ahhh
10:32 karolherbst: my bad
10:32 karolherbst: I am stupid
10:32 imirkin_: or just a poor reader :p
10:32 imirkin_: Karlton: what is the fail exactly?
10:33 Karlton: Chipset: GK106 (NVE6) -- kwin with dri3 has memory corruption or something
10:33 karolherbst: imirkin_: do you think I could run kwin through DRI_PRIME=1? :D
10:33 Karlton: with the compositor turned on
10:34 imirkin_: karolherbst: i don't see why not
10:34 karolherbst: yeah
10:34 karolherbst: wow
10:34 imirkin_: Karlton: can you describe the issue.
10:35 Karlton: funny artifacts happpen in menus or when I type my letters disappear
10:35 imirkin_: Karlton: did you enable glamor?
10:35 imirkin_: if so, disable it
10:35 imirkin_: its integration with nouveau is broken
10:36 Karlton: oh yes, I have that installed
10:36 imirkin_: it's fine for it to be installed
10:36 imirkin_: just don't set AccelMethod to that. should default to EXA
10:36 Karlton: I didn't change anything
10:36 imirkin_: Karlton: also old xorg's have issues with dri3
10:36 Karlton: just built it with mesa
10:37 imirkin_: apparently 1.16.3 is safe to use though
10:39 Karlton: well how do I make sure i am not using glamor?
10:39 imirkin_: check your xorg log
10:39 imirkin_: should say it's using EXA accel method
10:46 Karlton: yeah it isn't using glamor
10:46 imirkin_: ok cool
10:46 imirkin_: i have no idea what's wrong, unfortunately
10:47 Karlton: tried to do an apitrace of kwin but then it didn't reproduce and the trace was garbage anyway
10:51 imirkin_: sorry, i dunno what dri3 does and how it's different... i suspect that some of the implicit flushing assumptions aren't maintained with dri3
10:51 imirkin_: and that's why there's a lot of render fail
10:51 mupuf: karolherbst: ok, I may have found the reg
10:51 Karlton: everything is fine except for kwin compositioning
10:52 imirkin_: which is kind of a big use-case
10:52 karolherbst: mupuf: nice
10:53 karolherbst: so what should I do
10:54 imirkin_: mlankhorst: should nouveau_present_flip_exec wait on the pixmap bo?
10:54 imirkin_: mlankhorst: or perhaps do that in present_flip_check
10:55 mupuf: karolherbst: nope, that was a really possibility
10:55 mupuf: but lowering the voltage does not change make the gpu crash
10:55 mupuf: must be wrong :D
10:57 karolherbst: mhhh
10:57 karolherbst: depends
10:57 karolherbst: to what you set it
10:58 mupuf: lowest possible :D
10:58 karolherbst: mhh
10:58 karolherbst: 0Hz, nice
10:58 karolherbst: mhh 0v
10:58 mupuf: I doubt it will be 0v
10:58 karolherbst: but according to the voltage table the lowest entry?
10:58 mupuf: possibly, yes
10:58 karolherbst: mhhh
10:58 karolherbst: bad idea
10:58 mupuf: why?
10:59 karolherbst: it has 1.25V here
10:59 karolherbst: and the card shouldn't go much over 1V
10:59 mupuf: don't worry about the voltage, what is dangerous is power
10:59 karolherbst: k
10:59 karolherbst: but it shouldn't crash immediatly anyway
10:59 karolherbst: so yeah
11:00 mupuf: ah ah, trust me, yes it will
11:00 mupuf:has experimented with this quite q lot during his PhD
11:02 karolherbst: I mean if it was the right one
11:03 Karlton: imirkin_: it looks like this https://imgrush.com/JBJHxssAELNI
11:04 imirkin_: Karlton: yeah looks like some sort of fail, seems likely to be in the X server
11:04 imirkin_: alllthough... with full-screen compositor, dunno
11:04 imirkin_: i don't really know how compositors actually work
11:05 imirkin_: it's an area of the stack i've never really explored since i never use them myself
11:08 karolherbst: imirkin_: dangerous knowledge: I think compositor are getting the buffer of the window contents and do something with it
11:09 imirkin_: karolherbst: yeah... i mean it's _something_ like that, but the devil is in the details
11:09 imirkin_: and nouveau ddx has some very questionable practices regarding when commands actually get flushed out and pushed
11:10 karolherbst: I see
11:10 imirkin_: so if a buffer goes through some path where that wasn't thought about, then... boom
11:10 imirkin_: or rather, stale buffer contents :)
11:10 karolherbst: would be nice to know what kind of artifacts are there
11:11 karolherbst: will there be also content of windows
11:11 karolherbst: or only the border for example
11:11 imirkin_: i'm guessing just left-overs from moving down the selection list
11:11 imirkin_: that are being in the process of being rendered over, but not done yet
11:11 imirkin_: maybe in the texture-from-pixmap dealie, dunno
11:12 imirkin_: skeggsb: does nouveau_bo_wait still work with imported dma-buf bo's?
11:12 imirkin_: skeggsb: i.e. if side a is writing to the bo, and then side b wants to wait on that render
11:12 imirkin_: (or mlankhorst --^)
11:14 karolherbst: mupuf: any status update? Otherwise if you want I could try out the cstate changes on other cards
11:15 karolherbst: ahh I thiknk you need the machine now :D
11:15 imirkin_: mupuf: what do you have plugged into reator? if it's a gk10x, i should do a piglit run on it when you guys are done playing.
11:16 mupuf: karolherbst: nah, still trying to understand what is going on
11:16 karolherbst: I see
11:16 mupuf: seems like I cannot force the GPIO to 0
11:17 mupuf: let's try fuzzing areas
11:25 mupuf: ah, that's what I call a conclusive result!
11:25 karolherbst: ?
11:25 mupuf: well, the card suddenly returning 0xfffffff to every request
11:25 RSpliet: mupuf: I see what you did there ;-)
11:25 RSpliet: I don't think any of the NVA0 is on it's way to drm-next just yet
11:26 karolherbst: which means?
11:26 mupuf: karolherbst: that the voltage went out of spec and the card just hanged
11:26 imirkin_: karolherbst: generally "gpu off"
11:26 karolherbst: ahh
11:26 karolherbst: so you found the right one basically?
11:26 karolherbst: or part of it
11:27 imirkin_: or just a way to nuke the gpu ;)
11:27 imirkin_: as if we didn't have enough of those
11:27 mupuf: imirkin_: exactly
11:27 imirkin_: just try using the damn thing, and it dies
11:28 mupuf: karolherbst: exactly what imirkin_ said. I just found a sure way of crashing the gpu
11:28 karolherbst: okay
11:28 mlankhorst: imirkin_: nouveau_bo_wait works, but only waits on ttm drivers..
11:28 mupuf: and it doesn't crash as easily when X is not loaded and unigine-heaven is not running
11:28 mupuf: see, conclusive result!
11:28 karolherbst: :d
11:28 mupuf: not that it means I found anything
11:29 mupuf: but it is possible
11:29 mlankhorst: driver has to implement implicit sync
11:29 karolherbst: not usable at the moment (tm)
11:29 mupuf: it is also possible I am accidentally enabling power gating
11:29 mupuf: ?D
11:29 imirkin_: mlankhorst: ok, but nouveau + nouveau it should work
11:29 mupuf: who knows!
11:29 mlankhorst: yes
11:29 mlankhorst: it will perform a wait on command submission too, instead of in hardware
11:29 imirkin_: mlankhorst: could we be passing a fd without flushing the command stream on it
11:30 imirkin_: i.e. we could have stuff written to the pushbuf but haven't submitted it yet
11:30 imirkin_: that way a remote wait won't end up knowing about that
11:30 imirkin_: while a local one would (since bo_wait checks for unsubmitted pushbufs)
11:31 karolherbst: mupuf: maybe you activated boost while in 07 :p
11:31 karolherbst: and boost is only for 0f
11:31 karolherbst: :p
11:32 imirkin_: mlankhorst: http://cgit.freedesktop.org/nouveau/xf86-video-nouveau/tree/src/nouveau_dri2.c#n1095 -- should that do a PUSH_KICK or something? or does nouveau_bo_set_prime handle that?
11:32 mlankhorst: no need to kick there, though when your command completes you probably have to make sure its kicked
11:32 mupuf: karolherbst: boost is not a hw feature
11:32 mupuf: it is controlled by the CPU
11:33 karolherbst: ahh okay
11:33 imirkin_: mlankhorst: well, the thing is that all the EXA stuff doesn't actually do a PUSH_KICK at the end
11:33 mupuf: boost is just faster and finer-grained reclocking
11:33 imirkin_: instead it relies on internal libdrm cleverness
11:33 karolherbst: mhh
11:33 karolherbst: mine reclocking is pretty dier grained already
11:33 mlankhorst: imirkin_: the idle handle does? :p
11:33 mlankhorst: handler
11:33 karolherbst: *finer
11:33 imirkin_: mlankhorst: let's say i don't know what that is...
11:33 imirkin_: where might i find that
11:34 mlankhorst: block handler or something
11:34 imirkin_: in nouveau? what does it relate to?
11:35 imirkin_: src/nouveau_glamor.c: glamor_block_handler(pScrn->pScreen);
11:35 imirkin_: this?
11:35 mlankhorst: something like that
11:35 imirkin_: aha NVBlockHandler
11:36 imirkin_: can't say i really understand what that is or does =/
11:36 imirkin_: time to read dri2 spec?
11:37 mlankhorst: it gets called when idle
11:37 mlankhorst: not part of dri2 spec
11:37 mlankhorst: so commands get batched
11:38 imirkin_: so you're saying that it can never happen that we, say, share a dma-buf bo for a pixmap
11:38 imirkin_: and then we get some rendering command to that pixmap
11:38 imirkin_: and then the remtoe end of that dma-buf wants to read that data
11:39 imirkin_: but the DDX won't have flushed thec ommands
11:39 imirkin_: [is what i'm saying even making any sense?]
11:42 mlankhorst: it can easily happen :p
11:42 mlankhorst: just hopefully not likely
11:43 imirkin_: ok, so... what's the way to rseolve that? if the fd has been shared then flush in the EXA*Done callback?
11:43 nfk: gosh, I can't even understand which driver i'd need if i bought an amd gpu: https://www.phoronix.com/scan.php?page=news_item&px=AMD-300-Open-Source-Support i wonder how those amd zealots can understand it
11:43 imirkin_: or is there some sort of server-side call for it
11:43 imirkin_: nfk: i can tell you what driver you won't need -- nouveau :)
11:43 karolherbst: :D
11:43 nfk: right
11:44 karolherbst: my nvidia card was so new once, that even windows hadn't a driver
11:44 karolherbst: and I just got an older patched modded driver
11:46 nfk: imirkin_, don't worry if i do decide to buy an amd gpu (which is now supper unlikely as amd's value is going through the floor and i expect MS will be able to buy it with russian roubles one of their engineers got as a change few years ago next month) i'll be sure to ask you because there's no way i'm trusting an amd zealot as to what's the best driver which gpu to get
11:47 imirkin_: not sure that an amd zealot would provide you a substantially different answer wrt which driver to use -- you can only use one for any given gpu
11:47 nfk: amd zealots always lie
11:47 Karlton: I only know of radeon and the proprietary driver for AMD
11:48 imirkin_: nfk: that's great -- just do the opposite of what they say then!
11:48 nfk: and they use so many codenames i can never make heads or tails of, just look at that moronix article, fiji, fuji, cerial and bonjovi, i felt lost in a limbo before i had gotten to the end of second paragraph
11:48 imirkin_: only becomes an issue if they *sometimes* lie
11:48 mupuf: karolherbst: pretty sure I found the right PWM controller, but it may be double buffered
11:48 imirkin_: nfk: search for "amd gpu decoder ring"
11:48 mupuf: or tripple buffered
11:48 karolherbst: mhhh
11:48 karolherbst: I know that I knew what that means
11:49 mupuf: single buffered = write to it and the value is immediatly used
11:49 mupuf: double buffered = update the value and then commit it
11:49 mupuf: but for this one, there may be another level
11:49 nfk: imirkin_, but there's 3 current drivers, fglrx which is actually sometimes called ati by distros, radeon, radeonhd (whatever that is) and amdgpu, wait, that's 4
11:50 imirkin_: haha radeonhd
11:50 imirkin_: that hasn't been a thing in ages
11:50 mupuf: I mean, what I am tweaking is obviously a PWM controller
11:50 mupuf: and it is located next to another one
11:50 nfk: so i just know that what they're telling me is definitely out but not what is the right answer, much like playing who wants to be a millionaire
11:50 mupuf: and it ramps up and down with the performance level
11:51 imirkin_: nfk: anyways, your questions and concerns are better suited to #radeon than #nouveau
11:52 karolherbst: mhh nice
11:52 karolherbst: want have cstate stuff?
11:52 karolherbst: or should I try something out?
11:53 mupuf: nah, I do not need that right now
11:53 mupuf: 1) Do the reverse engineering
11:53 mupuf: 2) start implementing
11:53 mupuf: 3) ????
11:53 mupuf: 4) Fun!
11:54 karolherbst: I see
11:55 karolherbst: I meante like changing cstate and check if the pwm is doing something
11:55 karolherbst: mhh
11:55 karolherbst: wouldn't make much sense though
11:55 mupuf: you forgot again that this is supposed to be the driver's job to do that :D
11:55 mupuf: right :D
11:55 mupuf: otherwise, why would we even care about it?
11:56 karolherbst: makes sense
11:56 Karlton: imirkin_: so, I noticed that I can reclock my card to 0f(highest performance level) if xorg isn't running :p
11:56 Karlton: but if I do startx and then launch a game like minetest, the gpu hangs
11:57 imirkin_: Karlton: yeah, things only die if you use the gpu
11:57 karolherbst: Karlton: strange
11:57 imirkin_: the act of reclocking doesn't actually break anything
11:57 karolherbst: Karlton: it sometimes randomly works here
11:57 Karlton: but 0d gets all kinds of screen corruptions
11:58 Karlton: even without x running
12:00 karolherbst: mupuf: what values does the pwm read for each pstate?
12:01 Karlton: imirkin_: actually I can run fine in kde with it as long as I don't launch a game or play a video
12:01 Karlton: but this also happens at the lowest pstate, just less frequently
12:02 Karlton: at 0a I run run for days before it dies
12:05 Karlton: what would cause it to lockup when I put a load on it?
12:05 Karlton: probably many things?
12:05 imirkin_: any one of a bajillion things
12:06 Karlton: https://imgrush.com/ROX3kN6kSUQM.png :)
12:07 imirkin_: i'm just waiting for the ping timeout :p
12:08 Karlton: I have irssi running on an arm server :p
12:08 Karlton: but it hasn't died yet
12:09 Karlton: I'll try to play a video...
12:12 Karlton: [16840.613500] nouveau E[ PGRAPH][0000:01:00.0] TRAP ch 12 [0x023f386000 Xorg[7335]]
12:12 Karlton: [16844.250554] nouveau E[ DRM] GPU lockup - switching to software fbcon D:
12:12 Karlton: after playing the video for 5 seconds
12:14 Karlton: actually a lot PGRAPH stuff, whatever that means
12:24 mupuf: karolherbst: I managed to get e, 11 and 15
12:25 mupuf: you would need my vbios though
12:25 karolherbst: why?
12:25 mupuf: and the divider would be 18
12:25 mupuf: because every card potentially has different settigns
12:25 karolherbst: ahh
12:25 mupuf:is rebasing his reverse tools on the newer nouveau
12:25 karolherbst: then I will use them
12:25 karolherbst: and figure out which ones
12:26 karolherbst: somebody wanted to run piglit tests
12:26 karolherbst: do we should do the cstate stuff first or piglit?
12:26 karolherbst: allthough cstate isn't important yet
12:26 karolherbst: regressions are more important
12:27 karolherbst: imirkin_: ping
12:27 imirkin_: pong
12:27 karolherbst: mupuf seems to be done playing for now ;)
12:27 mupuf: karolherbst: nah, still using reator
12:27 karolherbst: I see
12:27 imirkin_: well i can't ssh into it from here anwyays
12:27 karolherbst: ahh k
12:49 imirkin_: Karlton: hey, so long story short, it seems like DRI3 is only half-baked at this point, with many potential (even if not real) issues
12:49 imirkin_: Karlton: i'm going to suggest not enabling dri3 by default at all in the nouveau ddx
12:51 mupuf: imirkin_: wise move
12:55 Karlton: imirkin_: okay, but kwin was the only thing that gave me problems :)
12:56 imirkin_: only the compositor :p
12:56 imirkin_: did you try other ones
12:56 Karlton: no
12:57 Karlton: imirkin_: also I get this when I play a video even if I don't reclock http://sprunge.us/JAQU
12:58 Karlton: but only only happens after a minute or longer than 0f
12:59 Karlton: whole system locks up and I had to get dmesg from sshing into it
12:59 Karlton: well at least I couldn't get into tty2
13:00 mupuf: imirkin_: you wanted a fermi?
13:01 RSpliet: yes please
13:02 mupuf: ok, you wanted a kepler
13:02 mupuf: :p
13:02 Yoshimo: free maxwells too? :P
13:02 karolherbst: :D
13:03 mupuf: Yoshimo: of course, open bar!
13:03 mupuf: imirkin_: I plugged a maxwell and a kepler
13:03 mupuf: reator has booted
13:03 mupuf: you are free to use it
13:04 Yoshimo: unfortunately nvidia seems to only help with tegra chips , so most recent cards won't help much mupuf
13:04 RSpliet: I would really like some Pascal cards as well...
13:04 imirkin_: mupuf: yeah, i already got your fermi ;)
13:05 imirkin_: mupuf: thanks!
13:05 karolherbst: mupuf: so, what are we going to do now
13:05 imirkin_: Karlton: hm, that sucks
13:05 RSpliet: mupuf: got a Volta for me? :-P
13:05 imirkin_: i think nvidia published enough enums to make sense of that PROP trap enum though
13:06 mupuf: RSpliet: sure, just come here!
13:07 Karlton: I don't know what any of that means :D
13:07 mupuf: karolherbst: well, until we figure out how to cange the voltage, we are stuck. aren't we?
13:08 karolherbst: I though you found the pwm thingy
13:08 karolherbst: *thought
13:12 mlankhorst: imirkin_: oh btw I remember, present is braindead on gpu screens..
13:12 mlankhorst: not just braindead, but awful too :D
13:13 imirkin_: mlankhorst: ok, but i don't think that's Karlton's issue -- he just has the 1 gpu
13:14 mlankhorst: ah, i thought you meant with nouveau/nouveau sharing between different nouveau cards
13:14 imirkin_: mlankhorst: no. nouveau sharing with itself :)
13:14 imirkin_: but diff channels i guess.
13:14 mlankhorst: that should work normally
13:14 imirkin_: it does generally work
13:14 imirkin_: but there are artifacts
13:15 imirkin_: but only with DRI3
13:15 mlankhorst: http://cgit.freedesktop.org/~mlankhorst/xserver/commit/?h=tegra&id=39267aff3dc12c701997bd9911114950f00d85fb
13:16 mlankhorst: iirc
13:16 imirkin_: Karlton: can you give the above patch a shot?
13:16 imirkin_: Karlton: note that it's a patch against X
13:16 mlankhorst: flipping a screen causes the window pixmap to be changed, so every other frame it doesn't allow flipping and blits out the entire pixmap and back
13:16 mlankhorst: good times. ;-)
13:16 Karlton: xorg-server patch?
13:17 imirkin_: ya
13:17 mlankhorst: not sure if anybody else noticed or fixed it
13:18 imirkin_: it seems like no one cares much about X anymore :(
13:18 imirkin_: a bit unfortunate given that wayland is nowhere close to a replacement.
13:19 imirkin_: [at least not in its present state]
13:19 mlankhorst: it does make x more stable :P
13:19 imirkin_: yeah, but then someone tries to add DRI3 and it's only like half-done :(
13:20 imirkin_: and nobody around to fix it
13:20 mlankhorst: I had present working with gpu screens, that was pretty cool. :P
13:21 imirkin_: and then you took your patches and never sent them out :p
13:21 karolherbst: DRI3 works for me
13:21 eijebong: Hi, i've got some weird issues :) When I launc glxspheres or glxgears, I've got 1 FPS ( 5 frames in 5.0 seconds = 1.000 FPS ). GPU = 770M.
13:21 karolherbst: to be honest, I couldn't understand how somebody doesn't want to use DRI3, because intel SNA was pretty bugged for me with DRI2 :O
13:22 karolherbst: eijebong: that's my gpu :p
13:22 karolherbst: eijebong: kernel?
13:22 karolherbst: and do you get a pciture at all?
13:22 karolherbst: also dmest
13:22 karolherbst: *dmesg
13:22 eijebong: I get a picture
13:22 mlankhorst: imirkin_: well I was hitting too many bugs on tegra to continue :(
13:23 eijebong: And kernel g1c4c715 (I think i'm one commit late)
13:23 karolherbst: g1c4c715 ?
13:23 imirkin_: s/g//
13:24 imirkin_: eijebong: lspci -nn -d 10de:
13:24 eijebong: Ha yay, a g got into my message :o
13:25 karolherbst: imirkin_: strange that the card works at all or isn't ben hack needed
13:25 eijebong: And my dmesg is flooded, so I've got nothing but nouveau debug from like the 5 last seconds...
13:25 karolherbst: *bens
13:25 imirkin_: karolherbst: that hack is only needed on a select number of laptops
13:25 eijebong: [eijebong@poueca] ~ >>> lspci -nn -d 10de:
13:25 eijebong: 01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK106M [GeForce GTX 770M] [10de:11e0] (rev a1)
13:25 eijebong: 01:00.1 Audio device [0403]: NVIDIA Corporation GK106 HDMI Audio Controller [10de:0e0b] (rev a1)
13:25 karolherbst: imirkin_: okay
13:25 imirkin_: eijebong: pastebin dmesg
13:27 eijebong: http://paste.bananium.fr/?b9cc7b68a2f949d9#5KFvMqP8VVnMLQGsCe6DWuOOxoU4pBFHMsUOZR0XKP8= As I said, I've got only 2 seconds of dmesg...
13:28 imirkin_: why trace level?
13:29 imirkin_: eijebong: please leave the debug setting alone for now
13:29 eijebong: Because i was curious :) But eh, i'm recompiling right now
13:30 imirkin_: you don't have to recompile... nouveau.debug=trace will flip trace on
13:30 karolherbst: debug=info is good enough ;)
13:30 imirkin_: nouveau.debug=info will flip it off
13:30 imirkin_: if you have the default level set to trace
13:30 imirkin_: but you should leave those defaults alone
13:30 imirkin_: both that one and the max debug level should stay at their default values
13:30 imirkin_: unless you _really_ know what you're doing
13:31 karolherbst: logging isn't that cheap, systemd had to learn it the hard way and they overflooded the kernel with IO, so nothing worked
13:31 karolherbst: while spawning a lot of stuff into dmesg
13:31 imirkin_: this isn't strictly systemd's fault though... this is nouveau printing trace stuff.
13:31 karolherbst: yeah
13:31 karolherbst: I was just saying
13:31 imirkin_: happens to be systemd-logind sending the ioctl's for god-knows-what reason
13:31 karolherbst: performance hit through logging is possible
13:32 eijebong: Yeah, but 1.000 FPS, that's weird
13:32 eijebong: Rebooting.
13:32 imirkin_: most likely due to something else
13:32 imirkin_: but need to see dmesg :)
13:32 Karlton: mlankhorst: no, that patch did not change anything
13:33 karolherbst: imirkin_: I bet it could be related to backlight or something (why its systemd-logind) or something totally random
13:33 karolherbst: ahh, the consoles maybe?
13:33 karolherbst: nvm, unimportant
13:35 karolherbst: mupuf: how is the work going with the RE tool?
13:37 Karlton: imirkin_: I am going to put in a different card and see :)
13:43 mupuf: karolherbst: it does not want to work on my maxwell
13:43 mupuf: but I have other stuff to do tonight
13:43 mupuf: so I put it on hold
13:44 karolherbst: :/ sad
13:44 eijebong: My dmesg http://paste.bananium.fr/?5fd7dd862260cb5a#g/dHknT/cV2Ys6Ej4/01Lte76SzF/pZHsg1RSPqaDuc=
13:45 imirkin_: eijebong: ok, so that seems to be perfectly happy
13:45 eijebong: :) Except for the crash in the middle
13:45 eijebong: It says my BIOS is broken... Meh
13:46 imirkin_: what, the dmar thing? meh.
13:46 karolherbst: mupuf: maybe I could play around with the tool or is it not save enough and I will just brick my gpu?
13:46 imirkin_: actually, could be related. try disabling it?
13:46 imirkin_: should be a bios setting
13:46 mupuf: karolherbst: you cannot brick the gpu easily
13:46 eijebong: No idea of what it is
13:46 mupuf: I never managed to brick one ... except when I put one in the oven at 200C
13:47 eijebong: mupuf: Why would you do that ?
13:47 mupuf: eijebong: to resolder the chipset
13:47 mupuf: I bought something like 12 cards that did not work anymore
13:47 karolherbst: I heard that you could repair bricked card that way :D
13:47 mupuf: and I fixed them by resoldering it in my over
13:47 mupuf: that was around the time of the geforce 8
13:49 imirkin_: eijebong: pastebin output of "DRI_PRIME=1 glxinfo"
13:51 Karlton: imirkin_: I plugged in a different card, Chipset: GT215 (NVA3), but I think it might be using dri2
13:51 imirkin_: should support dri3 just fine
13:51 imirkin_: at least afaik
13:52 Karlton: does it say for sure in the xorg log?
13:53 imirkin_: don't think so
13:53 eijebong: http://paste.bananium.fr/?d0c41f95c456cab5#DfsayeUyI49XcixNff/xKwTnyCRL90U+BJOz3sgXhsI= Here, the error does not appear if I remove DRI_PRIME=1 (I'm not using my intel card, i'm using the config from here https://wiki.archlinux.org/index.php/NVIDIA_Optimus#Using_nvidia (with nouveau instead of nvidia))
13:53 imirkin_: oh dear
13:53 karolherbst: ...
13:53 karolherbst: this is what I meant about arch
13:54 imirkin_: eijebong: http://nouveau.freedesktop.org/wiki/Optimus/
13:54 imirkin_: please read over that and follow its suggestions
13:54 imirkin_: i have no idea about the accuracy of that arch guide for using the blob driver, but it's def not the recommended thing for the open stack.
13:55 Karlton: imirkin_: well I can't reproduce that artifacts now :(
13:55 karolherbst: the guide itself is fine with the prop driver
13:55 eijebong: Okay' (It was working very well with the proprietary driver)
13:55 karolherbst: it basically uses the intel with the modesetting driver to display stuff which got rendered by nvidia, and here everything is rendered through nvidia
13:56 karolherbst: eijebong: the downside of this is: the nvidia card is always on
13:56 karolherbst: and can't be turned off
13:58 eijebong: Yep
13:58 karolherbst: eijebong: I would recommend you a bumblebee setup with that card, its fast enough for almost everything with primus
13:59 karolherbst: also you can easily switch between nvidia and nouveau that way
13:59 karolherbst: also turn your card on/off manually if you wish through bbswitch (but that's done by bumblebeed automatically)
13:59 eijebong: Yeah, I don't like bumblebee, it's not working well with anything that has a launcher :/
14:00 karolherbst: sometimes I mess up the gpu in nouveau or nvidia and while loading the other one my system crash hangs :D
14:00 karolherbst: eijebong: primusrun
14:00 karolherbst: also offers better performance than the bumblebee vgl bridge
14:01 eijebong: Mhh I had some bad experiences with primusrun/optirun, one would work sometimes, sometimes the other...
14:01 karolherbst: yeah, it was bad at the start
14:01 karolherbst: seems to be better now though
14:01 eijebong: Maybe it changed, maybe my graphic card was too shitty, I don't know
14:01 eijebong: I'll try with PRIME
14:01 karolherbst: "shitty"
14:01 eijebong: karolherbst: No, I had a 610M before
14:01 karolherbst: ahh
14:01 imirkin_: eijebong: yeah, no bumblebee/optirun or whatever
14:01 karolherbst: yeah, that one is indeed bad
14:01 eijebong: "shitty" :D
14:02 imirkin_: eijebong: just nouveau. it should auto-shut the gpu off when it's not in use
14:02 karolherbst: yeah if you not plan to use bumblebee at all and only nouveau, its autopm stuff is most likle the best option
14:03 karolherbst: imirkin_: tells me a lot not to use bbswitch with nouveau :)
14:03 imirkin_: look, if you know exactly what you're doing, you can use whatever
14:03 imirkin_: but if you're not sure, stay away from that stuff
14:03 imirkin_: just complicates matters and makes things worse for the simpler use-cases
14:03 karolherbst: right
14:06 eijebong: Works so much better o_o
14:07 eijebong: And 0 config
14:07 karolherbst: :D
14:07 eijebong: And X starts faster
14:07 eijebong: And each time
14:08 eijebong: But I think the nvidia card is not down
14:09 karolherbst: cat /sys/kernel/debug/vgaswitcheroo/switch
14:10 karolherbst: eijebong: if that file doesn't exist: you need CONFIG_VGA_SWITCHEROO enabled
14:10 eijebong: Yep, doesn't exist, i'll flip that on
14:10 eijebong: And should I do xrandr --setprovideroutputsource nouveau Intel ?
14:10 karolherbst: no
14:10 eijebong: It works without
14:11 eijebong: Okay'
14:11 karolherbst: not with DRI3
14:11 karolherbst: but it depends
14:11 karolherbst: do you use DRI3 or DRI2?
14:11 karolherbst: ahh
14:11 karolherbst: then DRI3 it is
14:11 karolherbst: you only need this with DRI2
14:11 eijebong: Yep, ok
14:11 imirkin_: read the wiki page, it has all that info
14:12 Karlton: imirkin_: all I did was plugin a different card and now the problem is gone?
14:14 Karlton:wishes he could make an apitrace of it :(
14:21 Karlton: imirkin_: btw I replayed my old flightgear trace and it looks fine on this card
14:22 Karlton: no green stuff
14:23 imirkin_: Karlton: a few bugs have been fixed too, might try it on your kepler too
14:23 eijebong: Mhh I think I missed something... My nvidia card is down now, but OpenGL renderer string: Mesa DRI Intel(R) Haswell Mobile event with DRI_PRIME=1
14:23 Karlton: imirkin_: okay, i'll reboot...
14:24 imirkin_: eijebong: did you follow the steps in the wiki?
14:27 eijebong: What steps are you talking about ? Because for DRI3 I see some requirements
14:27 imirkin_: eijebong: pastebin dmesg again
14:27 eijebong: http://paste.bananium.fr/?3076bfb3e6a1c1b4#xMFY68QiGh3dd3hyzvE6hxkPFnHD04Ad7JKcZqvTc4c=
14:28 imirkin_: [ 29.987294] nouveau E[ PGRAPH][0000:01:00.0] HUB_INIT timed out
14:28 imirkin_: ok, so you have the same issue as karolherbst and a bunch of other people with a GK106
14:28 eijebong: Yep, just saw that
14:28 eijebong: Okay' :/
14:29 imirkin_: surprising that it worked in the old config
14:29 imirkin_: although i guess it's probabilistic
14:29 imirkin_: there's a hack branch, but it doesn't work with runpm too well
14:29 imirkin_: specifically this patch: http://cgit.freedesktop.org/~darktama/nouveau/commit/?h=hack-gk106m&id=64b75967fe13499f12876ec10a31d9141e828714
14:30 imirkin_: seems to help people. but you have to turn runpm off.
14:30 imirkin_: which means the gpu won't auto-suspend
14:30 skeggsb: imirkin_: airlied mentioned some kind of patch he has that might help that issue
14:30 imirkin_: skeggsb: which one?
14:30 skeggsb: i don't know, i never asked, but he mentioned it when it came up a little while back
14:31 skeggsb: i think he's out on PTO at the moment
14:31 imirkin_: skeggsb: i mean... which issue? :)
14:31 skeggsb: runpm
14:31 imirkin_: oh
14:31 skeggsb: adding some kind of delay after the power-on, or something
14:34 imirkin_: ah
14:34 imirkin_: btw. reminder about bios codes patch.
14:35 Karlton: imirkin_: no, I see green stuff now
14:35 Karlton: and artifacts from kwin compositor -.-
14:35 imirkin_: heh ok
14:36 Karlton: difference between NV50 and NVE0
14:37 skeggsb: imirkin_: thanks, pushed
14:37 imirkin_: thanks
14:38 imirkin_: i'm sure TNT and TNT2 owners the world over will rejoice :)
14:39 karolherbst: imirkin_: fun fact: it kind of works for me with runpm now, but I think it can cause troubles nethertheless, so I am not sure
14:39 karolherbst: will keep it on and see how long it goes well
14:40 mupuf: skeggsb: wasn't it airlied who added the 200us delay after the power-off or power-on to make it work better?
14:41 skeggsb: mupuf: ah, that's been merged?
14:42 skeggsb: ah yes, i see it
14:42 mupuf: :)
14:43 eijebong: When has it been merged ?
14:45 mupuf: eijebong: it is in linux 4.1
14:45 mupuf: imirkin_: don't forget to turn off reator when you are done :)
14:45 imirkin_: but you probably want ben's hackpatch too
14:45 imirkin_: mupuf: i won't
14:45 eijebong: Ha ok, so it doesn't work for me
14:45 imirkin_: mupuf: or rather, i'll try not to
14:46 imirkin_: i was going to try running on the maxwell again when the kepler was done
14:46 mupuf: have fun :)
14:50 karolherbst: skeggsb: I have an issue with my 770M, that prevents the pstate change mechanism to set any cstate, because the voltage can't be set on my card. I wrote some patches to get by this issue and also added a mechanism to select cstate manually through the same means like the pstate thing currently. Would you like to look over it?
14:51 karolherbst: switching pstates gives me only like 10%-20% more performance with swithcing cstate gives another 10%
14:53 skeggsb: karolherbst: did you change memory frequency too?
14:54 karolherbst: psate does change it itself already
14:54 karolherbst: antichamber got a 400% boost to 0f state
14:54 karolherbst: but it was the only application with such a boost
14:54 karolherbst: that's why I think its only memory limited
14:54 karolherbst: stuff like talos or borderlands only got these 20%, 10% increases
14:55 skeggsb: the voltage stuff needs a lot of love, i suspect some kind of merge between gk20a's cvb code and how we currently use the bios "voltage map" table needs to happen
14:55 karolherbst: also the pstate files tells me, that the gpu core clock sticked to the old value
14:55 skeggsb: but it requires a lot of reverse-engineering
14:55 karolherbst: yeah mupuf was there already
14:56 karolherbst: he found out, that its done through a pwm controller
14:56 skeggsb: there's loads of things that need fixing in that whole area
14:56 karolherbst: now I thiknk I am able to clock my gpu core up through cstates, but will stay at low voltage
14:56 skeggsb: yeah, i seen that, that's another issue that needs to be addressed on top of the bios tables :)
14:57 karolherbst: I was thinking if the cstate could improve performance for cards, where setting voltage already worked, because for me the pstate code always set to the slowest cstate
14:57 karolherbst: even after I fixed that
14:57 skeggsb: it'd be real nice if nvidia would give some kind of help here, particularly since they have no problem implementing it for gk20a, but i wouldn't hold my breath.. we'll probably have to figure it out ourselves
14:58 skeggsb: generally the highest *should* get picked.. it's *supposed* to be automatic based on various factors
14:59 karolherbst: yeah, I thought so too
14:59 karolherbst: I could test again with the little workaround applied to get around the volt stuff
15:01 karolherbst: ohhh I think I know not what I've done
15:02 karolherbst: ahh now I understand
15:03 karolherbst: yeah, that the pstate method selects the lowest is a regression here, because I enabled the possibility to manually select a cstate
15:04 karolherbst: but with stock nouveau and your hack only, it fails to set the cstate anyway
15:04 karolherbst: so I stick with lowest clock on master
15:08 karolherbst: skeggsb: seems like the last cstate inside the list was used always. The nvkm_cstate_prog function has a cstatei parameter, which is currently doing nothing. pstate selects 0, which kinda means the first one, which is the lowest cstate, so by fixing the selection, the lowest possible cstate is then selected by nvkm_pstate_prog
16:38 imirkin_: skeggsb: gm107 seeing lots of "fail set_domain" on random-seeming shader tests.
16:39 imirkin_: kernel 4.0-rc4 it seems
16:39 imirkin_: same kernel was fine with kepler and fermi though
16:40 imirkin_: [and it's using blob ctxsw fw]
19:59 boxfire: skeggsb: just poking you about TMDS > 165 MHz
22:27 ebrasca: nouveau E[ PIBUS][0000:01:00.0] HUB0: 0x614900 0x00800000 (0x19408200)
22:29 imirkin: is there an actual problem, or just an annoying message?
22:32 ebrasca: imirkin: i have problem
22:35 ebrasca: imirkin: i can run intel graphic but i can't run nvidia graphic
22:35 imirkin: ebrasca: lspci -d 10de: -nn
22:37 ebrasca: 01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GM107 [GeForce GTX 750 Ti] [10de:1380] (rev a2)
22:37 ebrasca: 01:00.1 Audio device [0403]: NVIDIA Corporation Device [10de:0fbc] (rev a1)
22:37 imirkin: you need a 4.1 kernel if you want out-of-the box accel with that
22:37 ebrasca: i have 4.1.1
22:38 imirkin: ebrasca: how are you using this... this looks like a desktop card
22:38 imirkin: are you using it as your primary card? or secondary?
22:41 ebrasca: imirkin: are you mean on BIOS?
22:42 imirkin: ebrasca: i mean... why is this card inserted into your machine
22:43 imirkin: are you driving screens off of it? are you using it as an accelerator? replacement for your intel card?
22:49 ebrasca: imirkin: secondary card are nvidia . primary card are intel
22:49 imirkin: so you want to do a prime sort of thing?
22:49 imirkin: take a look at http://nouveau.freedesktop.org/wiki/Optimus/
22:50 imirkin: all the stuff about switcheroo and runpm won't apply to you, but the other stuff will
22:54 imirkin:out
23:47 gnurou: finally, GM20B renders with Mesa!
23:47 gnurou: turns out the issue was with tiling
23:48 gnurou: nouveau_gart_manager_new() would set the node's memtype, but only up to kepler
23:48 gnurou: for maxwell it would not do anything
23:49 gnurou: GM206 uses video memory primarily, so it did not hit this issue
23:49 gnurou: but poor Tegra relies exclusively on gart, so that explains the difference in behavior
23:50 gnurou: that one made me run quite far!
23:50 gnurou: I'll send a patch to address this
23:54 skeggsb: gnurou: i'm shocked the mmu didn't complain
23:55 gnurou: skeggsb: well isn't 00 a valid memtype?
23:57 gnurou: skeggsb: I am thinking of making nouveau_gart_manager_new() a little bit more robust in that aspect if you agree
23:57 gnurou: like printing a warning for non-handled card families instead of silently going on