01:22 pmoreau: imirkin: Nice! Do you have some links on how to setup the environment for it? I'll try to run it frequently on my laptop, until the desktop computer is setup.
03:28 ilios: Is there any initialization process needed for updating GPU PGRAPH mmio?
03:29 ilios: I'm trying to flush instruction cache using MMIO. I have found two flush-related MMIO from rnndb/graph/gf100_pgraph folder.
03:29 ilios: But it seems that instruction cache flushing doesn't work.
03:30 ilios: I have overwritten flush-related MMIO bit using nva_wr32 function from envytools.
03:31 ilios: I have no idea why it doesn't work. Is there any suggestion for me?
03:33 ilios: I'm working on GTX480 (GF100).
03:34 ilios: I have tried to trigger 4 registers through MMIO.
03:35 ilios: 1. (FLUSH_TRIGGER) 0x419000 = 0x400000 + 0x18000 + 0x1000 = PGRAPH offset + GPC_BROADCAST offset + CCACHE offset
03:36 ilios: 2. (CODE_FLUSH_TRIGGER, CBUF_FLUSH_TRIGGER) 0x419EA4 = 0x400000 + 0x18000 + 0x1800+0x600+0xa4= PGRAPH offset + GPC_BROADCAST offset + TPC_ALL offset + MP offset + CCACHE_CTRL offset
03:36 ilios: and so on..
08:33 karolherbst: I will boot my windows partition today, anybody want me to check anything there?
08:34 karolherbst: mupuf_: I will maybe take a look into reading out the voltage :) have to install some userspace tools first, but maybe we are lucky
08:35 mupuf_: how could we be lucky? :s
08:35 mupuf_: I tried a lot of ways of getting the power reading out of the blon
08:35 mupuf_: and I failed miserably
08:35 karolherbst: nah, I meant we know where the pwm stuff is
08:35 karolherbst: and maybe there is a working tool displaying the gpu voltage
08:35 mupuf_: oh, sorry, voltage!
08:35 karolherbst: yes
08:35 mupuf_: yes, definitely!
08:35 karolherbst: and maybe we get a stable pwm -> voltage function
08:36 mupuf_: wait, you think the pwm->voltage function is wrong?
08:36 mupuf_: I highly doubt it
08:36 karolherbst: don't know
08:36 karolherbst: currently I write your value +5 into it
08:36 karolherbst: otherwise it isn't stable enough
08:36 mupuf_: the voltage mapping table is misunderstoof
08:37 karolherbst: yeah I know
08:37 mupuf_: and min/max values are ... we have no fucking idea what they are
08:37 karolherbst: the value is lower than the blob ones anyway
08:37 karolherbst: yeah, I will try to play around onw indows a bit
08:37 karolherbst: some OC tools or whatever
08:37 mupuf_: and the names are likely wrong too
08:37 mupuf_: right, you are lucky that hakzsam ported envytools to windows!
08:38 karolherbst: nice :(
08:38 karolherbst: :)
08:38 karolherbst: mingw or msvc?
08:38 karolherbst: please don't say cygwin D:
08:38 karolherbst: :D
08:39 karolherbst: mupuf_: anyway I could verify your stuff at least
08:40 karolherbst: but first I need to cook while windows is doing its stuff, maybe I can also eat before touching it :D
08:41 mupuf_: karolherbst: pretty sure he used cygwin, but as long as you recompile libpciaccess, you are good to go
08:41 karolherbst: mhh cygwin :/
08:41 mupuf_: there are no binary packages anyway
08:41 mupuf_: so, use whatever you want
08:42 karolherbst: yeha well, cygwin is POSIX emulation
08:42 mupuf_: hopefully, there are no ifdef cygwin
08:42 karolherbst: mingw is targeting WIN32, these are two different things
08:42 mupuf_: I doubt that you can do away with cygwin though, because some tools depend on fork and other posix stuff that windows lacks
08:43 karolherbst: I think under cygwin __unix__ is also defined or something
08:44 karolherbst: mupuf_: well there are other APIs in WIN32 for that, sure
08:45 mupuf_: anyway, just fucking install cygwin :D It is self-contained anyway
08:45 karolherbst: I think I already have it installed :D
08:46 karolherbst: cygwin just comes with inherent problems like messing up the filesystem under special circumstances :/
08:55 mupuf_: ...
09:06 hakzsam: mupuf_, envytools worked fine with cygwin but I didn't check since a long time :)
09:12 xexaxo: <grammar nazi> since [reference point in the past], for [period of time] </grammar nazi>
09:37 hakzsam:doesn't know why he did this bad mistake because he knows that grammar rule....
09:40 RSpliet: well, since it was not a published piece of work, I don't think there's anything you should feel embarrassed for
09:40 RSpliet: (those words are about as diverse in meaning as "fuck" :-D )
10:06 mupuf_: ah ah
11:02 imirkin_: pmoreau: it's not *quite* ready to be used yet, i guess. i'm going to try to get it all squared away this weekend.
11:03 pmoreau: Ack :-)
11:03 imirkin_: pmoreau: but in principle it works!
11:04 pmoreau: That's really nice! And a good first step!
11:05 joujoumen: hello, is there a way to get IB_GET and IB_PUT i.e read and write pointers of ring buffer for specific hw contexts , maybe after some id?
11:35 joujoumen: static int nouveau_graph_chid_from_grctx(struct drm_device *dev)
12:09 Wildefyr: hey I tried asking this question on #nvidia but got no response: I've complied my kernel and the nvidia blob, and the nvidia blobs are under /lib/modules/$kernelversion but, when grub exits, the machine boots without issue, but the display is stuck on the last screen grub displayed: what am I missing?
12:10 imirkin_: Wildefyr: this channel is about the open-source driver. #nvidia is the right place for your question. or their support forums.
12:10 Wildefyr: .
12:10 Wildefyr: .
12:10 pmoreau: Wildefyr: Did you forget to blacklist Nouveau?
12:10 Wildefyr: no shit, but people here have been helpful before
12:11 Wildefyr: no, the nouveau driver isn't compiled for that kernel I am booting into
12:13 pmoreau: Well, dunno then. I haven't been compiling the blob for a couple of years now.
12:13 towo`: Wildefyr, i have nit seen any question from you in #nvidia
12:13 towo`: s/nit/not
12:13 Wildefyr: I asked it early in the morning towo`
12:14 Wildefyr: admittedly no one hardcore idles anymore it seems
12:14 pmoreau: Hm, maybe one more thing: did you pick the correct version for your card? For Tesla you need 340.xx for example, as later version drop support for it
12:15 Wildefyr: yeah I've got a 970, using the latest that isn't the beta
15:22 imirkin_: 1355: message: shader compiler issue 1: type: 1, local: 0, inst: 229, bytes: 2096
15:23 imirkin_: nice. that should be good enough for shader-db
15:23 pmoreau: Hopefully, only a 0x10000 offset to take care of, and… maybe it will run
15:24 imirkin_: ?
15:26 pmoreau: The kernel is trying to run at +0x10000 from the location where it should, triggering a PAGE_FAULT and cuda write error
15:26 pmoreau: s/run/write
15:27 imirkin_: oops :)
15:27 pmoreau: So, maybe if I solve that, it could work
15:27 pmoreau: Maybe…
15:27 pmoreau: Or maybe not! :D
15:48 pmoreau: \o/
15:48 pmoreau: pi = 3.141590
15:49 pmoreau: Ok, well, I had to hack a bit around, but… :-) :-) :-)
15:49 imirkin_: pmoreau: file a patent!
15:49 pmoreau:is happy!
15:49 pmoreau: :D
15:49 imirkin_: pi is exactly three!
15:49 pmoreau: O.O
15:50 pmoreau: Noooooooooooooo… so many lied told… :-(
15:50 imirkin_: pmoreau: https://www.youtube.com/watch?v=V98soOyQWKY
15:51 pmoreau: So, there is something fishy: g[0] already points to the good position, and adding the pointer to the global buffer only shifts it away…
15:52 pmoreau: Cool video! :-D
16:09 pmoreau: Ok, the 0x10 offset is needed when accessing s[]
16:10 pmoreau: So reading input parameters from shared does work
16:11 pmoreau: i need to change the pointer returned to access global, to be relative to something, rather than absolute
16:34 pmoreau: So the pointer is the offset between the vspace_map and the address of global, which makes sense
16:54 mooch: Hey guys. I'm back.
16:55 mooch: I've got more features in my RIVA 128 emulation.
16:55 mooch: However, the drivers for win9x still fail their sanity checks.
16:55 mooch: It seems to have something to do with the real mode access mechanism
16:55 mooch: Same thing goes for the RIVA TNT.
16:55 mooch: So, I once again need help
16:56 mooch: I am willing to provide the code for my emulation
16:57 mooch: https://github.com/OBattler/PCem-X/blob/master/PCem/vid_nv_riva128.c
16:57 mooch: Of course, this is slightly modified for RIVA TNT emulation, but still.
17:04 RSpliet: mooch: I'm afraid you'd have to come with more specific questions than this
17:04 RSpliet: nouveau is already understaffed, you might have trouble finding interested individuals for this ;-)
17:04 mooch: Well, I would just like to know what might be wrong with my RMA emulation.
17:04 mooch: Well, I do eventually plan to use your drivers as a testcase. ;)
17:05 RSpliet: if there was something "just" wrong, I take it you already found it :-P
17:05 RSpliet: oh, you might be a bit disappointed to hear the Riva 128 is not supported by nouveau then...
17:05 mooch: I know.
17:05 mooch: The Riva TNT is tho.
17:05 mooch: And I emulate that too!
17:05 RSpliet: good
17:08 RSpliet: (sorry, it's an interesting project! I'm not the best man to help you out though. just warning you might not get a response any time soon)
18:16 sarnex: hi i am looking to buy a cheap nouveau-supported gpu for gallium nine. does anyone have any recommendations?
18:17 imirkin_: for the purpose of testing, or the purpose of playing?
18:17 sarnex: just testing
18:18 imirkin_: just get the cheapest gpu available then
18:18 imirkin_: note that nv50 and nvc0 are separate drivers
18:18 imirkin_: nvc0 is fermi+, i.e. geforce 400+
18:18 sarnex: so most people use nvc0 then?
18:18 imirkin_: feel free to ask here if you want to double-check
18:18 sarnex: i mean compared to nv50
18:19 imirkin_: most people use whatever driver happens to be the right one for their hw ;)
18:19 sarnex: lol i mean do most nouveau users have nvc0
18:19 imirkin_: i wouldn't be surprised if there were more tesla users now that nvidia has dropped support for it in their latest drivers
18:19 imirkin_: tbh i'm not aware of any usage stats, sorry
18:20 sarnex: ok i guess ill sort by lowest price for fermi+
18:20 imirkin_: ebay is probably your best bet if you want cheap
18:20 sarnex: yeah
18:22 imirkin_: e.g. http://www.ebay.com/itm/EVGA-GeForce-GT430-1-GB-GDDR3-VIDEO-GRAPHICS-CARD-01G-P3-1430-LR-/151866415052
18:22 imirkin_: that's not much cheaper than what you'd get on newegg though
18:23 imirkin_: e.g. http://www.newegg.com/Product/Product.aspx?Item=N82E16814127829
18:24 sarnex: wow that newegg one is newer and cheaper
18:24 imirkin_: or http://www.newegg.com/Product/Product.aspx?Item=N82E16814133457
18:24 imirkin_: nah, it's the same
18:24 imirkin_: those are all GF108's
18:24 imirkin_: the number is higher, but it's the same card
18:24 imirkin_: ;)
18:24 sarnex: oh amd does that now too
18:24 imirkin_: there's no reclocking on fermi either
18:24 imirkin_: so you'll be stuck with a pretty slow gpu
18:25 sarnex: does that only effect speed
18:25 imirkin_: yeah
18:25 sarnex: would i need to shell out the big bucks for reclocking
18:25 imirkin_: if you're willing to splurge, might get something like http://www.newegg.com/Product/Product.aspx?Item=N82E16814500381
18:26 imirkin_: which is a GK208... should be able to clock up
18:26 imirkin_: not going to break any speed barriers, but def a lot faster than the stupid GF108 without reclocking
18:26 gryffus: yeah, with GF 440 i can get reclocking status from /sys/class/drm/card0/device/pstate , but i can't set it, only get...
18:27 sarnex: that's because nvidia doesnt contribute to linux so you have to literally RE it right
18:27 sarnex: or is it just nobody worked on it
18:27 imirkin_: it requires RE
18:27 imirkin_: roy's looking at fermi
18:27 imirkin_: but it's still a ways away, i wouldn't hold my breath
18:28 sarnex: yeah ill buy http://www.newegg.com/Product/Product.aspx?Item=N82E16814500381
18:29 imirkin_: fanless too :)
18:29 sarnex: yeah i have another garbage r600 card for testing
18:29 sarnex: so with this ill have 3 gpus in my system
18:30 imirkin_: it's an x8 card too... dunno if it's an x8 connector, but it only does 8 lanes
18:30 sarnex: it shouldnt hit the bandwidth i dont think
18:30 sarnex: bandwidth limit i mean
18:30 sarnex: i think only x4 and x1 you see drops
18:31 sarnex: maybe with new expensive cards you do
18:38 sarnex: ok i bought it, im in the club now
18:38 sarnex: thanks imirkin_
18:40 imirkin_: np. hope it's not a *total* waste of $50
18:49 imirkin_: sarnex: did i break something recently?
18:50 sarnex: dont think so, we just get users who have issues i cant reproduce
18:50 imirkin_: (or long ago :) )
18:50 imirkin_: ah
18:50 sarnex: i card r600 and radeonsi cards, and ilo laptop
18:50 sarnex: so with this card i can test everything
18:50 imirkin_: well, each gen might have diff bugs
18:51 imirkin_: but this should at least get you closer
18:51 sarnex: yeah
18:58 sarnex: imirkin_: prime should work with that card right
18:58 imirkin_: yep
18:58 imirkin_: i'm using it in fact :)
18:58 sarnex: ok excellent
18:58 imirkin_: intel/hsw as main screen
18:59 sarnex: another stupid question, i am on gentoo so i configure my own kernel, do i need to set any specific options for nvidia cards
19:00 imirkin_: you need nouveau
19:00 imirkin_: nothing more
19:00 imirkin_: if you want reclocking, add pstate=1 to your module options
19:00 sarnex: ok cool
19:00 imirkin_: (e.g. boot with nouveau.pstate=1 or add the equivalent to your modprobe.conf)
19:00 sarnex: does that make it run at 100 clock rate for 2d too? or only when 3d starts
19:01 imirkin_: add nouveau to your VIDEO_CARDS in make.conf
19:01 sarnex: yep im building the nouveau flag packages now
19:01 imirkin_: nothing particularly crazy
19:01 sarnex: ok
19:01 sarnex: im at college so i guess i dont have to care about energy
19:01 imirkin_: :)
19:02 imirkin_: bbl
19:02 sarnex: cya
19:05 pmoreau: Yeah! add.cl is passing as well
19:16 pmoreau: div.cl and mod.cl are also working
19:17 pmoreau: mul.cl segfaults while generating the prog / optimising, but debugging that will wait for tomorrow
19:25 imirkin: pmoreau: cool. now you need the if :)
19:25 pmoreau: imirkin: :p
19:25 pmoreau: But true
19:26 pmoreau: I think I'll take care of threads/blocks id before the if
19:27 pmoreau: I guess that should be using system values, right?
19:28 imirkin: probably
19:28 imirkin: or driver consts
19:29 pmoreau: I'll check what the blob does
19:31 imirkin: at the nv50 ir level, probably sysvals
19:31 imirkin: but might have to get it out of the driver consts thing, dunno
19:33 pmoreau: Well, it will be this week-end task :-)
19:33 pmoreau: Before the real begins with flow control… :D
19:33 pmoreau: s/real/real fun
19:34 pmoreau: Anyway, I'm off. See you!
19:37 imirkin: see ya
21:44 user4245: Hi!!!
21:44 user4245: I need help! :D
21:44 user4245: If someone avaible i would appreciate!
21:44 user4245: :D
21:45 imirkin: ...
21:45 user4245: I just installed fedora, so nouveau running. I have a GTX970, and i think i have not the nouveau driver adapted for my GPU.
21:45 imirkin: with a GTX 970 (GM20x) you'll only get modesetting, no acceleration
21:45 user4245: HOw to know wich nouveau driver is installed, first ?
21:46 user4245: I do not play games on linux.
21:46 imirkin: what problem do you have?
21:46 user4245: Only skype, office, browsing, communication.
21:46 user4245: Well, my screen's resolution don't fit
21:46 imirkin: pastebin dmesg and Xorg.0.log
21:46 user4245: it's 1080p now, but my screen is 2580 x 1080
21:46 imirkin: is it hooked up over HDMI?
21:47 user4245: yes
21:47 imirkin: try DVI or DP
21:47 imirkin: HDMI is artificially limited to 165MHz pixel clocks in nouveau
21:48 imirkin: there are some patches you could apply, but i'm guessing compiling your own kernel isn't something in your skillset
21:48 user4245: http://tinyurl.com/nafqea7
21:49 user4245: and Xorg:
21:50 imirkin: don't worry about it
21:50 user4245: unknown command?
21:50 imirkin: if you want the higher resolution, use a DVI or DP cable
21:51 user4245: wait
21:55 user4245: ok trie
21:55 user4245: true
21:55 user4245: I did put the HDMI on a tinier screen
21:55 user4245: good resolution.
21:55 user4245: mmh
21:56 user4245: To be shure, what should i type to get the codename of the nouveau driver i'm using?
21:56 imirkin: not sure what you're looking for...
21:56 mooch: oh wow, this grammar is horrendous.
21:57 imirkin: there is no single "nouveau driver" whose version you might retrieve
21:57 user4245: mooch: sorry i'm french! :p
21:58 user4245: OK cool
21:58 user4245: i have the right chipset
21:58 user4245: all i need is a DP cable
21:59 user4245: does nouveau work with dual sreen? (one with HDMI and the other (biggest) with DisplayCable?)
21:59 imirkin: yeah, should be fine
21:59 imirkin: up to 4 screens for your GPU
22:00 user4245: Cooooooooooooool
22:01 imirkin: of course if you use a GL-based compositor, things will probably feel quite slow
22:01 imirkin: esp on larger displays
22:03 imirkin: note that DP-MST does not yet work with nouveau, so you can't daisy-chain DP monitors (or use a DP hub)
22:06 user4245: ok imirkin i'll buy the DP cable now
22:06 user4245: what is daisy-chain DP monitors?
22:07 imirkin: user4245: enchainé
22:07 imirkin: user4245: if you're able to build your own kernel, i can also point you to some patches that should make HDMI work
22:07 imirkin: user4245: it's not a hardware problem, but rather a nouveau one.