00:49 mwk: worked on the first try.
00:49 mwk: creepy.
00:50 Plagman: probably safer to start over
00:50 imirkin: does it still work if you mess up the algo? :)
00:51 mwk: ... no
00:53 mangix: this commit breaks GNOME for me. any thoughts? https://github.com/skeggsb/nouveau/commit/406d99ec279ac67dc302cccb236f6fca182c4843
00:53 mangix: the what do I know comment is a bit horrifying
00:54 mwk: well I'm getting the hang of it now
00:55 mwk: so... GL_REFLECTION_MAP, GL_SPHERE_MAP, GL_EMBOSS_MAP_NV, and then I'm done with texgen
01:00 mangix: oh
01:00 mangix: i lied
01:00 mangix: it's this one: https://github.com/skeggsb/nouveau/commit/e9e1c027048f6f24952496c2a591dbab9515c1f8
01:01 imirkin: mangix: i think that commit's actually been pointed at before for failing
01:01 imirkin: perhaps by you?
01:01 mangix: no
01:01 mangix: i pointed to a different one
01:01 imirkin: search for `nouveau "eDP-1: EDID is invalid" regression after 4.11 with HP ZBook 15 G3` on the nouveau mailing list
01:02 imirkin: unfortunately ben has been under a slowly-but-steadily growing mountain of shit, so not sure when/if he's going to look at it
01:03 mangix: well ok
01:03 imirkin: [i'd help but tbh i have neither the time nor the knowledge]
01:08 mangix: after reverting, kherbst's maxwell2 branch works :)
06:16 Lady-Aleena: Hello. I am having a problem with my display flickering. I just installed Debian Stretch with KDE, and things are no good.
06:16 Lady-Aleena: s/no/not/;
06:17 Lady-Aleena: My display flickers when I alt-tab between programs, when I scroll up or down, and I even lose things that can only be seen if I mouse over them.
06:17 gnarface: try setting drm_kms_helper poll=0 or checking the DVI adapter for having all the pins, Lady-Aleena
06:17 gnarface: (just a guess)
06:18 Lady-Aleena: gnarface: what does that do?
06:19 gnarface: disables some sort of auto-detection
06:19 Lady-Aleena: gnarface: It was fine with Windows installed but not with Debian.
06:19 gnarface: i had problems with it before
06:19 gnarface: particularly i had the problem, then it went away when i got a better adapter, then after upgrading debian, it came back
06:19 Lady-Aleena: Still flickering.
06:20 gnarface: eh, sorry that's all i got
06:22 Lady-Aleena: Do you think the nvidia driver would help?
06:22 gnarface: probably, but only because then you lose kms support entirely
06:23 Lady-Aleena: I'll go back to #debian and ask what to install.
06:23 gnarface: it may be sufficient to just have a different version of nouveau
07:59 mlankhorst: skeggsb: ping on reviewing "[PATCH 15/16] drm/nouveau: Convert nouveau to use new iterator macros"?
12:01 imirkin: tobijk: danvet thinks that https://patchwork.kernel.org/patch/9707893/ might help. can you try it out?
12:23 danvet: imirkin, that patch is ofc not going to help for nouveau, because it's for i915
12:23 danvet: but something like that might help nouveau
12:29 imirkin: gotcha
12:37 karolherbst: imirkin: do you think you might find some time for a final look over my gallium precise series? Sadly it is no material for stable branches, so we should have it included before branching for release
12:38 imirkin: i was sorta hoping nha could "approve" the gallium bits of it
12:38 imirkin: [or someone who's !me]
12:38 imirkin: but i suppose if no such person appears, i'll take care of it
12:38 imirkin: remind me daily until i do it.
12:41 karolherbst: imirkin: well a few other devs already reviewed the gallium bits
12:42 karolherbst: imirkin: nha even gave some r-by
12:42 karolherbst: yeah, for all 7 gallium patches
12:43 karolherbst: in the series on the ML only hakzsams r-bys are missing, but I have those on my mesa branch
17:29 karolherbst: I need a good name for that P50 table, thermal policies?
17:39 mupuf: karolherbst: sounds good :)
17:42 karolherbst: I think when I find a lot of time, I will rework the entire subdev/bios
17:42 karolherbst: I am sure we could shrink the entire code size by 50% and have a much nicier API
17:44 karolherbst: there are two bytes in the header I don't know what they do yet, but this table can also have multiple entries. And I only saw 0/1 as the values
17:44 karolherbst: guess I will figure out this over the next few days
17:45 karolherbst: mupuf: do you think it makes sense to export temperatures above 1°C precision?
17:47 mupuf: no
17:47 karolherbst: okay, then I just use 8 bit values
17:47 karolherbst: mhhh
17:47 karolherbst: yeah, should be fine
17:47 mupuf: just ceilf/floorf the value, then cast to int
17:48 karolherbst: true
17:48 karolherbst: I think a /32 is enough already
17:48 karolherbst: it doesn't matter if the value is 82.99 or 82
17:48 karolherbst: the same will happen
17:49 karolherbst: mhh, except for checking for the right upclocking temperature
17:50 docmax: how can i enable vsync in nouveau? can find anytging in google
17:50 docmax: 't
17:51 imirkin_: it's enabled.
17:52 imirkin_: run glxgears -- note how it runs at 60fps (or whatever the vertrefresh of your monitor is)
17:52 docmax: 60 fps
17:52 docmax: ok, because i have tearing in youtube videos
17:53 imirkin_: that could be due to about 100 different issues, unfortunately
17:53 docmax: ok
17:53 imirkin_: [not that this information helps you in any way...]
17:53 karolherbst: docmax: sometimes it helps to force your compositor to do tearing prevention, sometimes it doesn't
17:54 docmax: ok, but there is no switch i need to set in xorg.conf?
17:54 docmax: like the nvidia drivers
17:54 karolherbst: I also heard that using DRI3 might help a lot, but I don't know how the state is for nouveau here?
17:54 imirkin_: it'll work out differently depending on how youtube renders things
17:54 docmax: by the way... great job to the nouveau developers! i couldnt believe my eyes how crysis 2 looked like with wine!!!!
17:55 docmax: amazing reverese engineering!!!
17:55 karolherbst: kepler/maxwell1?
17:55 docmax: GTX 970
17:55 imirkin_: docmax: i assume you're aware of manual reclocking?
17:55 imirkin_: oh, then no go on that.
17:55 karolherbst: well, kind of
17:55 karolherbst: but crysis2 is a well written game with a well written engine. I can imagine that even on stock clocks it runs pretty well
17:56 docmax: no its slow
17:56 docmax: but no glitches!
17:56 karolherbst: 2 fps kind of slow or 10 fps kind of slow?
17:56 docmax: textures, colors, everything superb!
17:56 imirkin_: ah yeah. well nouveau is generally fairly conformant
17:56 docmax: i get about 15 fps or so
17:56 karolherbst: yeah
17:56 imirkin_: unfortunately the GTX 9xx gpu's are locked down in such a way that we can't control the fan speed
17:56 docmax: but thats not important
17:56 imirkin_: and so we don't dare reclock them
17:56 karolherbst: in other games with the same quality you get like 5 fps
17:57 docmax: i'm impressed about how the graphics look like
17:57 docmax: almost windows!
17:57 karolherbst: yeah
17:57 karolherbst: the nine state tracker is really impressive
17:57 karolherbst: or did you use the opengl renderer?
17:57 imirkin_: most of the issues with nouveau tend to be around stability.
17:58 docmax: wine always uses opengl, isn't it?
17:58 karolherbst: no
17:58 docmax: i did not change anything
17:58 karolherbst: not on gallium based GPUs
17:58 karolherbst: well stock wine does I think
17:58 imirkin_: look at the "nine" state tracker, which is a "native" d3d9 impl
17:58 docmax: also batman arkham city works great!!
17:58 docmax: and anno 1404 (good fps also!)
17:58 karolherbst: sounds like nine
17:59 docmax: never heart of that "tracker"... do i change it in winecfg?
17:59 docmax: heard
17:59 karolherbst: docmax: do you use by any change "wine-staging"?
17:59 karolherbst: *chance
17:59 docmax: i use wine-staging in arch
17:59 karolherbst: okay
17:59 karolherbst: then you most likely also use the nine state tracker
17:59 docmax: no special settings or kernels
17:59 docmax: how can i check it?
17:59 karolherbst: check the wine output
18:00 docmax: but the reclocking has to be done...
18:00 karolherbst: it should print stuff about native d3d9/nine/whatever being used
18:00 docmax: i wonder why it is so hard to implement
18:00 karolherbst: well
18:00 karolherbst: it's implemented for your GPU
18:00 karolherbst: but we can't control the fan
18:00 karolherbst: because you need signed firmware for this
18:00 karolherbst: signed by nvidia
18:00 imirkin_: unfortunately NVIDIA requires cryptographically signed firmware to control fans now
18:00 docmax: fan is no problem, i have watercooling
18:00 karolherbst: ahhhh
18:00 docmax: but reclocking isn't working
18:01 karolherbst: docmax: I am working on getting stuff mainlined
18:01 karolherbst: for such systems
18:01 docmax: or do i have to do it manually?
18:01 karolherbst: same goes for laptops
18:01 karolherbst: docmax: you need patches
18:01 docmax: karolherbst: are you a developer?
18:01 docmax: of nouveau?
18:01 karolherbst: https://github.com/karolherbst/nouveau/commits/maxwell2_playground
18:01 karolherbst: docmax: imirkin_ as well
18:02 docmax: man how can you do all that stuff... the reverse engineering
18:02 karolherbst: it's fun
18:02 imirkin_: trace how the other driver does it, apply logic
18:02 docmax: and getting no money
18:02 karolherbst: docmax: well, if it's fun you also do it for free :p
18:02 docmax: amazing people you are
18:02 imirkin_: it's a hobby
18:02 imirkin_: people don't get paid for hobbies =/
18:03 imirkin_: [usually]
18:03 karolherbst: docmax: well if you get to build your own kernel, you could apply patches end enable reclocking
18:04 docmax: before i read through all that... so maxwell reclocking... meaning setting powerstate to max is working in your release?
18:04 karolherbst: it works on one of my git branches, yes
18:04 karolherbst: without issues
18:04 imirkin_: but you're on your own wrt cooling
18:04 docmax: and it will be in mainline soon?
18:05 karolherbst: docmax: not anytime soon, expect around 3 months or more
18:05 docmax: forget about cooling... i have water :-)
18:05 karolherbst: because there needs more to be mainlined before this could be added
18:05 karolherbst: because the danger of messing up stuff is too big
18:05 karolherbst: and I want thermal throttling being implemented before that
18:05 docmax: ok
18:05 karolherbst: which means, nouveau should be able to clock down on high temperatures
18:05 karolherbst: otherwise it would be too risky
18:06 docmax: ok, what i need now is just 2 commands
18:06 docmax: 1 to set on minimal power consumption
18:06 docmax: and 1 to set maximum speed
18:06 karolherbst: yeah, it's all there, but not possible on your GPU right now ;)
18:06 docmax: is it possible to inject this with command line?
18:06 karolherbst: there is this pstate file
18:07 docmax: /sys/..../pstate right?
18:07 karolherbst: yeah
18:07 docmax: i think it was empty in my setup
18:07 karolherbst: I think Tom^ wrote some cli wrapper around that
18:07 karolherbst: docmax: yeah, because reclocking is disabled
18:08 docmax: ok with your patch i can do change this then?
18:08 karolherbst: yes
18:08 docmax: perfect :-)
18:08 docmax: ok i have more questions
18:08 docmax: the vdpau stuff
18:09 docmax: "--- not supported ---" all the place
18:09 imirkin_: that's right
18:09 imirkin_: it's not supported :)
18:09 docmax: with vdpauinfo
18:09 imirkin_: no one's done the RE on maxwell yet
18:09 docmax: is it really not supported? because fullscreen videos have nice speeds
18:09 karolherbst: CPUs are quite fast
18:09 docmax: doesnt look like they use CPU
18:10 karolherbst: I think 4k@120 fps is still too much for CPUs
18:10 karolherbst: maybe not anymore
18:10 karolherbst: but fullHD is no issue
18:10 docmax: ok, so no vdpau on nouveau :-(
18:11 docmax: on maxwell
18:12 docmax: but no problem.... best of the driver is...
18:12 docmax: i can switch back and forth with the driver... meaning i can do kvm gpu passthough
18:12 docmax: jump back to console, load x-server
18:13 docmax: jump bacl to console
18:13 docmax: and do kvm gpu passthrough again
18:13 docmax: the nouveau driver load, unloads very well
18:13 docmax: cant do this with regular nvidia driver
18:14 docmax: the screen goes black
18:14 docmax: also modeset works perfect in nouveau... nvidia doesnt do the modeset even with the module parameter modeset is = 1
18:15 docmax: such crap from nvidia
18:17 docmax: karol you r german?
18:18 karolherbst: yes
18:18 docmax: found you on xing i think :-)
18:18 karolherbst: yeah, the profile is very crappy
18:18 karolherbst: I don't care about that one
18:18 docmax: and searching for job...
18:19 docmax: a guy who does RE
18:19 karolherbst: well I have a job
18:19 karolherbst: as I said: I don't care about that profile
18:19 docmax: and searching for job... *lol*
18:19 docmax: me too about mine
18:19 docmax: never mind
18:37 docmax: best would be to add an module parameter for reclocking
18:37 docmax: enablemaxwellreclock=1 or something
18:37 karolherbst: that's the idea of my patches
18:37 docmax: so people can decide about the fan
18:38 docmax: ok, i have to reade about the DKMS stuff to implement your code
18:38 docmax: i dont want to rebuild the whole kernel
18:38 docmax: on each update
18:38 imirkin_: docmax: if you have an intel gpu, perhaps that's being used? dunno.
18:38 imirkin_: [for video accel]
18:39 docmax: no its turned off
18:39 docmax: i'm on nvidia only
18:39 imirkin_: this has some details about video accel stuff: https://nouveau.freedesktop.org/wiki/VideoAcceleration/
18:39 karolherbst: except it is a 4k video, it's expected to be fast
18:39 docmax: and i dont think intel can passthrough calculations to the nvidia screen
18:40 docmax: anyway... the driver does it very best
18:40 docmax: very happy on what the nouveau guys achieved
18:40 docmax: its unbelievable
18:41 docmax: i'm speachless when i run the windows games
18:42 docmax: in some years the drive will be able to unleash all the GPU power
18:42 docmax: including the quadro features
18:43 docmax: get 3D calculations without running an x-server
18:43 docmax: sharing 3D power to other hosts on the network (nvidia grid)
18:44 docmax: nouveau will get the ultimate weapon
18:47 docmax: nouveau (/nuːˈvoʊ/) is a free and open-source graphics device driver for Nvidia video cards and the Tegra family of SoCs written by independent software engineers, with minor help from Nvidia employees
18:47 docmax: do you really get help from nvidia?
18:48 docmax: i heard that are VERY closed source
19:00 docmax: how can i find nouveau version running?
19:02 imirkin_: nouveau is many diff components...
19:02 imirkin_: glxinfo should show the version of mesa
19:02 imirkin_: nvidia provides very little help
19:03 imirkin_: they did contribute a lot of support for GK20A and GM20B (Tegra K1/X1) and also for secure boot logic (for loading the signed firmware)
19:03 imirkin_: but outside of that, the help has been minor (but appreciated!)
19:04 docmax: i read the https://en.wikipedia.org/wiki/Nouveau_(software)
19:08 docmax: and they are talking about version 1.0.15
19:08 docmax: glxinfo does only say Mesa 17.1.4
19:09 docmax: and modinfo also doesnt show anything
19:19 imirkin_: 1.0.15 is the version to xf86-video-nouveau
19:19 imirkin_: 17.1.14 is the version of mesa
21:20 docmax: how is nvidia support working?
21:20 docmax: chat with them on irc?
21:20 docmax: meet them in nvidia HQ?
21:20 docmax: special forum on nvidia website?
21:21 docmax: how is AMD treating free development?
21:23 imirkin_: AMD supports free development by hiring engineers to work on open source, supplies them with hardware and documentation
21:24 imirkin_: nvidia support largely consists of having a mailing list to which you can mail questions and have them not be answered
21:24 imirkin_: i believe ben (employed by RH to work on nouveau) has a more direct line to them
21:25 imirkin_: there are nvidia folk who hang out in this chan, and on occasion they will take pity on us and provide some bit of info
21:31 karolherbst: "nouveau 0000:01:00.0: clk: setting up sw throttling thresholds (96/91°C)" :)
21:34 karolherbst: only thing missing is to implement a way to force the lowest clocks
21:43 karolherbst: skeggsb: okay, there is a race condition while unloading nouveau in gk104_fifo_intr for sure
21:43 karolherbst: wake_up(&fifo->runlist[runl].wait);
21:43 karolherbst: I just hit this twice in a row now
21:44 karolherbst: maybe I'll figure something out