#
✕ nick:marcan
#asahi · 2021-02-07 17:18
marcanI might look into trying that out if the scaffolding required isn't too much trouble
#asahi · 2021-02-07 17:18
marcanmodwizcode: there was some talk on #armlinux about implementing PSCI over UEFI
#asahi · 2021-02-07 15:46
marcanotherwise it can just return
#asahi · 2021-02-07 15:46
marcanif lr == 0, it knows it was deep
#asahi · 2021-02-07 15:46
marcanit checks
#asahi · 2021-02-07 15:46
marcanand then a cpuidle driver can set it to always or heuristic, and deal with it there
#asahi · 2021-02-07 15:45
marcanm1n1 sets it to never power down, so linux doesn't need any weirdo wfi hook like corellium did
#asahi · 2021-02-07 15:45
marcanalways power down, never power down, let the heuristic decide
#asahi · 2021-02-07 15:45
marcanthere are three settings
#asahi · 2021-02-07 15:45
marcanbut you can configure it to only clock gate, and then it keeps state
#asahi · 2021-02-07 15:45
marcanmodwizcode: the registers
#asahi · 2021-02-07 15:44
marcannever_released: does macos ever actually do that for the e-complex?
#asahi · 2021-02-07 15:44
marcanmodwizcode: yes
#asahi · 2021-02-07 15:43
marcanwhich power gates the core but when it comes back it keeps pc/sp
#asahi · 2021-02-07 15:43
marcanthese cores support retention wfi
#asahi · 2021-02-07 15:43
marcancan you? why would you ever do that?
#asahi · 2021-02-07 15:42
marcanwhich makes it irrelevant
#asahi · 2021-02-07 15:42
marcanwhich is already running
#asahi · 2021-02-07 15:42
marcannever_released: only for the boot core
#asahi · 2021-02-07 09:33
marcanbut we should be able to introduce this at a later stage anyway; no deep sleep for now, if it turns out we need phy blobs to resume from deep sleep states we want to use, we make m1n1 pass those through, and until then this keeps the drivers and DT bindings simpler and more reviewable for the initial versions
#asahi · 2021-02-07 09:32
marcanI think part of apple's motivation for pushing all that crap into macos is simply to keep iBoot small and simple, because it's a higher security boundary - not because it *has* to be macos doing these things
#asahi · 2021-02-07 09:31
marcangiven how macos lasts for ages on battery... if it isn't ever going into deep enough sleep to need those PHY reinits, then I say we don't need to either
#asahi · 2021-02-07 09:30
marcanthis is m1n1's entire reason to exist, to take care of as many apple-isms as it can before handing off to linux, u-boot, or whatever
#asahi · 2021-02-07 09:29
marcanbut yeah that depends on how deep a sleep we go into and how much state is lost in that case
#asahi · 2021-02-07 09:28
marcanarnd: I want to bring up as much PHY stuff as I can in m1n1, to avoid pushing those hideous register poke blobs downstream into the linux fdt
#asahi · 2021-02-07 09:27
marcanlolwut
#asahi · 2021-02-06 20:37
marcan(I found at least one source so far but they're like $35)
#asahi · 2021-02-06 20:37
marcanwill work with normal cables, but I want to try to source special passthrough cables for the target side from china for a reasonable price, since that adds features
#asahi · 2021-02-06 20:36
marcanTheJollyRoger: it's not actually going to be a cable, it's going to be a board with two type C ports
#asahi · 2021-02-06 18:44
marcanvery biribiri
#asahi · 2021-02-06 18:44
marcanMary_: nice rust bringup btw :)
#asahi · 2021-02-06 18:43
marcando you have the docs for those? those are public, the related public chip's at least
#asahi · 2021-02-06 18:43
marcankettenis: well I've been messing with those PD controllers through the other end so...
#asahi · 2021-02-06 18:43
marcanheh yeah :)
#asahi · 2021-02-06 18:41
marcanthose are all USB2.0
#asahi · 2021-02-06 18:41
marcanyeah no charging cable will work
#asahi · 2021-02-06 18:41
marcanwhoops
#asahi · 2021-02-06 18:40
marcanI need to go through a round of comparing the apple hw to the pasemi doc and seeing how much they diverge
#asahi · 2021-02-06 18:40
marcan:p
#asahi · 2021-02-06 18:40
marcanbut yes I'll be cost-reducing it 10-20x or so at least
#asahi · 2021-02-06 18:39
marcanthat's certainly the fastest path right now :-)
#asahi · 2021-02-06 18:39
marcanbut I'm sure I can look up anything we need
#asahi · 2021-02-06 18:39
marcanunfortunately I can't
#asahi · 2021-02-06 18:37
marcannever_released: remember what I said about talking to people? :-)
#asahi · 2021-02-06 18:36
marcanthat's another corellium driver that's likely getting thrown away, because I contacted the i2c-pasemi author and got docs and confirmed that it *does* support IRQs and we can add that and have it tested on the pasemi platform
#asahi · 2021-02-06 18:36
marcanarnd: the i2c is pasemi so...
#asahi · 2021-02-06 15:50
marcanthat's an instruction page fault
#asahi · 2021-02-06 15:49
marcanI mean if they were a problem linux would've complained, so presumably the fact it handled them quietly means they aren't
#asahi · 2021-02-06 15:48
marcani.e. page faults
#asahi · 2021-02-06 15:48
marcanpresumably that's normal

plus ›