05:11 imirkin: skeggsb: on my powermac7,3, getting a bunch of bios oob errors: https://hastebin.com/bigehufowe.css (with 4.11-rc7)
05:21 imirkin: skeggsb: pushed vbios to repo in case you're interested
05:54 imirkin: skeggsb: in other news, nouveau on ppc still works. good job not breaking it ;)
06:52 imirkin: skeggsb: this might come as some surprise, but it looks like the overlay plane stuff is broken on NV34/PPC. i kinda of assume it's a BE thing.
07:20 koz_: I'm trying to write something similar to this: https://bbs.archlinux.org/viewtopic.php?pid=1622623#p1622623 to enable DRI3. What is the Identifier meant to be for my card?
07:20 koz_: (alternatively, where do I check what it should be called?)
07:30 koz_: Never mind. Figured it out. However, I am now unsure if I have DRI3 enabled.
08:04 koz_: OK, seems like I do. However, when I run a game with LIBGL_DEBUG=verbose vblank_mode=0, I get 240fps, but without that, only 60.
08:04 koz_: What gives?
08:14 koz_: Hiya karol!
08:14 koz_: Just the person I wanted to see.
08:14 koz_: So, I enabled DRI3, started my card in boost 2, and ran Minetest with all settings up to 11.
08:15 koz_: Without 512 textures, I can hit framerates of over 200.
08:15 koz_: With 512 textures, I get between 45 and 80, depending on how busy the screen is.
08:16 karolherbst: but rendering looks fine, doesn't it?
08:16 koz_: karolherbst: Oh, it looks fine, but framerates. :P
08:16 karolherbst: how does it go with 256 textures (or smaller numbers)?
08:16 koz_: The only thing - on my desktop, I get some artifacting.
08:16 koz_: I haven't tried with 256 textures.
08:16 karolherbst: is it a linear decrease in perf or a sudden drop?
08:16 koz_: Let me try that actually.
08:16 karolherbst: and how does it decrease on nvidia
08:17 koz_: I'll try 256 and see.
08:17 koz_: Also, a question: according to pstate, in 0f and boost 2, I'm hitting ~1GHz, but my card caps out at 1.2.
08:17 koz_: Is there any way to drive it any harder?
08:18 karolherbst: it's normal
08:18 karolherbst: it depends on the quality of the GPU how high the clocks can actually go
08:18 karolherbst: and the temperature
08:18 karolherbst: currently we just assume 95°C for simplicity
08:19 koz_: Is there a way I can check how hot it's running right now?
08:19 karolherbst: sensors
08:21 koz_: What do you mean by 'sensors'? Like, physical ones, or is there something I can check/install/cat?
08:21 karolherbst: it is a command
08:22 koz_: karolherbst: I tried 256 textures. Rough doubling of performance.
08:22 koz_: (so about twice as many frames)
08:22 karolherbst: default textures are 32?
08:23 koz_: 8.
08:23 karolherbst: ohh
08:23 koz_: How do I call the sensors command?
08:23 karolherbst: from a terminal
08:23 karolherbst: might be that you have to isntall lm-sensors
08:24 koz_: karolherbst: 60C.
08:24 koz_: +1.15V
08:25 koz_: (I assume that's what determines the clock?)
08:25 karolherbst: no, we always assume 95°C for now
08:26 karolherbst: because everything else would mean we have to update it
08:26 karolherbst: like every second or so
08:26 koz_: Also, when I run Minetest with LIBGL_DEBUG=verbose vblank_mode=0, I get much bigger framerats, but without that, only 60 at most. What gives?
08:26 karolherbst: vsync
08:26 koz_: How do I turn it off?
08:26 karolherbst: your screen can't do more than 60 anyway
08:26 koz_: Oh, fair enough.
08:27 koz_: I should stop being greedy.
08:27 karolherbst: well, it's a waste of power to do more ;)
08:27 karolherbst: and your GPU gets hotter
08:27 koz_: Fair enough.
08:27 koz_: Point is, I now have happy FPS.
08:27 karolherbst: yeah
08:27 koz_: I shall report more games as I try them.
08:27 karolherbst: I try to land those patches to update the clocks on temperature changes asap, I have those ready already
08:28 karolherbst: but quite a lot of code has to land before as well
08:29 Teklad: If your GPU is capable of keeping the framerate at 60, then you're just wasting CPU cycles doing all that extra rendering anyhow.
08:29 koz_: Teklad: I know, I just wanted to see how hard it could go.
08:29 karolherbst: I doubt the CPU side matters much
08:29 karolherbst: cause the GPU renders
08:30 Teklad: Right... typo.
08:30 koz_: I didn't even notice that typo.
08:34 Teklad: When's nouveau supposed to have better support for the GTX 10xx series anyways?
08:35 karolherbst: you mean better as in OpenGL or as in speed?
08:35 Teklad: general speed.
08:36 karolherbst: will take quite a lot of time. 1. we need nvidias PMU firmware otherwise we can't control the fans 2. we need to reverse engineering reclocking on those again
08:36 karolherbst: it's all new, maybe a lot of things stayed the same, dunno
08:37 Teklad: I've never gotten into hardware programming, so I'm of very little help, unfortunately.
08:37 karolherbst: we need hardware :p
08:37 Teklad: I got a GTX 1060.
08:37 Teklad: :P
08:37 karolherbst: I doubt you wanna donate it :D
08:37 Teklad: If I wasn't poor
08:38 Teklad: But I can yank information off of it as needed.
08:38 Teklad: Unless you ask me to tear it to pieces
08:38 Teklad: Then we'll have words.
08:38 Teklad: xD
08:38 karolherbst: no, we need access to real hw for reclocking
08:38 karolherbst: maybe I will buy myself a pascal soon (as in 2+ months)
08:39 Teklad: How do you check all the reclocking and such anyways?
08:39 Teklad:is curious how hardware development works.
08:39 koz_: Teklad: Trial and error.
08:39 koz_: Mostly error.
08:39 karolherbst: mhhh
08:39 karolherbst: well
08:39 karolherbst: we have tools and record what nvidia does with the hardware
08:39 karolherbst: and then we try to make any sense out of it
08:40 Teklad: I'm mainly curious because I don't mind prodding at my own hardware and writing a bit of code.
08:41 karolherbst: mhh, we need to reverse engineer the video bios first as well :(
08:41 karolherbst: pascal will be a lot of work
08:41 koz_: But yeah, I now have my consistent 60fps on almost-everything-up-to-11 Minetest.
08:41 koz_: My life is complete.
08:41 karolherbst: if we are dedicated and lucky, I guess ~2 years until we get something working
08:42 Teklad: karolherbst: On the bright side the nouveau driver already works with my 1060 up to a point.... so that's a start
08:42 karolherbst: Teklad: sure
08:43 Teklad: What kind of crazy tools do you people have to reverse engineer the video bios?
08:43 Teklad: xD
08:43 karolherbst: a hex editor
08:43 karolherbst: and the gpu
08:43 Teklad: Oh dear god.
08:43 Teklad: That sounds nightmare-ish.
08:43 karolherbst: it isn't really
08:44 koz_: Teklad: That's reverse engineering for you.
08:44 karolherbst: we have a tool to parse it
08:44 karolherbst: kind of
08:44 karolherbst: and missing bits we reverse engineer like this:
08:44 karolherbst: change the bit/byte(s) inside hte vbios, upload it on the GPU, load nvidia and try to figure out what changed
08:45 Teklad: Why does that sound time-consuming.
08:45 karolherbst: doesn't work starting with the shiny new maxwell series, cause the vbios needs to be signed.....
08:45 karolherbst: soo
08:45 karolherbst: this includes pascal as well
08:45 Teklad: Ew... why would they add such an evil thing?
08:45 karolherbst: why would they sign their firmware?
08:46 Teklad: GPU viruses?
08:46 karolherbst: mupuf_: you think nvidia is nice enough to enable pascal versions of tables on maxwell GPUs?
08:46 karolherbst: Teklad: no clue, most likely DRM
08:47 Teklad:thinks Nvidia is anti-open source at times.
08:47 karolherbst: or to protect the hardware, dunno
08:47 karolherbst: well, AMD has no open firmwares to begin with
08:47 Teklad: AMD's catalyst driver on Linux is terribad.... at least last I used it.
08:48 Teklad: many many years ago
08:48 karolherbst: I meant the open source driver
08:48 Teklad: ah
08:49 Teklad: I was gonna offer to help by doing some of the poking myself... but if I'm reading you right Maxwell+ has made the usual methods no good.
08:50 karolherbst: exactly
08:50 Teklad: That really sucks.
08:50 karolherbst: makes it more challenging
08:51 Teklad: It wasn't challenging before? :p
08:51 dboyan_: well, things goes from bad to worse :/
08:52 Teklad: I have an enormous amount of free time on my hands at the moment.
08:53 karolherbst: skeggsb: are you there? Want to ask you about the vbios on pascal again
09:00 dboyan_: imirkin, hakzsam: I found an interesting discussion on XMAD: https://devtalk.nvidia.com/default/topic/980740/xmad-meaning/
09:14 airlied: karolherbst: today was a holiday here
09:16 karolherbst: here as well
09:17 koz_: And here.
09:17 koz_: Where is 'here' airlied?
09:17 dboyan_: Easter?
09:17 karolherbst: koz_: where everything is upside down :p
09:17 koz_: karolherbst: I think that's me.
09:17 koz_: (since I'm from NZ)
09:19 dboyan_: apparently not an holiday at my home...
09:40 kotten: a
09:42 hakzsam: dboyan_: yeah, I remember that discussion
09:50 notneo: howdy. Im using nvidia binary drivers on debian testing. How do I switch to using nouveau? thanks.
11:10 karolherbst: mupuf_: on pascal the VID PWM is moved to another PWM....
11:11 mupuf_: yeah!
11:11 mupuf_: once again!
11:11 karolherbst: now the vbios GPIO table from pmoreau looks nice :)
11:12 karolherbst: mupuf_: pretty obvious, isn't it? GPIO 0: line 0 tag 0x81 [VID_PWM] OUT DEF 0 param 1 gpio: normal SPEC_OUT 0x5d [PWM_1]
11:13 RSpliet: mupuf_; mind reviewing the v2 hwmon patches that leberus posted this morning? Think you know most about the topic O:-)
11:14 karolherbst: ohh, now it looks formally nice :)
11:15 mupuf_: RSpliet: sure! I was writing an article this week end. Now that the deadline has passed, I can have a look!
11:16 RSpliet: Did you submit before the deadline as well? :-D
11:16 karolherbst: now that the deadline is passed, he can spend another month without the situation getting worse :p
11:17 karolherbst: mhh any idea what this tag could mean? "GPIO 28: line 28 tag 0xcb [???] IN NEG DEF 0 gpio: normal SPEC_IN 0x15 [THERMAL_ALERT]"
11:18 karolherbst: nvidia documented only until 0xb4 :(
11:24 karolherbst: uhm... I am silly
11:25 karolherbst: I told skeggsb that I see only garbage inside the P tables, guess what
11:28 karolherbst: \o/ we can read out the power cap on pascal cards, at least something
11:28 karolherbst: 250W max, sounds about right
11:41 karolherbst: progress
11:42 karolherbst: there are now 4 sub entries in the vpstate table
11:42 karolherbst: each of length 0xa
11:42 karolherbst: well
11:42 karolherbst: in this case
11:48 karolherbst: they swaped the entries num and sub entry length, which makes more sense now
11:50 karolherbst: mupuf_: any ideas? https://gist.github.com/karolherbst/2e8f753eda35024d818d4762e024830d
11:51 karolherbst: first byte is the pstate obviously
11:51 karolherbst: but anything else?
11:52 karolherbst: pmoreau: I have an idea what you could do on the pascal GPU
11:53 karolherbst: pmoreau: there was this way of getting the decrypted stuff from nvidia-smi, I need that
11:57 mupuf_: karolherbst: sorry, I'm hosting a friend and we are about to go visit helsinki a bit. Will check the patches tonight!
11:58 karolherbst: there is just boring stuff :p
11:58 karolherbst: really just fixing parsing errors
11:59 karolherbst: now I got to the PM_Mode table
11:59 karolherbst: now it is getting interesting
12:01 karolherbst: 9 perf levels, that doesn't sound right
12:03 karolherbst: much better
12:04 karolherbst: ui
12:07 karolherbst: it still makes sense
12:07 karolherbst: nice
12:07 karolherbst: kind of
12:13 karolherbst: nvidia seriously :(
12:16 mupuf_: wr are lucky nvidia did not change so much its power managemen
12:16 karolherbst: ahhhhh
12:16 karolherbst: nice
12:16 karolherbst: wait
12:17 karolherbst: how does this look to you? https://gist.github.com/karolherbst/6b47ee7e53d7a9d6ec3dc265cde937bc
12:17 karolherbst: the last engine is always crap, but anything else
12:18 karolherbst: mupuf_: the voltage map table is completly different now and has just 8 entries or so
12:18 karolherbst: voltage calculation will be a mess to figure out
12:18 karolherbst: I assume that the frequency is an input now
12:19 karolherbst: mhh
12:19 karolherbst: okay
12:19 karolherbst: I have an idea for pcie, but meh
12:19 karolherbst: 1 MHz: 2.5 PCIe, 2 MHz: 5.0 PCIe..... ;)
12:20 RSpliet: seems plausible. Often the second halfword is the same as the first halfword with a different value on the top 2 bits
12:21 RSpliet: (although for the unk0 and unk1 they aren't)
12:22 karolherbst: unk2 is obvioulsy memory
12:22 RSpliet: ideas what they might be describing: ranges, intermediate values during reclock, clocks for the other stage of a two-stage PLL config
12:22 RSpliet: good luck :-P
12:23 karolherbst: :D
12:24 karolherbst: some of the clocks make no sense
12:24 karolherbst: but well
12:32 nyef: ... How large is a signed vbios, and is it possible to "brute-force" the signature in reasonable time by just throwing data at the card with different signatures until it accepts one?
12:32 nyef: Or does it silently reject or something?
12:32 karolherbst: nyef: you need like ~2 seconds per try
12:32 karolherbst: well
12:32 karolherbst: if it accepts, nvidia takes longer to load
12:33 nyef: And the signature length?
12:33 nyef: Or is that also an unknown?
12:33 karolherbst: no idea, didn't look into it
12:33 nyef: Hrm.
12:33 dboyan_: karolherbst: Can I help with my pascal card? It's an mobile one and I never succeeded mmiotracing though.
12:34 karolherbst: actually, yes
12:35 karolherbst: I totaly forgot who wrote this and if it went upstream or anything
12:36 karolherbst: https://gist.github.com/karolherbst/100c7364453ddc628ab62f3fb503dc59
12:40 dboyan_: karolherbst: so you need that debug.log?
12:41 karolherbst: yeah
12:43 dboyan_: karolherbst: https://gist.github.com/dboyan/ccb29ec2d1db599896482b6dc9977bae
12:43 karolherbst: nice, it still works
12:44 karolherbst: ohh, nice, and what I wanted to know is also in there, very good
12:48 nyef: So, I decide to see what the blob does when faced with my one panel that doesn't like HDMI audio from my MCP89. And it turns out, it doesn't set an infoframe, doesn't set the ELDs, and doesn't make any noise. /-:
12:50 nyef: ... And DPort HPD doesn't work either. No wonder I keep running into problems with nouveau on this hardware: The blob doesn't like it either.
13:02 leberus: hi :)
13:04 nyef: Ahh... The blob may actually not be loading here? What?
13:04 leberus: karolherbst: this morning i've sent the v2 of the patch's series and I've formatted it with git format-patch, so hopefully this time is gonna be fine
13:23 karolherbst: dboyan_: I also need your vbios
13:31 karolherbst: the heck
13:32 karolherbst: table unk90 is already new, but we've got two version of that with pascal
13:32 karolherbst: ...
13:32 Teklad: mmm
13:36 Teklad: karolherbst: You have a breakthrough?
13:36 Teklad: :p
13:38 karolherbst: no
13:40 karolherbst: just adapteing knowledge we got from older generations to pascal
13:47 dboyan_: karolherbst: https://expirebox.com/download/b7e32869351586165782c627d2d96c1d.html
13:47 karolherbst: thanks
13:47 karolherbst: gp107?
13:47 dboyan_: there are two files, but i can't remember which one is correct
13:47 dboyan_: yeah
13:47 dboyan_: one is retrieved from nouveau, the other is from nvabios iirc
13:48 karolherbst: nvapeek 101000
13:50 karolherbst: ohh nice, nouveau prints out the fixed vbios
13:50 karolherbst: very nice
13:51 dboyan_: karolherbst: 00101000: 00400080
13:54 karolherbst: dboyan_: thanks
13:55 dboyan_: my pleasure :)
14:05 karolherbst: okay, this is good enough for noiw
14:12 karolherbst: uhm... nvidia, are you serious?
14:12 Teklad: Nvidia never jokes.
14:17 karolherbst: okay, will finisht hat later
14:45 karolherbst: insane, there are 5 clocks per sub entry now
14:45 karolherbst: probably for each domain
14:53 karolherbst: dboyan_: let me guess: base clock 1354 MHz, boost clock 1492 MHz ?
14:54 karolherbst: okay, so at least we can parse that out of the vbios now
14:55 Teklad:misses using nouveau.
14:55 Teklad: I'll be glad when we get support back for the new stuff.
14:55 karolherbst: help out :p
14:55 Teklad: I would, but I can't send you my card darn it!
14:55 Teklad: I don't have anything else!
14:56 karolherbst: dboyan_: does nvidia-smi report any power consumption for you?
14:56 karolherbst: Teklad: then reverse engineer on your GPU
14:56 Teklad: karolherbst: Where do I even start? xD
14:57 dboyan_: karolherbst: you are nearly right about clock rate according to wikipedia
14:57 Teklad: If you can give me a general guideline I can probably get some information for you.
14:57 karolherbst: dboyan_: yeah well... I am asking about your GPU :p
14:58 karolherbst: dboyan_: is 138 MHz your full idle clock?
14:59 dboyan_: How can I know that?
15:00 karolherbst: mhh
15:00 karolherbst: under nvidia you could check that with nvidia-settings
15:00 karolherbst: if you don't do anything, the clocks will drop at some point
15:01 Teklad: dboyan_: You use an nvidia GTX 1060 by chance?
15:01 dboyan_: no, 1050
15:01 Teklad: Ah... mine runs at 139Mhz for the minimum.
15:03 karolherbst: dboyan_: nvidia-settings -c :$DISPLAY, whatever your X with nvidia is running on
15:03 dboyan_: Min clock rate in "Graphics Clock" sections reads 139MHz
15:03 karolherbst: okay
15:03 karolherbst: nice
15:03 karolherbst: can you give me a screenshot of it?
15:04 karolherbst: of the entire section
15:04 karolherbst: or do a full dump of everything?
15:04 karolherbst: or just nvidia-smi -q
15:04 dboyan_: okay, wait a seond
15:04 dboyan_: second
15:05 dboyan_: karolherbst: https://postimg.org/image/vn50kjy7h/
15:05 karolherbst: thanks
15:08 karolherbst: and the nvidia-smi -q output please?
15:08 karolherbst: Graphics clock: 7MHz ... :( I fear the worst
15:09 karolherbst: dboyan_: can you verify that 0 -> 2.5, 1 -> 5.0 -> 2,3 -> 8.0 PCIe speed?
15:09 karolherbst: ...
15:09 karolherbst: 0 -> 2.5, 1 -> 5.0, 2,3 -> 8.0
15:10 dboyan_: how to verify that?
15:10 karolherbst: put some load for a short moment
15:10 karolherbst: so that it clocks up to 3
15:10 karolherbst: then it drops slowly
15:10 dboyan_: okay
15:10 dboyan_: https://hastebin.com/okejatabed.sql
15:11 dboyan_: karolherbst: you are correct about pcie link speed
15:11 karolherbst: cool
15:12 karolherbst: we are getting there
15:12 karolherbst: https://gist.github.com/karolherbst/d7773130e6758507c96317440f33c9b8
15:13 karolherbst: engine 0 is the "normal" shader engine
15:13 karolherbst: nice
15:14 karolherbst: ohhhhhh
15:15 Teklad: http://ix.io/qWK Just for your records.
15:16 karolherbst: the heck, dynamically clockable video engines
15:16 karolherbst: meh
15:17 karolherbst: whatever, I think that's the best I can do for now
15:17 Teklad: The wonderful world of pascal.
15:18 nyef:has a sudden wave of nostalgia for the days when he used Turbo Pascal as a programming environment.
15:18 Teklad:hasn't used pascal in ages
15:19 dboyan_:never learned pascal, used some turbo c in childhood
15:20 Teklad: I write a lot of C... but nothing as low level as this mess here.
15:20 Teklad:hasn't had any hardware that required the need to program for yet.
15:20 Teklad: At least until now.
15:23 Teklad: Speaking of which, I need to get back to work on my cairo desktop thingamajig.
15:23 Teklad: Too tired though.
16:28 jamm: imirkin_: nevermind, i think i figured it out from target_gm107.cpp
21:21 pmoreau: karolherbst: Looks like you made some good progress on those Pascal VBIOS! Ping me tomorrow with what I should run with the blob on the Pascal card.
21:22 karolherbst: pmoreau: yeah, will do :)
22:55 mupuf_: Odd, I did not receive the emails from Oscar...
22:55 mupuf_: will complicate the review!
22:56 mupuf_: karolherbst: if you want to have fun with a pascal in reator, I can arrange that
22:56 mupuf_: now that the fw are available
22:57 karolherbst: mupuf_: ohh you got a pascal?
22:57 mupuf_: karolherbst: I don't, but I can arrange that
22:57 mupuf_: by, you know, going to buy one
22:57 karolherbst: I see
22:58 karolherbst: I assumed you got one through ... ehm.. other means
22:58 mupuf_: hehe
22:58 mupuf_: sometimes, low communication is the way to go ;)
22:59 karolherbst: well without being able to fake the vbios, no idea what I can really do
22:59 karolherbst: except doing traces
23:04 mupuf_: karolherbst: true, but maybe they stopped their insanity?
23:09 karolherbst: mupuf_: mhhh, I highly doubt that though
23:21 airlied: ~/
23:21 airlied: oops