#
#asahi-dev · 2023-02-09 12:11
povikthis doesn't look right
#asahi-dev · 2023-02-09 12:11
povikhttps://github.com/AsahiLinux/m1n1/blob/main/src/afk.c#L342
#asahi-dev · 2023-02-09 11:34
svenyeah, it's strange
#asahi-dev · 2023-02-09 11:34
jannaujust wondering why they would split 32-bit iova like that
#asahi-dev · 2023-02-09 11:26
svenbut I can only test one at a time because the hypervisor needs the other port ofc
#asahi-dev · 2023-02-09 11:26
sventhey should be completely separate
#asahi-dev · 2023-02-09 11:21
jannauoh, missed that. share the two ports resources? t6001 has only [0x4000, 0x8000_0000]
#asahi-dev · 2023-02-09 11:13
svenlooks like on the M1 one dart has [0x4000, 0x8000_0000] and the other [0x8000_0000 - 0xffff_c000]
#asahi-dev · 2023-02-09 11:11
svenjannau: just did a quick test, pciec seems to work fine for iovas inside and outside that region
#asahi-dev · 2023-02-09 09:22
svenbut I can test later what happens if I force the iommu domain aperture to that range
#asahi-dev · 2023-02-09 09:22
svenno idea
#asahi-dev · 2023-02-09 09:05
jannauany idea what vm-reserve is used for in dart-apciec? sounds to me like it's unexpected that the device accesses [0x4000 - 0x8000_0000]
#asahi-dev · 2023-02-09 08:43
svenlooks like it only ever tries to read from that mystery address
#asahi-dev · 2023-02-09 08:43
svenapple-dart 501a80000.iommu: translation fault: status:0x8f0f0010 stream:15 code:0x10 (READ FAULT) at 0x100100
#asahi-dev · 2023-02-08 20:24
jeffmiwdebugging some probably wrong usage of dt of_ functions, that makes a sequence of insmod/rmmod/insmod creating a cpu deadlock :) the 2nd insmod get stuck on an of_find_node_by_name for a node that does not exist ... the first insmod works well with it ...
#asahi-dev · 2023-02-08 16:57
marcankh: As far as I know, yes, certainly without significant discussion first.
#asahi-dev · 2023-02-08 16:42
svenguess we can eventually try and see what happens on t6k with my Linux driver and that stream set to translate with an empty pagetable
#asahi-dev · 2023-02-08 16:41
jannaudev 0f: TCR=0x20000 (BYPASS_DAPF=0, BYPASS_DART=0, TRANSLATE_ENABLE=0)
#asahi-dev · 2023-02-08 16:37
svenit doesn’t matter much because thunderbolt works just fine even with that stream set to block all access but I’d really like to know what these 0x100100 reads/writes are supposed to do
#asahi-dev · 2023-02-08 16:36
svenweird
#asahi-dev · 2023-02-08 16:32
jannausven: complete log https://gist.github.com/jannau/a4e3b10d44ab877b5d283faa1f8a3382
#asahi-dev · 2023-02-08 16:29
khmarcan: Are non-PSCI cpuidle drivers blocked on arm64? Sudeep doesn't seem to be against it
#asahi-dev · 2023-02-08 16:27
svenhuh.. that doesn’t even enable bypass i think
#asahi-dev · 2023-02-08 16:25
jannausven: MMIO: W.4 0xb01a8013c (dart-acio1[0], offset 0x13c) = 0x20000
#asahi-dev · 2023-02-08 16:19
svenyou need to plug in a tbt device fwiw
#asahi-dev · 2023-02-08 16:19
sveni only care about the TCR value for stream 15
#asahi-dev · 2023-02-08 16:19
svenjust trace_device should work
#asahi-dev · 2023-02-08 16:19
povikhow come a trace script accesses the dart at all?
#asahi-dev · 2023-02-08 16:18
jannausven: how do you trace dart-acio? trace_dart.py accesses the dart too early
#asahi-dev · 2023-02-08 15:55
svenohh… wait.. maybe whatever triggers that 0x100100 access actually sends a 64bit address but because once I enable translation I’m limited to 32bit I just don’t see the upper bits
#asahi-dev · 2023-02-08 15:38
svenjannau: can you trace a acio dart on your j314? the adt you sent me some time ago seems to have a bypass-address configured for those
#asahi-dev · 2023-02-08 14:42
sven... that probably didn't work because stream 15 just seems to be related to an entirely different physical space afaict
#asahi-dev · 2023-02-08 13:08
svenlet's see if I can just map that page to some memory and observe if it tries to write anything there
#asahi-dev · 2023-02-08 13:07
svenhrm, every write to a NHI ring seems to trigger that fault
#asahi-dev · 2023-02-08 12:16
svenyeah, and there's also not DAPF behind the DART
#asahi-dev · 2023-02-08 12:16
poviki remember there could be offsets applied in bypass mode but you probably checked for those
#asahi-dev · 2023-02-08 12:07
svenand ofc the thunderbolt/usb4 firmware has almost no strings :<
#asahi-dev · 2023-02-08 12:03
svenjannau: hm... possibly. the iova which should be 1:1 to phyaddr in bypass mode is just very strange
#asahi-dev · 2023-02-08 11:53
jannaudottedmag: yes, I'll plan to manage /var/lib/bluetooth directly but it's annoying
#asahi-dev · 2023-02-08 11:49
dottedmagjannau: This happens on boot, couldn't one supply bluez with the files in /var/lib/bluetooth directly? Though the file format is documented as "discouraged to access directly", of course.
#asahi-dev · 2023-02-08 11:29
jannauthe interrupt handling in spi_hid should maybe re-thought
#asahi-dev · 2023-02-08 11:18
povik(i'm just guessing here, no hard numbers at hand)
#asahi-dev · 2023-02-08 11:17
poviki assume the number of events is much lower and we spend many irqs per event
#asahi-dev · 2023-02-08 11:17
povikwouldn't there be significant overhead in handling the 10k/s irqs?
#asahi-dev · 2023-02-08 11:08
jannaupovik: not sure if sio will help much. I doubt the spi transfers itself cause too much cpu load compared to the event parsing and input handling
#asahi-dev · 2023-02-08 11:04
mazI'll eventually have to do something about that, as some GIC users are doing that too these days.
#asahi-dev · 2023-02-08 11:03
mazyeah, it has no notion of affinity to speak of. which is an annoyance on its own (Linux is not very well equipped to deal with 1:N distribution)
#asahi-dev · 2023-02-08 11:03
jannauI think aic2 helpfully distributes the irq to all cores
#asahi-dev · 2023-02-08 11:02
mazthrows something at jannau
#asahi-dev · 2023-02-08 11:01
jannauadd delays in the irq hadnler

plus ›