#asahi-dev · 2023-04-11 11:00
jannauit's confused by dart-disp0 sid 0 starting at l2 idx 2 instead of 0#asahi-dev · 2023-04-11 10:59
jannautry making dart_setup_pt_region() a no-op#asahi-dev · 2023-04-11 10:59
jannaumarcan: does it screw up the mapping tables?#asahi-dev · 2023-04-11 10:46
jannauok#asahi-dev · 2023-04-11 10:41
jannaut602x/bringup (2dfa86cad319) lost the pcie changes#asahi-dev · 2023-04-11 10:38
jannaukettenis_: the GPU is at least to blame as well "OF: fdt: Reserved memory: failed to reserve memory for node 'uat-handoff': base 0x0000000000000000, size 0 MiB"#asahi-dev · 2023-04-11 10:31
jannaudevices are non-functional as far as I can tell#asahi-dev · 2023-04-11 10:29
jannauapple-dart 596000000.iommu: translation fault: status:0x80180004 stream:1 code:0x4 (NO PMD FOR IOVA) at 0x1001e2a0000#asahi-dev · 2023-04-11 10:29
jannaupcie devices show up on the m2 pro mini but there's an interrupt storm of translation errors for pcie0_dart_2#asahi-dev · 2023-04-11 08:52
jannaulinux changes are in https://github.com/jannau/linux/tree/t602x/bringup#asahi-dev · 2023-04-11 08:51
jannauyes https://github.com/jannau/m1n1/commit/e1a2e6fddbd9d4222aabd99734ff3497050533a6#asahi-dev · 2023-04-11 06:34
jannaure pcie: shifting registers to make space for more ports?#asahi-dev · 2023-04-11 06:33
jannaudottedmag: that's a thunderbolt display? thanks but not at this time. m2* mac mini hdmi out has priority#asahi-dev · 2023-04-10 22:02
jannauthe aperture from dt change misses to limit ias based on dma_max, fixup included#asahi-dev · 2023-04-10 22:01
jannauvm-base for dcp/disp0 is not used by iboot/macos and the reserved regions / locked dart do not work with 4 levels so it's using an aperture of 0, vm-size (2**36)#asahi-dev · 2023-04-10 21:58
jannaumarcan: https://github.com/jannau/linux/tree/t602x/bringup has at least half-working dcp#asahi-dev · 2023-04-10 21:50
jannaurichyliu2: work in progress. works as proof of concept. the main issue appears to be the integration with the typec framework and wonkyness of the dwc3 xhci part#asahi-dev · 2023-04-10 21:11
jannauwhich isn't use in in the openbsd driver. links do not come up with that removed#asahi-dev · 2023-04-10 21:02
jannauit timeouts on getting CORE_RC_PHYIF_STAT_REFCLK back from CORE_RC_PHYIF_STAT#asahi-dev · 2023-04-10 20:55
jannaufor backward compatibility: append the region and access it via reg-names. if it is absent compute a base from "rc" so that the offsets are equal#asahi-dev · 2023-04-10 20:52
jannaukettenis_: is that the only change? seems not be enough for the linux driver and dt#asahi-dev · 2023-04-10 17:46
jannauI think we ought to set dma-ranges although it's counterintuitive since the iommu dt bindings say it will be ignored if we use the iommu#asahi-dev · 2023-04-10 17:25
jannauyes#asahi-dev · 2023-04-10 17:24
jannaukettenis_: disp0_piodma. I'll fix it#asahi-dev · 2023-04-10 17:24
jannauthat suggests we should use "dma-ranges" see of_dma_configure_id()#asahi-dev · 2023-04-10 17:12
jannauah, same problem for my patch to limit ias then. drop that as well#asahi-dev · 2023-04-10 17:08
jannaulooks like it should work in principl, i.e. review of the intention#asahi-dev · 2023-04-10 16:06
jannauworks here up to "apple-dcp 389c00000.dcp: dcp_hotplug: connected: 0"#asahi-dev · 2023-04-10 16:05
jannaumarcan: if you want to give dcp a spin ^^^#asahi-dev · 2023-04-10 16:05
jannaufor the macbook pros https://github.com/jannau/m1n1/tree/t602x-dcp is hopefully enough#asahi-dev · 2023-04-10 16:00
jannauon linux side https://github.com/jannau/linux/tree/dcp-6.3-rc4-0_dcp-v13_2 merges without conflicts#asahi-dev · 2023-04-10 15:58
jannaufinally, dcp works to the point where it detects the missing display#asahi-dev · 2023-04-10 15:53
jannaubut most devices are limited to 32-bit. we have to update drivers to not use dma_set_mask...(32);#asahi-dev · 2023-04-10 15:51
jannauat least vm-size seems to be only a suggestion, we have so far not encoutered a device which fails with top of address space iovas #asahi-dev · 2023-04-10 15:48
jannauif we want to deal with it properly in linux we have to set domain->geometry.aperture_{start,end} based on vm-base and vm-size#asahi-dev · 2023-04-10 15:45
jannauonly change in linux was to use the dart's ias and rely on linux to allocate iova from the top#asahi-dev · 2023-04-10 15:45
jannauI think I deal only explicitly in m1n1 with it#asahi-dev · 2023-04-10 15:22
jannau0x100_0000_0000 fits into 42-bit ias, so you have map the memory at that offset. that seems to be what happens with dcp on m2#asahi-dev · 2023-04-10 14:52
jannaulaso what's up with the single page before the framebuffer mapped directly behind it#asahi-dev · 2023-04-10 14:51
jannauI wonder where iboot gets the memory for framebuffer page tables#asahi-dev · 2023-04-10 14:45
jannauhttps://github.com/jannau/linux/tree/t602x/bringup has more complete j474s devicetree and a compile fix and limits the ias to what the devices can use. not yet sure about the last one#asahi-dev · 2023-04-10 14:44
jannauthanks#asahi-dev · 2023-04-10 14:42
jannaumarcan: can I get a experiments/dart_dump.py {dart-dcp0,dart-disp0} from the macbook, only the pte are interesting#asahi-dev · 2023-04-10 14:40
jannausigh, dart management for dcp is annoying. every devices without iboot managed fb requires custom workarounds#asahi-dev · 2023-04-10 13:31
jannausigh, no idea what "vm-base" is. in the m2 pro adt it looks more like ASC DRAM offset. I guess that still holds for the m2 except that it is so small that it already affects the iova in the dart#asahi-dev · 2023-04-10 12:36
jannauhttps://github.com/jannau/linux/tree/t602x/bringup has a more complete j474s device tree#asahi-dev · 2023-04-10 11:44
jannauI'll do the same include trick as for the macbook pros#asahi-dev · 2023-04-10 11:44
jannauthe m2 pro mac mini is very close to the mac studio#asahi-dev · 2023-04-10 11:17
jannauthe Makefile? probably just an oversight#asahi-dev · 2023-04-10 11:16
jannauyes