#
…

2022-04-03

00:01Ph03n1ks has quit [Remote host closed the connection]
00:02doggkruse has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
00:03doggkruse has joined #asahi-re
00:04Ph03n1ks has joined #asahi-re
00:19doggkruse has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
00:37rqou_i think i have the core of the t8110 dart figured out https://github.com/rqou/m1n1/tree/dart-t8110
00:38rqou_note that this is hardware revision 1.0, and the actual M2 may have yet another new version of this DART interface
00:40nicolas17rqou_: did you figure it out by blackbox testing or reversing Apple's kernel?
00:40rqou_mix of both
00:40nicolas17you could decompile A15 kernels if you're curious about the future hw :)
00:41rqou_oh, the code is available, just the hardware behavior wouldn't be
00:41rqou_unless someone wants to hand me a research jailbreak on an a15
00:41rqou_possibly even requiring a PPL bypass
00:47Ph03n1ks has quit [Remote host closed the connection]
00:48chadmed has joined #asahi-re
01:06akemin_dayo has joined #asahi-re
01:17Ph03n1ks has joined #asahi-re
01:17Ph03n1ks has quit [Read error: Connection reset by peer]
01:21Ph03n1ks has joined #asahi-re
01:34bisko has quit [Read error: Connection reset by peer]
01:38bisko has joined #asahi-re
01:58Ph03n1ks has quit [Remote host closed the connection]
01:58Ph03n1ks has joined #asahi-re
02:07Ph03n1ks has quit [Ping timeout: 480 seconds]
02:16Ph03n1ks has joined #asahi-re
02:29Ph03n1ks has quit [Ping timeout: 480 seconds]
02:47Ph03n1ks has joined #asahi-re
03:00PhilippvK has joined #asahi-re
03:04phiologe has quit [Ping timeout: 480 seconds]
03:31Ph03n1ks has quit [Remote host closed the connection]
03:31bisko has quit [Read error: Connection reset by peer]
03:33Ph03n1ks has joined #asahi-re
03:35doggkruse has joined #asahi-re
03:36bisko has joined #asahi-re
03:41Ph03n1ks has quit [Ping timeout: 480 seconds]
03:50Ph03n1ks has joined #asahi-re
03:54doggkruse has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
04:01Ph03n1ks has quit [Ping timeout: 480 seconds]
04:10Ph03n1ks has joined #asahi-re
04:51Ph03n1ks has quit [Remote host closed the connection]
04:51Ph03n1ks has joined #asahi-re
04:55alcazar has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
04:56doggkruse has joined #asahi-re
05:03Ph03n1ks has quit [Remote host closed the connection]
05:04Ph03n1ks has joined #asahi-re
05:13rqou_uhh the linux DART driver doesn't try to set PTE bit 1 (SP_PROT_DIS) does it? because on t6000 that bit does something completely different
05:13rqou_according to the symbols, it flags the page as uncacheable
05:28bisko has quit [Read error: Connection reset by peer]
05:30bisko has joined #asahi-re
05:31jannaurqou_: the common io-pgtable-arm.c used by the dart driver sets that bit
05:33r0ni has quit [Quit: Textual IRC Client: www.textualapp.com]
05:37rqou_uhh where? can we make it not do that?
05:39jannausearch for ARM_LPAE_PTE_TYPE_PAGE
05:40rqou_Someone(TM) should maybe investigate/fix that?
05:40rqou_idk if the bit actually works
05:41jannauI don't think we can change it to not set that code, we would hvae to copy it and make it dart specific
05:42doggkruse has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
05:43jannauit's possible to not set that bit for testing locally
05:47jannauor maybe we can, just extend the 'fmt != ARM_MALI_LPAE' with 'fmt != APPLE_DART'
05:57rqou_idk, i'm not really a good kernel dev
05:57rqou_at some point should investigate whether or not that bit actually makes the page not be cached (presumably in the DART TLB?)
05:58rqou_unrelatedly, does anybody know how to fix ghidra's varargs ABI?
06:13Ph03n1ks has quit [Remote host closed the connection]
06:17doggkruse has joined #asahi-re
06:18the_lanetly_052 has joined #asahi-re
06:30doggkruse has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
07:12chadmed has quit [Remote host closed the connection]
07:19svenuh, uncacheable might also mean that access to that page bypasses all caches
07:19svenwhich wouldn't be great if we accidentally set that for all pages :D
07:26bisko has quit [Read error: Connection reset by peer]
07:28bisko has joined #asahi-re
07:29chadmed has joined #asahi-re
07:42nicolas17 has quit [Ping timeout: 480 seconds]
07:49rqou_this only affects iommu pages, but yes
07:50rqou_idk if it bypasses all caches or just the iommu TLB
07:59chadmed has quit [Remote host closed the connection]
08:00chadmed has joined #asahi-re
08:09chadmed has quit [Remote host closed the connection]
08:09chadmed has joined #asahi-re
08:18MajorBiscuit has joined #asahi-re
08:21Ph03n1ks has joined #asahi-re
08:22Ph03n1ks has quit []
08:50chadmed has quit [Ping timeout: 480 seconds]
08:56bisko has quit [Read error: Connection reset by peer]
08:57bisko has joined #asahi-re
09:10MajorBiscuit has quit [Ping timeout: 480 seconds]
09:33svenI’ve never seen a bit to indicate “don’t add this to the tlb” but “accesses to this page bypasses all caches” is pretty common
09:37herbas has joined #asahi-re
10:19MajorBiscuit has joined #asahi-re
10:22rqou_btw, why doesn't attempting to turn on dart-apcieN work?
10:22rqou_>>> p.pmgr_adt_clocks_enable(f'/arm-io/dart-apciec0')
10:22rqou_TTY> pmgr: Error getting /arm-io/dart-apciec0 clock-gates.
10:22rqou_0xffffffffffffffff
10:27jannauthe clock-gates are in '/arm-io/apciec0' and not in the dart node
10:32rqou_hmm, then i get 0xffffffff trying to read any of the DART registers
10:33rqou_(i'm just trying to check the parameter registers to see if they're very different or not)
10:42MajorBiscuit has quit [Ping timeout: 480 seconds]
10:49sventhat's more complex
10:49svengetting the thunderbolt DART up requires ATCPHY to be up and that CIO co-processor to be running as well
10:49sventechnically it only requires you to poke some "thunderbolt clock" or something that's different from the normal PMGR stuff
10:50svenbut if you do that without ATCPHY or handling that CIO co-processor you get ~2 seconds until the entire SoC reboots
10:54bisko has quit [Read error: Connection reset by peer]
10:55bisko has joined #asahi-re
11:03rqou_even if i just want to read register 0?
11:04rqou_ok, i'll look at this some other time
11:04amarioguy has joined #asahi-re
11:04sventhe easiest way is probably to run macOS, connect some thunderbolt device and then break in the hypervisor and read it from there
11:05rqou_not sure i even own any thunderbolt devices
11:06amarioguy has quit [Remote host closed the connection]
11:52kameks has joined #asahi-re
12:22bisko has quit [Read error: Connection reset by peer]
12:23alyssa has quit [Quit: leaving]
12:27bisko has joined #asahi-re
12:37herbas has quit [Quit: herbas]
12:41the_lanetly_052 has quit [Ping timeout: 480 seconds]
13:32MajorBiscuit has joined #asahi-re
14:19bisko has quit [Read error: Connection reset by peer]
14:21bisko has joined #asahi-re
15:07kameks has quit [Ping timeout: 480 seconds]
16:04nicolas17 has joined #asahi-re
16:17bisko has quit [Read error: Connection reset by peer]
16:21bisko has joined #asahi-re
16:40doggkruse has joined #asahi-re
17:02Misthios has quit [Quit: Misthios]
17:03Misthios has joined #asahi-re
17:26bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
17:27bisko has joined #asahi-re
17:50MajorBiscuit has quit [Ping timeout: 480 seconds]
18:14bisko has quit [Read error: Connection reset by peer]
18:17bisko has joined #asahi-re
18:37Shiz has quit [Ping timeout: 480 seconds]
19:29bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
19:53bisko has joined #asahi-re
20:11bisko has quit [Read error: Connection reset by peer]
20:13bisko has joined #asahi-re
21:15bisko has quit [Quit: Textual IRC Client: www.textualapp.com]
22:00yrlf has quit [Quit: The Lounge - https://thelounge.chat]
22:05yrlf has joined #asahi-re
22:21yusoofsh[m] has left #asahi-re [#asahi-re]
…