#asahi-dev · 2023-09-10 14:58
marcanohhh I get it#asahi-dev · 2023-09-10 14:57
marcanthat EPROBE_DEFER is wrong, isp is making it up#asahi-dev · 2023-09-10 14:55
marcanwith USB we could see certain kinds of requests wind up on one DART or the other (ask sven about that)#asahi-dev · 2023-09-10 14:54
marcanI believe the underlying reason for the multiple DARTs is performance or perhaps different configurations, where they connect different hardware memory initiators to different DARTs so it doesn't bottleneck on one#asahi-dev · 2023-09-10 14:54
marcanwhich is a pattern they have#asahi-dev · 2023-09-10 14:54
marcanthis is just Apple being very, very stupid in how they represent things in their device tree#asahi-dev · 2023-09-10 14:53
marcanthey are absolutely real DARTs#asahi-dev · 2023-09-10 14:53
eilnmy understanding is that they are not real darts. and initing them as separate iommus might erase the special tunables#asahi-dev · 2023-09-10 14:53
marcanoh that's just EPROBE_DEFER lol#asahi-dev · 2023-09-10 14:53
marcansomething's wack here#asahi-dev · 2023-09-10 14:53
marcan[ 0.372900] apple-isp 22a000000.isp: failed to init iommu: -517#asahi-dev · 2023-09-10 14:53
marcan[ 0.371541] apple-dart 22c0e8000.iommu: adding as dart #0#asahi-dev · 2023-09-10 14:53
marcan[ 0.372085] apple-dart 22c0f4000.iommu: sid=0#asahi-dev · 2023-09-10 14:53
marcan[ 0.371095] apple-dart 22c0e8000.iommu: sid=0#asahi-dev · 2023-09-10 14:53
marcanah wait#asahi-dev · 2023-09-10 14:52
marcantrying to figure out why#asahi-dev · 2023-09-10 14:52
marcanthe "right" way#asahi-dev · 2023-09-10 14:52
marcanI mean the multi-dart thing isn't working now#asahi-dev · 2023-09-10 14:51
eilnwhere is it not mirrored?#asahi-dev · 2023-09-10 14:42
marcanand I also don't see things mirrored in the DARTs#asahi-dev · 2023-09-10 14:41
marcanhm, now I broke t8103 the same way#asahi-dev · 2023-09-10 14:36
svenyeah, that #asahi-dev · 2023-09-10 14:36
jannauin apple-dart.c#asahi-dev · 2023-09-10 14:36
marcanah yeah#asahi-dev · 2023-09-10 14:36
sventhe dart driver only supports two right now, I think you can just change a define to make that three#asahi-dev · 2023-09-10 14:36
jannaumarcan: I think it's just increasing MAX_DARTS_PER_DEVICE#asahi-dev · 2023-09-10 14:35
marcanwas that done in the DART driver?#asahi-dev · 2023-09-10 14:35
marcanjannau: oh, we need 3 here :/#asahi-dev · 2023-09-10 14:34
marcanso we just do that#asahi-dev · 2023-09-10 14:34
marcaninstead of just instantiating the hardware multiple times, which is actually what is going on here#asahi-dev · 2023-09-10 14:34
marcanthey do it as a horrible hack in the IOMMU driver#asahi-dev · 2023-09-10 14:34
marcanthat's effectively what you're doing and what Apple does for USB too#asahi-dev · 2023-09-10 14:34
marcanthat's just a shortcut for "there are multiple DARTs and you need to configure them all"#asahi-dev · 2023-09-10 14:33
eilnISP/ANE/AVE just needs TTBR and TLB invalidation mirrored#asahi-dev · 2023-09-10 14:33
jannauit's currently limited to 2 darts but I think it's should easily extend to more than 2#asahi-dev · 2023-09-10 14:31
jannauthat is/will be the easy solution for multiple display output. the display-subsystem node will just list all dart-disp*s, that requires no code in the device drivers#asahi-dev · 2023-09-10 14:29
jannaumarcan: yes, just list multiple "iommus"#asahi-dev · 2023-09-10 14:27
marcanjannau: we didn't need anything special in USB for this right? the iommu code just handes multiple IOMMUs?#asahi-dev · 2023-09-10 14:25
marcanhold on, let me just go back to t8103 and try to clean this up#asahi-dev · 2023-09-10 14:25
marcansame story here it looks like#asahi-dev · 2023-09-10 14:25
marcanthey do this weirdo thing with USB where certain requests go through different DARTs#asahi-dev · 2023-09-10 14:25
marcanapple handles it by mirroring DART registers, we just instantiate multiple IOMMUs#asahi-dev · 2023-09-10 14:24
marcaneiln: isn't this multi DART business the same old thing from USB?#asahi-dev · 2023-09-10 14:22
jannaunot sure what I thought when doing it#asahi-dev · 2023-09-10 14:21
jannauthe end printing in proxyclient is weird / off-by-one#asahi-dev · 2023-09-10 14:21
marcanah no it's just the dumper is weird#asahi-dev · 2023-09-10 14:20
marcanthat ininital DART map looks off by a page#asahi-dev · 2023-09-10 14:19
marcanhm wait something is weird here#asahi-dev · 2023-09-10 14:19
marcanthat just looks like a fault after the driver gives up, not the problem#asahi-dev · 2023-09-10 14:19
eilnnothing hardware yet, opcode 0x004 is PRINT_ENABLE. only 0xe00000 vs t8103 0x1800000 is suspicious though.