#
#asahi-dev · 2023-04-11 11:54
marcanprobably some index confusion somewhere
#asahi-dev · 2023-04-11 11:52
jannauthe bus numbers have a gap at the disabled port
#asahi-dev · 2023-04-11 11:51
kettenis_if there is a gap in the ports but not a corresponding gap in the bus numbers that would explain the issue
#asahi-dev · 2023-04-11 11:50
kettenis_so the iommu-map uses bus numbers
#asahi-dev · 2023-04-11 11:50
jannauor an OF iommu/pcie bug
#asahi-dev · 2023-04-11 11:50
jannaulooks like the dart <-> port mapping breaks if there are gaps in the ports
#asahi-dev · 2023-04-11 11:50
marcansounds like a pcie bug
#asahi-dev · 2023-04-11 11:48
jannauyes
#asahi-dev · 2023-04-11 11:48
marcanjannau: left enabled as in the DT?
#asahi-dev · 2023-04-11 11:44
jannaumarcan: pcie is confused by disabling port01. ethernet and usb xhci work if port01 is left enabled. pcie0_dart_1 needs to be disabled though. SErrors on probe
#asahi-dev · 2023-04-11 11:24
jannauthat sounds plausible
#asahi-dev · 2023-04-11 11:20
marcanjannau: isn't it just that if it's locked we can't change the TCR/TTBR level config so we need to just inherit?
#asahi-dev · 2023-04-11 11:15
marcanso it's the 4-level thing then
#asahi-dev · 2023-04-11 11:15
marcanok
#asahi-dev · 2023-04-11 11:15
marcanwith your patches it worked
#asahi-dev · 2023-04-11 11:14
jannauI didn't try hard though since the locked dart io-pgtbl interaction needs to be rewritten
#asahi-dev · 2023-04-11 11:13
jannauthe reserved mem code seems to be broken with 4 levels in a way I do not understand
#asahi-dev · 2023-04-11 11:12
marcanah, no
#asahi-dev · 2023-04-11 11:12
jannauand https://github.com/jannau/linux/commit/d45faf548f63b4a334561376f838c56d1b63787e
#asahi-dev · 2023-04-11 11:12
jannaudo you have https://github.com/jannau/linux/commit/ca36a0932a5303abea73bc5ebecd40d2c6ef18e8
#asahi-dev · 2023-04-11 11:10
marcanI think it's during Linux dart probe
#asahi-dev · 2023-04-11 11:09
jannauwhen does the screen break? during linux dart probe or earlier?
#asahi-dev · 2023-04-11 11:08
jannaudoes it lock dart-disp0?
#asahi-dev · 2023-04-11 11:08
marcanbut no, that wasn't it...
#asahi-dev · 2023-04-11 11:06
marcanoh wait, the locked check
#asahi-dev · 2023-04-11 11:05
marcanah but that does do dart_init
#asahi-dev · 2023-04-11 11:03
marcanisn't it just dart_get_mapping?
#asahi-dev · 2023-04-11 11:03
jannaudart_setup_pt_region() is only called from dcp_init() so it shouldn't be used
#asahi-dev · 2023-04-11 11:02
jannaubecause we don't touch the darts without the m1n1 change
#asahi-dev · 2023-04-11 11:01
marcanwhat I don't get is why it only happens after the m1n1 change
#asahi-dev · 2023-04-11 11:01
jannauI thought that was just during fb mapping in display.c
#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:56
marcanreally interesting...
#asahi-dev · 2023-04-11 10:56
marcaninteresting...
#asahi-dev · 2023-04-11 10:56
marcanhm no, we do have no-map
#asahi-dev · 2023-04-11 10:55
marcanI bet I know what this is
#asahi-dev · 2023-04-11 10:55
marcanjannau: the m1n1 change (without any kernel change) broke the screen :D
#asahi-dev · 2023-04-11 10:54
marcanwat, I lost the screen now
#asahi-dev · 2023-04-11 10:46
jannauok
#asahi-dev · 2023-04-11 10:44
marcanworking on it
#asahi-dev · 2023-04-11 10:44
marcanyeah I know
#asahi-dev · 2023-04-11 10:41
jannaut602x/bringup (2dfa86cad319) lost the pcie changes
#asahi-dev · 2023-04-11 10:40
marcanpossibly DMA mapping failed entirely and it's trying and failing to use passthrough
#asahi-dev · 2023-04-11 10:40
marcanjannau: that fault has a physical address, something went wrong with the DMA mappings if devices are hitting physical
#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

plus ›