2021-06-15
00:03kettenis has joined #asahi
00:05kettenis_ has quit [Ping timeout: 480 seconds]
00:12roxfan2 has joined #asahi
00:13roxfan has quit [Ping timeout: 480 seconds]
00:40adamcstephens has joined #asahi
00:47klltkr has quit [Ping timeout: 480 seconds]
01:11linuxgemini has quit [Ping timeout: 480 seconds]
01:12ave has quit [Ping timeout: 480 seconds]
01:12nepeat has quit [Ping timeout: 480 seconds]
01:38bgb has joined #asahi
01:51bgb has quit [Ping timeout: 480 seconds]
02:03pastly-antispam has quit [autokilled: Suspected spammer. Mail support@oftc.net with questions (2021-06-15 02:03:48)]
02:09nepeat has joined #asahi
02:11pastly-antispam has joined #asahi
02:12linuxgemini has joined #asahi
02:12ave has joined #asahi
02:35kendfinger has joined #asahi
02:47peaklight_ has joined #asahi
02:54peaklight has quit [Ping timeout: 480 seconds]
03:01PhilippvK has joined #asahi
03:05phiologe has quit [Ping timeout: 480 seconds]
03:26marvin24_ has joined #asahi
03:30marvin24 has quit [Ping timeout: 480 seconds]
05:28VinDuv has joined #asahi
05:56bisko has joined #asahi
06:01bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
06:14VinDuv has quit [Quit: Leaving.]
06:21bisko has joined #asahi
07:05bisko has quit [Ping timeout: 480 seconds]
07:33bisko has joined #asahi
07:37bgb has joined #asahi
08:21aleasto has joined #asahi
08:40aleasto has quit [Quit: Konversation terminated!]
08:41aleasto has joined #asahi
09:13bisko has quit [Remote host closed the connection]
09:13bisko has joined #asahi
09:21bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
09:47bisko has joined #asahi
09:47bisko has quit []
10:17bgb_ has joined #asahi
10:19bgb has quit [Ping timeout: 480 seconds]
10:34aleasto has quit [Quit: Konversation terminated!]
10:34aleasto has joined #asahi
10:36aleasto has quit [Remote host closed the connection]
10:36aleasto has joined #asahi
10:39zopieux has quit [Ping timeout: 480 seconds]
10:42zopieux has joined #asahi
10:52marcanjannau: ended up having to rewrite AddrLookup due to some issues, let me know what you think if you have a chance: https://github.com/AsahiLinux/m1n1/commit/48b4466abf6de6e149b887cad54c8fee5105899c
10:53marcanI also made it a more generic base class, eyeing a different way of keeping track of mmiotrace handlers/modes
11:01bps has joined #asahi
11:03swb has joined #asahi
11:38FireFox317 has joined #asahi
11:39FireFox317marcan: any idea when you will be streaming again? It's fun :D
11:40marcanpossibly tomorrow, once I get to use this to build the mmiotrace/hook framework I have in my head
11:43FireFox317marcan: yeah i saw the one from saturday :) its interesting to see the overview of the HV and how it is used.
11:43FireFox317Ah looking forward to it :D
11:43FireFox317Should really buy an apple device with a M1 to do some hacking on it xd
11:46jannaumarcan: first impression is good. splitting makes sense. I can look at it toninght (CEST) in more detail
11:47JTL has quit [Remote host closed the connection]
11:49swb has quit [Ping timeout: 480 seconds]
12:00swb has joined #asahi
12:01jannaumarcan: the tps irq PR is marked as draft since it doesn't work reliable. For (some) register writes it's aparently necessary to include the length byte in the length. that contradicts both tps6598x TRM and the linux driver
12:06JTL has joined #asahi
12:14marcanone issue we have is maintaining the page tables imperatively is very flaky; I want to be able to add/remove tracers and have the page tables updated as required to the union of what is needed, with multiple modes that stack, and also be able to spare C-side virtual peripherals (e.g. never clobber vuart/the aic hook)
12:15marcanRESERVED is for vuart/vaic, it just overrides everything else and means it will never touch those mappings
12:16marcanHOOK means a python-side virtual device hook (override). there can only be one user for any given address.
12:16j_eymarcan: might want to rename this bool param too? https://github.com/AsahiLinux/m1n1/blob/15381b8d744d539b4904368c7c92edbf2c0d6e3b/src/hv_vm.c#L614
12:17marcanSYNC is actually the same as HOOK on the C side, but it's a synchronous mmiotrace hook. the core (or an overlying HOOK user) does the read/write synchronously and all the tracers are guaranteed to be called before the guest continues exceution
12:17marcanUNBUF and ASYNC are normal mmiotrace, UNBUF is for the thing where the hv flushes the USB buffers after every write (mostly to get the thing through when the hv dies subsequently)
12:19marcanso I'm going to build a class that represents a peripheral register map (similar to Register32 but one level up) which can double as both metadata for mmiotrace and a general register accessor for convenience
12:20marcanand then a tracer class that will reference a regmap, and then just defining methods like SOMEREG_r() and SOMEREG_w() gives you mmiotrace hooks, with decorators to set modes like HOOK/SYNC/UNBUF
12:21marcanSYNC is the same thing behind the scenes, but you don't get to override anything; it behaves like a normal trace but is synchronous since the guest is suspended until it completes
12:22marcanso for example, trigger on a GPU command submission and be able to dump the command buffer
12:22choozy has joined #asahi
12:23marcanI'm also going to make the hardware regmap view behave differently depending on which context you're in
12:24marcanif you're in async context, "reading" from the hardware will return values cached from previous mmiotrace data (which might be out of date, but is useful if we're doing whatever the guest did and beats nothing)
12:25marcanif you're in sync context, reading will give you current data (and update the cache, as will trace events from the guest)
12:45swb has quit [Read error: Connection reset by peer]
12:45swb has joined #asahi
12:54roxfan2 is now known as roxfan
13:27bgb_ has quit [Ping timeout: 480 seconds]
13:31Namidairo has quit [Remote host closed the connection]
13:32Namidairo has joined #asahi
13:35CDFH has joined #asahi
13:53skipwich_ has joined #asahi
13:53skipwich has quit [Remote host closed the connection]
13:53bgb_ has joined #asahi
13:53skipwich_ is now known as skipwich
14:01bgb_ has quit [Ping timeout: 480 seconds]
14:42FireFox317 has quit [Quit: Page closed]
14:52jix has quit [Remote host closed the connection]
14:52jix has joined #asahi
15:23Ariadne has joined #asahi
15:23DragoonAethis has joined #asahi
15:46swb has quit [Ping timeout: 480 seconds]
15:51os has quit [Remote host closed the connection]
15:52os has joined #asahi
16:39VinDuv has joined #asahi
17:31swb has joined #asahi
17:33marcansven, jannau & co: you might enjoy the new magic: https://github.com/AsahiLinux/m1n1/commit/9ff7566dc3f393b22c016951769fb1d724de6848
17:34marcanyou can probably get an idea of how I want to use this as a base for building the mmiotrace stuff :-)
18:00radex1 has joined #asahi
18:01radex has quit [Ping timeout: 480 seconds]
18:17izumoo[m] has joined #asahi
18:21quarkyaliceI'm trying to understand the stuff being said here :P
18:21aleasto has quit [Remote host closed the connection]
18:43quarkyalicehopefully being here teaches me more about low level and kernel stuff :P
18:43quarkyaliceI've done some work at kernel level, like devicetree and stuff but porting an entire SOC is something I haven't done
18:54swb has quit [Ping timeout: 480 seconds]
19:04yuyichao has quit [Quit: Konversation terminated!]
19:53yuyichao has joined #asahi
19:54StupidYui has joined #asahi
20:21VinDuv has quit [Quit: Leaving.]
20:21r0ni has quit [Read error: Connection reset by peer]
21:10artemist has quit [Remote host closed the connection]
21:11artemist has joined #asahi
21:14izumoo[m] is now known as Izumoo[m]
21:22peaklight__ has joined #asahi
21:28peaklight_ has quit [Ping timeout: 480 seconds]
21:39mini has quit [Ping timeout: 480 seconds]
21:44Izumoo has joined #asahi
22:03choozy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
22:15nico_32 has quit [Quit: leaving]
22:15nico_32 has joined #asahi
22:26m42uko_ has joined #asahi
22:31m42uko has quit [Ping timeout: 480 seconds]
22:47klltkr has joined #asahi
22:54m42uko_ has quit [Ping timeout: 480 seconds]
22:54m42uko has joined #asahi
22:55pastly-antispam has quit [Quit: WeeChat 2.3]
23:15mini has joined #asahi
23:25akemin_dayo has quit [Quit: ┐(´д`🍍)┌ ]
23:25akemin_dayo has joined #asahi
23:32tomtastic_ has joined #asahi
23:32tomtastic has quit [Ping timeout: 480 seconds]