#
✕ nick:DannyB
#asahi-dev · 2023-11-30 16:34
DannyBand the hpm are compatible with usbc,sn20120x,spmi
#asahi-dev · 2023-11-30 16:34
DannyBthere is an appletccontroller class now in AppleHPM that seems to do the work
#asahi-dev · 2023-11-30 16:34
DannyBit looks like they call it a "TC Controller"
#asahi-dev · 2023-11-30 16:32
DannyBAppleHPM kext has been updated to handle it
#asahi-dev · 2023-11-30 16:31
DannyBThere is no i2c0 anymore, or hpmBusManager, the hpm devices are children of an SPMI nub
#asahi-dev · 2023-11-30 16:25
DannyBy
#asahi-dev · 2023-11-30 16:25
DannyBi'm sure this will go swimmingl
#asahi-dev · 2023-11-30 16:25
DannyBi'll see if the phys will just power on magically without having to twiddle bits
#asahi-dev · 2023-11-30 16:21
DannyBSo that will have tow ait
#asahi-dev · 2023-11-30 16:21
DannyBoh well, USB is now powered/controled by an SPMI controller
#asahi-dev · 2023-11-30 14:17
DannyBCPRV: 0x12
#asahi-dev · 2023-11-30 14:17
DannyBSRTG: iBoot-8104.0.0.300.45
#asahi-dev · 2023-11-30 14:17
DannyBMODEL: j516cap
#asahi-dev · 2023-11-30 14:17
DannyBNAME: MacBook Pro (16-inch, M3 Max, Nov 2023)
#asahi-dev · 2023-11-30 14:17
DannyBPRODUCT: Mac15,9
#asahi-dev · 2023-11-30 12:15
DannyBoh crap forgot about that, one sec
#asahi-dev · 2023-11-30 12:13
DannyBsubpath doesn't exist either).
#asahi-dev · 2023-11-30 12:13
DannyBmaz: The interrupt controller is done. USB required a little new code but just about done. Mostly because apple matches anything with a certain compatible string instead of a fixed path i2c0 (which doesn't even exist on the m3 max). So i had to add a tree walk to find the compatible HPM instances because the code assumes they are i2c0 (which doesn't even exist on this machine) and that they are a subpath of i2c0 (the
#asahi-dev · 2023-11-30 05:15
DannyB(but also not issuing any error)
#asahi-dev · 2023-11-30 05:15
DannyBso it was not actually creating the whole of memory region map
#asahi-dev · 2023-11-30 05:14
DannyBwe do not
#asahi-dev · 2023-11-30 05:14
DannyBOn the m3's, mem_size_actual is not set in the boot_args. It's just 0. XNU uses mem_size (masked with ~page_size) in that case
#asahi-dev · 2023-11-30 05:14
DannyBI got m3 working. It was the dumbest thing in the world and now i am going to hang my head in shame.
#asahi-dev · 2023-11-29 17:48
DannyB(in mos tstates, dump trucks are responsible for breaking your windshield, and in most parking lots, the store is responsible if your car gets broken into or stuff gets stolen)
#asahi-dev · 2023-11-29 17:47
DannyBjust because you write the sign doesn't make it true
#asahi-dev · 2023-11-29 17:47
DannyBAnyway, most license clauses are the advanced version of the signs in parking lots that say "not responsible for lost stuff and broken cars" and signs on the back of dump trucks that say "not responsible for broken windshields"
#asahi-dev · 2023-11-29 17:46
DannyBWhich is the kind of project you want run by an engilawyer
#asahi-dev · 2023-11-29 17:45
DannyBI was responsible for running the team that added windows C++ ABI support to clang/llvm
#asahi-dev · 2023-11-29 17:45
DannyByeah gonna say hopper looks nicer now
#asahi-dev · 2023-11-29 17:45
DannyBlol
#asahi-dev · 2023-11-29 17:42
DannyBBut i'ma lso not your lawyer, or the project's lawyer, so i can only give you general advice :)
#asahi-dev · 2023-11-29 17:41
DannyBFWIW - if you need general advice, i'm not just a developer, i'm also an IP lawyer and i've run RE projects safely before :)
#asahi-dev · 2023-11-29 01:39
DannyBmaz: Got the central scrutinizer. Works great on the m3. Thank you!
#asahi-dev · 2023-11-28 16:47
DannyBin any cse, this has all been useful so far. i'll go try some stuff here and see what happens
#asahi-dev · 2023-11-28 16:47
DannyBgot it
#asahi-dev · 2023-11-28 16:42
DannyBOne random thing i noticed - we init the mcc, and init the mmu, but we never actually set the cache to a known state (disabled or enabled). mcc_init just sets up the registers. Apple's MCC init explicitly disables and then enables cache.
#asahi-dev · 2023-11-28 16:32
DannyBokay, i'll be near it in an hour or two
#asahi-dev · 2023-11-28 16:32
DannyBgotcha
#asahi-dev · 2023-11-28 16:31
DannyBi wil do that
#asahi-dev · 2023-11-28 16:31
DannyBI have not tried writing our value earlier
#asahi-dev · 2023-11-28 16:29
DannyB(or MTE if it's supported and enabled)
#asahi-dev · 2023-11-28 16:29
DannyB@sven: We do call memory allocation functions prior to setting the TCR. But the MMU is disabled. So the only effect could be from top byte ignore i guess?
#asahi-dev · 2023-11-28 16:28
DannyBnicolas17: I have one. what do you need? (I'm not near it for a few hours, but can get it when i am back)
#asahi-dev · 2023-11-28 15:15
DannyBWe are basically trying to figure out if iBoot has put it in a different state or what
#asahi-dev · 2023-11-28 15:15
DannyBfor m3 vs m2, if anything
#asahi-dev · 2023-11-28 15:15
DannyBand see what the heck it's doing
#asahi-dev · 2023-11-28 15:15
DannyBi actually was going to ask if anyone has ever decrypted iboot on macos
#asahi-dev · 2023-11-28 15:14
DannyByes
#asahi-dev · 2023-11-28 14:50
DannyBAnyway, let me turn off sprr perms and see if that works without messing with TCR.
#asahi-dev · 2023-11-28 14:47
DannyBabove

plus ›