2021-05-25
01:32bgb has joined #asahi
01:43bgb has quit [Remote host closed the connection]
01:44bgb has joined #asahi
02:28phiologe has joined #asahi
02:32PhilippvK has quit [Ping timeout: 480 seconds]
02:47aquijoule__ has joined #asahi
02:48bgb has quit [Read error: Connection reset by peer]
02:53aquijoule_ has quit [Ping timeout: 480 seconds]
02:56uberushaximus has quit [Quit: uberushaximus]
03:01bgb has joined #asahi
03:11bgb has quit [Ping timeout: 480 seconds]
03:20marvin24_ has joined #asahi
03:23marvin24 has quit [Ping timeout: 480 seconds]
03:53bgb has joined #asahi
04:47awordnot has quit [Ping timeout: 480 seconds]
05:09SunWuKung has joined #asahi
05:16bgb has quit [Ping timeout: 480 seconds]
05:17bgb has joined #asahi
05:57VinDuv has joined #asahi
06:10SunWuKung has quit [Remote host closed the connection]
06:18VinDuv has quit [Quit: Leaving.]
06:53keenriser has joined #asahi
06:59EER has quit [Ping timeout: 480 seconds]
07:08rann has joined #asahi
07:48maz has joined #asahi
07:48bgb has quit [Ping timeout: 480 seconds]
08:03bgb has joined #asahi
08:12tardyp has quit [Read error: Connection reset by peer]
08:20jabashque has quit [Remote host closed the connection]
08:26jabashque has joined #asahi
08:45bgb has quit [Ping timeout: 480 seconds]
08:47bgb has joined #asahi
08:52choozy has joined #asahi
09:03_whitelogger has joined #asahi
09:06_whitelogger has joined #asahi
09:13_whitelogger has joined #asahi
09:15_whitelogger has joined #asahi
09:17_jannau_HW access is exclusive. the hypervisor would need code to support sharing HW resources with mac os
09:18svenit's also not really required. it's possible to mux the Mac OS serial output over m1n1's usb driver together with the MMIO trace
09:19_whitelogger has joined #asahi
09:22bgb_ has joined #asahi
09:25bgb has quit [Ping timeout: 480 seconds]
09:33bgb_ has quit [Quit: WeeChat 3.0.1]
09:35bgb has joined #asahi
09:47bgb has quit [Ping timeout: 480 seconds]
09:58tmbinc has joined #asahi
10:20choozy has quit [Ping timeout: 480 seconds]
10:30marcanthough I'm not entirely sure if it will work properly; yesterday I disabled the other port too just in case (well, yesterday I disabled a ton of stuff)
10:35Simonx22 has joined #asahi
10:47eta has quit [Remote host closed the connection]
10:48svenyeah, it also wouldn't surprise me if some phy stuff is actually shared between the two ports and breaks
10:48sventhough at least in theory they both also have a separate phy mmio space. but who knows what kinda of fun surprises are lurking in there
10:52eta has joined #asahi
10:54eta has quit [Remote host closed the connection]
10:57eta has joined #asahi
11:00eta has quit [Remote host closed the connection]
11:03eta has joined #asahi
11:06eta has quit [Remote host closed the connection]
11:06eta has joined #asahi
11:08svenI hope that doesn't matter though since it shouldn't try to speak to the m1n1 port once it has been removed from the ADT
11:09eta has quit [Remote host closed the connection]
11:12eta has joined #asahi
11:12eta has quit []
11:15eta has joined #asahi
11:15eta has quit [Remote host closed the connection]
11:34eta has joined #asahi
12:34pipcet[m]marcan: that happened here (now have it working), but I thought it was because I was failing to virtualize the GXF page tables properly
12:37pipcet[m]marcan; can you read the PC from another CPU core? (write 0xc5acce55 to 0x210030fb0, read 32 bits from 0x210040090 and discard, then reading 64 bits from 0x210040090 gives you the lower 49 bits of CPU0's PC)
12:39pipcet[m]sven: are you sure? I think it uses a different top-level page table which just shares the lower levels
12:40sveni.e. the exception vector is not marked as executable in the SPRR register or the stack isn't writable?
12:40Shiz has quit []
12:40Shiz has joined #asahi
12:40pipcet[m]sven: I had to map my injected page using the actual ttbr_el2 value read from the GXF (I think) exception vector.
12:46pipcet[m]silly question, but you're using the right page table, right? As I said, I had to virtualize it separately so it probably is different from the EL2 page table.
12:47Raqbit has joined #asahi
12:50pipcet[m]in my case it was faulting recursively because the injected page wasn't in the right page table
12:51ave has quit [Quit: o/ https://thelounge.lasagna.dev]
12:51pipcet[m]I injected a page into the GL2 code so it would wait for another core to actually handle the page fault, as part of virtualizing the page tables so I could have an mmiotrace.
12:51ave has joined #asahi
13:01choozy has joined #asahi
13:10karlyeurl has joined #asahi
13:38svenyou probably just need usb_phy_bringup or however it's called if you want to use dwc3 in uboot/openbsd
13:51marcan(this of course also explains all the hideous non-deterministicness... timer FIQs in GL2, duh)
14:08radex has joined #asahi
14:34choozy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
14:35choozy has joined #asahi
14:54_whitelogger has joined #asahi
14:58smvg has joined #asahi
14:59smvg has quit []
15:30marcanj_ey: no, just the general "it crashes in a different place depending on completely random changes" thing
16:09SunWuKung has joined #asahi
16:39VinDuv has joined #asahi
17:03marcanj_ey: like to clarify, xnu is multitasking at this point, so non-det breadcrumbs make some sense, but what *didn't* make sense is crashing way earlier/way later depending on random configuration changes
17:04marcanit's never gotten past sec cpu bringup (possibly because for whatever reason that puts it in gl1 long enough to reliably die; large page table changes?) but it's randomly died way earlier, sometimes consistently depending on settings
17:08j_eyor was disabling some configuration just causing different things to print, so it looked like it happened at different times?
17:09marcanbut I guess the guest spends little enough time in GL1 until that point in boot that most of the time it didn't crash
17:10marcanbut of course changing configuration settings would do things like make some operations slower, or more likely to trap while in GL1
17:10marcanthey basically operate in parallel, roughly identically other than the separate context registers for GLx
17:11marcanso right now I just point the GL2 VBAR at the same vectors as the EL2 VBAR, and have wrappers to read/write the context registers that pick the right one based on the current mode
17:12marcansven had already worked most of it out, but I'd been *assuming* GL1 somehow trapped to EL2 because, well, it was getting way too far for that not to be the case!
17:12marcan... but the PAN thing plus PPL apparently being not called into that often and running fast conspired to confuse me
17:16marcan(maybe the PPL is only half there? Apple says it's not like iPhones; clearly there's GXF in use but how much exactly?)
17:24Misthios has quit [Quit: Misthios]
17:24Misthios has joined #asahi
18:12keenriser has quit [Remote host closed the connection]
18:53pugguu has joined #asahi
19:21tsida has joined #asahi
19:31pugguu has quit [Remote host closed the connection]
19:31pugguu has joined #asahi
19:43Thomas___ has joined #asahi
19:44choozyWhy is it necessary to write a hypervisor instead of using something like KVM on top of the current Asahi?
19:58agrafchoozy: With KVM, Linux will take ownership of most underlying hardware, so you would need to create a virtual platform on top. With the m1n1 hypervisor, we can leave ownership of most hardware with macOS and then trace its access to it.
20:06kubes has joined #asahi
20:09kubes has quit []
20:11pugguu has quit [Ping timeout: 480 seconds]
20:25dottedmag has quit [Quit: QUIT]
20:26dottedmag has joined #asahi
20:29sorearif it wasn't clear this is a very specialized hypervisor for hardware documentation, normal users will use KVM
20:51VinDuv has quit [Quit: Leaving.]
20:52atom1[m] has joined #asahi
21:40Thomas___ has quit []
21:40Tom has joined #asahi
21:43Tom is now known as TestingTom
21:43TestingTom is now known as Thomas____
22:19choozy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]