01:17 karolherbst: Tom^: https://github.com/karolherbst/nouveau.git -b cstate_interface
01:20 koz_: karolherbst: Did you get my email?
01:50 karolherbst: koz_: yeah
01:50 karolherbst: koz_: we have to verify first if you really used the compiled binary
01:52 karolherbst: koz_: see that? "[drm] Initialized nouveau 1.3.0 20120801 for 0000:01:00.0 on minor 1"
01:52 karolherbst: this basically means: old version
01:52 karolherbst: koz_: I would rename your nouveau.ko(.xz) file inside /lib/modules
01:52 karolherbst: koz_: then copy the compiled one there
01:52 karolherbst: and rebuild your initramfs
01:53 koz_: How do I rebuild my initramfs?
01:53 karolherbst: koz_: depends on the distribution, but basically something like makeinitramfs or something
01:54 koz_: karolherbst: I'm on Arch.
01:55 karolherbst: pmoreau: will know :D
01:56 koz_: karolherbst: Is this it? https://wiki.archlinux.org/index.php/Mkinitcpio
01:56 karolherbst: yeah
01:57 koz_: OK, rebuilt.
01:57 koz_: So now reboot and hope for the best?
01:57 karolherbst: mhhh yeah
01:57 karolherbst: :D
01:57 koz_: Alrighty, here goes nothing.
01:57 karolherbst: the version should be at least 1.3.1
01:57 karolherbst: maybe 1.3.2
01:58 karolherbst: no, 1.3.1
01:59 koz_: OK, my display manager failed to start.
01:59 koz_: So something probably didn't go right.
01:59 karolherbst: it should still start :/
01:59 karolherbst: what does dmesg say?
01:59 koz_: I'm not even past the boot screen.
01:59 koz_: It's just hanging there with a [FAILED] systemd message.
01:59 karolherbst: meh
02:00 koz_: My old nouveau was nouveau.ko.xz, but my new one is just nouveau.ko.
02:00 karolherbst: does the message say anyhting usefull?
02:00 karolherbst: doesn't matter
02:00 karolherbst: .xz just means compressed
02:00 koz_: Nope - I need to run journalctl for that, which I can't.
02:00 koz_: Because hanging on boot screen.
02:00 karolherbst: ...
02:01 karolherbst: mhh
02:01 karolherbst: can you switch to a tty?
02:01 koz_: I can try.
02:01 koz_: OK, on a tty.
02:02 koz_: journalctl is ten kinds of unhelpful.
02:02 koz_: As ever.
02:02 koz_: startx errors out, unsurprisingly.
02:03 karolherbst: Xorg.log ?
02:03 koz_: Reading now, but I have no clue what I'm looking for.
02:04 koz_: Would it help you if I showed you what it looks like?
02:05 karolherbst: mhh wait
02:05 koz_: OK.
02:05 karolherbst: do you have network on the machine?
02:05 koz_: ...possibly? I'll try to ssh into it.
02:05 koz_: Yep.
02:05 karolherbst: okay
02:06 karolherbst: then you may be able to upload stuff
02:06 koz_: Yeah, should be able to.
02:06 karolherbst: don't know a good arch package for that, but there are such paste commands
02:06 koz_: It's fine - I can do it in other ways as well.
02:06 koz_: scp for one.
02:08 koz_: karolherbst: http://paste.rel4tion.org/117
02:08 koz_: In all respects apart from X, the machine is quite alive.
02:11 karolherbst: "KMS not enabled"
02:11 karolherbst: do you have anything like modeset=0 in /proc/cmdline ?
02:13 koz_: Not at all.
02:13 koz_: AFAIK, KMS is enabled.
02:14 koz_: Or at least, I did nothing to disable it other than moving that .ko.
02:14 karolherbst: ohh I have an idea
02:14 karolherbst: lsmod | grep nouveau
02:15 koz_: No match.
02:15 koz_: So it didn't get loaded for some reason.
02:15 karolherbst: yes
02:16 karolherbst: do
02:16 karolherbst: modprobe nouveau
02:16 koz_: modprobe: ERROR: could not insert 'nouveau': Unknown symbol in module, or unknown parameter (see dmesg).
02:16 koz_: Guess you'll be wanting the dmesg?
02:17 karolherbst: yes
02:18 koz_: OK, grabbing.
02:21 koz_: http://paste.rel4tion.org/118 <-- karolherbst: the dmesg.
02:22 karolherbst: mhh
02:22 karolherbst: there is stuff missing
02:24 karolherbst: the last lines would be enough
02:28 koz_: karolherbst: So what should I do now?
02:29 karolherbst: dmesg | tail -n 50
02:30 karolherbst: or is dmesg printing what you gave me?
02:30 koz_: That's exactly what came out of dmesg.
02:30 karolherbst: :/
02:30 karolherbst: meh
02:34 kubast2: Hey ,I got the mmiotrace ,but the thing is my gtx 650 was in performance lvl 2 allready according nvidia x server settings
02:37 Tom^: karolherbst: hm but how am i supposed to load that up on the iso?
02:37 Tom^: karolherbst: dont i need to reboot to load it which means its gonna get reset anyways
02:37 koz_: karolherbst: I think I'll just give it a pass then. Thanks for all the help and stuff, but I'll just wait till your changes get mainlined.
02:38 karolherbst: Tom^: well, you can unload nouveau without rebooting
02:38 karolherbst: Tom^: just need to stop X and unbind the vtcon
02:38 Tom^: ok
02:38 kubast2: through the size of this trace is quiet huge
02:39 kubast2: 108.8MB
02:39 karolherbst: Tom^: I think you might need ssh for that though
02:39 Tom^: thats easily fetched
02:50 Tom^: karolherbst: so am i supposed to use the libnvif.so from that repo?
02:50 karolherbst: Tom^: cd drm
02:50 karolherbst: make
02:51 Tom^: crap no kernel headers
02:51 Tom^: :<
02:51 karolherbst: pmoreau: ^
02:51 Tom^: pmoreau: !!!!!!!!!!!!!
02:51 Tom^: =D
02:57 Tom^: karolherbst: uhm soc/tegra/fuse.h no such file or directory
02:58 karolherbst: yeah
02:58 karolherbst: unimportant
02:58 karolherbst: you can remove those includes
02:58 karolherbst: arch doesn't ship those files
03:01 karolherbst: I will create a bug for the suspend issue
03:02 karolherbst: shouldn't be there a DRM/Nouveau component in bugzilla?
03:02 karolherbst: because some issues aren't X server related
03:10 Tom^: karolherbst: this didnt work, couldnt inster 'nouveau': Exec format error
03:10 Tom^: karolherbst: perhaps using another 4.3 kernels api broke it :p
03:10 Tom^: eh headers i imean
03:14 karolherbst: yeah, guess so
03:18 Tom^: hm wait he seems to ship the stock arch kernel too, 4.2.5 which means i can boot that and fetch headers for it
03:18 Tom^: crisis may have been averted
03:21 karolherbst: Tom^: well, he also uses not the kernel drm version
03:21 karolherbst: :D
03:22 Tom^: worst case scenario i have to install arch on an external disk
03:28 Tom^: ;_; DRIVER_KMS_LEGACY_CONTEXT undeclared
03:31 Tom^: karolherbst: i guess your repo requires 4.3+ ? :p
03:32 karolherbst: yes
03:32 karolherbst: but I have some older branches
03:32 karolherbst: just not with that fix
03:32 karolherbst: master_karol_stable_4_1
03:32 Tom^: urgl im gonna order a pizza make some coffe and install arch on one of the 32gb usb sticks then
03:32 karolherbst: and then cherry-pick that one commit
03:32 karolherbst: ohh wait
03:32 karolherbst: no, you only need those cstate_interface
03:33 karolherbst: yeah
03:33 karolherbst: master_karol_stable_4_1 also has it
03:33 karolherbst: just use that branch then
03:33 Tom^: ok
03:34 Tom^: all of this would have been done if i just went with installing arch on the usb stick in the first place yesterday =D
03:35 karolherbst: :D
03:35 karolherbst: well, most of the games are running really great with nouveau now anyway
03:35 karolherbst: only dx11 is a problem
03:35 karolherbst: :/
03:36 karolherbst: even most of the dx9 games are running great through gallium nine
03:37 Tom^: yea only reason im on NSA10 is because of dx11/dx12 , fallout 4 and soon mass effect andromeda.
03:37 karolherbst: :/ yeah....
03:37 karolherbst: but
03:38 karolherbst: you will cry if you see it :D
03:38 karolherbst: Tom^: http://images.akamai.steamusercontent.com/ugc/646625824525324291/45BF8AE69B814D13D61047772049D0BB4221C542/
03:40 karolherbst: ohh wait
03:40 karolherbst: this isn't rhough crossover but stupid steam streaming
03:40 karolherbst: forget it then :/
03:40 Tom^: i almost had a stroke
03:41 karolherbst: yeah me too
03:41 karolherbst: then I thought about this
03:41 karolherbst: but
03:41 karolherbst: dx10 games are running fine mostly
03:41 karolherbst: also they said that there is a lot of work done towards dx11
03:41 karolherbst: but not public yet
03:42 pecisk: wine?
03:42 karolherbst: yes
03:43 Tom^: karolherbst: ok i think im on your nouveau now
03:44 karolherbst: nice
03:44 karolherbst: there should be some stuff inside /sys/kernel/debug/dri/0 now
03:44 karolherbst: pstate and cstate
03:45 Tom^: yep
03:45 karolherbst: to to 0f pstate
03:45 karolherbst: *go
03:46 karolherbst: now I have to check which cstate will work :D
03:46 karolherbst: echo 41 > cstate
03:46 karolherbst: then cat pstate
03:46 Tom^: wait wait, wait.
03:46 Tom^: if cstate fails it will freeze no?
03:46 karolherbst: no
03:46 Tom^: ok good i thought i had to recompile etc :P
03:47 karolherbst: this just reclocks the gpu core
03:47 karolherbst: and your fans might turn on :D
03:48 Tom^: cstate 41 seems to work i think
03:48 karolherbst: last line of pstate
03:48 Tom^: core is on 1177MHz
03:48 karolherbst: :)
03:48 karolherbst: 42 should fail
03:49 Tom^: 19k fps in glxgears.
03:49 karolherbst: meh, :D
03:49 karolherbst: so close
03:49 Tom^: yea 42 fails with failed to raise voltage
03:50 karolherbst: I only get 16k fps :(
03:50 karolherbst: what about glxspheres?
03:51 Tom^: 1150 frames per sec, 1277 Mpixels/sec
03:51 karolherbst: mhhh
03:51 karolherbst: something is odd
03:52 karolherbst: I expected much more but well
03:53 karolherbst: though it is not bad
03:53 karolherbst: it is just as fast as my card
03:54 karolherbst: Tom^: I bet there is something cpu related going on
03:54 karolherbst: might be cpu bound
03:54 karolherbst: okay, but seems to look fine though
03:54 Tom^: im only using around 11% of the cpu tho
03:55 karolherbst: Tom^: why only 11%?
03:55 karolherbst: ohh
03:55 karolherbst: cpu
03:55 karolherbst: I thought gpu
03:55 karolherbst: Tom^: single core^
03:55 karolherbst: mesa doesn't do multithreading stuff yet
03:55 karolherbst: so if one core is at 100%
03:55 karolherbst: then yeah
03:56 karolherbst: Tom^: anyway, at the highest cstate there should be another +10% performance
03:56 Tom^: just need that voltage correct then :p
03:56 karolherbst: yeah, we have to figure out what is going on there
03:56 karolherbst: and how to parse that table in the vbios
03:57 karolherbst: maybe we could ask nvidia about that
03:57 karolherbst: Tom^: ohh mhh
03:57 karolherbst: Tom^: you have a working win installation you said?
03:57 Tom^: sure
03:57 karolherbst: any gpu monitoring/OC tools there?
03:57 Tom^: easily fetched
03:57 karolherbst: I really want to know the voltage
03:57 karolherbst: at max load
03:58 karolherbst: if it's above 1.2125 V, then that would help a lot
04:04 Tom^: hm now i need something that runs it at 100% :p
04:05 karolherbst: disable vsync
04:05 karolherbst: :D
04:06 mlankhor1t: /5/
04:06 mlankhor1t: mm
04:08 Tom^: meh still only 80% on fallout4
04:08 karolherbst: Tom^: and how about the clocks?
04:08 karolherbst: anyway, the voltage should be really high now
04:08 karolherbst: I assume the blob clocks to max with 80% load already
04:09 Tom^: 1097mhz and 1.1750 V
04:09 karolherbst: wait
04:09 Tom^: memory only at 1749
04:09 karolherbst: *4
04:10 karolherbst: memory
04:10 karolherbst: then you got your 7000
04:11 karolherbst: voltage_min = 1025000, voltage_max = 1217500
04:11 karolherbst: 1.1750V seems to be in between
04:11 karolherbst: okay
04:11 karolherbst: we need mroe load :D
04:11 karolherbst: Tom^: settings already at max?
04:12 karolherbst: 8x msaa?
04:12 karolherbst: or 4x ssaa?
04:12 Tom^: hm need to check
04:12 karolherbst: usually ssaa does the trick
04:15 Tom^: yep fallout doesnt do the trick im probably bottlenecking on my cpu or something :P
04:16 karolherbst: even with aa at max?
04:16 karolherbst: isn't there ssaa or something?
04:17 Tom^: cant change the levels of it and no ssaa , launching far cry 4 now instead.
04:17 karolherbst: Tom^: window mode and just highest resolution? :D
04:22 Tom^: not sure the tool is reporting mem clocks right
04:22 Tom^: one reports it as 1749 constantly and one is at 3499 constantly :p
04:23 karolherbst: Tom^: yeah, memory has to be multiplied normally
04:24 karolherbst: Tom^: usually if you get your memory clock if you multiply with 4/2 then it's all fine
04:24 Tom^: however i never seem to go above 1097 core clock and 1.1750 V
04:24 karolherbst: mhh
04:24 Tom^: which means i already was above it on cstate 41?
04:24 Tom^: o_O
04:25 karolherbst: not quite sure
04:25 karolherbst: there is something odd with the clocks mapping anyway
04:25 karolherbst: mupuf: I think I got it :O
04:26 karolherbst: there are always cstates above the "normal" clock
04:26 karolherbst: and then also voltage entries for these "more" cstates
04:26 karolherbst: and sometimes they just got above the max voltage
04:26 karolherbst: which just means that gou can't use them
04:26 karolherbst: Tom^: okay, we would need to test something else
04:27 Tom^: sure
04:27 karolherbst: Tom^: we should check what nvidia-settings reports as the max clock used at full load with the binary driver
04:27 karolherbst: I am only 20% sure about this theory I got
04:27 mupuf: karolherbst: what did you understand?
04:27 mupuf: nvidia just provides the voltage vs frequency part
04:27 karolherbst: maybe gpu boost 2.0 is strange
04:27 mupuf: the OEMs provide the voltage controller informations
04:27 karolherbst: and I simply don't have it, which might explains it
04:28 mupuf: and that's how it works :)
04:28 karolherbst: mupuf: yes, but I saw much higher clocks in the cstates
04:28 karolherbst: than what the card should have as the "max" clock
04:28 karolherbst: that is what is bothering me now
04:28 mupuf: even for boost?
04:28 karolherbst: yeah
04:28 karolherbst: much higher
04:28 karolherbst: Tom^: on windows: 1097 core clock
04:29 karolherbst: highest cstate: 2613/2 MHz
04:29 karolherbst: so 1097 vs 1307MHz
04:29 karolherbst: highest working cstate is only 1960/2= 980MHz though
04:30 karolherbst: mupuf: pstate table: core freq = 1098 MHz
04:30 karolherbst: there we got the clock used on windows
04:31 karolherbst: if now the linux driver also only clocks to 1098, we might can figure out what nouveau does wrong
04:31 mupuf: hmm, maybe there are some gpus who have a much higher TDP and can reach much higher
04:31 mupuf: this is what it is all about anyway, isn't it?
04:32 karolherbst: yes
04:32 karolherbst: I bet there are cstates even above boost
04:32 karolherbst: just for OC stuff
04:32 mupuf: well, boost for this particular card
04:32 karolherbst: but normally never used
04:32 mupuf: but as I said, the only thing that matters is the capacity of the fan/heatinsink to dissipate the heat
04:32 karolherbst: yeah, right
04:33 mupuf: on high end cards, they may allow going as high as the highest cstate
04:33 Tom^: also didnt pstate report 1177MHz on cstate 41? which means i was above the core clock on windows already?
04:33 karolherbst: yeah
04:33 karolherbst: that's what I think this means
04:34 karolherbst: that's the reason I want to check the linux driver on your card
04:34 mupuf: hehe, well, don't worry, nouveau is not really good at using the gpu, so I am sure you were far away from the TDP
04:34 Tom^: im not worried im amazed that i might get awesomeness fps :p
04:34 karolherbst: mupuf: yeah, but I think I can understand the pstate => cstate => voltage mapping with that
04:34 mupuf: ah ah
04:34 karolherbst: if we shouldn't select a cstate above pstate.core_clock
04:34 karolherbst: then this is the answer
04:35 mupuf: possible, but it is likely the clock found in the boost table saying the max percentage
04:35 karolherbst: and then we have a boost range with cstate.voltage < gpu.max_voltage
04:35 karolherbst: mupuf: the boost table doesn't help
04:35 mupuf: in any case, we need a lot of work to understand all this shit
04:35 mupuf: ah?
04:35 karolherbst: 0: domain 2 percent 90 min 988 max 2352
04:35 karolherbst: and domain 1
04:36 karolherbst: 1: domain 4 percent 100 min 1080 max 2613
04:36 karolherbst: it is already too hight from the current understanding
04:36 karolherbst: *high
04:37 karolherbst: 41: freq 2352 MHz unkn[0] 0 unkn[1] 1 voltage 56 is the max we can do....
04:37 karolherbst: wait
04:37 karolherbst: max 2352 boost table
04:37 karolherbst: 41: freq 2352 MHz unkn[0] 0 unkn[1] 1 voltage 56 cstate
04:37 karolherbst: same clock
04:37 karolherbst: .....
04:37 karolherbst: might be concidence
04:46 Tom^: karolherbst: http://i.imgur.com/MW2NDnC.png
04:47 karolherbst: mhhhh
04:47 karolherbst: Tom^: and the gpu load?
04:47 karolherbst: it is in the GPU 0 section
04:47 Tom^: im not sure where to read it :p
04:48 Tom^: its at 98%
04:48 Tom^: GPU Utilization: that is
04:49 karolherbst: mhhh
04:49 karolherbst: mupuf: seems like I am somehow right :)
04:49 karolherbst: then this is really a gpu boost thing
04:50 Tom^: 33k fps ;_;
04:50 karolherbst: mupuf: so there is nothing wrong with the parsing of the voltage stuff
04:56 karolherbst: Tom^: okay
04:57 karolherbst: Tom^: can you add a Coolbits entry in the xorg.conf ?
04:57 karolherbst: Tom^: Option "Coolbits" "28" in the Device section of the nvidia gpu
05:01 Tom^: sure
05:06 Tom^: karolherbst: what do you want me to set the clocks to? :p
05:06 karolherbst: max
05:06 karolherbst: allthough
05:06 karolherbst: leave them at 0
05:06 karolherbst: and see if nvidia clocks above 1098MHz now
05:07 Tom^: seem to be at 1097 still
05:07 karolherbst: okay
05:07 karolherbst: then +135MHz
05:07 karolherbst: I assume this is the most you can do?
05:08 Tom^: core clock 1232
05:08 Tom^: still sailing on :p
05:09 karolherbst: mhhhh
05:09 karolherbst: okay
05:10 karolherbst: I think this offset thign only changes the clock
05:10 karolherbst: nothing else
05:10 karolherbst: in a post calculation way
05:11 karolherbst: okay
05:11 karolherbst: that helps me a lot already
05:11 Tom^: GPUCurrentCoreVoltage 1175000
05:11 karolherbst: mupuf: what do you say? we shouldn't clock to cstates with clocks abouve what the pstate table says?
05:11 Tom^: just as windows reported
05:11 karolherbst: Tom^: :O
05:11 karolherbst: nvidia reports the right voltage for you
05:11 karolherbst: :O
05:12 karolherbst: nice
05:12 Tom^: i do have an GPUOverVoltageOffset that nvidia-settings doesnt seem to expose in the GUI :p
05:13 karolherbst: yeah
05:13 karolherbst: that's normal
05:13 karolherbst: you can set it a bit, but usually something under 0.01V
06:13 karolherbst: mupuf: sooo my idea is this
06:13 karolherbst: mupuf: we only allow those cstates which are below the pstate "core" clock and have a voltage below the gpu max voltage
06:14 karolherbst: then we might add a "NvBoost" parameter which will also allow cstates above the pstate "core" clock and below the boost max clock, and still below the gpu max voltage
06:15 karolherbst: thing is
06:15 karolherbst: this doesn't seem to work on my gpu :/
06:35 karolherbst: now it makes more sense :)
06:41 karolherbst: Tom^: the core clock should be higher on windows due to gpu boost
06:41 karolherbst: Tom^: found any load which triggers this?
06:41 Tom^: cant say i do
06:41 Tom^: but then this is a MSI factory OC'ed card.
06:41 karolherbst: pain is: nvidia doesn't do boost on linux
06:41 Tom^: iirc the standard 980ti is around 980mhz core clock
06:42 karolherbst: 876 MHz
06:42 karolherbst: http://www.geforce.com/hardware/desktop-gpus/geforce-gtx-780-ti/specifications
06:43 karolherbst: you don't have a 980 ti, cause that's not kepler anymore
06:43 Tom^: yea i meant 780
06:43 Tom^: :p
06:43 karolherbst: mhhh
06:43 karolherbst: nvidia behaves differently with my gpu
06:43 karolherbst: that bothers me
06:44 karolherbst: mine just goes straight to the max cstate
06:44 karolherbst: even with the blob driver
06:44 karolherbst: and idles somewhere below
06:44 Tom^: http://www.sweclockers.com/test/18242-geforce-gtx-780-ti-fran-msi-pny-och-zotac/2 swedish i know but specs just a bit down.
06:44 Tom^: iirc thats the card i got
06:45 karolherbst: so we hit max boost alreadz_
06:45 karolherbst: ?
06:45 Tom^: so it seems
06:45 Tom^: and i dont think the linux nvidia blob does boost either it just simply goes to it directly no?
06:45 karolherbst: no idea
06:45 karolherbst: afaik on the nvidia forums some guy from nvidia said, nvidia doesn't do boost on linxu
06:46 karolherbst: let me check something
06:46 karolherbst: 1080 MHz was your clock
06:47 Tom^: well according to specs but the tools report 1097~
06:47 karolherbst: ohh right
06:47 karolherbst: it is that cstate then: 35: freq 2195 MHz unkn[0] 0 unkn[1] 1 voltage 50
06:49 karolherbst: voltage_min = 1025000, voltage_max = 1212500(+50000) [µV] --
06:49 karolherbst: the next cstate would have a voltage_max above the max voltage
06:49 karolherbst: mhhhhh
06:50 karolherbst: mupuf: I think nvidia only uses one link from the voltage map table
06:50 karolherbst: then it makes totally sense to me now
06:53 karolherbst: max cstate: highest csate with voltage_map_table[cstate.voltage].max_voltage + voltage_map_table[voltage_map_table[cstate.voltage].link].max_voltage <= voltage_table.max_voltage AND cstate.clock <= boost_table[pstate].max_clock
06:53 karolherbst: ha
06:53 karolherbst: no I have to check others card
06:53 karolherbst: *now
06:54 karolherbst: Tom^: thanks a lot for your help. I think this is really valuable what I found out today :)
06:54 Tom^: np, it was fun tinkering.
06:57 jkucia: any ideas why would mesa 11.0.5 report 2.1 as max compat profile version on NVE4 (gtx 760)? GLX_MESA_query_renderer also returns compat as preferred profile and 0.0 for max core profile version
06:58 karolherbst: pecisk: there?
06:58 karolherbst: pecisk: I need you to check the max clock used with the binary driver
06:58 karolherbst: and please tell me it is 1058 MHz
07:00 karolherbst: mupuf: you still have the nve6 kepler?
07:00 karolherbst: ohh I meant nve4
07:17 pecisk: karolherbst, on which card
07:18 karolherbst: pecisk: kepler
07:18 pecisk: one sec
07:18 pecisk: karolherbst, how to do that? :)
07:18 karolherbst: nvidia-settings
07:19 karolherbst: and full load
07:22 pecisk: karolherbst, when switching prefered mode to "Prefer maximum performance", I get 1006 for clock and 6008 for memory (when it's idle)
07:23 Tom^: just run glxsphere twice without vsync, that maxed mine out. :p
07:34 karolherbst: pecisk: yeah the clock should go a little higher
07:43 imirkin: jkucia: you forgot --enable-texture-float
07:44 imirkin: jdb: it would behoove you to keep all displays connected to a single gpu. otherwise you have to go the xinerama or reverse prime route, neither of which is great. and not sure the latter would work too well without acceleration (which your GPUs won't have)
07:45 orbea:upgraded to mesa 11.1.0-rc1 and still OpenGL compatability version 3.0 :/
07:45 imirkin: orbea: mesa will never report an opengl compat context version above 3.0
07:46 orbea: :/ Was testing what someone said last night, wasn't correct
07:46 orbea: I need opengl 3.1, but I don't want to use nvidia drivers, nouveau does tty so much better....
07:47 orbea: and always works
07:47 jdb: imirkin: Thanks for the advice. I think I'll do this for the short term, and maybe swing around and try things out when more-than-modeset support lands for my architecture.
07:48 karolherbst: orbea: then you need a core profile
07:48 jdb: tangentially related: given that my set up is a little esoteric, I'm always more than happy to try things out if it'll help the world.
07:49 orbea: karolherbst: core profile is 4.1, compatability is 3.0, I need at least 3.1 compatability version
07:49 imirkin: orbea: well, there's no such thing as core/compat with GL 3.1 actually... but if you request a 3.1 profile, you get one without ARB_compatibility.
07:49 imirkin: mesa just plain doesn't support it.
07:49 imirkin: and there are no plans on ever adding the support
07:50 orbea: sad to hear
07:50 imirkin: why?
07:50 karolherbst: why is it sad?
07:50 karolherbst: neither mac os x does it
07:50 imirkin: iirc OSX maxes out at GL 2.1
07:50 karolherbst: yeah
07:50 orbea: i dont use apple products, I just know the only solution I have found is to use a proprietary driver and I don't like that...
07:51 imirkin: then you're solving the wrong problem
07:51 karolherbst: orbea: _why_ do you need a compat profile?
07:51 imirkin: the problem you need to be solving is that the app wants a compat profile :)
07:51 orbea: Pioneer Spacesim currently
07:51 imirkin: you can always force it... MESA_GL_VERSION_OVERRIDE=3.1 MESA_GLSL_VERSION_OVERRIDE=140
07:51 orbea: yea, I could take it up with them, but there will always be another game
07:52 karolherbst: orbea: mhh never encountered any
07:52 karolherbst: they even provide a mac os x version
07:52 karolherbst: ...
07:52 karolherbst: imirkin: I bet they just request the context wrong
07:53 karolherbst: and it is open source
07:53 karolherbst: ....
07:53 karolherbst: k
07:53 imirkin: jdb: thanks for the offer :)
07:55 orbea: interesting http://cgit.freedesktop.org/mesa/mesa/commit/?id=2599b92eb9751747d4eab8820384d2e5cc4f6801
07:55 karolherbst: orbea: did you try it out by the way?
07:55 karolherbst: launching the stuff
07:55 karolherbst: I can't imagine that it won't run, because anybody would have fixed it by now
07:56 orbea: try what? forcing it? I did, no difference, but maybe I was doing it wrong
07:57 karolherbst: orbea: what is the error?
07:57 orbea: same as before http://dpaste.com/01VN335 Their site explains how opengl 3.1 is needed
07:58 karolherbst: then open a bug on their github tracker
07:58 karolherbst: LOL: https://github.com/pioneerspacesim/pioneer/issues/3415
07:59 karolherbst: I bet it is the same issue
07:59 karolherbst: and they are simply not aware of it
07:59 orbea: http://pioneerwiki.com/wiki/FAQ#I.27m_getting_.22OpenGL_Version_3.1_is_not_supported._Pioneer_cannot_run_on_your_graphics_card..22_error_on_startup
08:00 orbea: I'mma make a new report anyways and complain how making a free game require non-free drivers to run is bs
08:00 karolherbst: orbea: complain about why they don't support a core context
08:00 karolherbst: this should be the bug
08:00 karolherbst: nothing else
08:00 orbea: Will do
08:01 karolherbst: otherwise the discussion will drift away
08:01 karolherbst: but there is something else fishy though
08:02 karolherbst: imirkin: is GL_ARB_explicit_attrib_location core only?
08:02 imirkin: doubtful
08:02 karolherbst: mhhh
08:02 imirkin: but maybe
08:02 imirkin: grep should say
08:02 karolherbst: then I don't see why this shader won't load
08:02 imirkin: src/mesa/main/extensions_table.h:EXT(ARB_explicit_attrib_location , ARB_explicit_attrib_location , GLL, GLC, x , x , 2009)
08:03 imirkin: nope, exposed for both legacy and core.
08:03 imirkin: [assuming the driver flips it on]
08:03 karolherbst: what about uniform stuff?
08:03 imirkin: src/mesa/main/extensions_table.h:EXT(ARB_explicit_uniform_location , ARB_explicit_uniform_location , GLL, GLC, x , x , 2012)
08:04 karolherbst: mhhh
08:04 karolherbst: orbea: there is something else fishy
08:05 imirkin: well, that was with a ILK gpu
08:05 imirkin: which only supports GL 2.1
08:05 karolherbst: ohh okay
08:05 karolherbst: didn't found there which gpu it was
08:05 karolherbst: makes sense then
08:05 karolherbst: ...
08:05 karolherbst: pecisk: any luck?
08:08 pecisk: I am looking where to find glxsphere, because xonotic ultra settings maxed out didn't do a trick
08:08 pecisk: on fedora that is
08:10 karolherbst: glxgears is also nice
08:10 imirkin: orbea: https://github.com/pioneerspacesim/pioneer/blob/master/src/graphics/WindowSDL.cpp#L19
08:11 imirkin: looks like they already ask for a core context
08:11 Tom^: i guess starting enough instances of glxgear without vsync should max it out too unless the cpu bogs down before :P
08:12 karolherbst: :D
08:12 pecisk: karolherbst, how to max out with glxgears?
08:12 pecisk: ahhh
08:12 karolherbst: nah
08:12 karolherbst: wait
08:12 karolherbst: __GL_SYNC_TO_VBLANK=1
08:12 karolherbst: or 0?
08:12 imirkin: 0
08:12 karolherbst: 0 it is :D
08:14 pecisk: karolherbst, __ or _ at the beginning of variable?
08:15 pecisk: running two instances, card doesn't seem to notice
08:15 karolherbst: __
08:15 karolherbst: the fps should be really high
08:15 karolherbst: above 20.000
08:15 karolherbst: or at least near it
08:18 orbea: I made issue https://github.com/pioneerspacesim/pioneer/issues/3537
08:18 orbea: *an issue
08:18 karolherbst: orbea: nice, good
08:18 karolherbst: but imirkin found out that they should already use core profiles cause of os x
08:18 orbea: ah
08:19 karolherbst: I think the funky part is inside this shader
08:19 imirkin: orbea: actually your log indicates it initialized GL 3.1 just fine
08:19 pecisk: karolherbst, I am getting
08:19 pecisk: Running synchronized to the vertical refresh. The framerate should be
08:19 pecisk: approximately the same as the monitor refresh rate.
08:19 imirkin: but i'm not overly familiar with the app in question
08:19 pecisk: with
08:20 pecisk: __GL_SYNC_TO_VBLANK=1 glxgears
08:20 imirkin: pecisk: you want =0
08:20 pecisk: ahhhh
08:20 pecisk: duh
08:20 Tom^: or nvidia-settings go to opengl tab and disable vsync :p
08:20 imirkin: otherwise it syncs to vblank :)
08:20 Tom^: also i think glxspheres is in the virtualgl package in fedora if my google fu is correct.
08:20 imirkin: as the name of the env var might suggest
08:20 pecisk: that's more like it
08:21 pecisk: imirkin, thanks for pointing out
08:21 imirkin: np. "captain obvious" is my middle name
08:21 pecisk: karolherbst, graphics clock 1150 Mhz
08:22 karolherbst: meeh
08:22 karolherbst: not 1158? :/
08:22 karolherbst: too close
08:22 pecisk: nope, it stays at 1150 Mhz, and I hear card's cooling start to work
08:23 karolherbst: how did I come to 1158 anyway
08:23 karolherbst: okay, let me check that
08:24 karolherbst: mhhh
08:26 karolherbst: mhhh okay, I think I got it then
08:27 pecisk: cool beans :)
08:27 karolherbst: a bit at least
08:30 pecisk: karolherbst, congrats on merge btw, seems more happy people :)
08:32 karolherbst: hopefully
09:06 RSpliet: karolherbst: gives you bragging rights you know, kernel patches
09:06 RSpliet: the chicks dig that shit
09:09 karolherbst: :D
09:09 karolherbst: lol
09:09 Tom^: RSpliet: why arent the chicks here then? https://github.com/torvalds/linux/commit/15c2bf2f3f5c1f25293ad89a9effeb75524458e8
09:09 Tom^: ;_;
09:12 karolherbst: orbea: it starts for me
09:14 orbea: interesting, i wonder where its going wrong for me
09:14 karolherbst: orbea: try to start with LIBGL_DEBUG=verbose
09:15 karolherbst: ohh wait
09:15 karolherbst: wrong thing
09:15 karolherbst: and MESA_DEBUG needs debug build right?
09:16 karolherbst: orbea: do you have the newest version of it anywaY?
09:16 orbea: 11.1.0-rc1
09:16 karolherbst: I meant the simulation thingy
09:17 orbea: I grabbed the source tarball from their github labeled 20151109
09:18 orbea: someone in #pioneer said the latest version is broken, but idk if he meant their binary build or the source or how its broken
09:18 karolherbst: I downloaded the binary from their site
09:20 orbea: well anyways, the libGL command added this to the output, not sure its helpful http://dpaste.com/38D83ZJ
09:20 karolherbst: nope
09:23 karolherbst: mupuf: I am thinking about turning the pstate/cstate lists into dynamic arrays :/
09:27 orbea: the pioneer binary build has library issues here
09:28 jkucia: imirkin: thanks, it was --enable-texture-float
09:34 jkucia: now I have to figure out why my shader with texelFetch and textureSize renders incorrectly :)
09:35 imirkin: jkucia: mmmm... not aware of any extra special issues with those
09:35 imirkin: jkucia: what gpu and what kind of texture?
09:36 imirkin: jkucia: fwiw the texelFetch piglits when done from vs use textureSize() and work fine
09:37 imirkin: jkucia: you can always see what happens with llvmpipe
09:37 jkucia: It is possible that something is wrong in my code but it renders properly with nvidia blob. NVE4 (gtx 760) R8G8 and DXT3/DXT5 textures.
09:38 imirkin: is this the starwars game... or starsomething?
09:38 orbea: oh crap, I see the issue, pioneer doesn't like make install...its all my fault lol
09:39 imirkin: iirc there was some sort of glitch in one of those, and the person appeared convinced it was somehow related to s3tc
09:39 imirkin: (which it totally wasn't)
09:40 jkucia: No, it isn't Starwars. I work on D3D11 in Wine.
09:40 imirkin: jkucia: https://bugs.freedesktop.org/show_bug.cgi?id=91551 -- looks like it was only a bug on nv50 though, not nvc0
09:41 imirkin: jkucia: ah ok :) well, make a trace, try it on other drivers, and then figure out whether to blame nouveau or not
09:41 karolherbst: jkucia: like employed or for fun? :D
09:41 imirkin: jkucia: note that just plain running wine against a diff driver is often an unfair comparison as it'll pick entirely different paths
09:41 imirkin: based on the available exts
09:42 jkucia: karolherbst: employed :D
09:42 karolherbst: jkucia: codeweavers?
09:43 imirkin: jkucia: anyways, if it *is* a nouveau issue, i suspect it's entirely unrelated to texture types
09:43 jkucia: imirkin: I have to write some tests for shader instructions I have implemented so I will probably find this way which part doesn't work
09:43 jkucia: karolherbst: yes
09:43 karolherbst: okay nice :)
09:44 imirkin: jkucia: note that texelFetch takes integers, not floats
09:44 karolherbst: for a little percentage I thought working on dx11 is a myth :p, but glad to hear that there is actually some work on this
09:45 imirkin: i'm just waiting for st/d3d1x to be resurrected
09:45 imirkin: :)
09:45 karolherbst: jkucia: is IID_IDXGIDevice1 already implemented d3d11_device?
09:45 karolherbst: I noticed some games need this
09:46 jkucia: imirkin: I know it takes integers. Thanks for your help. I'll report back if I find anything :)
09:46 jkucia: karolherbst: yes, it is
09:46 karolherbst: :)
09:46 karolherbst: nice
09:46 karolherbst: I tried that myself and failed horribly :D
09:46 imirkin: jkucia: yeah, figured :) make an apitrace if you find anything untoward in the nouveau driver.
09:47 jkucia: Actually, I've got a first simple game running in D3D11. However, only with nvidia blob for now.
09:48 karolherbst: jkucia: still awesome
09:48 imirkin: well note that nouveau doesn't support like 50% of DX11 right now -- no UAV's, no compute
09:48 karolherbst: jkucia: I bet most of the d3d10 games will also run beause of the dx11 runtime being implemented?
09:48 imirkin: but... workign on it
09:48 imirkin: slowly
09:49 jkucia: karolherbst: yes
09:49 karolherbst: imirkin: first we need the perf to actually run those games :p
09:49 imirkin: karolherbst: meh, that's of little concern to me :)
09:49 karolherbst: :D
09:49 karolherbst: I know
09:49 imirkin: i don't actually play games
09:49 RSpliet: I think most people here don't play games
09:49 jkucia: imirkin: It should not be problem for this game at all. It just use D3D11 and SM4 shader but just basic D3D11 features.
09:49 karolherbst: I do, and I would be happy if I could ditch windows and the binary driver
09:50 Tom^: karolherbst: +1 on that :p
09:50 imirkin: jkucia: ah ok. not up on all the windows terminology... SM4 is DX10? i thought DX11 was SM5...
09:50 imirkin: or this is a DX9-type situation where you have multiple SM versions that diff drivers might be capable of?
09:50 jkucia: SM4 shaders can also be used in D3D11
09:51 jkucia: but SM4 instructions are at the feature level of D3D10 hardware
09:51 imirkin: ah i see
09:52 imirkin: well DX10.1 is well-supported by nouveau on all nvidia hw [that supports it]
09:53 karolherbst: imirkin: shouldn't gallium nine also be able to support those dx10 stuff? I mean it is just an API anyway and the runtime is implemented in wine, I doubt that this will be much work actually
09:53 imirkin: karolherbst: afaik it's a totally differnet api -- easier to just make a new st
09:53 karolherbst: mhh okay
09:53 imirkin: karolherbst: there used to be a d3d1x state tracker a few years ago, but it was removed -- it was wildly incomplete
09:54 karolherbst: I know
09:54 imirkin: in large part because the gallium support wasn't there for it either
09:54 imirkin: but that's why nouveau had all sorts of DX11-type features 75%-done
09:54 karolherbst: I will ask in the d3d9 channel if there are plans
09:57 karolherbst: mupuf: new function: struct nvkm_cstate * get_highest_available_cstate(struct nvkm_clk *clk, struct nvkm_pstate *pstate, bool boost); and this will return the fastest cstate currently available respecting voltage range and other stuff
09:57 Tom^: :o
09:58 mupuf: hmm, why not, but how about simply exposing another view of the legal cstates?
09:59 karolherbst: mupuf: sounds a bit of wasted memory to me :/
09:59 karolherbst: mupuf: maybe using arrays instead of linked lists are better, because we could reuse the entries then
09:59 karolherbst: :/
10:01 mupuf: are you seriously optimising something that will not even take one memory page?
10:03 karolherbst: mupuf: I am sure it could get bigger
10:03 karolherbst: nvkm_cstate isn't a small thing
10:04 karolherbst: 30 * u32 + list_head + 2 * u8 and this thing like 60 times
10:06 karolherbst: well more actually, because every pstates has such a list
10:09 imirkin: jkucia: oh, another funny thing with TXQ is that it returns the # of levels in .w - textureSize() doesn't have that. but you get that with textureQueryLevels() (part of some ext) -- dunno if that's relevant to your app.
10:10 imirkin: jkucia: or SVIEWINFO... wtvr it's called :)
10:16 jkucia: I use both, textureSize() and textureQueryLevels(), to implement SM4 resinfo. I guess resinfo is equivalent of SVIEWINFO
10:16 imirkin: right. resinfo. sorry, i get all these things confused.
10:17 imirkin: dx9, dx10, tgsi, and tgsi has 2 versions of all these things (one for sampler one for views)
10:18 imirkin: anyways... all this stuff _ought_ to work. send traces :)
10:18 imirkin: [i assume you're familiar with apitrace]
10:19 jkucia: yes, I use it a lot recently ;)
10:38 karolherbst: mupuf: nouveau 0000:01:00.0: volt: min voltage: 600000 max voltage: 1200000 :) we also need to parse this then
10:38 karolherbst: Tom^: wanna try something out?
10:39 Tom^: depends :p
10:39 karolherbst: it works for me
10:40 karolherbst: Tom^: which branch did you use? master_karol_stable_4_1?
10:40 Tom^: yea
10:41 Tom^: pmoreau: needs to add some headers to the 4.3 kernel otherwise
10:43 karolherbst: mupuf: does this look okayish? https://github.com/karolherbst/nouveau/commit/1ad74517ab66134ea02a41a369ffeba2a9f9dbc5
10:44 karolherbst: Tom^: well use the branch named "Tom" from my repository
10:45 karolherbst: and boot with nouveau.debug=volt=debug
10:45 karolherbst: :D
10:45 Tom^: that means options novueau debug=volt=debug in modprobe.conf ?
10:45 karolherbst: Tom^: you should get a line like "nouveau 0000:01:00.0: volt: min voltage: 825000 max voltage: 1212500" then
10:45 karolherbst: yeah
10:46 Tom^: ok will do in a moment
10:47 mupuf: karolherbst: yeah, in theory this is good. You do not check the boost flag?
10:47 mupuf: in any case, I think we need something like this :)
10:48 karolherbst: yeah
10:48 karolherbst: I just can't concentrate enough now, so I don't think I can produce anything clean today
10:48 karolherbst: :D
10:48 karolherbst: I am sure part of the nvkm_clk stuff needs to be refactored for dynamic reclocking anyway
10:49 karolherbst: mupuf: for example: why should the voltage entry id be stored in nvkm_cstate, why not the _exact_ voltage from the beginning?
10:49 karolherbst: this will save us some cpu clocks every time nouveau reclocks
10:52 mupuf: oh, because we try to keep in memory what the vbios contains
10:54 RSpliet: those few clock cycles are not on the critical path
10:54 karolherbst: mupuf: well boost flag will mean clocks above pstate clocks
10:54 karolherbst: mupuf: but this part is tricky, because of clock_domains
10:54 karolherbst: :/
10:54 RSpliet: or well, not really. not very relevant
10:54 mupuf: karolherbst: I got that :)
10:55 karolherbst: mupuf: but the blob doesn't care about that at all
10:55 mupuf: I would say, let's ignore boost for the moment and just pretend we can use the maximum clock at all time
10:55 karolherbst: shader freq= 810 MHz here
10:55 karolherbst: blob uses 862MHz straight away
10:55 karolherbst: which is my highest cstate
10:55 karolherbst: so, meh
10:56 karolherbst: but this would mean my gpu is "just" 810MHz fast on paper, didn't know that
10:57 karolherbst: mupuf: and I wrote a patch to support clocks lower than the lowest cstate (135MHz vs 405MHz for me), didn't see any lower power consumption and threw it away :D
10:58 karolherbst: mupuf: I think with that, we now a solution to all those can't voltage issues I know of for kepler
10:58 karolherbst: mupuf: or did I forgot anything?
11:04 mupuf: karolherbst: not sure I am following
11:08 karolherbst: mupuf: best I show you: "0: freq 810 MHz unkn[0] 1 unkn[1] 2 voltage 10" this is my slowest cstate
11:08 karolherbst: boost table: 0: pstate 7 min 270 MHz max 810 MHz
11:08 karolherbst: and the blob also uses this value on the lowest pstate
11:08 karolherbst: nouveau not
11:08 mupuf: oh, I was wondering where it took this low one from
11:08 mupuf: I just guessed it was hard-coded
11:08 mupuf: did you check this theory?
11:08 karolherbst: not yet
11:09 karolherbst: but the nvidia-settings thing always displays ranges like the boost table
11:09 karolherbst: also on Tom^s card
11:09 karolherbst: mupuf: it also displays clocks it never reaches :D
11:09 karolherbst: mupuf: check this: 0: pstate 7 min 270 MHz max 810 MHz
11:09 karolherbst: ...
11:10 karolherbst: mupuf: this I mean: https://i.imgur.com/MW2NDnC.png
11:10 karolherbst: this is at full load
11:10 karolherbst: and the max/min clocks are exactly like the boost table
11:10 karolherbst: except one minor thing
11:10 karolherbst: perf level 1 min is +4MHz
11:19 mooch: Does anybody know what CRTC reg 0x3e does on NV4?
11:19 mooch: The BIOS likes to poll this register because of the way Debian uses VESA.
11:22 karolherbst: Tom^: how is it going?
11:22 Tom^: just compiled
11:22 Tom^: now modprobe.conf and unload kms and reload module
11:22 mooch: I've seen this register called DDC_STATUS
11:24 imirkin: mooch: you're talking about 0x68083e right?
11:24 imirkin: er wait, that makes no sense
11:24 mooch: No, I'm talking about 0x3d4 index 0x3e
11:24 mooch: In the VGA register space
11:24 imirkin: ah right. that makes more sense :)
11:25 prg: since this auto-reclocking thing turned out to be somewhat unstable for me, i've now been trying again to use nouveau and see how stable it is in normal usage. had a game running in the background and watched a movie in mpv
11:25 prg: displays froze again, only thing in dmesg: nouveau 0000:01:00.0: fifo: read fault at 0021dbf000 engine 00 [GR] client 08 [GPC2/PE_2] reason 00 [PDE] on channel 6 [023f7f1000 mpv/vo[21152]]
11:25 karolherbst: prg: yeah, as long as you don't reclock, most of the things should work without issues
11:25 prg: nouveau 0000:01:00.0: fifo: gr engine fault on channel 6, recovering...
11:25 prg: and no, it did not recover
11:25 karolherbst: uhh yeah
11:25 karolherbst: sometimes something fishy is going on
11:26 prg: this was just on 07 pstate
11:26 karolherbst: imirkin: I think something funny is going on in general. I hit this with Wasteland 2 several times a day
11:26 karolherbst: imirkin: any idea how to debug those?
11:27 imirkin: karolherbst: make a mmt trace that captures the issue, and note down the address reported in dmesg, then try to figure out wtf happened.
11:27 karolherbst: imirkin: k
11:27 karolherbst: will do tomorrow then
11:27 karolherbst: imirkin: but it can take an hour :D
11:28 imirkin: i don't get any more info from that message than you do.
11:28 Tom^: karolherbst: volt: min voltage: 825000uv max voltage: 1212500uv
11:28 karolherbst: Tom^: nice
11:28 imirkin: it just lists some address. what am i supposed to do with that? :)
11:28 karolherbst: Tom^: now reclock to 0f
11:28 Tom^: is pstate available by default now?
11:28 karolherbst: this is the part where it can actually crash
11:29 karolherbst: mhhhhhh
11:29 karolherbst: yes
11:29 karolherbst: with my branches
11:29 Tom^: oki good :p
11:29 karolherbst: it is just in debugfs
11:29 imirkin: prg: it's entirely possible with have some resource mismanagement in the vdpau accel logic... which i assume you're using?
11:29 Tom^: karolherbst: which was were?
11:30 karolherbst: /sys/kernel/debug/dri/0
11:30 Tom^: sure seems to work just fine
11:31 Tom^: no complaints, and core at 1177mhz and mem at 6999mhz
11:31 karolherbst: very good
11:31 Tom^: a bit above windows and blob as last time
11:31 karolherbst: well
11:31 karolherbst: yeah
11:31 karolherbst: the blob also uses higher voltage in general
11:31 karolherbst: so this is fine for now
11:32 karolherbst: I think I will try to get those voltage fixes ready for the next kernel version
11:32 karolherbst: mupuf: any idea what we should do about the 0ed voltage table header?
11:33 mupuf: ahm right, we need to test how the blob selects
11:33 imirkin: mooch: http://cgit.freedesktop.org/~darktama/nouveau/tree/drm/nouveau/dispnv04/nvreg.h#n273
11:33 imirkin: i guess we call it DDC_STATUS too :)
11:33 karolherbst: mupuf: ahh right
11:33 karolherbst: mupuf: but would this prevent a fix like that? https://github.com/karolherbst/nouveau/commit/4e2ef5f700bf2912f71eefe877e9e9d1d4f40e73
11:33 karolherbst: I mean we can change the selection later anyway
11:33 mooch: imirkin: But what are the bit definitions?
11:34 imirkin: nfc. nouveau never appears to read it.
11:35 prg: imirkin, this was with VO: [opengl-hq]
11:35 mooch: shit, because the BIOS relentlessly polls it
11:35 imirkin: prg: hm ok
11:35 mooch: I think it has something to do with this: https://en.wikipedia.org/wiki/Display_Data_Channel
11:35 imirkin: mooch: so... just see what that bios code is expecting
11:35 imirkin: yeah, ddc is to interact with the monitor
11:36 imirkin: it's an i2c line
11:36 mooch: Good point
11:38 imirkin: mooch: check out xf86-video-nv. it sets DDCBase to 0x3e
11:38 imirkin: mooch: and then has a few writes to it, but never reads
11:38 mooch: hm
11:38 imirkin: oh wait. that's just how reading works.
11:38 imirkin: take a look at Riva_I2CGetBits and Riva_I2CPutBits
11:39 imirkin: enjoy :)
11:41 mooch: sda_mask and scl_mask...
11:41 mooch: i dunno what those do
11:41 imirkin: rtfs?
11:42 Tom^: karolherbst: anyhow im gonna go to bed if you need anything else tested just highlight or pm me and il do it after work tomorrow.
11:43 Tom^: karolherbst: im also gonna do a tiny victory dance to this https://www.youtube.com/watch?v=grnNKvd2SYI now that my 780ti runs at highest clocks on nouveau.
11:45 RSpliet: Tom^: https://www.youtube.com/watch?v=M1Yt3EQfsNQ
12:01 prg: if i wanted to do this mmt trace thing myself, i'd need to compile https://github.com/envytools/valgrind, right?
12:14 karolherbst: imirkin: ... it segfaulted
12:19 karolherbst: imirkin: when I run valgrind on the gdbed game, it works
12:19 imirkin: skeggsb: oh boy, someone's running kasan on nouveau. that'll be scary to look at :)
12:19 karolherbst: imirkin: what is kasan?
12:19 imirkin: kernel asan
12:19 karolherbst: iohh KernelAddressSanitizer
12:20 imirkin: skeggsb: interesting... nvc0_fbcon_imageblit's OUT_RINGp goes out of bounds? that seems... sad.
12:20 xexaxo: KASAN doesn't like nouveau :-(
12:20 imirkin: skeggsb: can these things be called from multiple threads?
12:21 imirkin: skeggsb: if so, all the RING_SPACE stuff is meaningless =/
12:23 imirkin: skeggsb: oh wait. the error is *reading* the data, not writing it to the ring.
12:23 imirkin: that's even sadder
12:25 imirkin: skeggsb: soft_cursor: s_pitch = (cursor->image.width + 7) >> 3;
12:26 imirkin: skeggsb: but nvc0_fbcon has:
12:26 imirkin: width = ALIGN(image->width, 32);
12:26 imirkin: dwords = (width * image->height) >> 5;
12:32 imirkin: skeggsb: ahahaha. trinity + nouveau. that's gonna work out great :)
12:38 imirkin: skeggsb: hm, i guess we might read too far by 3 bytes...
12:39 imirkin: that didn't seem to be the situation here though
12:42 imirkin: hakzsam: btw, if you're looking for other open issues -- https://bugs.freedesktop.org/show_bug.cgi?id=91247 -- no clue why it happens, but it affects both nv50 and nvc0.
12:43 imirkin: hakzsam: and also talos is pretty messed up with nouveau if you enable some of the fancier logic within. i spent a bunch of time staring at it but made no progress. there's a bug open about it somewhere.
13:32 hakzsam: imirkin, I'll have a look once I have fixed this edgeflag issue :)
13:43 karolherbst: mupuf: how should we handle the case, when we don't have any max/min voltages?
13:45 mupuf: what do you mean?
13:45 mupuf: no entries and no header?
13:45 mupuf: that means we have a fixed voltage
13:45 mupuf: fixed *unspecified* voltage
13:46 karolherbst: yeah, but we shouldn't fila in such cases too
13:46 karolherbst: *fail
13:46 karolherbst: mupuf: and when do we get a device without a bios?
13:47 mupuf: we shouldn't fail? That's the main case where we should fail
13:47 mupuf: no idea about the voltage = no reclocking, that's it :D
13:47 karolherbst: :D
13:47 karolherbst: okay
13:47 mupuf: devices without a vbios? Like the tegra?
13:47 karolherbst: ohhhh
13:47 karolherbst: k
13:59 karolherbst: mupuf: do you know anybody with tesla cards which had the same problem?
13:59 mupuf: seriously, do not focus on tesla
13:59 karolherbst: I guess it is no issue on tesla, because there weren't so many cstates for each card back then
13:59 mupuf: teslas are fucked up
13:59 karolherbst: thing is
13:59 karolherbst: I don't want to break stuff for teslas .d
13:59 karolherbst: :D
14:00 mupuf: ah, right
14:03 karolherbst: mupuf: does that look somehow cleaner? https://github.com/karolherbst/nouveau/commit/d17c8b6ba98a4d68c712253298fe5ced69a0f504
14:03 mupuf: give me a few minutes
14:03 karolherbst: ohh I should move the nvkm_debug call
14:07 koz_: karolherbst: I'm having some 3D issues...
14:08 koz_: I restored the old nouveau.ko file I had before, but now, my machine has *no* 3D at all.
14:08 karolherbst: koz_: I think the initramfs generation messed something up
14:08 koz_: karolherbst: So how can I fix it?
14:09 karolherbst: generate the initramfs the right way, but I never really done it
14:09 karolherbst: koz_: maybe reinstalling the kernel package helps
14:09 koz_: karolherbst: I tried reinstalling the kernel. Same deal.
14:09 karolherbst: this should trigger all kinds of stuff
14:10 karolherbst: koz_: are you using ARCH?
14:10 koz_: karolherbst: Yes.
14:10 karolherbst: koz_: then I would ask in an arch channel. I never encountered anybody here with this problem and this seems to be an arch issue afaik :/
14:10 karolherbst: koz_: does dmesg tell anything?
14:10 karolherbst: maybe there is a clue
14:10 koz_: karolherbst: Nothing out of the ordinary AFAIK.
14:11 koz_: AFAICT*
14:11 karolherbst: koz_: is nouveau loaded at all?
14:11 koz_: karolherbst: It is according to lsmod.
14:11 karolherbst: then maybe Xorg.log helps
14:11 koz_: I have normal display and everything - just *specifically* no 3D.
14:12 karolherbst: maybe then something else is messed up
14:12 koz_: Yeah, I just wish I knew what...
14:12 karolherbst: mhhh
14:12 karolherbst: try this: LIBGL_DEBUG=verbose glxgears
14:13 karolherbst: mupuf: do you know what? I really don't care if the respect the boost table ranges or not. As long as we keep the voltage and don't produce too much heat, we should be fine, shouldn't we?
14:13 karolherbst: *we
14:14 karolherbst: or the clock the pstates say it should use
14:14 mupuf: no, it is not acceptable
14:14 mupuf: we need to stay in the power budget
14:15 karolherbst: yeah of course
14:15 mupuf: but right now, our compiler is ... lacking :D
14:15 karolherbst: :D
14:15 karolherbst: mupuf: but the clock doesn't matter with power consumption, does it?
14:15 mupuf: the problem is that nvidia selected the clocks based on the worst case scenario
14:15 mupuf: so as they would not need a power sensor
14:17 karolherbst: mupuf: what is the worst that could happen if we go over the power budget?
14:18 mupuf: blow up the power sensor? Consume more power than what the system is supposed to handle?
14:18 mupuf: Like if someone selected a 200W PSU because the sum of all the TDP was 200W
14:18 karolherbst: I see
14:20 karolherbst: mupuf: and if the consumption gets too near to the budget, nouveau would have to lower the voltage?
14:30 mupuf: voltage + freq
14:31 karolherbst: mupuf: yeah okay, but we would lower the frreq anyway, because the voltage might be not high enough anymore
14:32 mupuf: yep
14:32 karolherbst: mhh
14:33 karolherbst: mupuf: okay, then my plan would be this: respect pstate max clock and voltage range for now, then add a boost parameter, so that the user can decide to go above the pstate clock bound. Later when we support keeping the budget, we could enable boosting by default on gpus with power sensors
14:37 mupuf: yeah, having an OC mode would be nice :)
14:37 karolherbst: mhhh
14:37 karolherbst: no, I didn't mean OC mode
14:37 karolherbst: :p
14:37 karolherbst: if I respect the pstate clock, I loose 52MHz compared to the blob
14:37 karolherbst: and I didn't OC with the blob
14:38 karolherbst: or is boosting also considered "OC"
14:39 RSpliet: I think those 52MHz are not going to make a gigantic difference in perf
14:39 RSpliet: </cpt-obvious>
14:39 karolherbst: :O
14:39 karolherbst: it is more than 5%!
14:39 karolherbst: RSpliet: 810MHz vs 862MHz
14:40 RSpliet: we're talking core clock? meh, as long as you saturate the memory bus you'll be fine
14:40 karolherbst: heh
14:40 karolherbst: I am mostly gpu core bound
14:40 RSpliet: otherwise, you'll probably be more effective implementing zculling, or proper insn scheduling... or minimising the number of registers we need to schedule more warps per SM :-D
14:40 karolherbst: :D
14:41 karolherbst: mhhhh
14:41 karolherbst: actually I worked on the latter on already
14:41 karolherbst: ....
14:41 karolherbst: but I gave up in the end, because I multiplied reg usage
14:41 karolherbst: and only got a 5% perf git
14:42 RSpliet: nobody said it'd be easy :-D
14:42 karolherbst: I know
14:42 karolherbst: I spend days with that
14:42 RSpliet: meh, only days :-P
14:55 karolherbst: mupuf: are the clocks in the cstate multiplied by 2?
14:56 karolherbst: because in the pstate table I got "shader freq = 810 MHz"
14:56 karolherbst: but the memory clock is also lower there, mhh
14:59 mupuf: I doubt they would be
14:59 karolherbst: mupuf: but it seems like it
14:59 mupuf: you know what I am going to say!
14:59 mupuf: CHECK IT :D
14:59 mupuf: it is easy enough to check
14:59 karolherbst: 36: freq 1725 MHz unkn[0] 0 unkn[1] 1 voltage 47
14:59 karolherbst: nouveau says 862MHz
15:00 karolherbst: for this
15:00 karolherbst: nvbios says 1725
15:00 karolherbst: also the struct has 1725
15:18 karolherbst: mupuf: the clocks in the PM_Mode tabel are starting to make less sense to me :/
15:19 mupuf: hmm
15:24 karolherbst: mhhh, why can't I fake my vbios :/ this is annyoing
15:35 karolherbst: mehhh
15:35 karolherbst: mupuf: even nouveau doesn't pick up my new vbios
15:35 karolherbst: mupuf: I just set the voltage entry to 47 for all my cstate
15:35 karolherbst: and still nothing changes
15:35 mupuf: hmm. check with the vbios dump
15:36 mupuf: err, vbios debug option
15:37 karolherbst: mupuf: I get the stock one
15:37 karolherbst: is the vbios cached somewhere?
15:37 karolherbst: because nouveau doesn't seem to read it
15:38 mupuf: well, it is weird that it reads it from prom if it is available in RAMIN
15:39 karolherbst: mhh wait a second
15:39 karolherbst: this is dmesg: https://gist.github.com/karolherbst/ff6f26f786b2dd287c70
15:40 karolherbst: but after removing and loading nouveau agian
15:40 karolherbst: I don't get those lines anymore
15:43 mupuf: :p
15:43 karolherbst: heh
15:43 karolherbst: nvafakebios crashed my kernel
15:44 karolherbst: okay, trying to upload vbios before loading nouveau the first time
15:48 karolherbst: mupuf: no clue what it is, but if I try to nvafakebios after I turned on my gpu, my system is just frozen
15:48 karolherbst: frozen as in there is no kernel crash
15:48 karolherbst: but nothing reacts to anything
15:48 karolherbst: maybe there is a crash, but pstore doesn't seem to save it
15:50 mupuf: hmm
15:50 mupuf: well, time for me to lsepe
15:50 mupuf: hmm, I guess my point is made, I cannot write sleep, so I must be tired :D
15:50 karolherbst: yeah, I have to go too :D
15:50 karolherbst: :D
15:50 karolherbst: wait
15:50 karolherbst: you can!
15:50 karolherbst: you just showed it