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