#asahi-re · 2022-11-28 23:53
eiln0x26b810000+00008c REMAP[3] = 0xf0e0d0c (MAP3=0xf, MAP2=0xe, MAP1=0xd, MAP0=0xc)#asahi-re · 2022-11-28 23:53
eiln0x26b810000+000088 REMAP[2] = 0xb0a0908 (MAP3=0xb, MAP2=0xa, MAP1=0x9, MAP0=0x8)#asahi-re · 2022-11-28 23:53
eiln0x26b810000+000084 REMAP[1] = 0x7060504 (MAP3=0x7, MAP2=0x6, MAP1=0x5, MAP0=0x4)#asahi-re · 2022-11-28 23:53
eiln0x26b810000+000080 REMAP[0] = 0x3020100 (MAP3=0x3, MAP2=0x2, MAP1=0x1, MAP0=0x0)#asahi-re · 2022-11-28 23:52
eilncalling p.dapf_init("/arm-io/dart-ane") before my writes even messes things up #asahi-re · 2022-11-28 23:28
eilnjust pushed an initial writeup, looking into dapf rn #asahi-re · 2022-11-28 23:21
eilnamarioguy: yes, dug myself into this hole #asahi-re · 2022-11-28 22:03
amarioguyeiln: wait you're working on the ANE support now?#asahi-re · 2022-11-28 18:04
marcananyway, I should get some sleep, hope that helps a bit!#asahi-re · 2022-11-28 18:02
marcanbut as I said the stuff in dapf.c should do that "properly" for you#asahi-re · 2022-11-28 18:01
marcanif those are wrong then there's no chance the firmware will boot ;)#asahi-re · 2022-11-28 18:01
marcanthe DAPF tunables I mean#asahi-re · 2022-11-28 18:01
marcanbecause there's a very high chance those change from version to version (since firmware placement in memory depends on the size of every other firmware and things like that)#asahi-re · 2022-11-28 18:00
marcanalso you copied the tunable writes from macos? or from the ADT in the 12.3 m1n1?#asahi-re · 2022-11-28 18:00
eilnawesome, thanks for the *s. #asahi-re · 2022-11-28 17:59
marcanyeah :)#asahi-re · 2022-11-28 17:59
marcanyou'll have to test stuff vs the macos m1n1 first, then see if it works back in 12.3 (if it does, lucky, if not, time to install as 12.3 macos and see what changed)#asahi-re · 2022-11-28 17:59
eilndefinitely need to talk to the isp guy though#asahi-re · 2022-11-28 17:59
eilngot it#asahi-re · 2022-11-28 17:59
marcanyeah, so keep in mind, especially once the ASC comes up, that could mean you have interface differences#asahi-re · 2022-11-28 17:58
eilnyes#asahi-re · 2022-11-28 17:58
marcanbut for tracing macos you use m1n1 installed on macos, right?#asahi-re · 2022-11-28 17:58
marcanthen that's 12.3#asahi-re · 2022-11-28 17:58
eilnasahi #asahi-re · 2022-11-28 17:57
marcanare you running against m1n1 installed on top of macos, or the asahi m1n1?#asahi-re · 2022-11-28 17:57
eilnah I don't have any archives, I'm on 12.6 rn#asahi-re · 2022-11-28 17:57
marcanwhich I guess is conditional on whether we need to use the ASC at all or not, which then brings in the ISP question again#asahi-re · 2022-11-28 17:56
marcanwe need to support at least certain cherry-picked versions (like we are on 12.3 on t8102/t600x and 12.4 on t8112 right now), and the list will grow over time#asahi-re · 2022-11-28 17:55
marcanand different firmware versions (from different macos versions) on the same hw#asahi-re · 2022-11-28 17:55
eilndo you mean the different hw types?#asahi-re · 2022-11-28 17:55
eilnawesome, got it. #asahi-re · 2022-11-28 17:55
marcan- and assuming you're using drm/accel... the question is do you want to write the driver in Rust or C :p (if Rust, definitely talk to lina)#asahi-re · 2022-11-28 17:54
marcan- also would be nice to figure out the firmware and its interface and whether it changes from version to version#asahi-re · 2022-11-28 17:53
marcan- might want to also lurk in #dri-devel since that's where the rest of the dri crowd is, as far as using the dri/accel subsystems#asahi-re · 2022-11-28 17:53
marcan- it would be helpful if you can write up some prose on how this all works so others have somewhere to start trying to understand it#asahi-re · 2022-11-28 17:52
marcanI need to get some sleep, but some pointers#asahi-re · 2022-11-28 17:50
marcanwell, drm already has that I think#asahi-re · 2022-11-28 17:50
eilnyou can diff the binary of the compiled vs. the regs filled in after execution to see how the addrs get configed from BAR #asahi-re · 2022-11-28 17:50
marcanok, then it's probably a single VM and you don't need to worry about that, you just need some kind of buffer token thing so userspace apps never even see addresses, just some opaque buffer identifiers#asahi-re · 2022-11-28 17:50
eilnnope #asahi-re · 2022-11-28 17:49
marcanand there's no way for the program to like run a load instruction from an arbitrary address#asahi-re · 2022-11-28 17:49
eilnthey're all zeroed out#asahi-re · 2022-11-28 17:49
eilnyes#asahi-re · 2022-11-28 17:49
marcani.e. there are no dvas in like a compiled program etc#asahi-re · 2022-11-28 17:49
eilnyes yes #asahi-re · 2022-11-28 17:49
marcanright, and all that is controlled by the driver#asahi-re · 2022-11-28 17:48
eilnand those are configured automatically via BAR #asahi-re · 2022-11-28 17:48
eilnand within the config regs are slots for dvas #asahi-re · 2022-11-28 17:48
eilnwhen you push a queue you're pushing the dma of the configuration registers #asahi-re · 2022-11-28 17:47
marcanso the driver controls all dvas?