10:17 pmoreau: karolherbst: I’m hoping to go to FOSDEM.
10:18 karolherbst: "hoping" is not good enough
10:18 karolherbst: :P
10:18 pmoreau: :-D
10:18 pmoreau: I haven’t checked with my supervisor, but it should be good. Unless I have some teaching to do, which I need to check first.
10:27 karolherbst: do it today then :p
10:28 karolherbst: (I haven't checked as well, but... I am sure I am not the only one here going there and I just assume it will be fine)
10:29 karolherbst: just a matter of if I need to take PTO days or not :O, well I'll ask
11:46 RSpliet: I'm not sure if I'm still welcome in Brussles, flying/training in from Britain
11:47 karolherbst: RSpliet: you got it wrong: everybody (except those anti-EU politicians) is welcomed. And even if it means that in the near future only 10k people will live in the UK
11:48 karolherbst: flee while you still can!
11:48 RSpliet: Heh... think you'll start spelling England with the T from "tax haven" soon
11:49 karolherbst: oh well, but jokes aside, there won't be a brexit anyhow... just wait a little and then everything will be soon over
11:49 RSpliet: Hah
11:49 karolherbst: I am not joking
11:49 RSpliet: 'd love to see that happen, but with the political climate here wouldn't hold my breath for it
11:50 karolherbst: ;) well didn't get it better after the last vote? Or did I somehow missunderstood something
11:50 karolherbst: currently they are in full "not face loosing
11:50 karolherbst: " mode
11:51 RSpliet: Ehh yeah, to their own population, not so much to the rest of the world
11:51 RSpliet: the face of BoJo is one they'd rather lose more than anything (I hope)
11:51 karolherbst: :D
11:52 karolherbst: I was already joking about the non-brexit prior the vote, not joking anymore after that :p
14:29 MichaelP: arch linux xf86-video-nouveau system freezes only mouse works. Go back to nvidia driver everything runs normal. What could be causing this ?
14:31 imirkin: a bug in nouveau somewhere, most likely
14:33 MichaelP: imirkin: if that the problem... looking on google i see samething since 2015
14:33 imirkin: hehe
14:33 imirkin: what did you search for, "random freezes with nouveau"?
14:34 MichaelP: arch linux nouveau freezes
14:34 imirkin: lol
14:34 imirkin: something must be wrong with google
14:34 imirkin: if it's only back to 2015
14:34 imirkin: more like since the dawn of time
14:35 MichaelP: i see one that says Firefox + nouveau on fresh -current install freezes system 2013
14:35 imirkin: i can't tell if you're being serious or not, but you do realize that it's not like *1* bug that causes freezes, right?
14:36 MichaelP: It's mainly when running google chrome
14:37 imirkin: if you're looking for a stable experience, you're going to be best off using nvidia blob drivers, or getting an AMD gpu if you're interested in supporting open-source.
14:39 MichaelP: laptop has amd in it.... desktop i have nvidia gforce gt 730
14:40 imirkin: well, that's basically the gpu i have plugged in right now
14:40 imirkin: 02:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK208 [GeForce GT 730] [10de:1287] (rev a1)
14:40 MichaelP: the 730
14:40 imirkin: no problems with crashes/etc
14:40 imirkin: but i also don't do crazy things
14:41 imirkin: like touching gnome/kde, compositors, etc
14:41 imirkin: i do use chrome, which is a little crazy, but it's hard to avoid *all* the insanity in one's life
14:42 MichaelP: I don't do crazy things either... music video's vlc mpv.... internet browseing google-chrome-beta... google chrome is when things freeze
14:44 MichaelP: What distro you running ?
14:46 imirkin: gentoo, but that's unlikely to matter
14:49 MichaelP: I think sometimes a distro does... Like last few installs of opensuse tumbleweed the last few weeks. Install bvidia reboot to black screen....
14:49 MichaelP: opps nvidia not bvidia
14:56 kherbst: the .... I found that silly mmiotrace bug with 0x200 big mappings
14:56 kherbst: the hell
15:01 karolherbst: like you call ioremap(resource, size) and get something like 0xffffb01dc1b11200 back, but because that all makes sense, but then we get a page aligned address into mmiotrace_iounmap, which is 0xffffb01dc1b11000
15:06 karolherbst: well, I should just page allign on register and unregister.... this should make our life much much easier
15:14 karolherbst: nice, fixed
15:15 karolherbst: https://gist.github.com/karolherbst/af16ba31d7cb7eee8b44c1614367770b
15:16 karolherbst: allthough not super sure if we can indeed get several arms on the same page with mappings smaller than pages but meh
15:16 karolherbst: skeggsb: try this instead of your hacky nvidia patch
15:16 karolherbst: only the register_kmmio_probe and unregister_kmmio_probe part should be important
15:27 tagr: skeggsb: do you happen to have a public kernel tree with the patches for v4.15-rc1? I'm trying to track down what exactly is causing the regressions on Tegra but the non-linearity of linux-next makes that somewhat difficult
15:28 karolherbst: tagr: you can use the out of tree module
15:28 imirkin_: tagr: https://github.com/skeggsb/linux/commits/linux-4.15
15:28 karolherbst: tagr: https://github.com/karolherbst/nouveau/commits/master_4.14
15:28 karolherbst: or that
15:28 imirkin_: but if it's in nouveau only, the out-of-tree thing may be faster
15:29 karolherbst: out of tree is sometimes painful because you need to use the exact drm-next thing and stuff like that
15:29 karolherbst: but I usually rebase those things
15:29 tagr: I don't exactly know where it's coming from, I've been getting many false positives and a couple of different symptoms, so I'm just trying to narrow things down at this point
15:30 karolherbst: tagr: that's normal...
15:30 karolherbst: I don't like to bistect linus tree as well
15:31 tagr: I haven't run into many issues with linus' tree, but I've found linux-next to be a major pain unless you end up getting lucky
15:31 imirkin_: linux-next isn't meant to be bisected
15:32 tagr: often a plain bisect will jump between different merge bases and then you'll sometimes end up on -rc1, other times on -rc7...
15:32 imirkin_: it's pretty funny when peopel try to base patches on it
15:32 karolherbst: I don't think any of those kernel trees are actually meant to be bisected....
15:32 karolherbst: at least I think if they would be, linux wouldn't allow such a merging pain
15:32 karolherbst: or somebody else
15:32 karolherbst: and yes, the pain is merging indeed
15:33 karolherbst: with every merge you do
15:33 tagr: well, depending on your area of interest it's difficult to bisect anything other than linux-next
15:33 karolherbst: best part is, where you bisect the 4.14 rc kernel and end up in 4.12-rc* for some reason
15:33 imirkin_: yes, embedded development does suck
15:34 karolherbst: bisecting linux even sucks on a non embedded system and not just linux-next
15:34 imirkin_: [blame the hw engineers who can't stick to a single thing and improve it rather than redoing everything from scratch every time]
15:34 tagr: for Tegra we've had regressions in the strangest of places, sometimes causing no output from a device to appear at all, so a bisect on linux-next will often give you at least a rough idea of where to start looking
15:34 tagr: hehe =)
15:35 karolherbst: imirkin_: throw more hw engineers at the problem
15:35 imirkin_: (and of course the hw engineers blame the sw people for not being able to keep up)
15:35 karolherbst: allthough I sincerly believe the world needs less hw engineers rather than more....
15:37 imirkin_: it's a bit frightening how little i know about the hw development process
15:39 karolherbst: well, it isn't that much different than sw development I think, at least for the small stuff...
15:40 karolherbst: it isn't like they draw everything by hand still
15:40 imirkin_: i can imagine what it might be
15:40 imirkin_: but i have no idea what it actually is.
15:40 karolherbst: switch jobs and find out
15:40 imirkin_: ;)
15:40 imirkin_: "Looking for a job: guy who knows nothing about the field."
15:40 imirkin_: (perhaps i should switch to marketing?)
15:41 karolherbst: you just tell them you worked a lot with nvidia hw
15:41 karolherbst: should be enough
15:41 tagr: having more SW engineers switch into a HW engineering position might actually be a good thing
15:41 karolherbst: you don't have to strictly tell them you never done hw engineering
15:41 karolherbst: just tell them what you do know
15:42 karolherbst: imirkin_: maybe we should just start to produce our own GPUs, which are compatible with the Nouveau driver :D
15:43 tagr: imirkin_, karolherbst: thanks for the pointers, exactly what I was looking for
15:43 karolherbst: and those are completly blob free and the vbios is provided as a source file as well
15:43 imirkin_: [this took too long to look up, but, check the top quote from dave barry at http://allthetropes.wikia.com/wiki/Adjacent_to_This_Complete_Breakfast]
15:43 imirkin_: in re me saying that i worked with nvidia hw.
15:44 karolherbst: ;)
15:45 karolherbst: does any HR person care?
15:45 karolherbst: well some do
15:45 karolherbst: but you know
15:48 tagr: ugh... looks like we have at least two separate regressions, one of them I can't see on skeggsb's tree
15:49 imirkin_: you don't give him enough credit
15:49 imirkin_: he's _really_ good...
15:50 tagr: sorry if it came across like that, I didn't want to be criticizing his work at all
15:51 imirkin_:was being facetious
15:51 imirkin_: as if the ability to secretly cause regressions in other people's code was a positive thing
15:51 imirkin_: obviously i failed.
15:51 tagr: or I did
15:51 imirkin_: let's just compromise - we *both* failed
15:52 tagr: I can live with that =)
15:52 imirkin_: hehe
16:04 kherbst: imirkin_: ... I was like thinking: I get me a laptop for work with a pascal GPU to debug all those fancy MST dock features and stuff like that. Guess what is the problem here?
16:06 karolherbst: I don't know why, but for some reasons all the laptops I picked, had all their connectors wired to the intel gpu
16:08 tagr: karolherbst: I guess it makes sense, though, most of the point of Optimus is to have the Intel GPU display everything and only power up the NVIDIA one for rendering, right?
16:08 karolherbst: tagr: most laptops use the dedicated GPU for this
16:08 karolherbst: like most
16:08 karolherbst: well the intel can't handle 2x 4K screens under linux as it seems
16:09 karolherbst: so it kind of makes sense?
16:09 tagr: heh, yeah, that's not so useful
16:10 tagr: karolherbst: no way of muxing the the connectors either?
16:10 karolherbst: maybe
16:11 karolherbst: but I think only apple uses hw muxes
16:12 pmoreau: Didn’t even Apple dropped hw muxes in favour of sw muxes some time ago?
16:12 karolherbst: did they?
16:14 pmoreau: I’m not sure. I thought they did, but Lekensteyn might remember better than I do.
16:15 tobijk: karolherbst: "acer aspire vn7-593g" has wired shit to the nvidia gpu
16:15 karolherbst: tobijk: it is easer to llist which laptop doesn't
16:15 karolherbst: I know two laptops now
16:16 tobijk: karolherbst: so in this generations they all started wiring up the nvidia gpu again? ~_~
16:17 Lekensteyn: pmoreau: Lukas Wunner knows more about Apple hw than I do
16:19 pmoreau: Lekensteyn: Doesn’t mean you know nothing about it ;-) He doesn’t seem to be logged in, therefore I didn’t tag him.
16:24 Lekensteyn: if by "harware mux" you mean a phsyical switch, then I don't know of any modern laptops that have them
16:24 Lekensteyn: hardware mux*
16:24 karolherbst: Lekensteyn: of course not
16:24 karolherbst: but I am quite sure they still have a mux builtin they can control through software
16:25 Lekensteyn: heh, my reply was too disappointing to karol :p
16:25 pmoreau: :-D
16:26 Lekensteyn: thinking about it, yes it was a stupid answer
16:26 Lekensteyn: my laptop from 2 (?) years ago has a hardware mux
16:27 Lekensteyn: it is in the schematics and has a firmware setup option to switch between hybrid/discrete mode
16:28 Lekensteyn: but on the other hand, I was surprised to see that a Dell XPS 9560 has its external outputs wired to the intel GPU, didn't know they were still doing this
16:29 pmoreau: how does a software mux work: do you move the frame to the CPU and then upload it to the other GPU? That would be super slow and inefficient, wouldn’t it?
16:31 kherbst: Lekensteyn: well, that's the exact laptop I have :D
16:33 Lekensteyn: karolherbst: and so do my siblings, that's how I learned about it :)
16:33 karolherbst: ;)
16:33 karolherbst: well there aren't many where it is wired to the intel one
16:33 Lekensteyn: pmoreau: that's basically what PRIME is doing, nvidia is used as rendering device and intel as display
16:36 pmoreau: Lekensteyn: OK, thanks
16:37 karolherbst: mhhhh something is super odd
16:37 karolherbst: I get all the mappings into the mmiotrace log file, but no memory accesses
16:39 karolherbst: uhhh. it uses a 1G page
17:16 imirkin_: karolherbst: sometimes the dock connectors go to the dGPU
17:16 imirkin_: but yeah, not always
17:28 karolherbst: so, it should kind of work now: https://github.com/karolherbst/linux/commits/mmiotrace_fix
17:28 karolherbst: there seems to be still an issue while iounmapping everything "mmiotrace: purging non-iounmapped trace", but at least the machine doesn't crash
17:29 karolherbst: still, other vmm issues, but that's no big issue right now
17:29 karolherbst: skeggsb: ^
17:30 karolherbst: and that's not even mmiotrace fault really... but the mm subsytem giving different pointers into mmiotrace for ioremap and iounmap
17:30 karolherbst: no wonder I never found the issue until I looked at the code surounding it
20:22 pmoreau: Yes, figured out how to enable the OpenCL extensions.
20:22 pmoreau: :-)
20:24 imirkin_: fuck, forgot to look at your spirv stuff over the weekend
20:27 pmoreau: Don’t worry: it might be better not to look at the code too closely. :-D
20:29 tobijk: imirkin_: second thought about the patches you created lately? :D
20:29 pmoreau: I really need to solve the liveSet computation, to be able to use loops.
20:33 imirkin_: tobijk: i was playing with a4xx on freedreno
20:33 imirkin_: i.e. no
20:33 imirkin_: oh, does one of you guys have a fermi handy?
20:35 pmoreau: I should be able to find one rather quickly and plug it in.
20:36 imirkin_: https://people.freedesktop.org/~imirkin/patches/0001-modetest-add-C8-support-to-generate-SMPTE-pattern.patch
20:36 imirkin_: build modetest with that and then test the C8 thing and see if you get a white screen or not
20:36 imirkin_: (not = you get the SMPTE pattern)
20:36 imirkin_: note that i'm looking for pre-GF119
20:36 imirkin_: it fails on G92
20:36 pmoreau: I should have a GF100
20:36 imirkin_: (and, presumably based on the bug, MCP79)
20:37 pmoreau: I could try that on my MCP79
20:37 pmoreau: (as well)
20:37 imirkin_: but it works on GK208
20:37 pmoreau: And I should have a G92 somewhere
20:37 imirkin_: no need to test on G92 - i already have ;)
20:37 pmoreau: Ah :-)
20:40 tobijk: imirkin_: only does it have to be a fermi? i have an old tesla around
20:41 imirkin_: tobijk: because i've confirmed it's broken on tesla
20:42 imirkin_: same code is used for G84:GF119
20:42 imirkin_: stands to reason that fermi will have the same issues
20:42 imirkin_: i was just hoping someone could confirm
20:42 tobijk: allright
20:43 pmoreau: GF100 plugged in, going to give the patch a try
20:44 imirkin_: pmoreau: thanks! just buidl modetest and then run like ... modetest -s DVI-I-1:1920x1200@C8 or something
20:45 imirkin_: from the console
20:45 imirkin_: hit enter to exit, it will kill the current console, but just flipping back and forth between vt's should get it back
20:45 imirkin_: you should see a SMPTE test pattern
20:45 pmoreau: Without X running I guess?
20:45 imirkin_: https://www.reelmarketer.com/wordpress/wp-content/uploads/2012/08/RM_snip_SMPTE_color_bars_pattern.jpg
20:45 imirkin_: doesn't matter - just run it from a vt
20:45 imirkin_: X will drop master
20:46 pmoreau: And where do I get modetest from?
20:46 imirkin_: libdrm/tests
20:46 pmoreau: OK, thanks
20:46 imirkin_: [which is what the patch applies to]
20:50 imirkin_: karolherbst: have you ever used the userspace out-of-tree stuff to play with modesetting?
20:50 imirkin_: i assume it doesn't work if the code i want to test is in nv50_display.c
20:52 pmoreau: imirkin_: How do you force it to open nouveau rather than i915? The screen is connected to the NVIDIA card, but it still is opening the Intel device :-/
20:52 imirkin_: -D PCI:1:0:0
20:53 pmoreau: thanks
20:53 karolherbst: imirkin_: I can't, literally... except the uefi allows me to switch my main GPU
20:54 imirkin_: karolherbst: k
20:54 karolherbst: have to wait until my desktop arrives
20:54 pmoreau: imirkin_: I get a white screen
20:54 imirkin_: pmoreau: ok, that's what i get too
20:54 imirkin_: thanks for confirming!
20:54 pmoreau: You’re welcome :-)
20:54 imirkin_: [and GF119 and later should all work fine]
20:55 imirkin_: [and i need to double-check what the deal with dispnv04 is]
20:55 karolherbst: what are you testing?
20:55 karolherbst: C8 format?
20:55 karolherbst: (whatever that is)
20:56 imirkin_: C8 - indexed 256-color palette
20:56 karolherbst: ahhh
20:56 pmoreau: (Going to try on the GM206)
20:57 pmoreau: (since it is already plugged in)
21:03 pmoreau: (I get the SMPTE pattern on GM206)
21:03 imirkin_: cool
21:03 imirkin_: not surprising.
21:03 imirkin_: but still nice.
23:26 imirkin_: skeggsb: so ... any good ideas for why G84:GF119 C8 broke? looks like we used to set lores for that before.
23:26 imirkin_: (airlied / karolherbst -- know if he's still on vacation?)
23:28 karolherbst: imirkin_: yeah
23:28 karolherbst: until next week
23:28 imirkin_: k
23:28 imirkin_: karolherbst: and are you doing nouveau stuff for work now? or still just for fun?
23:33 karolherbst: imirkin_: 100%
23:33 karolherbst: imirkin_: but not all graphics
23:34 karolherbst: currently more like fixing pascal issues now
23:34 imirkin_: k
23:34 karolherbst: on my laptop runpm doesn't work and starting the gr falcons neither
23:34 imirkin_: yeah - a lot of people have that problem
23:35 karolherbst: well I should focus more on compute stuff when I come to it and skeggsb should stay with graphics, that's roughly the idea
23:35 karolherbst: imirkin_: well, loading nvidia first and then nouveau works
23:35 karolherbst: but I think you already know
23:35 imirkin_: i wonder which RH customer gives a shit
23:35 imirkin_: (not that i'm opposed ...)
23:35 karolherbst: can't tell you :p
23:36 imirkin_: doesn't stop me from wondering!
23:36 karolherbst: to be honest, I would really _love_ to tell you, because the story is quite funny actually. Maybe at some point you will know :p
23:36 imirkin_: my best guess is "nvidia"