00:01 imirkin: heh. got pixmark piano to load by disabling LoadPropagation. sadly the shader is a pile of fail.
00:01 imirkin: oh wait. i'm a pile of fail. grr
00:01 enyc: imirkin: can your firmware be updated?
00:01 imirkin: enyc: "my firmware"?
00:02 imirkin: unlikely
00:02 enyc: yes, whatever part of it failed ;p
00:02 imirkin: [93248.771058] nouveau 0000:04:00.0: gr: TRAP_MP - TP3: 00000010 [LOCAL_LIMIT_WRITE]
00:02 imirkin: hrm....
00:03 enyc: raises interesting questions about 'state of nouveau' and what to expect (or not!)
00:04 imirkin: odd. i don't even use that much local mem...
00:04 imirkin: enyc: the state of nouveau is "get an amd gpu"
00:04 enyc: ;p
00:07 Tom^: imirkin: lies, it works wonders here.
00:08 enyc: imirkin: hrrm they now have fully open drivers as the rule rather than exception ????
00:10 imirkin: yep
00:10 imirkin: and full time staff to support the driver, with access to docs and hw designers
00:14 enyc: imirkin: im curious now... this nouveau setup drives both 'similar' gpus without xinerama
00:15 enyc: imirkin: this simply will not work with e.g. nouveau + mga driver at same time ?
00:15 imirkin: it should work fine
00:15 enyc: hrrm
00:15 imirkin: assuming that mga has a kms driver
00:25 Sophira: I have what is probably a really stupid question.
00:25 Sophira: For the EFI vars persistent storage to work, I'm guessing you need to have booted Linux via UEFI and not the BIOS emulation, right?
00:25 imirkin: correct.
00:26 Sophira: Yep. Figured as much. Time to redo the way I boot then, I guess.
00:26 Sophira: (I don't like moving to new technologies just because they happen to be new, so I wait until there's a reason for me to move, generally. This is a good reason.)
00:59 Sophira:converts her boot drive to GPT.
02:28 Sophira: Looks like everything went well. GPT conversion, fstab update, grub recompile/install for EFI, temporary BOOTX64.EFI file because I wasn't booted into a UEFI environment to set things up... I'm happy it worked first time.
02:38 Sophira: ...hmm. Odd. I'm still not seeing anything in /sys/fs/pstore after I mount it. I know I have the kernel configured for it, on both the kernel that's not working and this one.
03:42 imirkin: the more i think about this the less i understand it
03:42 imirkin: ugh
04:55 Hydr0p0nX: running a gtx650 in rhel7 and X crashes with the nouveau driver, if I install the binary driver or put an AMD card in at the same time and use radeon and nouveau drivers, both displays work as expected ...
05:07 Tom^: Hydr0p0nX: isnt rhel7 using a very old kernel and ddx ?
05:08 Tom^: seeing as you are trying a relatively new gpu, it probably isnt the best combinations.
05:08 Hydr0p0nX: gtx650 is at least 3 yrs old now
05:08 Hydr0p0nX: maybe 4
05:10 Hydr0p0nX: but yea, it's running 3.10.0-327.28.2 , which is older than i thought
05:10 Hydr0p0nX: really surprised it's that far back
05:11 imirkin: you'll be hard-pressed to get open-source support for anything but the latest kernels
05:12 imirkin: hunting long-solved issues isn't a ton of fun
05:13 Hydr0p0nX: yea, like I said, I didn't realise the kernel was that far behind for "current" redhat
05:14 Hydr0p0nX: I'm just using it as a kvm host and passing the radeon through to one of the guests, since it's that far back and I haven't really gotten much else configured, i may end up moving to another distro
05:55 enyc: imirkin: hrrm theres is a CONFIG_DRM_MGA in kernel for the g550... but not asfar as I can tell, modesetting ;-(
06:08 imirkin: enyc: well, modesetting isn't required. the X ddx driver just has to support the relevant things for offloading to work
06:08 enyc: imirkin: krenl drm driver you mean?
06:09 imirkin: X ddx driver
06:09 imirkin: it's all inside X ... i'm not sure that it has the concept of drm or not drm, etc
06:11 enyc: what happnes as you try to mix kms-managed nouveau and non-kms mga? is it possiblo to have part of the screen not accelerated, or it tends to drag the whole 'x screen' down?
06:14 imirkin: the way the output offloading works is that the whole image is rendered on a single gpu
06:15 imirkin: and the remainder just provide outputs which scan out that image
06:19 enyc: i wonder what approach nvidea "base mosaic" setting uses
06:20 imirkin: probably something that's nvidia-only...
08:53 maysha: i can't change that resolution of 640x480
09:57 karolherbst: imirkin: ../nvidia_shaderdb/gputest_pixmark_piano/7.shader_test - type: 1, local: 0, gpr: 50, inst: 3591, bytes: 32832
09:58 karolherbst: 50 gprs for me
10:36 karolherbst: mhh, no perf changes for nouveau in bioshock between 12.0.1 and master
13:01 karolherbst: mhhh okay, the upclocking after thermal downclock works differently than the downclocking :/
13:13 karolherbst: this table makes less sense any second
13:33 Sophira: karolherbst: Hi :)
13:34 karolherbst: hi
13:34 Sophira: How are things?
13:34 karolherbst: bad, stupid table in vbios doesn't make much sense
13:34 Yoshimo: yet
13:35 karolherbst: well I could also added a "to me" in the sentence :p
13:35 Sophira: Heh.
13:35 karolherbst: luckily I asked gnurou for this table
13:38 Sophira: I spent a couple of hours last night converting my OS to boot from UEFI, but pstore still isn't showing anything for me.
13:38 Sophira: (I did recompile both my working kernel and the non-working one.)
13:38 karolherbst: well, it will only add new things
13:38 Sophira: I know.
13:38 karolherbst: I see
13:38 Sophira: I did boot from it.
13:38 karolherbst: mhh
13:38 Sophira: But even after coming back, still nothing.
13:39 karolherbst: and you sure boot within efi mode?
13:39 Sophira: Yep. There's no MBR to boot from any more.
13:39 karolherbst: dmesg | grep -i efi
13:39 karolherbst: uhh, do you still have nouveau builtin?
13:39 Sophira: Seven lines, want me to paste them?
13:40 Sophira: I never had nouveau builtin, it was always being built as a module.
13:40 karolherbst: "[ 0.887673] pstore: Registered efi as persistent store backend" something like that?
13:40 karolherbst: mhh k
13:40 Sophira: [ 12.839228] pstore: Registered efi as persistent store backend
13:40 karolherbst: 12 :O
13:40 karolherbst: when is nouveau loaded?
13:40 Sophira: Yep. There's no MBR to boot from any more. 14.234482] nouveau 0000:01:00.0: NVIDIA GM204 (124020a1)
13:40 Sophira: Oops.
13:40 Sophira: Bad paste, sorry.
13:40 Sophira: 14.234482] nouveau 0000:01:00.0: NVIDIA GM204 (124020a1)
13:41 karolherbst: pstore won't work if nouveau is loaded before it is registered
13:41 karolherbst: mhh
13:41 Sophira: (missing a char too, heh)
13:41 karolherbst: looks fine though
13:41 karolherbst: could you once boot on 4.6 with nomodeset enabled?
13:41 Sophira: Okay.
13:41 Sophira: Brb.
13:42 Sophira: Oh wait.
13:43 Sophira: Actually, no, I won't be able to do that any more. Since switching to UEFI, when it boots, the screen just freezes on the grub "Loading linux-4.4.6..." or whatever it says, with the kernel still working in the background, until the modesetting driver initialises.
13:43 karolherbst: enable efifb
13:43 karolherbst: builtin
13:44 Sophira: I think I already have that builtin, but let me check.
13:45 Sophira: Never mind, I didn't. Recompiling now.
13:45 Sophira: Thanks.
13:45 karolherbst: you can remove vesafb if you still have it though
13:46 Sophira: I didn't.
13:48 Sophira: Okay, both kernels recompiled, booting into 4.6.5.
13:54 Sophira: That's odd, I mustn't have selected the right driver, since it still froze. The kernel was definitely responding with nomodeset though; I was able to use CTRL-ALT-DEL to initiate the reboot sequence, which I wasn't able to do before. (I've had to use the magic SysRq S-U-B combination before now.)
13:54 Sophira: The option you want is FB_EFI, right?
13:54 karolherbst: yeah
13:54 karolherbst: but if it booted it is good
13:54 karolherbst: that means you have logs
13:54 Sophira: Oh, true.
13:54 karolherbst: using systemd?
13:54 Sophira: No, OpenRC.
13:54 karolherbst: k
13:54 karolherbst: then check your log files for dmesg :p
13:55 Sophira: Okay, hang on. Anything I'm looking for in particular?
13:55 karolherbst: no idea
13:55 karolherbst: pasting the entire dmesg somewhere might make sense
13:56 Sophira: Okay, this would be a good time to check pstore, since in 4.6 I deliberately had the kernel messages go to pstore too so I could check if that worked.
13:56 karolherbst: you have to mount it though
13:56 Sophira: Just did.
13:57 Sophira: And still nothing :( Gah. Okay, looking at logs. I'll probably paste the entire syslog for that boot, it's easier and will have dmesg in it anyway.
13:57 Sophira: (pastebin, obviously)
13:57 karolherbst: mhh odd. I slowly get the feeling that pstore only works on my system...
13:58 karolherbst: well, I get only kernel crashes in it, but that's all what I care about in the first place
13:59 karolherbst: Sophira: do you have efivarfs mounted?
14:00 Sophira: http://pastebin.com/gesdiNaY
14:00 Sophira: (up there for 1 week)
14:01 Sophira: No. Is that necessary? I think I turned that off in the kernel because I heard about the whole thing where the kernel would interpret unlinks to mean "wipe the EFI vars completely".
14:01 karolherbst: mhhh, well you need builtin efivars support for being able to save pstore stuff in efi
14:02 Sophira: Okay.
14:02 karolherbst: odd, efifb isn't loaded in your log
14:02 Sophira: That would explain it then.
14:02 Sophira: Hmm.
14:02 karolherbst: mhh maybe you miss something, let me check
14:03 Sophira: I can get you my .config if you want to check that.
14:04 karolherbst: I have CONFIG_DRM_FBDEV_EMULATION enabled, no idea if that's needed here
14:04 Sophira: sophie@home /usr/src/linux-4.6.5-gentoo $ grep FBDEV .config
14:04 Sophira: I'll pastebin my .config :)
14:05 karolherbst: CONFIG_X86_SYSFB?
14:05 karolherbst: this sounds important
14:05 Sophira: =y
14:05 Sophira: http://pastebin.com/DXRSEnCf
14:08 Sophira: I'll enable EFIVAR_FS, anyway.
14:10 karolherbst: ohhhh wait
14:10 karolherbst: you have a desktop right?
14:10 karolherbst: mhh maybe you have to plug in your desktop on the onboard ports to get something
14:10 karolherbst: no clue how that is handled through the gpu
14:11 Sophira: I'm using a desktop, yes.
14:11 karolherbst: could you blacklist nouveau and remove nomodeset?
14:11 Sophira: And thinking about it, I shouldn't need EFIVARS_FS to be able to get stuff from pstore. After all, efibootmgr was already able to manipulate the EFI vars so that it books from /EFI/gentoo/grubx64.efi, right?
14:11 karolherbst: and then try to see if that changes anything, if not you could try out the onboard ports
14:12 Sophira: Sure.
14:12 Sophira: I'm not sure what you mean by 'onboard ports', though.
14:12 karolherbst: no clue to be honest
14:12 karolherbst: mhh
14:12 karolherbst: aren't there any ports on your machine which aren't on the gpu?
14:12 karolherbst: like a vga port or something
14:12 Sophira: Oh. No, this mobo doesn't have onboard graphics.
14:12 Sophira: Asus X99-S.
14:13 karolherbst: k
14:13 karolherbst: do you have a second machine which you are able to use for ssh?
14:14 Sophira: Yeah, good call. Yes - my phone. :) I'll set it up so I can SSH in before I reboot.
14:14 karolherbst: :D, using phones for ssh is pretty annoying though
14:14 Sophira: Yeah. I do have a laptop but its fan is bad, so I don't want to use it.
14:22 Sophira: Okay, all set up and ready to reboot. I'll test rebooting in 4.4.6 first to make sure it's blacklisted okay, then go into 4.6.5. With luck my next line will be from in 4.6.5, though I'll be SSHing in on my phone so apologies for any slow typing :)
14:25 Sophira: karolherbst: Okay, I'm in.
14:26 Sophira: Screen is still stuck on "Loading Linux 4.6.5-gentoo ...", but I'm SSHed in okay.
14:27 Sophira: What did you want me to try?
14:27 karolherbst: do you have a directory inside /sys/class/vtconsole/ ?
14:28 Sophira: Yes, vtcon0.
14:29 Sophira: A symlink.
14:29 karolherbst: cat vtcon0/bind
14:29 karolherbst: allthough, vtcon0/name should be dummy
14:29 Sophira: 1
14:30 karolherbst: mhh, could you boot with video=efifb
14:30 Sophira: "(S) dummy device"
14:30 Sophira: Okay.
14:30 Sophira: Brb.
14:36 Sophira: In, no change except that screen now shows " Booting a command list" before the 'Loading' bit. dmesg | grep efifb only shows matches in "Command line" and "Kernel command line".
14:37 karolherbst: the hell :/
14:37 karolherbst: mhh maybe that's a grub thing though
14:37 karolherbst: do you use grub2?
14:37 Sophira: Yes.
14:38 Sophira: I was editing the commands manually to include it before boot.
14:41 karolherbst: do you have anything fancy in your grub config?
14:42 Sophira: No, it's just straight output from grub-mkconfig.
14:43 karolherbst: mhh no clue what that contains, I don't use grub
14:43 Sophira: Hang on. I'll unblacklist and come back on 4.4.6 so I can Pastebin it.
14:44 Sophira: Wait
14:44 Sophira: Actually...
14:44 Sophira: Brb.
14:45 Sophira: Never mind, thought maybe doing a blind login/startx might help, but nope.
14:48 karolherbst: I don't get why efifb won't load :/
14:49 Sophira: Okay, I unblacklisted and am back on the computer on 4.4.6.
14:49 Sophira: Gonna check the kernel config.
14:49 karolherbst: cat /sys/module/pstore/parameters/backend
14:50 karolherbst: should give you efi
14:50 Sophira: It does.
14:50 Sophira: (Though remember I'm booted into 4.4.6 right now)
14:50 karolherbst: yeah, but it should be the same on 4.6 too, cause it appeared in the log
14:50 Sophira: But I've been recompiling both my kernels to have the same options.
14:50 Sophira: Okay.
14:51 karolherbst: mhh okay, then we have to try that over ssh, though it will get really super messy
14:51 karolherbst: boot 4.6 with nouveau blacklisted
14:51 karolherbst: ssh into it
14:51 karolherbst: dmesg -w &
14:51 Sophira: Stupid question, would tar zcvf /newsys.tar.gz /sys work? :)
14:51 karolherbst: modprobe nouveau
14:52 karolherbst: Sophira: uhhh, bad idea
14:52 Sophira: Okay.
14:53 Sophira: Hmmm. Documentation/fb/efifb.txt says efifb is only for EFI booted Intel Macs.
14:53 Sophira: This isn't a Mac.
14:53 karolherbst: I don't have an intel mac too
14:53 karolherbst: but it works
14:53 Sophira: Okay.
14:53 karolherbst: or at least used to
14:53 karolherbst: maybe somebody broke it
14:54 Sophira: Thought I'd throw that out there just in case, since it seemed like it might have been the problem :D
14:54 karolherbst: I highly doubt it
14:55 karolherbst: I would assume grub is the problem with the fb handoff somehow
14:56 Sophira: Quite possible.
14:57 karolherbst: ohhhh
14:57 Sophira: Hmm?
14:58 karolherbst: could you enable CONFIG_FB_SIMPLE: on 4.6 and boot with nouveau blkacklisted?
14:58 karolherbst: still having fb_efi enabled
14:59 karolherbst: http://www.funtoo.org/UEFI_Install_Guide
14:59 karolherbst: "EFI Framebuffer"
14:59 karolherbst: ...
14:59 Sophira: Okay, one sec.
15:01 Sophira: Yeah, reading the help that must be what it is.
15:01 Sophira: Recompiling now.
15:02 karolherbst: have to update my kernel too :D
15:02 karolherbst: lucky that i915 never broke here
15:04 Sophira: Okay, rebooting. Hopefully no SSH needed this time :)
15:05 tobijk: karolherbst: you said you had nice general pupose benchmarks somewhere?
15:06 karolherbst: tobijk: general purpose?
15:06 Sophira: Woot! I'm in. I deliberately haven't used startx, I'm still in the framebuffer console for now.
15:06 karolherbst: :)
15:06 karolherbst: nice
15:06 tobijk: in the sens of it utilizes the whole range of available instructions :D
15:06 karolherbst: finally some progress
15:06 karolherbst: tobijk: no clue :D
15:06 Sophira: I guess now I should try modprobe'ing nouveau and taking a photo of the panic :D
15:06 tobijk: :/
15:06 karolherbst: Sophira: you can startx
15:07 karolherbst: efifb is quite powerfull for a fb driver
15:07 Sophira: Well, I wanted to stay in the console so that I could see the panic, since it won't show up in X.
15:07 karolherbst: ahh k
15:07 karolherbst: then
15:07 karolherbst: best if you do this:
15:07 karolherbst: dmesg -w &
15:07 karolherbst: modprobe nouveau
15:07 Sophira: Okay.
15:08 Sophira: I assume modprobe won't load blacklisted modules so I need to remove the blacklist first, right?
15:08 Sophira: Oh will it just work?
15:08 karolherbst: it will just work
15:08 Sophira: (Well, 'work'.)
15:08 karolherbst: blacklist is for auto loading
15:08 Sophira: Okay.
15:08 Sophira: Brb, then Will take a photo if it stops responding.
15:08 tobijk: karolherbst: another approch: a good benchmark software to run :D
15:09 karolherbst: tobijk: gputest has several micro benchmarks
15:09 karolherbst: for avrious things
15:09 karolherbst: there is like everything in it
15:09 Calinou: not open source though
15:09 karolherbst: shader compiler, cpu overhead, fillrate
15:09 Calinou: doesn't it bias for certain manufacturers too?
15:09 karolherbst: no clue
15:09 Calinou: we can't know :]
15:09 karolherbst: it is too simple for that
15:09 karolherbst: pixmark_piano has like 60 calls in total per frame
15:10 karolherbst: and a badass big shader
15:10 tobijk: Calinou: even if it biases for certain manufecturers, i want to test mesa against mesa with a change :)
15:10 karolherbst: I highly doubt that gputest is biased
15:10 karolherbst: it is too simple for that
15:10 karolherbst: and to bias microbenchmarks is kind of hard
15:12 Sophira: I forgot that when the hang happens, the monitor goes into a power-saving mode so I can't read the dmesg ;p I guess this is something I'll have to do over ssh anyway.
15:12 karolherbst: mhhh
15:12 karolherbst: so we get a fb handover
15:12 karolherbst: ...
15:13 karolherbst: messy
15:13 Sophira: Unfortunately I can't screenshot on my phone for some reason, it's annoying. I'll do what I can though.
15:13 Sophira: Brb.
15:13 karolherbst: the problem with ssh is, that the network goes down too fast
15:13 Sophira: Ah.
15:13 Sophira: Okay.
15:14 Sophira: You're right, it would.
15:14 Sophira: I'll see how much gets flushed anyway.
15:15 Sophira: In fact.
15:15 karolherbst: maybe you could just try out 4.7? .D
15:16 Sophira: Thinking about it, "dmesg -w & > baddmesg.txt" is likely to contain more information, right? I'll try both, I think, we'll see whether disk I/O or network I/O gets flushed faster :)
15:16 karolherbst: well
15:16 karolherbst: compile a 4.7 kernel first
15:16 karolherbst: maybe it is an issue fixed already
15:16 Sophira: Okay.
15:16 Sophira: Fair.
15:16 karolherbst: do you have linux-firmware 20160628 installed?
15:17 Sophira: I generally don't use that package, I've been doing "make firmware_install" on the latest Linux version I compile.
15:17 karolherbst: you need it for maxwell2
15:17 Sophira: Should I be using the package instead?
15:17 karolherbst: it is required as in required
15:18 Sophira: Huh. So there's a difference between the two?
15:18 karolherbst: especially this commit: https://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/commit/nvidia?id=c4f6a36d694bc4dbaeb6c9edae4889b4af2659ce
15:18 karolherbst: yeah
15:18 Sophira: Okay.
15:18 Sophira: Maybe I should try that then before compiling 4.7. :D
15:18 karolherbst: well, don't be surprised if it works with that installed though :p
15:18 karolherbst: well
15:18 karolherbst: you want 4.7 anyway
15:19 Sophira: Okay.
15:19 karolherbst: nouveau fixes
15:19 karolherbst: especially with the firmware stuff too
15:19 Sophira: Going to reboot back into 4.4.6 for now because the simple framebuffer seems to be designed for a 4:3 aspect ratio and it looks stretched on my 16:9 screen.
15:19 karolherbst: huh
15:19 karolherbst: it shouldn't though
15:19 Sophira: Hmm.
15:20 tobijk: simplefb should modeset just fine
15:20 Sophira: I guess maybe I need to tell grub the correct resolution, then.
15:20 karolherbst: cat /sys/class/graphics/fb0/modes
15:20 Sophira: sophie@home ~ $ cat /sys/class/graphics/fb0/modes
15:20 Sophira: U:1024x768p-0
15:20 Sophira: So yeah.
15:20 Sophira: This is a 1920x1080 monitor.
15:20 karolherbst: cat /sys/class/graphics/fb0/name
15:21 Sophira: sophie@home ~ $ cat /sys/class/graphics/fb0/name
15:21 Sophira: simple
15:21 Sophira: I'll look for something in the grub config :)
15:21 karolherbst: mhh
15:21 karolherbst: maybe disable simplefb and disable that mark as generic framebuffer option then
15:22 Sophira: Are you sure? I mean, simplefb just takes an already initialised framebuffer.
15:22 karolherbst: yes
15:22 Sophira: Which in this case would have been initialised by grub, right?
15:22 karolherbst: you really want that efifb thing
15:22 Sophira: Okay.
15:23 karolherbst: I think it would be also able to drive two displays
15:23 karolherbst: or so
15:23 Sophira: I don't have two displays right now, but yeah.
15:27 Sophira: It looks like I can also force grub to switch to text mode before booting, so if I did that we'd at least get rid of the issue of it freezing.
15:28 Sophira: (GRUB_GFXPAYLOAD_LINUX=text)
15:28 karolherbst: mhhh, might work, no clue
15:28 Sophira: Will do some testing :)
16:07 Sophira: Sorry about that, was called away.
16:07 Sophira: I've found something really interesting though - the kernel isn't actually panicking in 4.6.5.
16:08 Sophira: It's just spending a really long time in kernelspace.
16:09 karolherbst: firmware loading?
16:09 Sophira: The dmesg went fine to a file. Isolating out the nouveau startup now, but this looks like either a kernel bug or some firmware thing, yeah. So I'll try the firmware package soon too.
16:10 Sophira: wwwThe monitor never actually comes up, but ssh was good throughout.
16:10 karolherbst: could you paste the dmesg then?
16:11 Sophira: http://pastebin.com/PcCnmNkP
16:12 Sophira: Was just doing that :D
16:12 tobijk: damn gputest does not contain my pattern :/
16:12 karolherbst: read fault at 00ffb90000 engine 1f [] client 03 [DNISO] reason 0d [REGION_VIOLATION]
16:13 karolherbst: Sophira: could you upload your vbios somewhere? /sys/kernel/debug/dri/0/vbios.rom
16:13 Sophira: Does it matter which kernel I'm on when I do that?
16:13 karolherbst: well I doubt that you have that with 4.4
16:13 karolherbst: but you could check
16:13 karolherbst: does that mean anything to anybody? "fifo: read fault at 00ffba0000 engine 1f [] client 12 [PMU] reason 0d [REGION_VIOLATION] on channel -1 [0000000000 unknown]" imirkin, skeggsb ^
16:14 imirkin: that means you have a GTX 970 with 4GB of vram
16:14 karolherbst: I feared as much already
16:14 Sophira: I do have that file on 4.4.6, and the vios.rom file when copied is 180224 bytes.
16:14 karolherbst: Sophira: do you have a gtx 970 with 4 gb of vram?
16:14 karolherbst: I thought you had a gtx 950
16:14 Sophira: Nope, it's a 970.
16:14 karolherbst: ...
16:15 karolherbst: imirkin: I think I know why that issue exist though
16:15 karolherbst: the 970 is one of those stupid cards with 3.5GB + 0.5GB regions
16:15 Sophira: Did I say I had a 950? I'm pretty sure I had said it was a 970. Hang on, checking logs just to make sure I didn't screw up. If I did, I'm really sorry.
16:15 imirkin: yep
16:15 imirkin: and nouveau totally doesn't handle that properly
16:15 karolherbst: mhhh
16:16 karolherbst: workaround would be to just address 3.5GB?
16:16 imirkin: i have no additional information
16:16 imirkin: ben said he was working on a fix
16:16 pmoreau_: Anyone can tell me why I got banned from #dri-devel?
16:16 karolherbst: pmoreau_: beacuse your name most liekly?
16:16 karolherbst: I think you need a registered name
16:16 pmoreau_: It is a registered one
16:16 Sophira: Well, honestly, all this is kinda invalid anyway since I need to start using the proper linux-firmware package.
16:17 karolherbst: Sophira: yeah, but that won't help :/
16:17 Sophira: So let me see if I can reproduce this with linux-firmware and 4.7.
16:17 Sophira: Okay.
16:17 karolherbst: annoy skeggsb for a fix :p
16:17 imirkin: pmoreau_: you sure you're banned? this is the ban list: http://hastebin.com/esixovexov.mel
16:17 imirkin: Sophira: doesn't matter, nouveau won't work on a 970 with 4GB of vram right now. (at least not with acceleration)
16:17 Sophira: It's odd how nouveau works properly in 4.4.6 but not in 4.6.5, though.
16:17 Sophira: Okay.
16:17 karolherbst: pmoreau_: you aren't logged in
16:18 imirkin: Sophira: in 4.4, no acceleration. problem solved ;)
16:18 Sophira: Ahhhh.
16:18 imirkin: Sophira: you can boot with nouveau.noaccel=1 nouveau.nofbaccel=1 to "fix" it
16:18 karolherbst: that also expalins why pstore didn't work out
16:19 Sophira: karolherbst: Not completely. Like I say, one of the things I have enabled on the 4.6 kernel is PSTORE_CONSOLE, which is supposed to log *all* kernel messages to pstore.
16:20 pmoreau_: imirkin: When I wanted to change nick, I got "pmoreau #dri-devel :Cannot change nickname while banned on channel", and when I wanted to post "#dri-devel: Cannot send to channel"
16:20 Sophira: But that wasn't happening.
16:20 karolherbst: pmoreau_: leave dri-devel first, then change nickname?
16:20 karolherbst: ohhh
16:20 pmoreau_: karolherbst: Yeah, will try that
16:20 Sophira: pmoreau_: That might actually not be a ban, just a +e on the channel. Likely the channel might also be +m?
16:21 Sophira:doesn't know, isn't in that channel.
16:22 karolherbst: pmoreau: you could use SASL instead to get around those issues though
16:23 pmoreau: I am quite sure I had that configured. I must have messed up something while trying to add another IRC server to the bouncer, to access the LLVM channel.
16:23 imirkin: karolherbst: btw, the pixmark piano shader has spilling. adjust your setup until that happens :) [hint: update shader-db]
16:23 karolherbst: mhh now you are logged int
16:23 karolherbst: imirkin: mhh, k..
16:24 imirkin: at least i'm like 99.999% sure
16:24 imirkin: you can double-check with apitrace
16:25 Sophira: (Did you still want that vbios.rom file, btw?)
16:25 karolherbst: nope
16:25 karolherbst: 50 gprs
16:25 Sophira: Okay.
16:25 karolherbst: Sophira: that was for imirkin
16:25 karolherbst: and yeah, I still want your vbios
16:25 Sophira: Ah, okay.
16:26 Sophira: Uploading.
16:26 karolherbst: imirkin: "../nvidia_shaderdb/gputest_pixmark_piano/7.shader_test - type: 1, local: 0, gpr: 50, inst: 3755, bytes: 34336" with updated shader-db
16:26 Sophira: http://matrix.theblob.org/vbios.rom
16:26 Sophira: (taken from 4.4.6, but I assume it's kernel-independent)
16:26 karolherbst: gm206 right?
16:26 imirkin: karolherbst: ok, well make an apitrace and see what happens when replaying it
16:27 Sophira: It's a GTX 970. I don't know. Is that GM206 or GM204?
16:27 imirkin: GM204
16:27 imirkin: it should say at the top of the nouveau messages
16:27 imirkin: along with the amount of vram
16:27 karolherbst: right
16:27 Sophira: [ 66.960703] nouveau 0000:01:00.0: NVIDIA GM204 (124020a1)
16:27 karolherbst: Sophira: wanna try out a dirty fix?
16:27 Sophira: [ 67.046603] nouveau 0000:01:00.0: fb: 4096 MiB GDDR5
16:28 Sophira: karolherbst: Sure.
16:28 Sophira: If it won't brick my card ;p
16:29 imirkin: karolherbst: the LTC is all off on those. i doubt clamping to 3.5GB will be enough. should be enough to get a basic load going, but later stuff will probably be all b0rked
16:29 karolherbst: we will see
16:29 karolherbst: might the MmuDebugBufferSize option help?
16:31 Sophira: (quick question - do I need to delete the contents of /lib/firmware before installing linux-firmware, or is it safe to go over the top?)
16:31 karolherbst: wait, wrong place
16:31 karolherbst: Sophira: should be safe
16:31 Sophira: Okay.
16:32 Sophira: Oh, heh. Never mind, I do have it installed already. Don't remember when I installed that, but 20160331 is there. Will reinstall anyway in case I accidentally did a "make firmware_install" over the top of it at some point.
16:32 Sophira: Oh.
16:32 karolherbst: you need the newer versions
16:32 Sophira: But you said I wanted 20160628.
16:32 Sophira: Yeah.
16:32 karolherbst: 20160616 might work too
16:33 karolherbst: but I would install the newest
16:33 Sophira: =sys-kernel/linux-firmware-20160628 ~amd64
16:33 Sophira: Installing :)
16:35 imirkin: live a little... drop the version number from the unmask ;)
16:36 karolherbst: Sophira: could you boot with nouveau.debug=debug the next time on 4.7?
16:36 Sophira: You want me to go to -99999999 too? :P
16:36 karolherbst: Sophira: <9999 ;)
16:37 karolherbst: and then you could even use the savedconfig USE flag to only install what you need
16:37 imirkin: Sophira: i meant just sticking "sys-kernel/linux-firmware ~amd64" into packages.keywords
16:37 Sophira: imirkin: I know.
16:38 imirkin: the 9999 version is hard-masked, requires an explicit unmask somehow iirc
16:38 Sophira: I was just wondering if you wanted me to go right up to the edge as well as 'living a little' ;p
16:38 imirkin: hehe
16:38 imirkin: the 9999 versions are annoying
16:38 karolherbst: it needs a ** keyword
16:38 imirkin: generally not worth it ime
16:39 karolherbst: ohh wait...
16:39 karolherbst: nvm me
16:39 Sophira: Generally when it comes to kernels I like to make sure I'm explicitly wanting the update instead of accepting all new updates.
16:39 imirkin: fair enough
16:39 Sophira: gentoo-sources doesn't count because you have to compile it manually anyway.
16:40 imirkin:just has a separate linux git tree symlinked to /usr/src/linux
16:40 karolherbst: :D
16:40 Sophira: I did a shallow clone of the Linux git tree once, and even that was huge.
16:40 imirkin: about 2GB iirc
16:41 imirkin: you can share the .git dir between multiple workspaces
16:41 imirkin: linux $ du -sh .git
16:41 imirkin: 1.5G .git
16:41 Sophira: If you really want to try big git repos, go clone https://anongit.gentoo.org/git/repo/gentoo.git :) (That's the /usr/portage tree as held in git :P)
16:42 imirkin: hehehe
16:42 imirkin: thanks but ... no thanks
16:42 Sophira: I wonder if anybody actually has the full git history of that anywhere.
16:43 Sophira: Well, obviously there, but you know what I mean.
16:43 Sophira: Anyway.
16:52 Calinou: Xonotic Git is huge too
16:53 Calinou: easily over 10-12 GB for all repos
16:53 Calinou: probably 15 GB by now
17:00 Sophira: Configuring 4.7.0. Do I need the PCIE_DPC option to be set?
17:01 karolherbst: Sophira: I think I have
17:01 karolherbst: Sophira: I doubt oyu need that option
17:02 karolherbst: I don't have it
17:02 Sophira: Okay. Thought I'd check that option specifically because it could potentially have made a difference, but good to know it doesn't.
17:05 imirkin: Sophira: that stuff tends to be "you only need it if you know you need it" types of things
17:05 s0be: lol, the xfce-sensors package doesn't deal well with dri_prime. When the discrete gpu gets put to sleep, it shows it at 1C
17:05 karolherbst: s0be: xfce-sensors fault
17:05 s0be: yeah, I know.
17:05 karolherbst: sensors should show N/A I guess
17:05 s0be: I just thought it was funny
17:06 karolherbst: devs never were at the antarctica I assume
17:06 s0be: "my gpu is 25C below ambient right now"
17:06 imirkin: that's what i call power efficiency!
17:06 karolherbst: well
17:06 s0be: imirkin, prolly charging my battery for me
17:06 imirkin: using ambient heat to power itself
17:06 karolherbst: a fridge is also cold, but draws a lot of power :p
17:06 imirkin: karolherbst: are you sure? i thought fridges actually powered the power grid...
17:06 karolherbst: pretty sure, yeah
17:07 imirkin: :p
17:07 karolherbst: nobody really goes on with stuff like that :/
17:07 karolherbst: of course you have to convice me, that I was wrong, duh
17:10 Sophira: imirkin: Understood. I think it requires a driver, anyway. But I wanted to double-check here simply because being a PCIe-specific option there was a non-zero probability of it making a difference.
17:26 Sophira: Okay, I've compiled 4.7.0 and used grub-mkconfig to put it in my boot menu.
17:26 karolherbst: do not forget nouveau.debug=debug ;)
17:27 Sophira: I won't :) I assume that just outputs extra messages to dmesg?
17:27 karolherbst: right
17:31 Sophira: Okay, I put that as an argument to be applied to all kernels, because it seems like it'd be useful.
17:31 karolherbst: it does print a lot though
17:32 Sophira:nods.
17:32 Sophira: I may remove it later, but for now when debugging nouveau it's just easier to have it on all the time, I'd guess.
17:33 Sophira: Is there anything more I need to know before I reboot?
17:35 Sophira: Okay, will reboot then :) Brb.
17:37 Sophira: Okay, simplefb works. Still 1024x768, but, meh.
17:37 karolherbst: ohh still having simplefb
17:38 Sophira: Oh, should I have disabled that?
17:38 karolherbst: you should rather remove it and disable CONFIG_X86_SYSFB
17:38 Sophira: Okay.
17:39 Sophira: I'm still not entirely sure this is going to work, mind you, but we'll see.
17:39 imirkin: oh yeah, that thing actively breaks stuff
17:39 imirkin: definitely disable it
17:39 Sophira: Okay.
17:39 karolherbst: imirkin: it works if you enable fb_simple
17:39 Sophira: (efifb didn't seem to want to work properly for me on 4.4.6 and 4.6.5, hence why we enabled it)
17:39 karolherbst: Sophira: it didn't work because sysfb was enabled
17:40 imirkin: can you access the bios and see it on your monitor?
17:40 imirkin: do you see stuff in grub?
17:40 imirkin: if so, efifb should work
17:40 imirkin: (or gummiboot or whatever)
17:41 karolherbst: sysfb was enabled, in that case efifb won't work
17:41 Sophira: Ahhhh.
17:41 Sophira: Okay, will disable that too then.
17:42 Sophira: Building again without simplefb and X86_SYSFB :)
17:42 Sophira: Done, rebooting.
17:44 Sophira: I'm in. Looks exactly the same, but fb0/name is now "EFI VGA". fb0/modes is "U:1024x768p-75".
17:44 Sophira: (This is without nouveau loaded)
17:44 karolherbst: weird efifb
17:45 Sophira: Glad it worked though, thanks for that tip.
17:45 karolherbst: does grub show stuff in your native resolution?
17:46 Sophira: I don't *think* it is, but it's hard to tell.
17:46 karolherbst: then most likely grub messes it up
17:47 Sophira: Right, that's what I thought. I had tried messing with the options in /etc/default/grub for it though and it didn't seem to make a difference. Though it doesn't particularly matter, it's just a bit annoying. :)
17:47 Sophira: In most use I'd be using nouveau anyway.
17:47 Sophira: In any case, I'll look at it more closely next time I reboot.
17:48 Sophira: Anyway, will log in by SSH now, set up the "dmesg -w"s, and modprobe nouveau.
17:52 Sophira: Same thing happened as before. Going to pastebin the dmesg now.
17:54 Sophira: http://pastebin.com/msJh5gRJ
17:55 karolherbst: mhh
17:55 karolherbst: 4 memory parts each with 1GB
17:55 karolherbst: odd
17:55 karolherbst: I thought there would be 5
17:55 karolherbst: 3x 1GB + 2x 0.5GB
17:56 karolherbst: Sophira: did you update the linux-firmware package?
17:57 Sophira: Yes, it's on 20160628 right now.
17:57 karolherbst: k
17:57 Sophira: I haven't "emerge --sync"'d in a few days though if it matters.
17:57 Sophira: Only a couple of days though.
17:58 karolherbst: Sophira: drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c
17:58 karolherbst: around line 567 should be something like "u32 parts = nvkm_rd32(device, 0x022438);"
17:58 Sophira:looks.
17:58 karolherbst: could you change that to "u32 parts = 3;"?
17:59 Sophira: Yep, I see that line, right on line 567. Changing it now.
17:59 karolherbst: there is nearly no chance that this might work, but it is worth a shot
17:59 Sophira: (This can't brick my card, right?)
17:59 karolherbst: nope
17:59 karolherbst: I don't think any dev here ever bricked a card through nouveau
18:00 Sophira: Okay.
18:00 imirkin: i think the bricking tends to happen to motherboards, through excessive plug/unplug cycles
18:01 Sophira: New kernel compiled and installed. Will get back to you with a new dmesg :)
18:05 Sophira: karolherbst: So you know how you said there was nearly no chance it would work? Well, you got it right. It works. :)
18:05 Sophira: Uploading the new dmesg from a working nouveau in 4.7.0 :)
18:05 karolherbst: :D
18:06 Sophira: http://pastebin.com/CxytDgUq
18:06 karolherbst: well it might break somewhere else, but as long as it does somewhat work
18:06 imirkin: unfortunately "limps along" may be more accurate. i guess i'm not super plugged into the details...
18:07 karolherbst: Sophira: you could start X and run glxinfo
18:07 karolherbst: just to see what happens
18:07 Sophira: Already in X. Let's see...
18:07 karolherbst: should work I think
18:07 karolherbst: secboot doesn't complain
18:08 Sophira: http://pastebin.com/kaeCLD50
18:08 karolherbst: imirkin: I think we shouldn't touch the last 512MB on those gpus anyway
18:08 karolherbst: imirkin: because it requires smart driver handling otherwise perf sucks big times
18:09 karolherbst: huh, no nouveau in mesa...
18:09 karolherbst: Sophira: did you compile mesa with the nouveau flag?
18:09 Sophira: Yes. I see this in my Xorg.0.log:
18:09 Sophira: [ 143.083] (II) [drm] nouveau interface version: 1.3.1
18:09 Sophira: [ 143.083] (EE) Unknown chipset: NV124
18:09 Sophira: [ 143.083] (II) modeset(0): using drv /dev/dri/card0
18:09 Sophira: [ 143.083] (WW) Falling back to old probe method for fbdev
18:09 karolherbst: also softpipe is kind of wrong
18:09 Sophira: (with the first couple of lines repeated a few times)
18:09 karolherbst: Sophira: remove xf86-video-nouveau
18:09 Sophira: (brb)
18:09 Sophira: Oky.
18:10 karolherbst: imirkin: mesa would have to track access to the last 512MB and move rarely accessed stuff there. kind of like kernel swapping :/
18:11 karolherbst: I doubt anybody here really wants to implement that
18:11 tobijk: heh we do not really swap to ordinary ram, let alone swapping to a specil portion of vram :>
18:12 karolherbst: exactly
18:12 karolherbst: the 3.5GB have a 224bit interface the 512MB only 32bit afaik
18:12 tobijk: *shrug*
18:12 Sophira: Okay, back. Going to unmerge xf86-video-nouveau now.
18:13 karolherbst: Sophira: do you have libdrm 2.4.70 installed?
18:13 Sophira: Yes.
18:13 karolherbst: what use flags are set on mesa?
18:13 Sophira: Looks like I must have ~amd64'd that.
18:14 Sophira: home mesa-12.0.1 # cat USE
18:14 Sophira: abi_x86_64 amd64 classic dri3 egl elibc_glibc gallium gbm kernel_linux nptl udev userland_GNU video_cards_nouveau
18:14 Sophira: (from /var/db/pkg/media-libs/mesa-12.0.1 )
18:14 karolherbst: you can remove classic
18:14 karolherbst: mhhh
18:14 karolherbst: but otherwise it looks fine
18:15 karolherbst: odd, why doesn't glxinfo picks up nouveau
18:15 karolherbst: mind posting your entire Xorg.log?
18:15 Sophira: Sure.
18:16 Sophira: BTW, in case it matters, I had made sure to unset the "llvm" and "opencl" flags because they brought in packages that conflicted; see https://bugs.gentoo.org/show_bug.cgi?id=587026
18:16 karolherbst: you can enable llvm though
18:16 karolherbst: that gives you faster software opengl
18:17 karolherbst: softpipe is kind of slow
18:17 Sophira: Unless it's required I'd rather make sure that the driver works before doing that, because of the conflicts.
18:17 karolherbst: I meant without opencl
18:17 karolherbst: just llvm
18:18 karolherbst: but compiling llvm takes a while
18:18 karolherbst: so you can do that later
18:18 Sophira: I already have llvm installed.
18:18 Sophira: That's the thing :)
18:18 karolherbst: I see
18:18 Sophira: 3.7.1-r3.
18:19 Sophira: libclc required <3.6.
18:19 karolherbst: cause you don't have ~amd64 set :p
18:19 karolherbst: 0.2.0_pre20160209 works with 3.7
18:20 karolherbst: anyway
18:20 karolherbst: X log :p
18:20 Sophira: Eh. I like to use stable packages except where necessary.
18:20 Sophira: Okay.
18:21 Sophira: http://pastebin.com/Dcbc0D5E
18:23 karolherbst: ahh I know
18:23 karolherbst: Sophira: rebuild xorg-server with glamor USE flag set
18:24 karolherbst: and I would also suggest to update to 1.18
18:24 karolherbst: 1.17 might work though
18:24 karolherbst: but there were many glamor improvements in 1.18
18:24 karolherbst: and you need glamor
18:25 Sophira: Gah, had to restart X. Enlightenment froze again, I think.
18:25 Sophira: (I may need to switch WM.)
18:25 karolherbst: did you get my message regarding glamor?
18:26 Sophira: I'll give glamor a go in 1.17.4 and see how it goes.
18:26 Sophira: Yep.
18:28 Sophira: Doing an 'emerge -auDN @world' so that both the mesa -classic and xorg +glamor USE flags take effect.
18:28 Sophira: Oh, right.
18:28 Sophira: I should probably take 'nouveau' out of VIDEO_CARDS too.
18:28 karolherbst: -classic will only save you a bit of time though ;)
18:29 karolherbst: Sophira: nope, you need it for mesa
18:29 Sophira: karolherbst: Ah. Because it wants to reinstall xf86-video-nouveau. Is that a problem?
18:29 karolherbst: Sophira: package.use: x11-base/xorg-drivers -video_cards_nouveau
18:29 karolherbst: that simple
18:29 Sophira:nods.
18:29 Sophira: Okay.
18:30 Sophira: So -classic isn't necessary, then?
18:31 karolherbst: nope
18:31 karolherbst: only for swrast, nouveau_viex (pre nv50 I think) and i965
18:31 Sophira: Okay. Will just leave it in for now then - my computer's pretty beefy so it's not a huge add to compile time.
18:32 karolherbst: well I wanted to say, classic is just needed for those above
18:32 karolherbst: it just reduces code size for you if you disable it
18:33 Sophira: I'm not overly concerned about removing stuff I don't need, to be honest, unless it's an actual problem.
18:33 Sophira: Anyway, xorg-server and xorg-drivers are compiled now.
18:33 Sophira: Restarting X, brb.
18:35 Sophira: Okay, glxgears gets about 50fps maximised now. It was previously getting about 13fps.
18:35 karolherbst: glxinfo
18:36 karolherbst: my intel card gives me 640 fps :p
18:36 karolherbst: but even without reclocking 50 fps is kind of low
18:37 Sophira: http://pastebin.com/4UXLKaJw
18:37 Sophira: It is low, yeah.
18:37 Sophira: I know for a fact it should be getting a lot better.
18:37 Sophira: But hey.
18:37 Sophira: I guess it's an improvement ;p
18:37 karolherbst: well, it looks all good now
18:37 karolherbst: nouveau is actually used now
18:38 karolherbst: imirkin: got the gtx 970 with 4gb running :p
18:38 karolherbst: Sophira: sadly, nouveau can't control the fans on your gpu, so trying to reclock it is pointless
18:39 Sophira:nods.
18:39 karolherbst: Sophira: vblank_mode=1 glxgears
18:39 karolherbst: try that
18:41 Sophira: Okay, that gives me figures in the 150-180fps range. But if I'd had to guess the FPS just by looking at it I'd have said it was running at 40-45fps.
18:41 Sophira: Actually, maybe more like 30-40fps.
18:41 karolherbst: well your display only seems to run at 50hz
18:41 karolherbst: check xrandr
18:41 Sophira: Maybe setting my compositor to a hardware mode now would help...
18:42 Sophira: 1920x1080 60.00*+ 50.00 59.94
18:42 Sophira: (from xrandr)
18:42 karolherbst: mhh odd
18:42 karolherbst: well maybe your compositor did stupid things then
18:42 Sophira: Yeah. Going to go that up now.
18:44 Sophira: Hmm. When I try to set the Enlightenment compositor to use OpenGL instead of Software, a dialog comes up saying my display driver doesn't support OpenGL, GLSL shaders, or that no OpenGL engines were compiled or installed for Evas or Ecore-Evas. *looks into it*
18:45 Sophira: ( http://matrix.theblob.org/compositor.png )
18:45 karolherbst: maybe you compiled it without opengl support or glx
18:47 Sophira: It doesn't have a flag for that. But you know what, let me put in 'opengl' in my make.conf USE flags and see what needs recompiling.
18:48 Sophira: Ah yes, that'd do it.
18:49 Sophira: efl.
18:49 Sophira: (cairo, efl and libwebp were the packages that needed recompiling, and efl is Enlightenment-related)
18:53 Sophira: Looking at this there's actually a lot in efl I need to enable USE flags for.
18:54 karolherbst: well, you could try out mesa-9999 at some point, that might rule out a lot of maxwell2 related issues you may encounter in the future and as I said: xorg-server 1.18 + dri3 might resolve other issues
18:54 karolherbst: but at least it is kind of working now
18:57 Sophira: Damn, efl upstream must hate the Gentoo devs. Gentoo disables so many things by default and the compile process complains about a lot of the things that are disabled.
18:57 Sophira: For example:
18:57 Sophira: "You have chosen to disable physics support. This disables lots of core functionality and is effectively never tested. You are going to find features that suddenly don't work and as a result cause a series of breakages. This is simply not tested so you are on your own in terms of ensuring everything works if you do this"
18:57 Sophira:goes through and re-adds the stuff that should be enabled.
18:58 karolherbst: everybody hates gentoo, cause those are the guys with annoying compile issues and weird configurations :D
18:58 karolherbst: there were also times where everybody with gentoo in the name got an instant IRC ban
18:58 karolherbst: in specific channels
19:00 Sophira: To be fair, this is why the Gentoo devs keep telling people that bugs should be reported to bugs.gentoo.org, not upstream :)
19:00 karolherbst: I usually don't do this, cause it isn't their fault, except if that's gentoos fault I report there :p
19:01 Sophira: The Gentoo devs *want* you to report bugs there, though.
19:01 karolherbst: for patches, I know :/
19:07 Sophira: Not just for patches; they can report things upstream.
19:07 karolherbst: well I can also report things upstream
19:08 pmoreau: I’ll have to investigate this "nouveau 0000:01:00.0: fifo: SCHED_ERROR 0a [CTXSW_TIMEOUT]" on my GK104, it’s getting annoying!
19:08 karolherbst: yay!
19:08 karolherbst: pmoreau: I think RSpliet tried to solve some gr firmware issues though
19:08 karolherbst: pmoreau: I guess you are already running my branch?
19:09 pmoreau: Indeed, I am running your branch. Maybe not the very latest version, but a decently recent one
19:09 karolherbst: pmoreau: mhh, one thing: what is your clock you have set while this happens? Maybe this is the one instable high engine clocks issue
19:09 imirkin: karolherbst: in #debian? :)
19:09 imirkin: [the gentoo ban]
19:09 karolherbst: or does it also happen randomly on 07?
19:09 karolherbst: imirkin: no clue anymore :D I think there were more
19:10 pmoreau: I should be on the lowest one, let me check. But I also have the issue on stock 4.7 without any reclocking.
19:10 karolherbst: but gentoo guys usually start to troll in #debian I think :D
19:10 karolherbst: pmoreau: I see
19:10 karolherbst: pmoreau: maybe if you reclock to 07 it is better
19:10 imirkin: trolling is a lot easier than fixing issues.
19:10 karolherbst: pmoreau: once somebody got a super unstable gpu unreclocked, but reclocked with my branch to 07 helped
19:10 imirkin: i still don't have a clear idea in my mind why the spill code is wrong
19:10 pmoreau: karolherbst: Yep, 07 it is, and I did reclock to it.
19:10 karolherbst: imirkin: well, you know, debian and being stable ;)
19:11 imirkin: i've found a way to not break it, but the thing is that the old code should work too
19:11 imirkin: so... more investigation necessary
19:11 karolherbst: mhh no idea either, it doesn't spill for me, this is what I know
19:11 imirkin: also even with all the various fixes, including disabling LoadPropagation, it pixmark_piano still hangs
19:11 karolherbst: pmoreau: k, then I am out of ideas
19:11 imirkin: i think it's hitting the watchdog
19:12 imirkin: or it's hitting that "i'm gonna stop running shaders after a while for no apparent reason" issue
19:12 karolherbst: mhh
19:12 imirkin: anyways, it's good that i'm fixing core compiler issues
19:12 karolherbst: odd, pixmark_piano doesn't have that high impact on the gpu in total
19:12 imirkin: but i think ultimately pixmark_piano won't run
19:13 pmoreau: karolherbst: No problem, I’ll try things later. Maybe using the blob’s grctx.
19:13 karolherbst: pmoreau: there are some bugs in bugzilla regarding this though
19:13 karolherbst: and for some blob grctx didn't help
19:13 imirkin: karolherbst: what do you mean by "doesn't have that high impact on the gpu"?
19:14 karolherbst: the gpu stays usual cool
19:14 karolherbst: *unusual
19:14 pmoreau: karolherbst: I’ll browse through the bugzilla as well, good idea
19:15 imirkin: karolherbst: huh odd. that means we suck at something important.
19:15 karolherbst: "only" 55W here
19:16 karolherbst: furmark goes above 70W
19:16 karolherbst: imirkin: well it doesn't use anything memory related, at all (pixmark_piano) that is
19:16 karolherbst: so that reduces the power consumption by a significant amount already
19:17 karolherbst: I think, that this is the reason at least
19:18 karolherbst: pmoreau: https://bugs.freedesktop.org/show_bug.cgi?id=93629
19:18 karolherbst: one example
19:18 karolherbst: there are more though
19:22 Sophira: imirkin: There have been people wanting the Gentoo devs to make it easier for people to ban Gentoo users, too.
19:23 karolherbst: Sophira: in general I don't like downstream bug trackers that much, cause the decs of the actual projects get annoyed, because they don't deal with the user having that bug directly and a lot of time is spent in communicating the entire thing
19:23 imirkin: heh
19:23 Sophira: https://bugs.gentoo.org/show_bug.cgi?id=35890
19:23 karolherbst: Sophira: right :D I remeber
19:23 Sophira:nods.
19:25 karolherbst: that last patch though
19:26 karolherbst: Sophira: do you know this already? https://fun.irq.dk/funroll-loops.org/
19:26 imirkin: oh 2004.
19:26 imirkin: good times.
19:27 imirkin: my (limited) experience is that filing bugs in gentoo is effectively identical to sending them to /dev/null, so i tend not to bother
19:28 imirkin: a few did get resolved a decade later
19:28 karolherbst: :D
19:30 Sophira: Okay, efl recompiled with extra goodies, and a small tweak to my kernel settings to make PulseAudio happy (apparently it prefers 2048kB prealloc buffer on HD Intel cards)
19:35 karolherbst: Sophira: well if you don't need those fancy pulse features, you can always go with alsa-dmix
19:37 Sophira: Okay, rebooted. glxgears is lovely and smooth now, though it could do with some vsyncing. It now seems to be capped to 60fps; I'm getting values of 59.999.
19:37 Calinou: vblank_mode=0 glxgears
19:37 karolherbst: good :)
19:37 Calinou: Nouveau forces vsync by default
19:37 karolherbst: Calinou: we know ;)
19:37 karolherbst: Calinou: but before it was capped at 50 fps
19:37 Sophira: Huh. I was seeing tearing when I ran it, though.
19:38 karolherbst: Sophira: that's cause of the compositor
19:38 karolherbst: usually you have some kind of two staged tearing prevention
19:38 karolherbst: 1. application side 2. window side
19:39 karolherbst: it is messy and even more annoying on prime offloaded systems
19:39 karolherbst: dri3 helps
19:39 Sophira: Okay, with vblank_mode=0, I see FPS values of ~400 or so when maximised.
19:39 karolherbst: :O
19:39 karolherbst: now we are getting somewhere
19:39 tobijk_: karolherbst: dri3 makes it worse for me :)
19:39 karolherbst: tobijk_: update your x server :p
19:39 tobijk_: 1.18.4
19:39 tobijk_: no use ^^
19:39 karolherbst: on multi display systems you actually need dri3
19:39 karolherbst: otherwise any besides your main display tears
19:39 Sophira: (I also un-blacklisted nouveau for this reboot, since we know that the patched version works.)
19:40 karolherbst: 400 fps is kind of in the range I would expect from your gpu in the current state
19:40 karolherbst: so I guess it is all fixed now
19:40 Sophira: Looks like it!
19:41 karolherbst: I get only 640 fps with nouveau :/ stupid slow pcie bus
19:41 Sophira: I mean, I'm pretty sure I've had glxgears results in the thousands years ago with the binary nvidia drivers and older cards, but still :D
19:42 tobijk_: mh i never really tested glxgears with vblank off
19:42 tobijk_: hey 655 fps :)
19:42 karolherbst: Sophira: like this? 55871 frames in 5.0 seconds = 11174.102 FPS
19:42 Sophira: Probably. I'd need to dig out my glxgears outputs to be sure.
19:43 imirkin: Sophira: you're in the lowest power state for that gpu...
19:43 karolherbst: I think she is already aware of that
19:43 Sophira: Yeah, karolherbst mentioned that there was no point in trying reclocking, I think.
19:43 karolherbst: well
19:43 karolherbst: if you like a hot GPU, we could still reclock this beast
19:43 karolherbst: propably
19:44 karolherbst: never actually tried to reclock memory on a maxwell2
19:44 imirkin: on my very shitty GK208, at the highest perf state, i get 7.5K fps, while in its low state (which isn't that low actually), it's 3.2K fps
19:44 Sophira: I'm fine for now. We'll see once I start getting around to doing actual 3D stuff on here.
19:44 Sophira: But yeah.
19:44 karolherbst: imirkin: we run here at fullscreen glxgears on fullhd :p
19:45 karolherbst: Sophira: it might be worth keeping an eye on sensors
19:45 imirkin: the other thing is that glxgears isn't exactly taxing, so it's not a great test of things
19:45 karolherbst: or have a sensor applet in the task bar
19:47 Sophira: Hmm, that bad? Okay.
19:49 imirkin: Sophira: moral of the story: next time, buy amd.
19:49 tobijk_: or intel if you dont care for high performance :)
19:50 Yoshimo: imirkin: that would be too easy.
19:52 tobijk_: imirkin bought the most nvidia hw to tinker with anyway, here in the channel :D
19:53 imirkin: tobijk_: i think my lifetime spending on nvidia hw is in the $200 range
19:53 Tom^: =D
19:53 Tom^: i dont think i even wanna know how much ive spent
19:53 tobijk_: you made a good pile of hw out of that :D
19:53 Sophira: Still interested in helping out the nouveau project though. This wasn't *just* an attempt to get as much FPS as I can and then leave ;)
19:54 imirkin: tobijk_: and that counts the $100 i spent on a G96 back when those were cool
19:54 Sophira: Definitely interested in debugging why nvkm_rd32 returns a value that doesn't work on my machine.
19:55 Sophira: (unless you already know why, of course)
19:56 imirkin: skeggsb is taking care of it
19:56 Sophira: Ah, okay.
19:56 imirkin: it's beyond the combined knowledge of everyone else in the channel
19:56 Sophira: What can I do, then?
19:57 tobijk_: test skeggsb's attempts and give feedback
19:57 imirkin: for this specific issue? nothing. wait patiently for ben to work it out.
19:58 imirkin: if you're looking to contribute to nouveau in general
19:58 imirkin: there are a bunch of fairly simple-to-implement features that GM20x has added that you could work on exposing in mesa
20:00 tobijk_: imirkin: do you know the specifics for the lscadd instruction or where i can read about them? :>
20:00 imirkin: tobijk_: ISCADD
20:00 imirkin: not L
20:01 imirkin: tobijk_: it's a << b + c
20:01 imirkin: where b is an immediate
20:01 tobijk_: yep
20:01 imirkin: very useful for implementing address calculations like a * 4 + c
20:01 imirkin: or a * 16 + c
20:01 Sophira: Hmm. lm_sensors only detected two things on my system, apparently.
20:02 Sophira: imirkin: That sounds good to try doing.
20:02 imirkin: yeah ... some of us have just been lazy
20:02 imirkin: i think hakzsam was thinking of looking at it
20:02 tobijk_: imirkin: actually id still like to try improving n*3 = a<<1 +a
20:02 imirkin: but he has other things to do as well
20:03 imirkin: tobijk_: would that really improve things?
20:03 imirkin: maybe it would. not sure.
20:03 tobijk_: i have found several shaders which utilize exactly that
20:03 imirkin: it's moderately common for imul to be super slow, but dunno if it is on nvidia gpu's
20:04 tobijk_: not sure if it improves but if an iscadd instruction is the outcome for general purpose, why not
20:04 Sophira: Oh, there is actually something I meant to say earlier but didn't. I got some glitchiness on the framebuffer before running startx on this boot. Let me upload a photo.
20:05 imirkin: tobijk_: shift + add comes up a lot for address calculations, so it's definitely useful
20:05 tobijk_: imirkin: mul in general is as fast (or slow) as shl+add
20:06 imirkin: i guess i could convert those into IMAD... dunno
20:06 imirkin: i think there's some deal where IMAD is slow. or perhaps we just schedule it wrong.
20:07 tobijk_: within the pipeline you mean?
20:07 imirkin: yea
20:07 imirkin: mofos. 35 degC outside.
20:08 imirkin: someone needs to invent a personal airconditioning unit.
20:08 imirkin: like a helmet or something
20:08 tobijk_: heh
20:08 tobijk_: move over here (20°C) :D
20:09 imirkin: greenland? :)]
20:09 Tom^: 12C here
20:09 Tom^: =D
20:09 tobijk_: Tom^: you have "summer" there? :D
20:09 Tom^: winter is coming.
20:10 Tom^: tobijk_: july and june.
20:10 imirkin: 6C in yakutsk...
20:10 imirkin: maybe i'll move there
20:11 Tom^: im about on the same latitude as yakutsk, only i got the gulf stream
20:11 Tom^: which makes it somewhat decently livable
20:11 imirkin: yakutsk is a city of 200k...
20:12 karolherbst: yay, my internet is back!
20:12 tobijk_: too small for you? :>
20:12 karolherbst: damn isp
20:12 imirkin: wow. 270k in 2010
20:12 Tom^: it still has like -35 to -45 temps in winter
20:12 tobijk_: karolherbst: KD that bad? :/
20:12 karolherbst: yes
20:13 Tom^: we only have those in rare special days. the rest its hoovering around -15 to -20
20:13 karolherbst: for a week I get a daily disconnect from my isp
20:13 imirkin: Tom^: where are you?
20:13 Tom^: imirkin: way up north in sweden
20:13 karolherbst: Sophira: ohh, I know a lot of things how you could help out :p
20:13 imirkin: ah ... there was a google office somewhere around those parts
20:13 imirkin: some L-starting city
20:13 Tom^: facebook one in luleå
20:14 Tom^: right in my town :P
20:14 imirkin: yeah, that's the one.
20:14 imirkin: (perhaps it closed)
20:14 imirkin: can't be too many large cities in northern sweden
20:14 Tom^: well what do you define as large?
20:14 Tom^: 20k+ ?
20:14 Tom^: )D
20:15 Tom^: =D
20:15 imirkin: hehe
20:15 karolherbst: my home town is 20k+ and it is frigging small
20:15 imirkin: "larger than the surrounding towns"
20:15 karolherbst: sure, why not
20:16 tobijk_: <-- 3k and its cosidered a city :O
20:16 Sophira: Here we go - there's some framebuffer glitchiness visible in this photo: http://matrix.theblob.org/fb-glitchiness.jpg . Notice how the bottom of my login username and 'startx' is cut off at the bottom, and there are blue/green bits at the center-right of the screen. (the blue/green bits are leftovers from OpenRC's bootup sequence, I'm fairly sure)
20:16 imirkin: https://googleblog.blogspot.com/2009/01/changes-to-engineering.html
20:16 imirkin: Today we are doing the same thing in Austin, Texas; Trondheim, Norway; and Lulea, Sweden
20:16 imirkin: i guess i haven't been staying on top of it :)
20:17 imirkin: Sophira: probably one of the results of LTC being messed up
20:17 Sophira: LTC?
20:17 Sophira: I'm not sure what that is.
20:17 imirkin: Sophira: although sometimes i've seen odd things in fbdev, so could be some genero issue
20:17 imirkin: LTC = L T C. some sort of framebuffer compression thingie
20:18 imirkin: nvidia calls it it LTC so we call it LTC.
20:18 Sophira: Ah.
20:18 Tom^: i like it how they rabble bunch of countrys and then all of a sudden mentions luleå. a puny city with like 70k people
20:18 imirkin: Tom^: i guess there's a good university there? i remember when that office opened in ... 2007 or so? a few people moved there.
20:19 Tom^: yep
20:19 tobijk_: mh if i'd be biased, i'd say my change makes unigine valley 1% faster :D (no there is no noise at all)
20:20 imirkin: tobijk_: the numbers may not support this, but i'd say my changes improve things by 100000% :)
20:20 tobijk_: exactly my point, just work the numbers, until they work for you :D
20:21 imirkin: when you see someone messing with confidence intervals, you know they *really* have nothing
20:21 imirkin: (i mean, messing with the confidence levels of those intervals)
20:23 Tom^: behold its magnificence http://www.ltu.se/cms_fs/1.106130!/img/img/lul%C3%A4%C3%A4%C3%A4.jpg_gen/derivatives/landscape_800/lul%C3%A4%C3%A4%C3%A4.jpg
20:24 imirkin: that looks quite nice :)
20:24 tobijk_: don't you have a really high mountain of mining overhead there? :D
20:27 Tom^: nah the mountains are ~200 kilometers or so away. its quite flat at the coast
20:27 tobijk_: then i misremembered that, apologies :>
20:29 Tom^: tobijk_: http://imgur.com/a/JuvUE however i did go fishing with my boat two weeks ago up in the mountains. :P
20:30 tobijk_: looks really nice, but cold :)
20:30 Tom^: =D
20:33 imirkin: ok. CRAP. *now* i really understand the issue in the spill code.
20:33 tobijk_: yaaay, if thats true an i ever meet you, one beer on me :)
20:34 imirkin: the issue is that we do the stupid join thing in the coalesce logic
20:34 imirkin: and then we try to spill the "main" lval, but that leaves all the joined-to lvals "in the dark" about the spilling
20:35 imirkin: so then when RA fails and we try to undo it, we're left with random BS in there
20:36 imirkin: blergh
20:36 imirkin: i blame calim
20:36 tobijk_: :D
20:37 imirkin: compilers are hard
20:38 tobijk_: yeah, even a trivial compiler for a c like language without optimizations gave me a hard time for a while :)
20:50 tobijk_: imirkin: so you just try to fix it by splitting the values right again?
20:50 imirkin: tobijk_: well, i'm debating if my current "fix" is the right one
20:50 imirkin: which is ... just don't remove the instruction
20:51 imirkin: remove it from the BB, but don't free it
20:51 imirkin: which means that the lval->defs list for both lvals will point to a non-freed ValueDef
20:52 tobijk_: just add a "dead_defs" bool and you are godo to go ;-)
20:53 imirkin: the problem is that the list in LValue is to ValueDef*, and the ValueDef belongs to the instruction
20:53 imirkin: so if i don't remove it from a list, then i'm pointing to freed memory
20:54 tobijk_: ups
20:54 imirkin: this is also why spilling from flags to regs is wonky
20:54 imirkin: it's all coming together now
20:55 tobijk_: a temporary list with the molten away instructions maybe
20:56 imirkin: and then what
20:56 imirkin: without scanning all lvalues, i don't know what the "other" lvalue is
20:56 imirkin: which i can obviously do
20:56 imirkin: i guess that's not the worst thing
20:57 imirkin: but this issue leads to a lot of fragility everywhere, not just here
20:57 imirkin: ugh
20:58 imirkin:will think some more on this
21:00 tobijk_: mh or just dup the complete insns and their values, try to ra, if it does not work restore (yeah ugly as hell)
21:01 imirkin: well, the alternate solution is just "don't delete the instructions"
21:01 imirkin: the downside is that now lvalues will have pointers to "dead" instructions in the middle.
21:01 imirkin: which is easy to recognize, just ... suboptimal.
21:02 imirkin: and makes me question where else i need to fix this up
21:03 tobijk_: try to find it right after ra and reorder it there...where else do you mean?
21:04 imirkin: yeah, that means i scan all the lvalues
21:04 imirkin: like i said, not the worst thing in the world...
21:04 imirkin: i might just do that.
21:04 tobijk_: we dont care for fast compile times :)
21:05 imirkin: yeah, by the time we're spilling, it's already not-great.
22:02 Sophira: I'm noticing some really weird issues on my 4.7.0 config. When I'm in X, text will have random characters disappear when I'm scrolling around in some things. It's happening most often in Leafpad but I just had it happen in Firefox too. I just rebooted back to 4.4.6 (which of course doesn't have the hardware acceleration going) and it seems to be okay there. (It's normally really easy to see in Leafpad.)
22:03 Sophira: It's probably behaviour that I can screenshot. Let me see...
22:03 imirkin: accel vs not accel
22:03 Sophira:nods.
22:03 Sophira: Likely.
22:04 imirkin: until ben comes out with a proper fix, i wouldn't worry about it
22:04 Sophira: Okay.
22:04 Sophira: No need for the screenshot then?
22:04 imirkin: nah
22:04 Sophira: Okay.
22:04 imirkin: i mean... i definitely wouldn't know what to do with it
22:04 Sophira:nods.
22:04 Sophira: Okay.
22:04 imirkin: skeggsb should be around soonish... should be able to get a status update
22:04 Sophira:nods.
22:05 imirkin: (he's in AU)
22:05 skeggsb: status update on?
22:05 Sophira: I might ask him if he needs any data points from another card.
22:05 imirkin: skeggsb: GTX 970 + 4GB
22:05 Sophira: Oh, hi :)
22:05 skeggsb: well, i'm still waiting on nv to answer me atm..
22:05 imirkin: skeggsb: ah ok =/
22:05 Sophira:nods.
22:06 imirkin: skeggsb: any interim thing for people to test, or it's some core issue?
22:06 imirkin: skeggsb: seems like the 4GB GTX 970 is pretty popular, so there's an increasing crowd of people with issues
22:06 skeggsb: i need to know some more details to properly be able to detect the situation
22:07 skeggsb: either info from nv, or more examples of such a configuration would work, but, the latter is sorely lacking
22:08 Yoshimo: isn't it common for videocards to have 4gb and more these days?
22:08 skeggsb: not ones where some of the vram isn't as capable as the rest
22:09 Sophira: If you need any help or data, I'm also running a 970 with 4GB, which I've got working (with the help of karolherbst) on 4.7.0. (We had to adjust drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c and edit the gf100_ram_ctor function to set the 'parts' variable to 3, as it wasn't working otherwise.)
22:09 Yoshimo: so it is not 4 but rather 3+1 with different types?
22:09 imirkin: Yoshimo: it's a situation specific to those GTX 970's
22:09 imirkin: not to 4GB in general
22:09 Yoshimo: so with a 980 i am not affected?
22:09 imirkin: Yoshimo: not by this issue, no
22:10 skeggsb: hmm, i could probably hack something up to drop the entire partition if it has disabled ltcs i guess - for now
22:11 skeggsb: i'll ping nv again today and see how that goes first
22:11 Sophira: In case it helps, here's the dmesg from the unpatched 4.7.0 kernel with me modprobe'ing nouveau manually: http://pastebin.com/msJh5gRJ
22:11 Sophira: But yeah.
22:12 imirkin: skeggsb: i think that'd be nice... karol made a hack for Sophira to ignore the last partition, but she's still having issues. i'm guessing it's because he missed a few details around it.
22:13 Sophira: Well, to be fair, it's mostly working. There's just some glitchiness.
22:14 imirkin: Sophira: btw, what version of mesa are you on?
22:17 Sophira: 12.0.1.
22:17 imirkin: ok, that's fine
22:17 imirkin: just wanted to make sure it wasn't the gentoo stable one, which tends to be quite far behind
22:17 Sophira: (Sorry for the delay. For a moment I was really confused because it showed that I didn't have it installed and I knew I did, but I realised I was connected to a different computer ;p)
22:17 Sophira: Right.
22:18 Sophira: For the record:#
22:18 Sophira: media-libs/mesa ~amd64
22:18 Sophira: x11-libs/libdrm ~amd64
22:18 Sophira: =sys-kernel/linux-firmware-20160628 ~amd64
22:18 Sophira: =sys-kernel/gentoo-sources-4.7.0 ~amd64
22:18 imirkin: goodie
22:22 pmoreau: Yay, finally taking into account the opcode for defining the input(s) signedness
22:55 karolherbst: :O