03:49 xpue: Hello nouveau devs. I edited bios of fermi card with nibitor and changed all pstate clocks to max, but it seems boot clocks are taken from other place. Is there way to edit bios that nouveau will work with max clocks?
04:20 RSpliet: xpue: that's not going to work
04:20 RSpliet: unless you know all the register values and are able to hack up the initialisation script
04:20 RSpliet: and well... if you do, you might as well implement it in nouveau :p
04:25 xpue: RSpliet: Thanks. No, nibitor is standart overclocking tool, I dot know how it works internally.
04:26 RSpliet: xpue: I'm not talking about nibitor
04:28 RSpliet: drivers are responsible for changing the clocks to whatever PState is appropriate. NVIDIA can do it, nouveau can't
04:29 RSpliet: the BIOS has a script that sets the default script, and nouveau executes that the same way NVIDIA does
04:29 RSpliet: so: alter the script, and you alter the clocks in nouveau
04:29 RSpliet: _but_, we have no idea* what's in the script, so can't help you with that
04:29 RSpliet: *default script->default clock
04:30 RSpliet: (plus, it's not so easy to alter scripts, as the length will likely change; and since we don't have a full VBIOS compiler that's bound to fail)
08:14 jgarrett: I think I need to set my performance mode on my GF119...
08:15 imirkin_: jgarrett: no code exists to enable that, unfortunately
08:16 jgarrett: awesome...
08:16 imirkin_: you get whatever it boots into
08:16 jgarrett: well maybe there is another way to solve my issue.
08:16 imirkin_: than "step 1: spend 6 months to make reclocking work on fermi"? hopefully.
08:17 jgarrett: I have a Intel card running with 3 monitors, and I want to use the GF119 as a 4rth, but the refresh is like 10 minutes.
08:17 imirkin_: how are you configuring things?
08:17 jgarrett: xrandr
08:18 imirkin_: GF119 at even the slowest clock speed is more than capable of scanning out an image
08:18 imirkin_: to even the largest of screens :)
08:18 jgarrett: That's what I thought...
08:19 imirkin_: pastebin xorg log + xrandr output
08:19 jgarrett: and that screen is only 1280x1024... that card should be yawning....
08:19 imirkin_: oh, and dmesg, just in case
08:20 imirkin_: although due warning -- it may well be that the limitation is in the reverse prime mechanism
08:20 imirkin_: i guess you have at least a haswell if you're scanning out 3 screens off the intel?
08:20 jgarrett: xrandr -q -- http://pastebin.com/JeMg3QgP
08:21 jgarrett: intel card is running the i915 module.
08:21 jgarrett: 00:02.0 VGA compatible controller: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller (rev 06)
08:22 jgarrett: 01:00.0 VGA compatible controller: NVIDIA Corporation GF119 [GeForce GT 620 OEM] (rev a1)
08:22 imirkin_: if i didn't know better, i'd say that your screen is hooked up via DP *and* VGA??
08:22 jgarrett: Nope, VGA only.
08:23 imirkin_: good thing i knew better :)
08:23 jgarrett: well, the Intel, is using 2 dp ports (detected as HDMIs) and VGA.
08:23 jgarrett: the GF119, is VGA only though.
08:23 jgarrett: I did try DP first... same issue.
08:24 imirkin_: yeah, i'm sure that has nothing to do with it
08:24 imirkin_: the way reverse prime works
08:24 imirkin_: is that the primary gpu (intel in this case) renders the image
08:24 imirkin_: adn then the offloaded-to gpu scans it out to the relevant output
08:24 jgarrett: maybe the Intel card is too taxed to render 4 screens?
08:24 imirkin_: then all 4 screens would be slow
08:25 imirkin_: do note that it uses a sw cursor for offloaded screens
08:25 jgarrett: good point.
08:25 imirkin_: (it == Xorg)
08:25 jgarrett: well, that is nice to know, artifacts worsen when the mouse is on the screen and refresh slows
08:27 jgarrett: xorg log http://pastebin.com/5Tn3duZA
08:30 jgarrett: from this conversation, i think i've found a bug in reverse prime... awesome :)
08:31 imirkin_: hm, i see you're also using dri3
08:32 imirkin_: you might try disabling that in the intel ddx...
08:32 imirkin_: uhmmmm
08:32 imirkin_: that's your xorg log?
08:32 imirkin_: there is no mention of the nvidia controller in there
08:32 imirkin_: (iow, that's not the right log)
08:33 jgarrett: /etc/Xorg.0.log... only one i've got...
08:33 imirkin_: usually /var/log/Xorg.0.log
08:33 imirkin_: but if you're using some new-fangled user-confusing systemd-based system, it's in ~/.local somewhere
08:34 imirkin_: from that file: [ 18.185] (==) Log file: "/var/log/Xorg.0.log", Time: Thu Jul 17 15:59:58 2014
08:34 imirkin_: so... probably not the current one, unless date is way off on your system
08:34 jgarrett: yeah... just noticed that too.
08:34 jgarrett: hold on a sec... stupid systemd...
08:36 jgarrett: http://pastebin.com/V7TJHFv8
08:37 jgarrett: fyi it was in ~/.local/share/xorg
08:37 imirkin_: that seems more plausible
08:38 imirkin_: [ 471.783] adjust shatters 0 6560
08:38 imirkin_: heh
08:40 mlankhorst: that's a lot :p
08:41 jgarrett: my 3 monitors aren't small...
08:41 jgarrett: :)
08:41 jgarrett: same issue if I move the screen to '--above' my other 3.
08:42 imirkin_: oh wow, gentoo finally landed the ABI_X86 stuff by default. awesome!
08:53 jgarrett: is 6560 too big?
08:54 imirkin_: no, i was mostly remarking on the word 'shatters'
08:58 jgarrett: I didn't think so... but thought i would ask lol
09:09 jgarrett: i'm chalking it up to reverse Prime weirdness... think it might work with an older card?
09:09 jgarrett: all i have is other NV cards though.
09:11 imirkin_: it's unlikely to be connected to the fact that it's a NV card...
09:12 imirkin_: reverse prime is something a lot of people have various trouble with
09:12 imirkin_: the other solution, btw, is to use ZaphodHeads to split up the multi-screen devices into individual single-screen devices, at which point you can use Xinerama to recombine them
09:12 imirkin_: that loses you things like xrandr and direct rendering though
09:13 mlankhorst: works for me, partly. :P
09:13 imirkin_: well, lots of people come in complaining of various issues
09:13 mlankhorst: true..
09:13 imirkin_: sadly i know little about prime or reverse prime
09:14 imirkin_: but i do know xinerama -- outside of the obvious drawbacks it works great
09:14 imirkin_: but things like direct rendering don't matter to a lot of people, nor does the ability to dynamically reconfigure screens
09:15 jgarrett: well dang.. all those drawbacks are enough for me to say "geez i guess 3 screens are enough for now."
09:15 imirkin_: your other alternative is go get a single gpu that can do 4 screens
09:16 imirkin_: any nvidia kepler or semi-recent amd board should work
09:17 jgarrett: yeah... that requires buying more 'stuff' i already have a stack of old nvidia cards... tis a shame.
09:17 imirkin_: 'tis indeed
09:17 jgarrett: Thanks for the help though... at least i'm not i'm not doing it wrong.
09:17 imirkin_: it's weird though... reverse prime works just fine for a bunch of people
09:17 imirkin_: oh, are you using a compositor?
09:18 imirkin_: things might improve if you use one
09:18 jgarrett: just bare i3 and xorg
09:18 imirkin_: or enable TearFree in your xorg.... oh but then reverse prime won't work
09:18 imirkin_: hehe
09:18 imirkin_: i dunno if xcompmgr is enough
09:18 imirkin_: you might need something fancier... mlankhorst probably knows the right term for the fanciness required
09:21 jgarrett: i had thought about compton
09:22 jgarrett: but never actually tried because there really isn't anything for it to render... i have almost 0 ui.
09:23 imirkin_: yeah, but it'd be reducing the number of images forwarded on for rendering
09:25 Karlton: jgarrett: I use dwm and compton but I also don't multi-monitors. I just use it to prevent screen tearing and also to have transparent windows
09:27 jgarrett: I'll give compton a shot, will see how it goes. Thanks for all the help. I will return with an update if all goes well... if not, I'm just yanking the NV card for now.
09:38 jgarrett: actually, compton compiled faster than expected. -- no change.
09:39 imirkin_: i guess it's a question of getting someone with the proper knowledge to try out the specific configurations and figure out wtf is going on
09:39 imirkin_: unfortunately the quantity of those people is small, and they tend to have other things to do
09:40 jgarrett: truer words never spoken, you can't bribe with booze over the interwebz
09:40 imirkin_: you could bribe with booze futures
09:42 jgarrett: yeah, i don't see that as working well.
10:35 mmturk: i'm using xf86-video-intel and xf86-video-nouveau on an optimus laptop
10:36 mmturk: with dri3 nvidia card should get turn off but it doesn't
10:36 mmturk: also DRI_PRIME=0 and DRI_PRIME=1 both shows intel as opengl vendor
10:36 mmturk: *show
10:36 imirkin_: mmturk: see http://nouveau.freedesktop.org/wiki/Optimus/ for some debug steps
10:38 mmturk: how do i do that? i don't have vgaswitcheroo but i can show you my xrandr output
10:39 imirkin_: while switcheroo isn't required
10:39 imirkin_: it would certainly be good to turn it on
10:39 imirkin_: as well as PM_RUNTIME
10:39 mmturk: this is xrandr output: https://gist.github.com/anonymous/181c77179a05b8fbcbb2
10:39 imirkin_: mmturk: did you do "xrandr --setprovideroffloadsink nouveau Intel"?
10:40 mmturk: imirkin_, no i didn't
10:40 imirkin_: well like i said, read the page.
10:40 imirkin_: the page talks about how to set it all up and how to debug it
10:40 mmturk: i followed steps on that exact page actually
10:40 imirkin_: skip the vgaswitcheroo bits, they don't apply to you
10:40 mmturk: i thought offloadsink didn't apply to dri3 setup
10:40 imirkin_: does your intel ddx support dri3?
10:40 imirkin_: it's turned off by default...
10:41 mmturk: well i'm not sure, but i'm on archlinux which always uses latest stable packages
10:42 mmturk: well setting output provider offload sink makes DRI_PRIME=1 work
10:43 imirkin_: http://cgit.freedesktop.org/xorg/driver/xf86-video-intel/tree/tools/dri3info.c
10:43 imirkin_: build that and run it -- should tell you what your dri3 situation is
10:43 mmturk: ok
10:44 imirkin_: this is how i just built it: gcc -lX11 -lX11-xcb -lxcb-dri3 -ldrm -I /usr/include/libdrm -o dri3info dri3info.c
10:45 mmturk: "Unable to connect to DRI3 on display ':0'"
10:45 imirkin_: so... no DRI3 :)
10:46 mmturk: ah
10:46 whompy: https://projects.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/xf86-video-intel
10:46 whompy: Note the lack of DRI3 being enabled in the configure line.
10:47 whompy: I think the mesa-git repo has it configured that way, but that's getting into distro talk.
10:48 whompy: http://pkgbuild.com/~lcarlier/mesa-git/sources/xf86-video-intel-git/PKGBUILD
10:48 mmturk: i'll request dri3 enabled package
10:49 imirkin_: heh, well there's a reason it's off by default :)
10:49 imirkin_: dri3 is not ready for prime-time
10:49 whompy: Yeah, it's buggy. You can always rebuild and try it out
10:50 mmturk: ahh i see, i'll switch off nvidia card from bios until then
10:51 mmturk: thanks for the help guys
10:52 imirkin_: i dunno that dri3 will ever become a thing tbh
10:52 imirkin_: dri2 works fine though...
11:38 mmturk: how do i check the power state of nvidia card? i guess issueing lscpi turns the card on
11:39 imirkin_: mmturk: it's all in the wiki i pointed you at
11:39 imirkin_: please read that entire page
11:40 mmturk: ok, sorry
11:40 imirkin_: (you need vgaswitcheroo)
11:44 buhman: 17:52:29 imirkin_ i dunno that dri3 will ever become a thing tbh
11:44 buhman: wat
11:45 imirkin_: buhman: it's broken and i dunno that anyone's working towards fixing it
11:45 buhman: imirkin_: you can fix it
11:45 buhman: I believe in you
11:45 imirkin_: haha
11:45 imirkin_: i have no idea what dri is in the first place, so unlikely
12:03 joi: imirkin_: it seems I misunderstood what is the meaning of screen->fence.current - it's a fence which is *going* to be emitted in the near future, so I can attach to it instead of creating a new one
12:03 imirkin_: joi: i'd rather you create a new one than use the curernt fence :)
12:03 imirkin_: the current one has funny semantics
12:03 joi: so... take a look at http://people.freedesktop.org/~mslusarz/scratch/ and tell me which one do you like more
12:05 joi: but it's going to be emitted in the future, it doesn't matter when exactly
12:07 imirkin_: fun, didn't know you could declare a struct inside a struct like that and still have it be globally visible
12:17 imirkin_: joi: i like v3, but just change the scratch.runout to always use REALLOC? perhaps it's not easy, in which case it's fine as-is
12:18 imirkin_: joi: also s/unref_bos/nouveau_scratch_unref_bos/ or something
12:18 joi: REALLOC has stupid 2nd parameter, which is not easy to calc
12:18 imirkin_: well it always used REALLOC before...
12:18 joi: which is not even used now
12:19 imirkin_: so just hand it 0 and move on ;)
12:21 imirkin_: #define os_realloc( _ptr, _old_size, _new_size ) \
12:21 imirkin_: debug_realloc( __FILE__, __LINE__, __FUNCTION__, _ptr, _old_size, _new_size
12:21 imirkin_: what a waste of energy
12:56 joi: imirkin_: v4 at the same address
12:58 imirkin_: joi: perfect. i haven't actually tested it... will do that tonight, and assuming no major explosions, will push
12:58 imirkin_: [or you probably have push access... run it against a few things... i'm particularly interested in whether it fixes Heaven]
13:01 joi: I can push it
13:01 joi: imirkin_: "reviewed by"?
13:02 imirkin_: joi: yep
13:02 imirkin_: joi: also cc stable maybe?
13:02 joi: ok
13:19 joi: it does not fix Heaven
13:20 imirkin_: o well. long shot.
13:27 bonbons: pmoreau: I updated bug #82714, 3.19 behaves as earlier kernels, 4.0-rc6 crashes already in nouveau worker thread (within evo_wait)
13:29 bonbons: there definitely are things that should be initialized to sane values but are not (32bit offset with a value of 0xffffffff/4 seems bad and fails)
13:42 joi: imirkin_: anything else to test?
13:42 imirkin_: joi: UE4 would be nice if you have it nearby, if not, then wtvr
13:42 joi: i'll rerun piglit in a moment
13:43 imirkin_: joi: UE4 == https://wiki.unrealengine.com/Linux_Demos
13:45 joi: imirkin_: any particular one?
13:45 imirkin_: joi: nope
13:46 imirkin_: they're visually pretty awesome though... good heavy test of all sorts of stuff
13:46 imirkin_: dunno if it'd hit the runout case though
23:20 airlied: imirkin_: I jusst looked at trying to make xorg.conf slave devs work again, I nearly understand why I have up the first few times
23:22 airlied: gave up