#
✕ nick:sven
#asahi-re · 2022-12-02 23:31
svena decade or so ago he took our ps3 research, used that to release keys (which we deliberately avoided) without any credit and then got us sued by Sony
#asahi-re · 2022-12-02 23:29
sven“Ripping off others people research” is kinda his thing unfortunately…
#asahi-re · 2022-11-28 17:42
sven:D
#asahi-re · 2022-11-22 18:51
svenall changes
#asahi-re · 2022-11-22 18:50
svenjust call poll whenever a message between ap and isp is exchanged
#asahi-re · 2022-11-22 18:50
sventhatll work for normal memory as well
#asahi-re · 2022-11-22 18:50
sventhere regmonitor or however it’s called
#asahi-re · 2022-11-15 08:41
sventhanks. will check later
#asahi-re · 2022-11-15 08:34
svenat least I think so, jannau knows the details ;)
#asahi-re · 2022-11-15 08:34
svenyup
#asahi-re · 2022-11-15 08:34
svenR did that
#asahi-re · 2022-11-15 08:34
svenyes
#asahi-re · 2022-11-15 08:33
sveniirc that was the case for t6000 as well
#asahi-re · 2022-11-15 08:33
svenNice, thanks!
#asahi-re · 2022-11-15 08:32
svenand looked at that code a few times because it was so weird
#asahi-re · 2022-11-15 08:32
svenive just checked that it does the same writes in the hv on my two m1s
#asahi-re · 2022-11-15 08:32
svenfeel free to double check that on t8103 if you have some time
#asahi-re · 2022-11-15 08:31
svenyes
#asahi-re · 2022-11-15 08:31
svenbut wait.. I think that’s the case for the non-workaround phy on t8103 as well
#asahi-re · 2022-11-15 08:30
svenstrange
#asahi-re · 2022-11-15 08:29
svenbut the fuse value just one and the top bit is set to zero or something
#asahi-re · 2022-11-15 08:28
svenalso check the mask, iirc the mask for the reg has two bits
#asahi-re · 2022-11-15 08:28
svenit’s weird, I’m pretty sure I checked that workaround case a few times because it doesn’t make much sense
#asahi-re · 2022-11-15 08:27
svenoj the other t8103 phy as well
#asahi-re · 2022-11-15 08:27
svenyup
#asahi-re · 2022-11-15 08:27
svenyes…
#asahi-re · 2022-11-15 08:26
svenhttps://github.com/AsahiLinux/linux/blob/d5cd55d580e95c37e7623afef31a84e78065a9ea/drivers/phy/apple/atc.c#L695
#asahi-re · 2022-11-15 08:25
svenit’s a special case in the t8103 kext for one of the two phys
#asahi-re · 2022-11-15 08:25
svenit first writes the original value, then some other value and finally the second value or something
#asahi-re · 2022-11-13 18:49
sveni've done that for the first two fuses or so before I got fed up, but maybe someone is more patient
#asahi-re · 2022-11-13 18:49
sventhe other alternative to get them is to intercept reads/write to the fuse region and the atcphy fuse regs and play around with a few different patterns to see what gets stored where
#asahi-re · 2022-11-13 18:48
sventhat's all just debug print stuff and can be used to match up the name of the fuse and otherwise ignored
#asahi-re · 2022-11-13 18:47
svenafter that you'll always see a very big block which looks like if (this + whatever == something) { .... } and there will be lots of boilerplate in that block
#asahi-re · 2022-11-13 18:47
sventhe first one reads the fuse and extracts some bits, the second one applies the values to the atcphy. the atcphy regs can be matched up with what I have inside atcphy.c and are probably the same
#asahi-re · 2022-11-13 18:46
sventhat's then followed up by *(uint *)(atcphy_mmio_ptr + some_offset) = *(uint *)(atcphy_mmio_ptr + some_offset) & some_mask | fuse_value << some_shift;
#asahi-re · 2022-11-13 18:45
svenif you decompile it in ghidra you'll see patterns like fuse_full = *(uint *)((this + whatever) + some_offset); fuse_value = (fuse_full >> some_shift) & some_mask;
#asahi-re · 2022-11-13 18:43
sventhat function is very very verbose with debug prints
#asahi-re · 2022-11-13 18:43
sventhese are read and applied in AppleT8112TypeCPhy::performEFuseProgramming
#asahi-re · 2022-11-13 18:43
svenso if anyone wants to help enable usb3 on the M2 here's how: we need the fuses (see e.g. https://github.com/AsahiLinux/linux/blob/d5cd55d580e95c37e7623afef31a84e78065a9ea/arch/arm64/boot/dts/apple/t8103.dtsi#L986) for the M2 atcphy
#asahi-re · 2022-11-12 20:48
svenand iirc then I put it into a .dmg and opened it with macos or something
#asahi-re · 2022-11-12 20:48
svenI got mine by just dumping the partition from linux (or maybe m1n1)
#asahi-re · 2022-11-12 20:48
svenno, macos won't ever allow access
#asahi-re · 2022-11-12 20:47
svenand finding that shmem is also easy because it has to be mapped inside the DART and iovas are very suspicious in the messages
#asahi-re · 2022-11-12 20:46
sventhat's the only signal SEP gets as well
#asahi-re · 2022-11-12 20:46
svenno need to write a kext, just look at the shmem at the time the message is sent/received
#asahi-re · 2022-11-09 11:00
sveni've loaded dcp and ans into ghidra successfully as well fwiw
#asahi-re · 2022-11-09 10:05
svendon't they have a home license for like 360eur/year or something these days?
#asahi-re · 2022-10-22 08:28
sventag is probably just an id to match a request to a response
#asahi-re · 2022-10-22 08:27
svendon’t remember why I had two sepmessages, probably one is just a leftover
#asahi-re · 2022-10-18 14:05
sventhe firmware is essentially an opaque blob for us. and as i said, it's somewhere in RAM with the address passed in the ADT anyway

plus ›