#
✕ nick:marcan
#asahi-dev · 2021-10-20 10:52
marcanhttps://github.com/geohot/tinygrad/tree/master/accel/ane
#asahi-dev · 2021-10-20 10:51
marcanthere's definitely at least some finite state machine concept
#asahi-dev · 2021-10-20 10:47
marcanoddly enough though, it isn't described as an RTKit ASC in the ADT, so maybe it isn't?
#asahi-dev · 2021-10-20 10:46
marcanbut it smells like something GPU-shaped to me
#asahi-dev · 2021-10-20 10:46
marcannot sure how it does context switching
#asahi-dev · 2021-10-20 10:46
marcanI haven't looked at it at all, but AIUI it's an ASC with command submission and apparently a DART, so probably less fancy address translation than the GPU
#asahi-dev · 2021-10-20 10:44
marcanthe neural engine thing
#asahi-dev · 2021-10-20 10:43
marcan(cc arnd)
#asahi-dev · 2021-10-20 10:43
marcanmy hunch is it should be a DRI driver, and I see there's been drama over this already and people aren't doing that because DRI requires open source userspace
#asahi-dev · 2021-10-20 10:43
marcanhm, since someone mentioned ANE again... I'm wondering *how* that would even be implemented?
#asahi-dev · 2021-10-13 09:08
marcanthis is windows driver process name hacks level
#asahi-dev · 2021-10-13 09:08
marcanamazing
#asahi-dev · 2021-10-12 06:50
marcanyeah, it could be a safety thing, unclear
#asahi-dev · 2021-10-12 06:43
marcanjust due to physics
#asahi-dev · 2021-10-12 06:43
marcanso effectively one way of thinking about this is that this is a 3.0GHz 4-core CPU that "just happens" to be able to boost to 3.2GHz single core for free, at the same settings, on a single core at a time
#asahi-dev · 2021-10-12 06:42
marcanof course then the question becomes why don't they just boost the voltage higher anyway to be able to fire off more cores, but maybe they thought at that point the power curve would get too out of control?
#asahi-dev · 2021-10-12 06:41
marcanbut that really does need the other cores to be pretty much dead to get enough of a boost to safely increase the clock
#asahi-dev · 2021-10-12 06:41
marcanso effectively by shutting down cores they boost the voltage, without increasing the actual input
#asahi-dev · 2021-10-12 06:41
marcanand that IR drop is lower if only one core is active
#asahi-dev · 2021-10-12 06:41
marcanso instead I bet the story is that it's the voltage at the package/cluster level, but then there is IR drop to the actual core
#asahi-dev · 2021-10-12 06:40
marcanthat doesn't make any sense for actual CPU core voltage, you have to increase the voltage to go higher
#asahi-dev · 2021-10-12 06:40
marcan3.0 GHz+ is at the same voltage
#asahi-dev · 2021-10-12 06:40
marcanunrelated: looking at the pstates again I have a theory about why 3.2GHz is single core
#asahi-dev · 2021-10-12 06:39
marcanpretty considerate of them to release these machines when I'd gotten tired of jailbreak platforms but I still wanted to spend time porting linux to new hardware :)
#asahi-dev · 2021-10-12 06:33
marcanI just was not expecting Apple to be the one to do it back then, but here we are
#asahi-dev · 2021-10-12 06:33
marcanchadmed: tbh I'd been waiting for a nice ARM box for over a decade now
#asahi-dev · 2021-10-12 06:30
marcanbut it would be nice if e.g. firefox grew support for this on M1s on Linux
#asahi-dev · 2021-10-12 06:29
marcanmight be a bit tricky since you need special bypass paths
#asahi-dev · 2021-10-12 06:29
marcanit just goes straight to a DCP plane
#asahi-dev · 2021-10-12 06:29
marcan(e.g. on safari on macos)
#asahi-dev · 2021-10-12 06:29
marcanthe GPU is literally off while streaming video on these devices
#asahi-dev · 2021-10-12 06:29
marcanit's basically the CPU kicking hardware engines that do everything
#asahi-dev · 2021-10-12 06:29
marcanit helps that apple are optimizing the crap out of that use case
#asahi-dev · 2021-10-12 06:29
marcanahahaha
#asahi-dev · 2021-10-12 06:28
marcanI just took someone else's script :p
#asahi-dev · 2021-10-12 06:28
marcanah, mine does it automagically
#asahi-dev · 2021-10-12 06:28
marcane.g. if you can have a phone survive idle for a day, with laptop sized batteries that's a week
#asahi-dev · 2021-10-12 06:27
marcanand the thing is, anything that is good by phone standards is killer by laptop standards
#asahi-dev · 2021-10-12 06:27
marcanchadmed: I heard that power management is even more amazing on that one
#asahi-dev · 2021-10-12 06:27
marcanbut even with that following them is annoying
#asahi-dev · 2021-10-12 06:27
marcan(I have one on ghidra)
#asahi-dev · 2021-10-12 06:26
marcansven: you do have a script to fix the stupid PAC-ished vtables, right?
#asahi-dev · 2021-10-12 06:26
marcanyeah
#asahi-dev · 2021-10-12 06:25
marcanglad that was a month well spent
#asahi-dev · 2021-10-12 06:25
marcan:>
#asahi-dev · 2021-10-12 06:25
marcanit's a lot harder to get people interested in "intel, but shiny aluminum"
#asahi-dev · 2021-10-12 06:25
marcanit helps that apple actually put out something unique though
#asahi-dev · 2021-10-12 06:25
marcanheh, yeah
#asahi-dev · 2021-10-12 05:31
marcanmaybe if a few years down the line I actually find myself without Asahi stuff to do for a week I'll take a look at it :p
#asahi-dev · 2021-10-12 05:30
marcanI don't care because I use an external interface anyway

plus ›