2022-04-26
00:09bpye has quit [Ping timeout: 480 seconds]
00:28bpye has joined #asahi-dev
00:35chadmed has joined #asahi-dev
00:36user982492 has joined #asahi-dev
00:54yuyichao has quit [Ping timeout: 480 seconds]
02:23yuyichao has joined #asahi-dev
02:35PhilippvK has joined #asahi-dev
02:39phiologe has quit [Ping timeout: 480 seconds]
03:10jakebot has joined #asahi-dev
04:04kov has quit [Quit: Coyote finally caught me]
04:04kov has joined #asahi-dev
06:49user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
07:08millenialhacker has joined #asahi-dev
07:09millenialhacker has quit [Remote host closed the connection]
07:12user982492 has joined #asahi-dev
07:37jluthra has quit [Ping timeout: 480 seconds]
07:38user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
08:45bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
10:05PhilippvK has quit [Quit: No Ping reply in 180 seconds.]
10:06bisko has joined #asahi-dev
10:14bisko has quit [Ping timeout: 480 seconds]
10:17jluthra has joined #asahi-dev
10:20phiologe has joined #asahi-dev
10:24bisko has joined #asahi-dev
10:33ljmcc[m] has joined #asahi-dev
10:42phiologe has quit [Quit: No Ping reply in 180 seconds.]
10:43phiologe has joined #asahi-dev
11:24bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
11:24bisko has joined #asahi-dev
11:28phiologe has quit [Quit: No Ping reply in 180 seconds.]
11:29phiologe has joined #asahi-dev
12:08bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
12:09bisko has joined #asahi-dev
12:43bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
12:48bisko has joined #asahi-dev
13:01bisko has quit [Read error: Connection reset by peer]
13:04bisko has joined #asahi-dev
13:21millenialhacker has joined #asahi-dev
13:22bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
13:22bisko has joined #asahi-dev
13:23bisko has quit []
13:26millenialhackersilly question: how do we know there are 16 TTBRs per DART unit?
13:28bisko has joined #asahi-dev
13:34bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
13:35bisko has joined #asahi-dev
13:36yuyichao has quit [Ping timeout: 480 seconds]
13:37bisko has quit []
13:37bisko has joined #asahi-dev
13:38millenialhackerI think I mean 16 streams per DART
13:41bisko has quit []
13:48bisko has joined #asahi-dev
13:57yuyichao has joined #asahi-dev
14:11winter has quit [Quit: The Lounge - https://thelounge.chat]
14:12winter has joined #asahi-dev
14:28_jannau_I guess by testing to write an read back for an increasing number of SIDs. the thunderbolt darts have 64 SIDs
14:31bisko has quit [Read error: Connection reset by peer]
14:34bisko has joined #asahi-dev
14:37milan475[m] has joined #asahi-dev
14:40bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
15:38millenialhackerI think ISP also have more than 16
15:50millenialhacker has quit [Quit: Konversation terminated!]
15:58millenialhacker has joined #asahi-dev
16:11jannaumillenialhacker: judging by "dart-tunables-instance-X" in the adt there are 3 dart instances for isp. compare with 2 instances for the usb-c ports
16:13svenPCIe figures out 16 vs 64 (or whatever number) inside the rid2sid map by testing which regs are writable
16:14svenIm willing to be the sid count is also encoded in one of the DART_PARAM regs at the start though
16:15svenand iommu-maps is then consulted to figure out which pci device number is supposed to be mapped to which sid
16:50millenialhacker has quit [Read error: Connection reset by peer]
16:59millenialhacker has joined #asahi-dev
17:01millenialhacker has quit [Remote host closed the connection]
17:02millenialhacker has joined #asahi-dev
17:03millenialhackeryeah i noticed that sometimes these three darts are are using same translation tables
17:03millenialhackersometimes not
17:07millenialhackerbut i see sometimes dart regs are written with same values like when we set TTBR[0-16] in other offsets which makes me thing there more supported SIDs on those.
17:10millenialhackerBTW I just repurpose DART mapper in my branch to monitor six darts instances at same time, so I know those extra offsets do not belong to other DART from ISP.
17:11millenialhackersame with TCR, i see the values when TCR is set written in other offsets as well
17:23millenialhackershould corellium codebase be treated specially like copyright disclaimer suggests? sven, marcan?
17:27svenfor usb XNU just mirrors the writes and pagetables for both DART instances, might just be the same for ISP
17:28sveni haven't seen anything problematic from a copyright standpoint inside corellium's code but I generally avoid looking at it because it's just a PoC and can give you the wrong idea about how to write a sane driver
17:29sveni think marcan's policy is to treat it as if you were reading decompiled XNU assembly though
17:29svenanyone with a t6k here who can give https://github.com/AsahiLinux/linux/tree/nvme-v3 a brief test?
17:32millenialhackersven that makes sense, I noticed that independently of the DART instance, if I do IOREAD on them using a IOVA I always get same data, which made me thing they were using same page tables.
17:34millenialhackersven, regarding corellium, I just noticed they initialized iommu driver instance with some data regarding number of SIP supported by DART instance, so I wonder if we can at least see how they did it.
17:37sveneither it's possible to get the number of SIDs from one of the early DART registers, or we check how many TCRs we can access, or we just add another compatible for the 64bit DART i
17:39millenialhackerty, now I got your p\];p['
17:39millenialhackerpoint*
17:40user982492 has joined #asahi-dev
17:50jannausven: boots and mount root fs from nvme, (asahi branch with bits/050-nvme replaced by nvme-v3, smc-rtkit disabled, no dcp)
17:54millenialhacker has quit [Remote host closed the connection]
17:56the_lanetly_052 has joined #asahi-dev
18:02nicolas17I'm confusing things because the studio display firmware also has a beta out and it matches iOS versions
18:13user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:18laolmtdea^ has joined #asahi-dev
19:02the_lanetly_052__ has joined #asahi-dev
19:08user982492 has joined #asahi-dev
19:09the_lanetly_052 has quit [Ping timeout: 480 seconds]
19:11systwi has quit []
19:22systwi has joined #asahi-dev
19:24jannauI switched to dart.py to test it on t6k so that should take care of that and it enables stream_id 1
19:25svenI never tried that old script with translation because I didn’t know about that stream_enable register so there could be also some other issue
19:43svenit essentially has a command fifo, wouldn’t surprise be if you need to reset it if a command in there gets stuck
20:01RevHelix has quit [Quit: I am going to make my own channel, with blackjack and hookers!]
20:01RevHelix has joined #asahi-dev
20:08the_lanetly_052__ has quit [Remote host closed the connection]
20:08the_lanetly_052__ has joined #asahi-dev
20:23svenhttps://lore.kernel.org/linux-nvme/20220426201539.12829-1-sven@svenpeter.dev/T/#t and there's nvme-v3 :-)
20:53laolmtdea^ has quit [Ping timeout: 480 seconds]
20:58laolmtdea^ has joined #asahi-dev
21:10AndreasSchwalb[m] has joined #asahi-dev
21:13user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:11laolmtdea^ has quit [Ping timeout: 480 seconds]
23:24user982492 has joined #asahi-dev
23:51yuyichao has quit [Ping timeout: 480 seconds]