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