00:16 Lyude: sweet, looks like there WAS a watchdog on this system after all, it's just built into the super i/o chip?
00:16 Lyude: amd is weird. but i like it
02:25 karolherbst: imirkin: did you take a look at what we have to do for ARB_transform_feedback_overflow_query?
02:26 karolherbst: shouldn't be too much work, should it?
02:29 imirkin: shouldn't, but ... probably will be.
02:30 imirkin: it has resisted some modest attempts at my understanding wtf it was doing
02:30 imirkin: but tbh i didn't spend too much time on it
02:30 imirkin: the main difficulty is that we get overflow by stream, but this query needs to allow querying the "overall" status
03:35 mischmerz: Evening ;)
05:35 orbea: imirkin: seems mpv hwdec is still sometimes problematic for nouveau, it crashed nouveau when switching to the next video in the playlist, but doesn't occur everytime. Here is the dmesg output with a call trace if you're interested. http://dpaste.com/2VPP2CG I fully understand if this is not investigated, but I thought its at least worth mentioning
05:38 orbea: 4.14.12 kernel btw
08:41 kabads: It seems that nvidia have stopped support for my card - it was working fine on 304. I thought I'd give nouveau a go. It's a GeForce GT 130M - is this supported by nouveau?
08:41 kabads: I've installed it, and the screen flickers, but I only get 3 grey bars, before it returns back to console/fb.
08:49 karolherbst: kabads: mhh, actually it should work
08:50 karolherbst: I guess something X related is unhappy
08:50 karolherbst: if the console works and nouveau is loaded, then stuff already works. I would check dmesg and the X logs
08:50 karolherbst: maybe nvidia still gets loaded
08:50 karolherbst: or the nouveau kernel driver loads, but nvidia userspace is started
08:50 karolherbst: nvidia usually puts a xorg.conf somewhere, which you won't need with nouveau
08:51 karolherbst: and then there are several blacklists entries nvidia installs as weill within /etc/modprobe.d/
08:51 karolherbst: it's never pleasent to tidy up a nvidia installation
08:52 kabads: karolherbst: I dealt with the blacklist, so nouveau isn't affected there. I think it's the config file. I'm using the same config as nvidia, but obviously changing the driver name to nouveau.
08:52 karolherbst: well, that won't work
08:52 kabads: karolherbst: Thankyou for the tips.
08:52 karolherbst: just remove it
08:52 karolherbst: you won't need a x config file except you have a really really rare setup
08:53 kabads: karolherbst: if not needing a xorg.conf file is true, then you've made my day. I've spent hours trawling through them over the past couple of decades.
08:54 kabads: I'm running arch linux, and the wiki there refers to xorg.conf, but using a tool Xorg :0 -configure to get a blank one. That didn't work.
08:54 karolherbst: well open source drivers don't require any xorg.conf files for years
08:54 karolherbst: and suggesting you should create one is silly
08:54 kabads:has been running with nvidia for too long now.
08:55 kabads:checking wiki again.
08:55 karolherbst: you need one if you run multiple displays on multiple GPUs and kind of want one complete desktop
08:55 karolherbst: or for dev purposes
08:58 kabads: OK - thankyou again. I missed a part where the wiki points to /etc/X11/xorg.conf.d/20-nouveau.conf - that's now set up, but with the same set up. modprobe nouveau works fine.
08:58 kabads: dmesg does point out some problems.
08:59 kabads: NVRM: failed to register procfs!
09:00 kabads: And then it goes on about conflicting drivers being loaded by the kernel. There's obviously something hanging around from nvidia
09:04 kabads: should nouveau be loaded under drm?
09:09 kabads: OK - this is strange - root can run X, but not my normal user.
09:10 kabads: It's probably my .xinitrc or something - anyway, it's working.
09:11 kabads: It doesn't like i3wm
09:11 kabads: Is that a bug?
09:12 kabads: or does it not use .xinitrc?
09:12 kabads: by it, I mean nouveau.
09:14 pmoreau: Nouveau does not use .xinitrc, but X will.
09:15 kabads: pmoreau: of course. Hmm.
09:15 karolherbst: kabads: depends what you mean by doesn't like i3wm
09:16 karolherbst: kabads: the painful part is, that if nvidia userspace stuff is accessed, it usually starts to load the nvidia kernel driver as well
09:16 karolherbst: so you really want to get fully rid of it
09:16 kabads: Without the .xinitrc I get a typical twm load, but as soon as I include a .xinitrc file with the single entry exec i3wm then it attempts to load, and then shuts down (with no errors).
09:16 pmoreau: Except the NVIDIA kernel driver usually bails out if it detects Nouveau.
09:17 karolherbst: kabads: does i3wm uses opengl these days?
09:17 kabads: karolherbst: good point. I'll try xfce
09:17 karolherbst: kabads: check glxinfo
09:17 karolherbst: if starting with twm
09:17 karolherbst: because you really want to get this right before trying anything fancy
09:17 karolherbst: and glxinfo should show nouveau obviously
09:18 kabads: black screen with xfce4-session but no exit or crash.
09:21 kabads: exec twm in .xinitrc gets the same (black screen with no crash). No .xinitrc file loads twm fine.
09:21 kabads: Which files in /etc/X11 are necessary? I don't want to clear them out when they might be needed.
09:23 karolherbst: kabads: the default ones
09:23 karolherbst: like all which are installed by your package manager
09:23 kabads: Right. Perhaps a reinstall of Xorg might work - I'll backup the directory first. Thankyou all for your help.
09:23 karolherbst: well
09:23 karolherbst: I doubt the X package installs them, maybe it does... who knows
09:24 karolherbst: usuay you can query and see what installs what
09:24 karolherbst: but
09:24 karolherbst: usually package shall install them inside /usr/share/X11/xorg.conf.d in the first place
09:25 kabads: Thought so. That's what the wiki refers to.
10:14 karolherbst: Lekensteyn: I plan to fix that runtime pm bug on my Dell XPS 9560 and might need some help regarding understanding that ACPI stuff involved in this
10:45 karolherbst: Lekensteyn: do you know anything about a _SB.PCI0.PEG0.PEGP._PRW method?
10:48 drizztbsd: hi, I'm trying to use nouveau on a GTX 970 (aka GM204), but it creates bad glitches (KDE with composite enabled)
10:48 drizztbsd: any workaround?
10:49 gnarface: compositing is probably still broken
10:49 gnarface: for nouveau
10:49 karolherbst: timothy: depends on the glitches, but there are some inherent problems using plasma5. Nouveau doesn't do well if you have too many OpenGL contexts
10:49 karolherbst: gnarface: nah, compositing is fine
10:50 karolherbst: it just that nouveau doesn't like to have a lot of OpenGL applications at the same time
10:50 karolherbst: kind of
10:50 timothy: black blocks, part of text corrupted, etc
10:50 karolherbst: mhhh
10:50 karolherbst: those look like bugs within the DDX or mesa
10:51 karolherbst: timothy: could you try to trace an application with apitrace, which has those issues and see if they appear on a replay?
10:52 karolherbst: timothy: what applications are we talking about by the way, maybe I could try to kind of reproduce the issues here. I have a GP107 and I expect that if we have issues on a GM204 I should see them on a GP107 as well
10:54 timothy: ofc if I use Xrender as compositor I don't have the glitches
10:55 timothy: karolherbst: fresly installed Fedora 27 KDE spin, open terminal, write some characters... glitches
10:55 karolherbst: okay, seems like some kwin related issues then... mhhh
10:57 timothy: btw I'm ok with Xrender atm. I'll check if other opengl application have glitches
10:57 karolherbst: I'll try what I can figure out. Tracing kwin is a bit weirdo weird
10:58 karolherbst: timothy: well, there are some known OpenGL issues in rather complex OpenGL applications like in unigine... it's hard to tell what is related to waht
10:58 karolherbst: *what
10:58 karolherbst: so in general an apitrace is the best way on how to debug those things
11:17 imirkin: timothy: sounds like you enabled DRI3?
11:17 imirkin: timothy: or perhaps you're using xf86-video-modesetting
11:20 timothy: imirkin: by grepping the log file you are right, but it's Xorg that loads modesetting by default
11:21 imirkin: not with upstram code
11:21 imirkin: but some distros have sadly made that change locally
11:21 timothy: ok, so Fedora have that change locally
11:27 timothy: imirkin: it worked, I forced nouveau by adding a Section Device with driver nouveau in xorg.conf.d and now no glitches anymore
11:27 timothy: thank you
11:27 Lekensteyn: karolherbst: "_PRW is only required for devices that have the ability to wake the system from a system sleeping state."
11:29 imirkin: timothy: feel free to complain to your distro. i've been ignored thus far.
11:30 Lekensteyn: karolherbst: on my Clevo P651RA, disabling a wake related line in the PGOF method had no effect (no improvement) IIRC (I think I patched the SSDT to test that out)
11:30 imirkin: (or perhaps ignored is the wrong word... overruled is probably better.)
11:31 kherbst: Lekensteyn: I see
11:32 kherbst: Lekensteyn: well currently I try to figure out how to suspend/wake up the GPU just using ACPI methods
11:32 kherbst: but a simple _OFF _ON cycle already messes it up
11:32 kherbst: talking about _SB.PCI0.PEG0.PG00
11:32 kherbst: so I assume we have to call something in addition to \_SB.PCI0.PEG0.PG00._ON
11:32 kherbst: or do some preparations
11:33 kherbst: Lekensteyn: do you know what those \_SB.PCI0.PEG0.PEGP.GC6I methods do?
11:34 kherbst: and \_SB.PCI0.PEG0.PEGP.GC6O
11:35 Lekensteyn: kherbst: let me see if I can find something for cbeca351-067b-4924-9cbd-b46b00b86f34
11:42 kherbst: Lekensteyn: it is guarded by a TDGC == One check
11:42 kherbst: any idea what that TDGC field is for?
11:44 Lekensteyn: kherbst: I suspect it flags an older, non-(ACPI-)standarized proprietary method that is only used when explicitly enabled by the nvidia driver
11:44 kherbst: mhhh
11:44 Lekensteyn: see line 984 of ssdt2.dsl
11:44 Lekensteyn: function 3
11:44 kherbst: I think I have another kind of firmware
11:48 kherbst: anyway, rebooting time :(
11:51 karolherbst: Lekensteyn: what I don't quite get is, why those ON/OFF methods don't really work as expected. I mean, OFF works, we know that
11:51 karolherbst: but ON?
11:52 Lekensteyn: that ssdt reference was for product_name:XPS 15 9560 from bios_date:05/08/2017 bios_version:1.3.3 btw
11:52 karolherbst: weird
11:53 karolherbst: uhh
11:53 karolherbst: I have bios version 1.5
11:53 Lekensteyn: and why ON fails is also a mystery to me, using acpi_osi can force the new code path to be disabled, the difference between the two code paths should teach us something but I have not pinned it down
11:54 Lekensteyn: I probably posted this to you before, but these are my notes: https://github.com/Lekensteyn/acpi-stuff/blob/master/Clevo-P651RA/notes.txt#L94
11:55 karolherbst: well, so the windows 10 way is broken? and the firmware defaults to that?
11:55 karolherbst: or well
11:55 karolherbst: Linux just stays I support whatever
11:56 Lekensteyn: well, the windows 10 way triggers it
11:56 Lekensteyn: (actually, windows 8)
11:56 karolherbst: :D
11:56 karolherbst: k
11:56 Lekensteyn: depending on model
11:56 karolherbst: mhh
11:56 karolherbst: that \_SB.PCI0.PEG0.LNKS looks weird
15:13 karolherbst: mwk: are you aware of anything related to memory self refresh on nvidia hardware? I know that there are some regs documented in rnndb for this, but I am more interested in on how to actually use that.
15:53 danboyd: I'm experiencing a replicatable crash in gnome-shell/wayland on my ThinkPad W530 (NVidia Quadro K1000M). I'm running Debian testing with the liquorix kernel, though I am also getting the same behavior from the Debian kernel. I'm currently running 4.14.0-12.1-liquorix-amd64
15:53 danboyd: dmesg: https://pastebin.com/mffEEvE3
15:54 danboyd: I am able to ssh into the machine. It is currently locked up and I have an active ssh session
15:54 danboyd: the crash happens almost every time I resize a window
15:54 karolherbst: right...
15:54 danboyd: mouse cursor stops moving; num lock stops responding, etc
15:54 karolherbst: somebody mentioned that resizing firefox kills it as well
15:55 danboyd: yes -- that's what I was doing when it crashed. resizing a firefox window
15:56 danboyd: any workarounds for the time being? this is my production work machine
16:01 danboyd: if i roll back to an earlier kernel, any versions I should avoid? any stability issues with 4.12 or 4.13?
16:04 karolherbst: not quite sure
16:04 karolherbst: I think somebody wanted to look into that issue
16:04 karolherbst: Lyude maybe?
16:05 karolherbst: but debugging those shader traps is kind of annoying really
16:05 karolherbst: somebody would need to write a proper trap/exception handler
16:05 danboyd: ok. i'm rolling back to 4.12 for the time being. I'll hang out here for awhile in case they log in. I can replicate the issue later if need be. should I pastebin any other logs before I reboot?
16:05 karolherbst: mhh
16:05 karolherbst: does this issue not happen with 4.12?
16:05 karolherbst: wondering why
16:05 danboyd: heh i'm about to find out :)
16:06 danboyd: there is some version that I was using recently that was stable. I don't remember which one
16:15 danboyd: ok -- rebooted into 4.12 now and just resized a firefox window without incident. will report back if it does eventually crash
16:24 imirkin_: danboyd: if it's a kernel change that's responsible, a bisect will probably be required to identify it
16:25 imirkin_: 4.14 did get a new vm handler
16:25 imirkin_: or is that 4.15
16:46 danboyd: ok -- i'm on a project this morning (US CST); but happy to help out however i can after lunch
16:54 danboyd: ok so to do a bisect, I need to check out the source tree for both versions?
16:58 karolherbst: danboyd: well, you just need a git tree of linux and mark one bad and a good commit
18:00 danboyd: ok ... did some testing. I have 3 different versions of 4.14 -- two liquorix and one debian. all three will crash almost immediately if i open firefox and start resizing the window. 4.13, meanwhile, appears to work. going to attempt a bisect here in a minute.. never done one before, so i may have questions
18:01 imirkin_: search for "linux kernel git bisect"
18:13 Asu: i believe we might have the same issue, danboyd
18:14 Asu: on gtx 760, i get a hang when closing a terminal while firefox (haven't tried with other apps tbh) is open, with compton and i3wm
18:14 Asu: happens randomly, i did report a bug a few days ago, though i didn't try on older kernels
18:21 danboyd: for me, i can log in, open firefox, resize the window a bit and it crashes within a second or two
18:22 danboyd: i'm compiling the latest kernel from git to see if the issue is still there
18:31 Asu: since i actually used i3wm, the resizes were only happening once in a while... perhaps i'll try again tonight to see if it also happens when changing the size
19:07 Lyude: karolherbst: I think it might have gotten fixed in a newer kernel but I'm not sure, nrr?
19:07 karolherbst: no idea
19:07 Lyude: nrr would know since I had them try a new kernel
19:07 Lyude: iirc they said it fixed it
19:09 danboyd: i'm compiling the latest from git now.. will report back if it's fixed
19:37 nrr: Lyude: yeah, but i did more than just upgrade the kernel. i have it noted that upgrading alone didn't fix it and that i changed a couple other variables in my setup. just haven't had time to isolate which one did it and why.
19:37 Lyude: hm, alright
19:38 Lyude: well I've got a machine I can reproduce this with so when I get a chance I will take a look
19:38 nrr: sure.
22:08 danboyd: just saw this article. is nouveau impacted by this? https://www.engadget.com/2018/01/10/nvidia-gpu-meltdown-and-spectre-patches/
22:09 airlied: danboyd: the whole kernel is
22:10 imirkin_: and our shader compiler does nothing to avoid any cross-task leaks
22:10 imirkin_: but ... there's so many leaks when you use nouveau, that ... heh
22:11 glisse_: nouveau is a plumber dream ! Super Mario help us :)
22:11 danboyd: heh
22:58 robclark: danboyd, nouveau gets recompiled when your distro kernel is updated, nv blob ko does not..
23:24 Lyude: mupuf: btw; I'm assuming it's not a problem if we end up landing CG/BLCG/SLCG at the same time, but just for kepler1/2?
23:24 Lyude: nothing stopping me from doing maxwell1, just figured it's about time to send this to the ML since the series is mostly cleaned up at this point