09:52 dcomp: g
10:29 karolherbst: fun
10:30 karolherbst: on the 0e pstate my tesla isn't able to properly drive my VGA attached display
10:30 karolherbst: allthough the gpu has no memory and hence no memory clock
10:32 karolherbst: odd
10:34 karolherbst: so, my active adapter works too then
10:53 Caterpillar: Do you know if it is possible to have on the same Linux system, a Radeon RX480 and an old Geforce GTX260? Tomorrow I will receive the RX480 but I cannot still unplug the Geforce because it is part of liquid cooled system and I have to buy some hydraulic pieces before unplugging the tubes
10:54 karolherbst: why shouldn't it work?
10:54 karolherbst: in the end you can use prime offloading to use both
10:55 karolherbst: either reverse or normal
10:56 NanoSector: wasn't nvidia working to support prime in their binary driver?
10:57 NanoSector: or is that me being too optimistic about the fedora 25 prime blog post
10:57 karolherbst: you mean their crappy prime support? or real prime?
10:57 Caterpillar: karolherbst: what is prime offloading?
10:57 NanoSector: karolherbst, prime as in dri_prime
10:57 karolherbst: Caterpillar: rendering on one, displaying on another gpu
10:58 karolherbst: NanoSector: well, nvidia uses just that, but they only implement that sink offloading stuff I think
10:58 Caterpillar: karolherbst: cool, I did not know it was possible to do that
10:58 karolherbst: aka the crappy one
10:58 karolherbst: Caterpillar: ignore "optimus": https://nouveau.freedesktop.org/wiki/Optimus/
10:59 karolherbst: ohh wait
10:59 karolherbst: you could just plug your displays into the amd card...
10:59 karolherbst: I guess
10:59 karolherbst: then you won't need it
10:59 Caterpillar: karolherbst: I am afraid that the system (Fedora 24) could choose to render using the Geforce
11:00 NanoSector: do you have proprietary drivers?
11:00 karolherbst: Caterpillar: it shouldn't
11:00 NanoSector: on arch at least that overwrites mesa's libgl which causes issues with open source drivers
11:00 Caterpillar: NanoSector: actually yes, but I will switch the entire system on open drivers
11:01 NanoSector: i wonder how fedora's mac support is
11:02 Caterpillar: NanoSector: Apple Mac?
11:02 NanoSector: yes, the speed of this thing makes me want to stab myself
11:02 Caterpillar: NanoSector: is good, I know some people using Fedora on their Macs
11:02 NanoSector: last I tried Arch on this, half the stuff wouldn't work
11:02 Caterpillar: contact me if you experience troubles in making the WiFi work
11:02 NanoSector: e.g. bluetooth (which kind of sucks if you use a bluetooth keyboard and mouse)
11:03 NanoSector: oh i don't expect wifi issues, this has an atheros wifi card, not a broadcom thankfully
11:03 Caterpillar: ok
11:03 karolherbst: broadcom...
11:03 karolherbst: I have a bcm4321 in my mac mini, guess if it works
11:04 NanoSector: my tablet however has a broadcom SDIO wifi card
11:04 NanoSector: I have to extract an nvram file from my UEFI firmware to get it to work
11:04 NanoSector: :x
11:04 Caterpillar: concerning my question, later I will try searching "Mesa select videocard" on Google
11:04 karolherbst: Caterpillar: mesa will pick what is the main on X
11:05 Caterpillar: karolherbst: therefore should I edit xorg.conf? Oh, noes, I hate it
11:05 karolherbst: Caterpillar: nope, X should detect it on its own
11:05 karolherbst: if there is no display on one GPU, don't use it
11:05 Caterpillar: karolherbst: mmh ok
11:05 karolherbst: if it does.... the tell X to screw itself ...
11:05 karolherbst: otherwise
11:05 karolherbst: you could just tell X to load the dummy X driver for the nvidia gpu
11:06 karolherbst: Caterpillar: like here: https://gist.github.com/karolherbst/1f1bdd1a3822df74097f
11:06 karolherbst: only the nvidia device
11:06 karolherbst: and with adjusted busid
11:07 NanoSector:makes a Fedora 24 USB
11:08 Caterpillar: karolherbst: so "dummy" should disable a card, correct?
11:09 karolherbst: well, in fact no, the gpu is still there and accessable, but X won't do anything with it
11:11 Caterpillar: karolherbst: you're the best, this is very useful
12:27 mupuf: karolherbst: http://codepad.org/Ne2gnzmN <-- the titan
12:28 karolherbst: awesome
12:29 karolherbst: any idea how nvidia generates the UUID?
12:29 karolherbst: huh
12:29 karolherbst: current pcie width: 1x
12:30 karolherbst: mupuf: I assume the titan is on the 16x pcie slot?
12:31 karolherbst: mupuf: the log is cut off by the way
12:31 RSpliet: "inserting the Titan was like cramming an elephant down an anthill"
12:32 mupuf: https://gist.github.com/a135f28046f5644d40880a5fbfb59ca2
12:32 karolherbst: imirkin, hakzsam_: I guess I will resend the postraconstfolding series without the RA change for now until we figure out a good way to actually adjust the RA part
12:33 karolherbst: mupuf: interesting
12:33 karolherbst: 0x41 93 OVERVOLTAGE_LOGIC Max Active 2091000 KHz GPC2CLK (set from 1212 mV NVVDD)
12:33 karolherbst: 0x4d 95 RELIABILITY_ALT_LOGIC Max Active 2065000 KHz GPC2CLK (set from 1200 mV NVVDD)
12:33 karolherbst: 0x42 97 RELIABILITY_LOGIC Max Active 2012000 KHz GPC2CLK (set from 1162 mV NVVDD)
12:34 karolherbst: maybe those are our three max volt entries?
12:34 karolherbst: but I doubt that
12:34 karolherbst: they are :O
12:35 karolherbst: unk7: 2 -> -- ID = 2, mode: 1, link: -1, voltage_min = 1137500, voltage_max = 1162500, volt = 1261332 + (-96 * T * 5^6) >> 10 [µV]
12:35 karolherbst: unk8: 0 -> - ID = 0, mode: 0, link: -1, voltage_min = 1137500, voltage_max = 1212500, volt = -1916996 + (40653 * S) / 10 + (-130130 * S²) / 100000 [µV]
12:35 karolherbst: unkc: 1 -> -- ID = 1, mode: 1, link: -1, voltage_min = 1175000, voltage_max = 1200000, volt = 1298832 + (-96 * T * 5^6) >> 10 [µV]
12:35 mupuf: karolherbst: I will go back to the nvc1 ;)
12:35 karolherbst: yeah
12:35 karolherbst: the votlage_max values are reported by the log
12:35 karolherbst: nice :)
12:35 mupuf: wonderful
12:36 karolherbst: I guess nvidia might disable some of those
12:36 karolherbst: but we won't do it anyway
12:36 karolherbst: those 0.5% more perf
12:36 mupuf: Lekensteyn: thanks a lot for your finding
12:37 karolherbst: I like it how we don't do anything wrong according to the findings :)
12:37 karolherbst: noticed how the unkc field correspondends to the 0x4d entry?
12:37 mupuf: yep, too bad we did not get this to begin with, it would have saved a lot of trouble :D
12:38 karolherbst: as if it was added later
12:38 karolherbst: :D
12:38 karolherbst: and reduced the fun
12:38 mupuf: ;)
12:38 mupuf: anyway, I will go back to the fan insanity
12:38 karolherbst: mupuf: I added some stuff in nvbios for the gpio/conn stuff
12:39 karolherbst: the PWM_1 gpio should be actually "FAN_ALERT"
12:39 karolherbst: no clue what it does though
12:40 karolherbst: and a bunch of SLI stuff too
12:40 karolherbst: seems like the GPU use the GPIO to tell the other ones when they are ready with their stuff or so
12:41 mupuf: yes, I read your patches this morning
12:41 mupuf: got this out from the DCB docuentation, right?
12:41 karolherbst: yes
12:44 karolherbst: :/ sad
12:44 karolherbst: nothing new
12:45 karolherbst: let me check if my boost logic is right though, I should get to the clock from the voltage like nvidia-smi prints it out
12:46 karolherbst: mupuf: ohh wait
12:46 karolherbst: mupuf: mind dumping it once for 1°C and once for 95°C?
12:46 mupuf: hmm, sorry, already working on the c1 :s Will plug it back when I am done
12:46 karolherbst: k, thanks
12:50 karolherbst: actually, this should work on mine as well
12:52 karolherbst: ohh wait, it doesn't
12:52 karolherbst: silly me
12:55 karolherbst: yeah
12:55 karolherbst: the clocks are adjusted to the current temperature
12:55 karolherbst: or rather the volt requiernments for that clock
12:55 karolherbst: awesome
12:55 karolherbst: the same thing I implemented :D, but differently
12:56 karolherbst: mhhh now I am thinking
12:56 karolherbst: maybe it would make sense to have a list of limiters and just revalidate the current state against changes
12:58 karolherbst: the hell is mid point
12:58 karolherbst: has the same clocks than rated tdp
12:59 karolherbst: ohh wait, wrong
12:59 karolherbst: same as turbo boost
14:06 Lekensteyn: mupuf: thank you all for your hard work on nouveau, typing this with an external screen connected powered by nouveau :-)
14:07 karolherbst: ohh what times when users were already satisfied with working displays on nouveau :D
14:07 mupuf: Lekensteyn: I cannot take credit for almost naything you are using with nouveau
14:07 mupuf: aside from fan management
14:07 mupuf: and if you reclock
14:07 mupuf: these are the only aspects I worked on that are available
14:07 mupuf: oh, and perf counters
14:07 karolherbst: nvidia should build more GPUs with LEDs, then everything could thank mupuf!
14:07 mupuf:really only cares about PM, it would seem
14:08 karolherbst: *everybody
14:08 mupuf: lol
14:08 mupuf: hehe
14:08 Lekensteyn: haha :P need instructions how to add LEDs to my GPU :P
14:08 karolherbst: Lekensteyn: upgrade it to a titan or 980
14:09 Lekensteyn: nvidia-smi --debug seems quite new, it was only added to driver version 352 (2015-08)
14:09 karolherbst: mhhh
14:10 mupuf: oh, good to know we have not been idiot for that long :D
14:10 Lekensteyn: actually, the first 352 version was in 2015-05 (based on arch logs)
14:11 Lekensteyn: https://git.archlinux.org/svntogit/packages.git/log/trunk?h=packages/nvidia-utils
14:11 mupuf: one can trust arch quite well for this
14:11 mupuf: data collection is ... a little boring
14:11 mupuf: good that it is automatic
14:17 karolherbst: uhh, my power budget patches even create a memory leak...
14:27 karolherbst: Lekensteyn: I have something for ya
14:27 karolherbst: Lekensteyn: https://gist.github.com/karolherbst/49737d42e456edc63912c1ac1043aa03
14:28 Lekensteyn: karolherbst: I've seen that before. Is this with pcie_port_pm=off?
14:29 karolherbst: nope
14:29 Lekensteyn: does your laptop use PR3? (bios date >= 2015?)
14:29 karolherbst: I highly doubt that
14:29 karolherbst: the bios is from 2012 or so
14:29 Lekensteyn: ok, then it should not be the case
14:29 karolherbst: efi: EFI v2.31 by American Megatrends
14:30 karolherbst: efi: ESRT=0xcbf82998 ACPI 2.0=0xcb952000 ACPI=0xcb952000 SMBIOS=0xcbf82498
14:30 karolherbst: ohh, it is actually from 03/12/2014
14:30 Lekensteyn: have to grep for DMI:
14:30 karolherbst: that isn't helpful
14:31 karolherbst: DMI: Notebook P15SM /P15SM , BIOS 1.03.04PM v2 03/12/2014
14:31 Lekensteyn: ehh, wait, that is also in the log you posted :P
14:31 karolherbst: Tesla GPUs are so much fun
14:31 karolherbst: 90°C full idle
14:32 Lekensteyn: huh, 90 degrees Celsius?
14:32 Lekensteyn: is that a measurement error?
14:32 karolherbst: no
14:33 karolherbst: I've removed the dvd drive from my mac mini, maybe the air circulation isn't good anymore
15:18 karolherbst: skeggsb: your 4.9 branch seems to work
15:27 karolherbst: uhhh: https://www.reddit.com/r/pcmasterrace/comments/4qt8pf/geforce_experience_sends_a_detailed_log_of_your/
15:31 karolherbst: Lekensteyn: mind checking for this and dump everything nvidia sends? :D
15:41 pmoreau: imirkin: You beated me to it! I was going to close it as duplicate of 94990
15:42 Lekensteyn: karolherbst: what details are you interested in? it seems that I'd have to install GeForce experience on Windows and tap the network traffic?
15:45 karolherbst: Lekensteyn: nope, I meant to investigate on Linux
15:45 Lekensteyn: whether the nvidia driver phones home?
15:46 Lekensteyn: also, fail at their data collection website http://sprunge.us/NhRd
15:47 karolherbst: hihi
15:49 karolherbst: Lekensteyn: well in general I am interested in everything they send
15:52 Lekensteyn: hey karolherbst , I just noticed a nvidia-debugdump binary in usr/bin/, what is it?
15:54 karolherbst: no clue?
15:55 karolherbst: but I like how that sounds
16:13 karolherbst: imirkin: good catch
16:41 whompy: It has been a while since I've tinkered much with nouveau, but I saw that skeggsb is looking for testing on his atomic stuff. To test, you build from the nouveau tree on his github repo and load that with another kernel, correct?
16:42 karolherbst: whompy: you could just use his kernel tree as well
16:42 karolherbst: but he messed up on htis linux-4.10 branch
16:42 whompy: I recall it being a bit of an odd beast in the past. Is that still correct?
16:43 whompy: I'm a bit leery to do much with mainline/4.10 at the moment as the 4.9rc stuff has been obnoxious for my computers.
16:43 karolherbst: what do you mean? his kernel tree is a simple kernel tree
16:44 karolherbst: mhh
16:44 whompy: Neither will find the root partitions. Kk. I seem to be misremembering.
16:44 whompy: Thanks!
16:44 karolherbst: try https://github.com/skeggsb/linux/tree/linux-4.9
16:44 whompy: Will do.
16:44 karolherbst: it says 4.9, but it is a 4.8 tree
16:44 karolherbst: with 4.9 drm changes
16:45 karolherbst: I am currently bisecting his 4.10 tree
16:46 whompy: Ah, okay. That would be perfect for my testing. Thanks again!
16:46 karolherbst: I hope 4.8-rc8 is fine for you?
16:46 karolherbst: the other one would be 4.9-rc2
16:46 whompy: Yeah. 4.8* has been fine. I think there was an upstream change with a workaround in 4.9 that happens to hate my machines. I haven't tried rc4 yet, though.
16:47 whompy: has to do with... something virtual. Not enough coffee in my system right now.
16:47 karolherbst: kernel bisecting is fun
16:48 whompy: Oh yes. Haven't had to do that in quite some time. Twas a good learning experience for a casual user, though.
16:59 karolherbst: skeggsb: found the commit
17:00 karolherbst: whompy: uhhhh. I just checked, I think his 4.9 tree doesn't contain that stuff
17:00 whompy: good timing. Just about to hit make.:)
17:00 whompy: the 4.10 tree is built from 4.9rc2, correct?
17:01 whompy: I think I know what to disable to make it work.
17:01 karolherbst: yes
17:01 karolherbst: skeggsb: odd: https://github.com/skeggsb/linux/commit/f6795bda9c2ee8173398533cab355fe259a9c1f1
17:22 karolherbst: skeggsb: after reverting that on the branch, everything else seems to work just fine
17:24 karolherbst: except that this tesla doesn't seem to like to drive 2 screens at full hd at all
17:25 karolherbst: wow, I get like 30 fps with glxgears
17:25 karolherbst: on lowest perf level
17:26 karolherbst: mhh
17:26 karolherbst: 400 with vsync disabled
17:50 karolherbst: skeggsb: but for whatever reason, that atomic stuff doesn't really seems to work. I add modes the hw shouldn't be able to do, but it just set them and doesn't revert to a working one
18:03 imirkin: karolherbst: do you know if i should be testing his linux-4.10 branch or devel-kms?
18:04 imirkin: i'd *prefer* to stick to v4.8, actually, if possible...
18:04 karolherbst: devel-kms is his nouveau tree
18:04 karolherbst: otherwise his kernel tree and linux-4.10
18:04 karolherbst: no clue then
18:04 imirkin: k
18:35 karolherbst: should I run piglit with ./piglit-run.py -1 --dmesg tests/gpu.y or something else?
18:35 imirkin: probably "py"
18:36 karolherbst: ohh, sure
18:36 imirkin: although ben just pushed a patch that maybe will fix the concurrency stuff
18:36 karolherbst: but besides that?
18:36 imirkin: see https://people.freedesktop.org/~imirkin/
18:36 karolherbst: right, I never run with -1
18:36 karolherbst: and it worked
18:36 karolherbst: I guess the biggest concurrency killer is X
18:36 imirkin: --dmesg implies 1
18:36 karolherbst: ohhh
18:37 karolherbst: who needs dmesg output anyway, I just want to catch regressions
18:46 karolherbst: it is so much faster without -1
18:46 imirkin: lol
18:46 imirkin: make sure you have that latest patch
18:46 imirkin: otherwise you'll get hangs
18:47 imirkin: https://github.com/skeggsb/nouveau/commit/e290e351e38edf84452b2dd4baf379772aadfe13
18:47 karolherbst: in nouveau?
18:47 karolherbst: I ran master+something pretty much all the timne
18:47 karolherbst: uhm
18:47 karolherbst: maybe this I don't have
18:50 imirkin: anyways, i think you're less likely to hit it with your super-gpu
18:51 imirkin: whereas i was always hitting it on my bargain-bin hw
18:51 karolherbst: you also drive X with yours
18:51 imirkin: yep
18:51 imirkin: probably doesn't help
18:51 karolherbst: I don't even have the nouveau ddx loaded
18:51 imirkin: although i was getting hangs with DRI3 + prime on an intel main gpu
18:51 imirkin: (with a GK208)
18:51 karolherbst: yeah, cause nouveau ddx is loaded
18:52 karolherbst: X is silly if it's there
18:52 karolherbst: I am already at test 17k
18:53 imirkin: yeah, i wasn't loading the secondary GPU into X when i was getting hangs
18:53 imirkin: that said, this was like ... a year ago
18:53 karolherbst: ... the biggest CPU burner while piglit runs: plasmashell and X
18:53 karolherbst: and kwin
18:54 imirkin: try with PIGLIT_NO_WINDOW=1
18:54 imirkin: should go about 10x faster too
18:54 karolherbst: uhh, what a splendid idea
18:55 imirkin: ok, looks like there's absolutely no hope of getting the current branch going on v4.8
18:55 imirkin: missing functions like drm_atomic_state_put, incompatible types, all kinds of goodies
18:55 karolherbst: ahhh right
18:55 karolherbst: I remember
18:55 karolherbst: I had to drop those for my master_4.8 branch
18:55 imirkin: error: 'struct drm_plane_state' has no member named 'src'
18:55 imirkin: it just ain't happening
18:55 karolherbst: yeah, you can't use those on 4.8 :(
18:56 karolherbst: check my master_4.8 branch, that's the best I could do
18:56 imirkin: not worth it for now
18:56 imirkin: i need to reboot to powercycle one of my hd's that's dying
18:56 imirkin: hopefully that'll get it going again.
18:57 imirkin: debating whether i should replace it, or just get a pair of 8TB drives
18:57 imirkin: [to replace my 4x 2TB drive setup)
18:58 karolherbst: uhh
18:58 karolherbst: so much storage
18:58 karolherbst: and I am already happy about my 1.8T
18:58 imirkin: well, in raid5, so 6T of usable space
18:58 imirkin: and i've hardly filled it all
18:58 imirkin: but getting there
18:58 imirkin: only about 1.5T left
18:58 karolherbst: ..
18:59 imirkin: i'm sure i could delete 1T of stuff if i had to
18:59 karolherbst: fun, df doesn't list all my drives
18:59 karolherbst: mhh, I think I need another 1TB drive...
19:00 karolherbst: maybe 2TB aren't that expensive anymore
19:00 imirkin: less than $100
19:00 karolherbst: 2,5"
19:00 imirkin: oh
19:00 karolherbst: as I said: I am happy with my 1.8TB storage :D
19:00 imirkin: right. laptop.
19:00 karolherbst: mhh lets see
19:01 karolherbst: 5TB for 220€
19:01 karolherbst: the heck
19:01 karolherbst: I see
19:01 karolherbst: 15mm
19:02 karolherbst: I can put in 2x 2,5" @ 9,5mm, one 2,x5" @ 7mm and 2 mSata SSDs :)
19:02 karolherbst: I don' buy a seagate.. the hell am I
19:03 imirkin: according to backblaze's latest reports, seagate is by far the worst these days
19:03 karolherbst: I guessed
19:03 karolherbst: I usually buy WD
19:03 karolherbst: black
19:03 imirkin: yeah, WD ain't great, but they're not much worse. i think HGST was supposedly the best
19:03 imirkin: which is the leftover of IBM iirc
19:04 karolherbst: well, my WDs seems to work just fine, none of my WDs broke until now, so
19:04 karolherbst: but I always buy those 24/7 things
19:04 imirkin: i bought 4 2T WD's in 2010 or so - all 4 have now failed. first 3 during warranty period iirc.
19:05 karolherbst: uhh
19:05 imirkin: the super-cheapo ones though - WD Green or whatever, which had a ton of issues.
19:05 karolherbst: :D
19:05 karolherbst: your fault
19:05 imirkin: WD20EADS
19:05 karolherbst: mine is a WD10JUCT-63J6SY0
19:06 imirkin: got replaced with WD20EARX which are a lot more reliable
19:07 karolherbst: 14263 hours power on
19:08 imirkin: 55710 for me :)
19:08 karolherbst: :D
19:08 karolherbst: well, on a laptop those drives usually go to sleep if nothing is to be done anyway
19:08 imirkin: only 35K on the replacements tho
19:08 karolherbst: at least I configured them this way
19:08 imirkin: 5 Reallocated_Sector_Ct 0x0033 135 135 140 Pre-fail Always FAILING_NOW 515
19:08 karolherbst: hihi
19:09 imirkin: SMART overall-health self-assessment test result: FAILED!
19:09 karolherbst: 5 Reallocated_Sector_Ct PO--CK 200 200 140 - 0
19:09 imirkin: this is the first time i've seen a drive actually say that :)
19:09 karolherbst: :D
19:09 nailyk: robclark: can I bother you with freedreno?
19:09 imirkin: nailyk: i think you're looking for #freedreno
19:10 nailyk: oh there is a chan? Thanks!
19:10 karolherbst: imirkin: my other one is a WD5000LPVX-22V0TT0
19:11 karolherbst: uhh, I still have my segate...
19:11 karolherbst: S2R6J9FD304072
19:11 karolherbst: I thought I banned this one
19:11 nailyk: but he isn't in it :s Anyway thanks!
19:11 karolherbst: ohh right, I added it after my SSD failed
19:11 karolherbst: *ST320LM001
19:12 imirkin: wha?
19:12 imirkin: yeah he is.
19:13 karolherbst: "perf: interrupt took too long (4021 > 4005), lowering kernel.perf_event_max_sample_rate to 49000" :O
19:13 karolherbst: never got that
19:15 karolherbst: imirkin: what do you think about the HTE721010A9E630 ?
19:16 imirkin: https://www.backblaze.com/blog/hard-drive-reliability-stats-q1-2016/
19:16 imirkin: enjoy
19:17 karolherbst: well, those are 3,5" ones
19:18 imirkin: i understand... but that's where i get my info from. i have no additional knowledge :)
19:20 karolherbst: k
19:20 karolherbst: thanks
19:20 karolherbst: HGST indeed seems more reliable
19:21 karolherbst: but I would rather choose 5 years of warrenty, but the heck, 3 are enough :D
19:21 imirkin: whether this has any bearing on their laptop drives, who knows
19:23 karolherbst: it's the only one with 7200 rpm and high reliablity things
19:24 karolherbst: okay and I will give SSDs another try, don't fail me this time...
20:55 karolherbst: mupuf: okay, I think I got that clock gating working on my tesla, I have no power sensor though :(
20:55 karolherbst: but I have the apple sensors with a 0.25 °C accuracy for the gpu, which helps a lot
20:56 karolherbst: vblanked glxspheres64 stabilizes at around 84.75°C
20:56 karolherbst: and with enabled clockg ating, tmeperature falls below 83°C
20:57 karolherbst: enabling again -> rises to 84.75°C
20:58 karolherbst: poke 1588 1 seems to be one of the important things
21:02 karolherbst: and 1098 seems to configure something
21:04 karolherbst: gpu stabilizes at 82.5°C with the enabled stuff :)
21:08 mwk: phew
21:09 mwk: 1.5kLOC and I haven't submitted a single method yet
21:09 mwk: *and* I've already found a ton of bugs in nouveau nv04 grctx switching
21:11 mupuf: karolherbst: yeah, absolutely, 1588 is greaty
21:12 mupuf: and IIRC, there is something in register 200 to enable clock gating
21:12 karolherbst: 200 is PMC.ID isn
21:12 karolherbst: 't it?
21:12 mwk: karolherbst: nah, PMC.ENABLE; PMC.ID is 0
21:12 mupuf: isn;t it PMC.ENABLE?
21:12 karolherbst: right, I meant ENABLE
21:12 karolherbst: that bit was already set
21:12 karolherbst: I think
21:13 mupuf: probably
21:13 mupuf: but there was something in the high bits, IIRC
21:13 karolherbst: anyway, 2.25°C less heat is good :)
21:13 mupuf: absolutely
21:13 karolherbst: I poked ffffffff in it, and nothing changed
21:13 karolherbst: so
21:13 mupuf: yep ;)
21:13 karolherbst: trying out glxspheres64 without vsync :D
21:13 mupuf: try writing 0 and reload nouveau :p
21:13 karolherbst: 85.5°C, not bad
21:14 karolherbst: stupid unstable load
21:14 karolherbst: and silly firmware controled fan
21:15 mupuf: mwk: well, seems like fun is being had
21:16 karolherbst: wuut
21:16 karolherbst: it droped below 84°C even with glxspheres64 running
21:16 karolherbst: like super immediatly
21:16 mwk: mupuf: indeed it is
21:17 karolherbst: okay, so yeah, maybe this isn't so hard to actually use
21:17 karolherbst: 1098 and 1588 are the only things I have to touch to reduce temp by 2°C
21:17 mwk: mupuf: only one more state test and I'm going to start submitting nv4 methods
21:21 mupuf: mwk: how do you know you are done?
21:21 mwk: mupuf: I don't, really...
21:21 mwk: but atm I have modeled all writable MMIO registers in my structures
21:22 mupuf: makes sense
21:22 mwk: and I have properly simulated how writing any of them affects the others
21:22 mwk: oh, and I can save/restore them all at once, which is *not trivial*
21:23 mwk: if you do it in the wrong order, you can destroy earlier registers by writing later ones
21:23 mwk: plus some regs can only be saved/restored properly if some other regs are set to proper values
21:24 mupuf: I see, and that's the nouveau bugs you uncovered?
21:24 mwk: yeah
21:25 mupuf: makes sense
21:25 mwk: nouveau just goes straight through the list of saved/restored registers
21:25 mwk: instead of doing the right dance
21:26 mupuf: mwk: that may explain why parrallel piglit fails
21:26 mwk: ... on nv4?
21:28 mupuf: no, I am extrapolating
21:29 imirkin: mwk: + insrt(state->xy_clip[xy][idx >> 3], idx * 4 & 0x1f, 4, cstat);
21:30 karolherbst: mupuf: it doesn't fail for me
21:30 imirkin: mwk: unless i'm totally off, that's inconsistent...
21:30 mwk: huh, looks weird
21:30 mwk: I copied that part from nv3...
21:30 imirkin: i.e. if idx >> 3 != 0, then idx * 4 & 0x1f == 0.
21:31 mwk: but it does seem to be correct
21:31 imirkin: k
21:31 mwk: I should've written it as (idx & 7) * 4, true
21:32 karolherbst: uhhh
21:32 karolherbst: idx * 4 & 0x1f isn
21:32 karolherbst: 't that equal to idx * (4 & 0x1f) ?
21:32 mwk: nope
21:32 mwk: it's (idx * 4) & 0x1f
21:32 imirkin: mwk: ah right. ok, that makes more sense. (and is equivalent).
21:34 karolherbst: I see
21:34 karolherbst: I was never good with this
21:35 mwk:knows the operator priorities too well for his own good
21:35 RSpliet: to get my 2ct worth of nitpicks in, it could be (idx * 4) & 0x1c ... whether that would clarify things though
21:36 imirkin: i like the idx >> 3 vs idx & 7 thing
21:36 imirkin: makes it clear that idx is effectively 2 values
21:36 karolherbst: well, to be consistent, it should be (idx << 2) & 0x1c anyway
21:37 imirkin: (idx & 7) << 2 (or * 4) is clearest
21:37 karolherbst: I meant to be consistent with the idx >> 3
21:38 imirkin: idx >> 3 is basically shaving off the bottom 3 bits. idx & 7 grabs those 3 bits.
21:38 imirkin: so they complement each other
21:39 karolherbst: exactly
21:40 imirkin: thanks =]
21:40 karolherbst: uhm I dislike the decimal notation if an hex value is meant :O
21:40 karolherbst: (idx & 0x7) * 4 much better
21:41 mwk: of course
21:41 mwk: the whole nvhw/pgraph* thing badly needs a refactor
21:41 mwk: and the most important issue is 0x7 vs 7...
21:41 karolherbst: exactly
21:42 karolherbst: have to be aware of issues devs have while reading the code
21:42 karolherbst: they will always complain about those things and become less productive
21:42 karolherbst: very important
21:43 mwk: pgraph_xy.c is basically a hellscape of code duplication
21:43 mwk: and that was before it got copied to pgraph_xy3.c and then pgraph_xy4.c
21:44 RSpliet:build karolherbst a bikeshed
21:44 RSpliet: paint it any colour you like, as long as it's blue
21:44 mwk:hopes he can avoid pgraph_xy10.c, the current version should be somewhat generic...
21:45 karolherbst: RSpliet: how did you know that was the first thing I would do :O
21:47 mupuf: mwk: you have hopes to move to nv10 soon? :o
21:48 mwk: mupuf: very soon
21:48 mwk: the goal would be to do the 2d test simultanously on nv4/nv5/nv10
21:49 mwk: AFAICT the 2d engine should be basically the same on nv4-nv40, so I really want to write it generically
21:50 mwk: 3d, of course, is a different matter
21:50 mwk: now *that* is going to be a mess
21:50 mupuf: AhAHAH
21:50 imirkin: nv50 2d shouldn't be that much harder
21:50 mupuf: imirkin: or the lack of it?
21:51 imirkin: huh?
21:51 mwk: imirkin: nv50 2d is a completely different beast
21:51 imirkin: mwk: yeah, just ... not a very complex one
21:51 mwk: oh really?
21:51 imirkin: mwk: i guess i dunno. but you can't do THAT much with it. it's pretty much all the nv04_2d stuff but without the silly object things
21:52 imirkin: [i never fully figured that stuff out tbh]
21:52 mwk: it's a part of the main 3d pipeline of the card
21:52 mwk: that alone makes testing it a pain
21:52 imirkin: yeah i guess
21:53 mupuf: imirkin: when did they get rid of it?
21:53 mwk: mupuf: not yet
21:53 imirkin: mupuf: dunno. still there on pascal afaik
21:53 mupuf: oh, I may be confused with intel (?)
21:53 imirkin: amd radeon, probably
21:53 imirkin: the GCN gpu's got rid of their 2d engine
21:53 mwk: the silly object things were gone on G84, but the actual 2d functionality is still there
21:53 mupuf: so, what can it do?
21:54 mwk: three things
21:54 imirkin: bitblt
21:54 mupuf:expected blits to be done by pcopy
21:54 imirkin: pcopy is limited in what it can do
21:54 mwk: solid drawing, blit with scaling, image from cpu upload with stretching
21:54 mwk: all 3 support a lot of funny raster ops, too
21:55 mupuf: I see, so, the display controller is basically more complex than the 2d engine :D
21:55 mwk: clipping, a few kinds of blending, logic ops involving a repeating pattern, color key
21:55 mwk: and of course, color format conversion
21:56 mupuf: I see. Do we even make use of this engine?
21:56 imirkin: 2d engine? sure, in the DDX
21:56 mwk: also, converting paletted images to RGB
21:56 imirkin: and for blits in mesa
21:56 mwk: ie. lots of shit
21:56 imirkin: [when the 2d engine supports the stuff, otherwise we hit the 3d engine]
21:57 mupuf: thx
21:57 mwk: anyway, nv4-nv40 2d engine is basically unmodified (same registers, except perhaps at different mmio addresses), and separate from 3d
21:57 mupuf:obviously should pay more attention to the rendering side
21:58 mwk: G80 exposes more or less the same functionality, but with a new hw implementation integrated with the 3d pipeline
21:58 imirkin: it's a lot of information to keep track of
21:59 mwk: the actual G80 even exposed the old classes for compatibility, but G84 nuked them
22:03 mwk: anyhow
22:03 mwk: it should be possible to take the nv4 2d hwtests and make them pass on nv40 with just minor hammering here and there
22:03 mwk: but for 3d... let's see
22:05 mwk: nv1 "3d", nv3 d3d0, nv4 d3d5, nv4 d3d6, nv4 emulation of nv3 d3d0, nv10 celsius, nv10 emulation of nv3 d3d0, nv10 emulation of nv4 d3d5, nv10 emulation of nv5 d3d6, nv20 kelvin, nv20 emulation of nv10 celsius, nv30 rankine, nv30 emulation of nv20 kelvin, nv40 curie
22:05 mwk: each of them different, each of them alone more complex then the whole 2d pipeline
22:06 imirkin: although some easier to do once others are done :)
22:07 mwk: yeah, well
22:07 mwk: the emulations should just need figuring out how the card hammers a square peg into a round hole
22:08 mwk: but it's still a separate thing that needs its own RE
22:08 mwk:, in particular, is interested in the hw nv20-to-nv30 vertex shader ISA translator
22:09 mwk: quite impressive
22:12 karolherbst: anybody else want to join me on the 33c3? tomorrow starts the ticket sales
22:13 mwk: karolherbst: hm, I'm going to try pestering my manager about it
22:33 imirkin: skeggsb: could there be an issue on g80 with parallel context switches?
22:34 skeggsb: there *could* be, but i don't know
22:34 imirkin: skeggsb: there's been an issue since forever that reads like things got "desyncrhonized"
22:35 imirkin: (on nv50-era gpu's)
22:35 imirkin: cache errors, etc
22:43 karolherbst: mwk: awesome !
22:48 mupuf: ok, so, WTF is going on with this UNK18 table? It obviously is related to how to scale the PWM value for the fan
22:48 mupuf: I found 2 16-bit fields that affect the value
22:48 mupuf: but linearity is not exactly what I get out of these
22:49 mupuf: most of the time they are though
22:49 mupuf: if a = 1000 and b = 0, I get c
22:49 mupuf: if b = 1000 then I get 2c
22:49 mupuf: err, both a and b = 1000
22:50 mupuf: that's the only nice property I found about them
22:50 mupuf: but it is not true for all the values
22:51 mupuf: I failed to identify other variables at play
22:52 karolherbst: mhhh
22:52 karolherbst: messy
22:52 karolherbst: maybe those values are defined up to 1000 and then it gets undefined?
22:52 karolherbst: did you scan over all vbios to get the range?
22:54 mupuf: when I fix b and just sweep through a, I get:
22:54 mupuf: 1) a plateau to $max_pwm whose length depends on b
22:54 mupuf: 2) a linear increase after that, with the exception of 3)
22:54 mupuf: 3) a discontinuity in the increase: the value suddenly reset to 0 and then goes from 0 to 10, then 100, ... until the value cannot fit 32 bits ... and then we are back to the linear part of 2)
22:55 mupuf: the position of 3) also depends on a and b
22:55 mupuf: karolherbst: I did, 2 weeks ago, but I don't see the point
22:55 mupuf: we have to reproduce the behaviour anyway
22:55 karolherbst: right
22:56 mupuf: hmm, I wonder if ...
22:56 mupuf: maybe there are two values, one for 0% of powe
22:56 mupuf: and one for 100% of power
22:57 mupuf: that could explain some of this insanity
22:57 mupuf: I always test at 99% of the power(the blob ignores everything when setting to 100%, that's a bug of nvidia)
23:02 mupuf: ok, can I set the fan speed with nvidia-smi :)
23:19 mwk: ugh
23:21 mupuf: bingo
23:22 mwk: the algorithm nv4 uses to select rop formats seems freakishly complex
23:22 mupuf: value a does not affect the output of the fan speed when it is set to 0%
23:22 mupuf: b does
23:22 mwk: good thing they expose the result via mmio, I'd go crazy trying to determine it experimentally from rop results
23:22 mupuf: let's reverse b now, I am sure it will make it clear what is going on
23:22 mwk: well, crazier
23:23 mupuf: ah ah
23:27 karolherbst: mupuf: maybe a is a factor and b something non factor like?
23:27 karolherbst: but I guess this would be too sane
23:28 karolherbst: so it is something odd
23:29 mupuf: nope, it seems like b is the factor for 0% and a is for 100%
23:29 karolherbst: :D
23:35 mupuf: WTF
23:35 mupuf: Now, I see a square signal going up :D
23:36 karolherbst: :D
23:36 karolherbst: I think somebody just had some fun at nvidias
23:36 mwk: alright, NV4 craziness understood
23:36 mwk: now... NV5
23:37 airlied: skeggsb: backmerged v4.9-rc4 into drm-next
23:38 mupuf: Well, that or the 16-bit value is also a bitfield
23:38 karolherbst: why not both!
23:39 karolherbst: maybe it is a ... 9 bit value with 4 high bits as a bitfield
23:39 karolherbst: and the other low bits as well!
23:39 imirkin: mupuf: could this cause non-working fan control on my GM107? https://github.com/skeggsb/nouveau/commit/c48346e5fa2c996f4d2dc409d902314f18c19516
23:39 imirkin: [or rather, lack of this patch]
23:39 karolherbst: imirkin: seems plausible to me
23:40 mupuf: i2c fans are long gone, AFAIK
23:40 karolherbst: mupuf: you would be surprised
23:40 mupuf: especially on maxwell where they went into a lockdown mode
23:40 mupuf: imirkin: I am quite positive that the issue you have with fan management is what I am working on
23:41 karolherbst: mupuf: nope
23:41 karolherbst: mupuf: and you know why?
23:41 karolherbst: he has no table 0x18
23:41 mupuf: :s
23:42 mupuf: then I checked the wrong vbios last time
23:42 karolherbst: mhh
23:42 karolherbst: I could have his old gm107 one?
23:42 karolherbst: no clue
23:43 karolherbst: pwm fan
23:43 imirkin: mupuf: excellent
23:44 imirkin: i only have one GM107
23:44 mupuf: imirkin: if karolherbst is right, then it is not
23:44 karolherbst: mupuf: I guess for his GPU we might need to parse 0x58 and 0x5c
23:44 imirkin: https://people.freedesktop.org/~imirkin/traces/
23:44 imirkin: look at the -vbios.rom files there for details
23:45 karolherbst: yep
23:45 karolherbst: that's the one I have
23:45 karolherbst: table 0x58 and 0x5c it is
23:45 mupuf: karolherbst: quite likely, yeah
23:45 mupuf: but it is the same problem IMO
23:45 karolherbst: https://gist.github.com/karolherbst/76278c34f5164b4c8ec2e7854b908f3d
23:46 karolherbst: yeah
23:46 karolherbst: just different table
23:46 mupuf: quite likely
23:46 karolherbst: imirkin: you could try and verify it with the blob
23:47 karolherbst: and see if the fan starts to turn up between 86 and 90 °C
23:47 mupuf: karolherbst: a mmiotrace is enough
23:47 karolherbst: sure?
23:47 karolherbst: ohh for the value
23:47 karolherbst: yeah, k might be
23:47 mupuf: you should see an unually low value for the duty
23:48 karolherbst: mhhh
23:48 karolherbst: let me check something
23:48 imirkin: i could... but ... i think my mmiotracing days are over
23:49 karolherbst: huh, that's obvious... wait
23:49 mupuf: imirkin: ahaha
23:49 karolherbst: meh
23:50 karolherbst: okay, another table fan related as it seems
23:50 skeggsb: airlied: thanks!
23:50 karolherbst: OHH
23:50 karolherbst: mupuf: fan div: 135000 vs 25000
23:50 karolherbst: this is quite a big of a difference
23:50 skeggsb: i've fixed karol's passive adapter regression, just hunting down the mst issue on my laptop with that dell monitor and i'll get you a -next
23:50 mupuf: karolherbst: sure, and?
23:51 karolherbst: mhhh
23:51 karolherbst: that doesn't explain the super low duty
23:51 mupuf: nope
23:53 karolherbst: guess: 0x54 table
23:54 karolherbst: ... nope, nvm
23:54 mupuf: WTF
23:56 mupuf: http://fs.mupuf.org/mupuf/nvidia/6b13_sawtooth.png
23:57 karolherbst: \o/
23:57 mupuf: I mean, what the flying fuck?
23:58 imirkin: mupuf: at what values does it invert?
23:58 imirkin: looks like 128 for getting "back"
23:58 imirkin: what is it on the low end?
23:58 mupuf: http://pastebin.com/KDtRiMuc
23:58 imirkin: thanks
23:59 imirkin: 54
23:59 mupuf: first column = value for 6b13
23:59 imirkin: weird.
23:59 mupuf: the second one is PWM in hex
23:59 karolherbst: mupuf: okay, I think I have a guess