#
…

2022-11-28

01:18sirn has quit [Server closed connection]
01:18sirn has joined #asahi-re
01:19TheFirst has quit [Server closed connection]
01:19TheFirst has joined #asahi-re
01:19duckworld_ has quit [Server closed connection]
01:22riatre_ has quit [Server closed connection]
01:22riatre has joined #asahi-re
01:30Ariadne has quit [Server closed connection]
01:30Ariadne has joined #asahi-re
01:36Lightsword has quit [Server closed connection]
01:36Lightsword has joined #asahi-re
01:37lethalbit has quit [Server closed connection]
01:37lethalbit has joined #asahi-re
01:45Dementor has quit [Server closed connection]
01:46Dementor has joined #asahi-re
01:48tbodt has quit [Server closed connection]
01:49tbodt has joined #asahi-re
01:50emptynine has quit [Server closed connection]
01:51emptynine has joined #asahi-re
01:53rcombs has quit [Server closed connection]
01:55ChaosPrincess has quit [Server closed connection]
01:55ChaosPrincess has joined #asahi-re
01:55rcombs has joined #asahi-re
01:56kallsyms has quit [Server closed connection]
01:56kallsyms has joined #asahi-re
01:58phire has quit [Server closed connection]
01:58phire has joined #asahi-re
01:59chadmed has quit [Server closed connection]
02:00chadmed has joined #asahi-re
02:03cyrozap has quit [Server closed connection]
02:04cyrozap has joined #asahi-re
02:19argonaut has quit [Server closed connection]
02:20argonaut has joined #asahi-re
02:23x56 has quit [Server closed connection]
02:23x56 has joined #asahi-re
02:39d4ve has quit [Server closed connection]
02:39d4ve has joined #asahi-re
02:55cds has quit [Server closed connection]
02:55cds has joined #asahi-re
03:03coder_kalyan has quit [Server closed connection]
03:03coder_kalyan has joined #asahi-re
03:05WhyNotHugo has quit [Server closed connection]
03:05WhyNotHugo has joined #asahi-re
03:08manawyrm has quit [Server closed connection]
03:08manawyrm has joined #asahi-re
03:12akspecs has quit [Server closed connection]
03:12akspecs has joined #asahi-re
03:21pitust has quit [Server closed connection]
03:21pitust has joined #asahi-re
03:31hays has quit [Server closed connection]
03:31hays has joined #asahi-re
03:59hxliew has quit [Server closed connection]
04:00hxliew has joined #asahi-re
04:08chadmed has quit [Quit: Konversation terminated!]
04:13chadmed has joined #asahi-re
04:20systwi_ has quit [Server closed connection]
04:21systwi has joined #asahi-re
04:25os has quit [Server closed connection]
04:25os has joined #asahi-re
04:29Skirmisher has quit [Server closed connection]
04:29Skirmisher has joined #asahi-re
04:44mmarchini____ has quit [Server closed connection]
04:44mmarchini____ has joined #asahi-re
04:44Manouchehri has quit [Server closed connection]
04:44Manouchehri has joined #asahi-re
04:48jole_ has quit [Server closed connection]
04:48jole has joined #asahi-re
04:52mini has quit [Server closed connection]
04:52mini has joined #asahi-re
04:56nyx_o has quit [Server closed connection]
04:56nyx_o has joined #asahi-re
04:56paddatrapper_ has quit [Server closed connection]
04:57paddatrapper_ has joined #asahi-re
05:04ids1024 has quit [Server closed connection]
05:05ids1024 has joined #asahi-re
05:24ncopa has quit [Server closed connection]
05:25ncopa has joined #asahi-re
05:35codingkoopa9 has quit [Server closed connection]
05:35codingkoopa9 has joined #asahi-re
05:52Poplar has quit [Server closed connection]
05:52Poplar has joined #asahi-re
06:06grange_c has quit [Server closed connection]
06:07grange_c has joined #asahi-re
06:11xcpy0 has quit [Server closed connection]
06:12xcpy0 has joined #asahi-re
06:13kode54 has quit [Server closed connection]
06:13kode54 has joined #asahi-re
06:13DragoonAethis has quit [Server closed connection]
06:14DragoonAethis has joined #asahi-re
06:20rqou_ has quit [Server closed connection]
06:20rqou_ has joined #asahi-re
06:25lolock has quit [Server closed connection]
06:25lolock has joined #asahi-re
06:26kloenk has quit [Server closed connection]
06:27kloenk has joined #asahi-re
06:34chadmed_ has joined #asahi-re
06:36chadmed_ has quit []
06:41Dcow has quit [Remote host closed the connection]
06:42Dcow has joined #asahi-re
06:42SSJ_GZ has joined #asahi-re
06:59amarioguy has quit [Server closed connection]
06:59amarioguy has joined #asahi-re
07:03chadmed_ has joined #asahi-re
07:06opticron has quit [Server closed connection]
07:06opticron has joined #asahi-re
07:10gff_ has quit [Server closed connection]
07:11gff_ has joined #asahi-re
07:35Dcow_ has joined #asahi-re
07:43Dcow has quit [Ping timeout: 480 seconds]
07:43jonmasters_ has quit [Server closed connection]
07:43jonmasters_ has joined #asahi-re
07:45jbowen has quit [Server closed connection]
07:45jbowen has joined #asahi-re
08:05Avaflow has quit [Server closed connection]
08:05Avaflow has joined #asahi-re
08:23JTL has quit [Server closed connection]
08:24JTL has joined #asahi-re
08:30Dcow_ has quit [Remote host closed the connection]
08:44ricekot has joined #asahi-re
08:44ricekot has quit []
08:44ricekot has joined #asahi-re
08:45ricekot has quit []
08:46turo has quit [Server closed connection]
08:46turo has joined #asahi-re
08:46Graypup_ has quit [Server closed connection]
08:46Graypup_ has joined #asahi-re
08:55MajorBiscuit has joined #asahi-re
09:34yrlf has joined #asahi-re
10:01chadmed_ has quit [Remote host closed the connection]
10:05chadmed_ has joined #asahi-re
10:06MajorBiscuit has quit [Ping timeout: 480 seconds]
10:06kloenk has quit [Remote host closed the connection]
10:07kloenk has joined #asahi-re
10:09Dcow has joined #asahi-re
10:11Dcow has quit [Remote host closed the connection]
10:12Dcow has joined #asahi-re
11:40chadmed_ has quit [Remote host closed the connection]
12:25chengsun_ has quit [Ping timeout: 480 seconds]
12:34chengsun has joined #asahi-re
12:55chengsun has quit [Quit: Quit]
12:55chengsun has joined #asahi-re
13:45chengsun has quit [Read error: Connection reset by peer]
13:46chengsun has joined #asahi-re
13:51chengsun has quit [Read error: Connection reset by peer]
13:52chengsun has joined #asahi-re
14:00chengsun_ has joined #asahi-re
14:01chengsun has quit [Ping timeout: 480 seconds]
14:03chengsun_ has quit []
14:05chengsun has joined #asahi-re
14:21chengsun has quit [Quit: Quit]
14:21chengsun has joined #asahi-re
15:27chengsun_ has joined #asahi-re
15:30chengsun has quit [Ping timeout: 480 seconds]
16:19chengsun_ has quit [Read error: Connection reset by peer]
16:20chengsun has joined #asahi-re
16:28chengsun has quit [Ping timeout: 480 seconds]
16:30chengsun has joined #asahi-re
16:38chengsun has quit [Quit: Quit]
16:38chengsun has joined #asahi-re
16:44chengsun_ has joined #asahi-re
16:48chengsun has quit [Ping timeout: 480 seconds]
17:01chengsun has joined #asahi-re
17:04chengsun_ has quit [Ping timeout: 480 seconds]
17:29chengsun has quit [Ping timeout: 480 seconds]
17:36chengsun has joined #asahi-re
17:41eiln has joined #asahi-re
17:42eilnyou can see him transition to ane lol
17:43marcaneiln: also just to give you an idea: AIUI the main thing you care about re the DRM/linux interface is how you do memory management and how you do work submission from userspace.
17:43marcanone important question there is how ANE handles multiprocessing
17:43marcanlike can it have different user contexts/VMs or is it all one shared address space?
17:43marcanif it's shared then the kernel driver needs to deal with all input/output/etc addresses, which I'm guessing is the case here? (no addresses in untrusted code/kernels from userspace)
17:44eilnthere are 8 hw queue slots which can be stacked
17:44eilnbut only one main queue that triggers the circuit
17:44marcanbut are there separate DART contexts?
17:44eilnI actually have no idea
17:45marcanok, you probably need to make sure you understand that fairly well before starting to design the linux driver since it completely changes the design
17:45marcanwhat is the kernel responsible for as far as deciding where data buffers live
17:45marcancan ane programs decide where to do data reads or are the input/output buffers programmed by the driver always?
17:46eilnwait no, I misread
17:47eilnin each hw queue there's a BAR slot
17:47eilnwhich has a very specific order on mapping the input/output dvas
17:47eilndriver is responsible for packing the BAR
17:47marcanso the driver controls all dvas?
17:48chengsun has quit [Ping timeout: 480 seconds]
17:48eilnwhen you push a queue you're pushing the dma of the configuration registers
17:48eilnand within the config regs are slots for dvas
17:48eilnand those are configured automatically via BAR
17:49marcanright, and all that is controlled by the driver
17:49eilnyes yes
17:49marcani.e. there are no dvas in like a compiled program etc
17:49eilnthey're all zeroed out
17:49marcanand there's no way for the program to like run a load instruction from an arbitrary address
17:50marcanok, 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
17:50eilnyou can diff the binary of the compiled vs. the regs filled in after execution to see how the addrs get configed from BAR
17:50marcanwell, drm already has that I think
17:52marcanI need to get some sleep, but some pointers
17:53marcan- 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
17:53marcan- 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
17:54marcan- also would be nice to figure out the firmware and its interface and whether it changes from version to version
17:55marcan- 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)
17:55eilnawesome, got it.
17:55eilndo you mean the different hw types?
17:55marcanand different firmware versions (from different macos versions) on the same hw
17:56marcanwe 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
17:57marcanwhich I guess is conditional on whether we need to use the ASC at all or not, which then brings in the ISP question again
17:57eilnah I don't have any archives, I'm on 12.6 rn
17:57marcanare you running against m1n1 installed on top of macos, or the asahi m1n1?
17:58eilnasahi
17:58marcanthen that's 12.3
17:58marcanbut for tracing macos you use m1n1 installed on macos, right?
17:59marcanyeah, so keep in mind, especially once the ASC comes up, that could mean you have interface differences
17:59eilngot it
17:59eilndefinitely need to talk to the isp guy though
17:59marcanyou'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)
18:00eilnawesome, thanks for the *s.
18:00marcanalso you copied the tunable writes from macos? or from the ADT in the 12.3 m1n1?
18:01marcanbecause 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)
18:01marcanthe DAPF tunables I mean
18:01marcanif those are wrong then there's no chance the firmware will boot ;)
18:02marcanbut as I said the stuff in dapf.c should do that "properly" for you
18:04marcananyway, I should get some sleep, hope that helps a bit!
18:07gff_ has quit [Ping timeout: 480 seconds]
18:12eiln has quit [Remote host closed the connection]
20:04nicolas17 has joined #asahi-re
22:03amarioguyeiln: wait you're working on the ANE support now?
22:13chengsun has joined #asahi-re
22:29Dcow has quit [Remote host closed the connection]
22:29chengsun_ has joined #asahi-re
22:32chengsun has quit [Ping timeout: 480 seconds]
22:34chengsun_ has quit [Quit: Quit]
22:44chengsun has joined #asahi-re
22:46Dcow has joined #asahi-re
22:54chengsun has quit [Ping timeout: 480 seconds]
22:55Dcow has quit [Ping timeout: 480 seconds]
23:03SSJ_GZ has quit [Ping timeout: 480 seconds]
23:20eiln has joined #asahi-re
23:21eilnamarioguy: yes, dug myself into this hole
23:21eiln has quit []
23:22Dcow has joined #asahi-re
23:27eiln has joined #asahi-re
23:28eilnjust pushed an initial writeup, looking into dapf rn
23:28eiln has quit []
23:29chengsun has joined #asahi-re
23:30Dcow has quit [Ping timeout: 480 seconds]
23:43chengsun has quit [Ping timeout: 480 seconds]
23:44chengsun has joined #asahi-re
23:50chengsun_ has joined #asahi-re
23:51eiln has joined #asahi-re
23:52eilncalling p.dapf_init("/arm-io/dart-ane") before my writes even messes things up
23:52chengsun has quit [Ping timeout: 480 seconds]
23:53eiln0x26b810000+000080 REMAP[0] = 0x3020100 (MAP3=0x3, MAP2=0x2, MAP1=0x1, MAP0=0x0)
23:53eiln0x26b810000+000084 REMAP[1] = 0x7060504 (MAP3=0x7, MAP2=0x6, MAP1=0x5, MAP0=0x4)
23:53eiln0x26b810000+000088 REMAP[2] = 0xb0a0908 (MAP3=0xb, MAP2=0xa, MAP1=0x9, MAP0=0x8)
23:53eiln0x26b810000+00008c REMAP[3] = 0xf0e0d0c (MAP3=0xf, MAP2=0xe, MAP1=0xd, MAP0=0xc)
23:53eilnadding dapf:
23:53eiln0x26b810000+000080 REMAP[0] = 0x1 (MAP3=0x0, MAP2=0x0, MAP1=0x0, MAP0=0x1)
23:53eiln0x26b810000+000084 REMAP[1] = 0x1 (MAP3=0x0, MAP2=0x0, MAP1=0x0, MAP0=0x1)
23:53eiln0x26b810000+000088 REMAP[2] = 0xb050000 (MAP3=0xb, MAP2=0x5, MAP1=0x0, MAP0=0x0)
23:54eiln0x26b810000+00008c REMAP[3] = 0x2 (MAP3=0x0, MAP2=0x0, MAP1=0x0, MAP0=0x2)
23:56eilnremap for the 2nd isn't messed up
23:56Dcow has joined #asahi-re
…