00:00 nullspoon: I'll give that a try here.
00:00 imirkin: but some people with problematic situations have had issues bringing up pgraph initially as well, so this wouldn't help
00:00 imirkin: is this a dell xps 15?
00:01 nullspoon: Nope. Asus rog GL753ve
00:01 nullspoon: Similar hardware I think though.
00:01 imirkin: https://bugs.freedesktop.org/show_bug.cgi?id=100228
00:02 imirkin: well, the issue is with a specific vbios
00:02 imirkin: each vendor puts in their own
00:02 imirkin: (or specific group of vbios's... probably some option in the vbios-maker tool that nvidia provides)
00:03 nullspoon: huh
00:04 nullspoon: I won't lie. My eyes are happy to see a different page than all the ones that keep coming up again and again from my various searches.
00:04 nullspoon: let me try that runpm thing real quick. Might be away for 5 or so minute while I reboot my system in case it doesn't work. :)
00:05 nullspoon: To be clear about what I'm about to do, so you can tell me I'm wrong, which is likely the case.
00:06 nullspoon: 'modprobe nouveau runpm=0'. Start bumblebeed with my nouveau config, optirun glxgears.
00:06 nullspoon: Sound about right?
00:06 imirkin: tbh i can never rembmer how modprobe works
00:06 imirkin: insmod nouveau runpm=0 would definitely be right though
00:07 imirkin: i would stay away from bumblebee with nouveau
00:07 imirkin: and i have no idea what optirun does, but i can't imagine it's anything good
00:07 nullspoon: ha. All this time I've been fighting with that.
00:07 imirkin: if you want glxgears to render on the nvidia gpu, DRI_PRIME=1 glxgears should achieve that
00:07 nullspoon: okay. I'll give it a try.
00:08 imirkin: you should expect perf of about 1/10th of the intel gpu
00:08 nullspoon: really?
00:08 imirkin: (with offloading, glxgears measures pcie bus bandwidth)
00:08 nullspoon: oh
00:08 imirkin: so it might actually be less
00:08 nullspoon: Well here goes.
00:09 nullspoon: Ha. "Could not load module 'nouveau'. no such file or directory"
00:09 imirkin: however without signed blobs from nvidia to operate the reclocking stuff, perf isn't going to go anywhere
00:09 nullspoon: modprobe worked.
00:09 imirkin: dmesg is the place to look for indications of success
00:09 imirkin: or failure
00:10 nullspoon: looks like everyting worked fine, but I do have one concerning line. "nouveau 0000:01:00.0: DRM: Pointer to TMDS table invali"
00:10 imirkin: that's fine
00:11 imirkin: so now, DRI_PRIME=1 glxinfo
00:11 nullspoon: here goes...
00:11 nullspoon: well, haven't frozen yet
00:12 nullspoon: Showing ~2200 fps.
00:12 imirkin: here's some info on optimus: https://nouveau.freedesktop.org/wiki/Optimus/
00:12 imirkin: for offloading, ideally you'd be using DRI3
00:12 nullspoon: I've read that page so many times. :)
00:13 imirkin: what part of that page recommends bumblebee and optirun?
00:13 nullspoon: The rest of the internet.
00:13 imirkin: ah yes.
00:13 imirkin: hard to control that.
00:13 nullspoon: Yeah. Unfortunately.
00:13 nullspoon: But it looks like that worked.
00:13 imirkin: cool
00:14 nullspoon: without DRI_PRIME, my fps was estimated at about 60
00:14 imirkin: you can try something more strenuous like unigine heaven or unigine valley (although you should expect to see some artifacts in the latter)
00:14 nullspoon: with DRI_PRIME, it estimated at about 2200 fps.
00:14 imirkin: that's coz it's vsync'd
00:14 imirkin: try vblank_mode=0 glxgears
00:14 nullspoon: oh
00:14 nullspoon: I wondered.
00:15 imirkin: but really it's just measuring how many of those frames fit on the PCIe bus from the nvidia chip to the intel chip
00:15 imirkin: since generating them is ~free
00:15 imirkin: (apparently now we know -- 2200 per second)
00:15 nullspoon: Haha. Doing that with dri_prime boosted my nvidia fps up to about 9000 fps
00:16 nullspoon: intel is getting about 3600
00:16 imirkin: huh. i'm surprised by both of those...
00:16 nullspoon: well, let me go try an intensive game. I'll let you know how it performs.
00:16 imirkin: can you ensure that you're running with DRI3?
00:16 imirkin: LIBGL_DEBUG=verbose glxinfo > /dev/null
00:17 imirkin: you might see a line like 'libGL: Using DRI3 for screen 0'
00:18 imirkin: anyways, please be aware that hw aside, the nouveau driver is *nowhere* close to the quality of the intel or amd drivers.
00:18 nullspoon: er, says DRI2 for screen 0
00:18 nullspoon: herm
00:20 nullspoon: Yeah, checking my Xorg logs, I only see DRI2 loading. Let me see if I can update my config to use DRI3
00:22 nullspoon: Gonna restart X here. One sec.
00:23 nullspoon: Okay. DRI3 for screen 0.
00:24 nullspoon: Okay. glxgears is about 1100 fps on the intel, and about 680 with DRI_PRIME.
00:26 rhyskidd: nullspoon: congratulations, you appear to have a GP107 that is handling pgraph properly
00:26 rhyskidd: mind dumping your vbios for us?
00:27 nullspoon: Sure! If you can walk me through it. No clue how to do that. :)
00:28 rhyskidd: https://nouveau.freedesktop.org/wiki/DumpingVideoBios/
00:29 nullspoon: Just about to click that.
00:29 nullspoon: ah, perfect. Already have debugfs mounted from trying vgaswitcheroo
00:29 rhyskidd: attach to https://bugs.freedesktop.org/show_bug.cgi?id=100228 with a short description of the card and mention it's a GP107 / GTX 1050
00:30 nullspoon: Okay. Can do.
00:30 rhyskidd: (us poor developers w/ an XPS 15 will pray to the power gating gods with it)
00:30 nullspoon: Also, just to make sure I did this right. There was no vbios.rom in dri/0/.... dri/1 did though.
00:31 nullspoon: dri/129 also had a vbios.rom
00:32 rhyskidd: dri/1 should be fine
00:32 nullspoon: Ah. NEvermind. the checksums match for the two.
00:32 nullspoon: Regarding the poor thing, I'm with you. Saved up for quite a while to get this thing. :)
00:32 nullspoon: All your work is greatly appreciated.
00:33 nullspoon: Speaking of work on nouveau, is there a way to donate to the project?
00:33 nullspoon: I see the donate hardware option, but would rather not mail you my laptop. ;)
00:34 rhyskidd: not sure, maybe ask karolherbst or mupuf
00:43 imirkin: nullspoon: there's no specific legal entity behind nouveau. you can donate to the X.org foundation, but none of that money goes towards nouveau specifically
00:43 imirkin: [but it does fund the occasional EVoC project, travel for some people to conferences, etc]
00:44 nullspoon: I'll do that then. I just want to support the good folks who enable me and everyone else to run a usable linux system.
00:45 rhyskidd: thanks!
00:45 imirkin: (tbh i'm not even sure how to do that, but it seems like there must be a way... X.org is now housed under SPI, which makes these things easier.)
00:45 imirkin: stupid governments making money transfers more complicated
00:47 nullspoon: It doesn't look particularly easy, that's for sure.
00:48 nullspoon: I'll figure it out at least. X.org makes the entirety of desktop linux possible. Seems they deserve at least a little.
00:48 nullspoon: rhyskidd: I have the upload set. Do you want me to post anythign else (I already have kernel version, hardware, and vbios.rom).
00:49 rhyskidd: no harm in putting that into the description
00:49 rhyskidd: the file itself is most useful, to see if Asus set it up in any material different manner
00:51 nullspoon: Renamed the upload to have ASUS in the name to make it easier to distinguish.
00:55 rhyskidd: if you're keen
00:55 rhyskidd: could be helpful grabbing a copy of your strap register as well (nvapeek 0x101000 > strap_peek)
00:55 rhyskidd: you'll need https://github.com/envytools/envytools
01:06 nullspoon: rhyskidd: Sure. Just compiled it. I got one line of output. Is that what you expected?
01:10 nullspoon: Posted the nvapeek output to the bugtracker. I have to step away for a few hours here. Let me know if you need me to get anything else and I'll get it later tongiht. I'm happy to do whatever I can to help with this.
01:20 rhyskidd: great
01:20 rhyskidd: much appreciated