#asahi-dev · 2021-02-14 16:22
marcanwhat apple did almost makes more sense here; they're tightly coupled into FIQ...#asahi-dev · 2021-02-14 16:20
marcanwhich is a very weird arrangement#asahi-dev · 2021-02-14 16:20
marcanyeah, this one seems particularly well suited to the arm timers because they're weird in that they're architected into the CPU, but the IRQs are platform dependent#asahi-dev · 2021-02-14 16:18
marcanthis one seemed... rather obvious to me#asahi-dev · 2021-02-14 16:18
marcanoh hah#asahi-dev · 2021-02-14 16:17
marcanI don't see why not, it's the whole point of interrupt-names, right?#asahi-dev · 2021-02-14 16:17
marcanwell, it's forwards compatible for dts that *don't* plan on skipping interrupts#asahi-dev · 2021-02-14 16:16
marcannot forwards though, but well, not like it matters for a new soc#asahi-dev · 2021-02-14 16:16
marcanand it's fully backwards compatible!#asahi-dev · 2021-02-14 16:16
marcanyeah, dummy irqs are pretty terrible :)#asahi-dev · 2021-02-14 16:14
marcanyeah but then what, implement high level drivers in linux?#asahi-dev · 2021-02-14 16:14
marcanand like a microsecond or less for reads IIRC#asahi-dev · 2021-02-14 16:14
marcanI had it down to nanoseconds for posted writes#asahi-dev · 2021-02-14 16:14
marcanand it *worked*#asahi-dev · 2021-02-14 16:13
marcane.g. EHCI#asahi-dev · 2021-02-14 16:13
marcanlinux was literally doing IPC calls for every readl() and writel() into those devices#asahi-dev · 2021-02-14 16:13
marcanbecause before we discovered AHBPROT, this was going to be a backend for linux#asahi-dev · 2021-02-14 16:13
marcanit had to be as fast as possible#asahi-dev · 2021-02-14 16:13
marcanyou know why I designed it like that?#asahi-dev · 2021-02-14 16:13
marcanmy ring buffer thing was much nicer though :)#asahi-dev · 2021-02-14 16:12
marcan(or just have both sides always use uncached accesses)#asahi-dev · 2021-02-14 16:12
marcanit could've, as long as you put the pointers in separate cache lines#asahi-dev · 2021-02-14 16:11
marcanso, can't have it both ways, unless you go about trying to autodetect what's on either side, and that way lies madness#asahi-dev · 2021-02-14 16:10
marcan:)#asahi-dev · 2021-02-14 16:10
marcanwhich is different (and much worse) than the one BootMii uses#asahi-dev · 2021-02-14 16:10
marcanbut that implies the Nintendo IPC usage model#asahi-dev · 2021-02-14 16:10
marcanfor dolphin dev, what people did was use hybrid LLE+HLE, where only the things IOS under skyeye could handle were passed through#asahi-dev · 2021-02-14 16:10
marcanmy code did "proper" IPC bridging, which works for IOS and BootMii, but since skyeye can't actually boot full IOS (no USB/WiFi, I had patches in to disable those drivers) you couldn't actually use it to boot wii apps#asahi-dev · 2021-02-14 16:08
marcanthe sad part was that you couldn't really make dolphin+skyeye "generically useful"#asahi-dev · 2021-02-14 16:07
marcanhttps://www.youtube.com/watch?v=q2kZj1M5GZg#asahi-dev · 2021-02-14 16:07
marcanand some dolphin devs have used it AIUI#asahi-dev · 2021-02-14 16:07
marcanIIRC I did post the code at some point#asahi-dev · 2021-02-14 16:06
marcanyeah, that#asahi-dev · 2021-02-14 16:06
marcanrunning bootmii under dolphin :p#asahi-dev · 2021-02-14 16:05
marcandid you ver see the frankenstein thing I did to make IOS LLE emulation in dolphin work?#asahi-dev · 2021-02-14 16:05
marcani.e. handle any status/busy bits and things like that#asahi-dev · 2021-02-14 16:05
marcanbut you would have to emulate it enough that the OS can init it#asahi-dev · 2021-02-14 16:04
marcanyou can't really emulate phy stuff, because it's analog#asahi-dev · 2021-02-14 15:58
marcanthere's a whole PHY init thing that needs to happen, which is outside the generic dwc3 part#asahi-dev · 2021-02-14 15:54
marcanheh#asahi-dev · 2021-02-14 15:53
marcanregister defs too#asahi-dev · 2021-02-14 15:53
marcanI don't know the codebase, but I'm guessing apple stuff should probably be implemented in separate files#asahi-dev · 2021-02-14 15:51
marcanIPIs have their own registers not mixed with everything else#asahi-dev · 2021-02-14 15:51
marcanand pretty much only chicken bits#asahi-dev · 2021-02-14 15:51
marcanHIDx are chicken bits#asahi-dev · 2021-02-14 15:51
marcannope#asahi-dev · 2021-02-14 15:50
marcanyou do need to emulate the Apple vendor-specific registers that have functions that matter :)#asahi-dev · 2021-02-14 15:50
marcanjust have those registers as dumb memory#asahi-dev · 2021-02-14 15:49
marcanyou do not need to emulate any chicken bits at all#asahi-dev · 2021-02-14 15:49
marcanmodwizcode: fast IPIs are not chicken bits