#
✕ nick:sven
#asahi · 2021-09-23 10:10
svencan't find until you finally figure out wtf that usb pd thing does
#asahi · 2021-09-23 09:18
sven(the plug/unplug interrupt is edge trigger, but that's for the interrupt controller inside the TI chip)
#asahi · 2021-09-23 09:17
svensorry, nevermind
#asahi · 2021-09-23 09:17
svenoh... duh.. edge
#asahi · 2021-09-23 09:13
svenand if you just unplug/plug something to the secondary usb port it will fire
#asahi · 2021-09-23 09:13
svenbut you can use that TI USB PD chip. it has an edge interrupt
#asahi · 2021-09-23 09:13
sventhe power button interrupt comes from the SMC iirc
#asahi · 2021-09-23 07:53
sveni wish...
#asahi · 2021-09-23 07:52
sven*thought
#asahi · 2021-09-23 07:52
sveni though you could even have a 200:1 mapping
#asahi · 2021-09-23 07:50
svenif you need less than 7 interrupts you can do a 1:1 mapping
#asahi · 2021-09-23 07:49
sventhis thing has 200+ pins and I thought you could assign any pin to any of its 7 AIC interrupts
#asahi · 2021-09-23 07:48
svenerm.. *can't issue stop commands for device mode transfers
#asahi · 2021-09-23 07:48
svenalyssa: so either this dwc3 has a quirk where you can't stop commands (ugh) or i have to actually start looking into this usb phy (ugh)
#asahi · 2021-09-23 07:46
svenprobably doesn't matter for the first version (and maybe not at all because we'll only have to use like two or three gpio interrupts anyway)
#asahi · 2021-09-23 07:45
sventhere's still this interesting question of how to handle these 7 or so AIC interrupts that can be distributed freely to the GPIO pins.
#asahi · 2021-09-23 07:44
sven:D
#asahi · 2021-09-22 09:30
svenoh, true
#asahi · 2021-09-22 09:19
sveni think we have to keep shadowing the config because we could have multiple devices in a single group and i guess once thunderbolt works (one of these days....) we can get situations where only a single device is removed
#asahi · 2021-09-22 08:37
svenhrm... though i'll have to take a look later to see if the iommu api at some point first releases the device and then removes the group
#asahi · 2021-09-22 08:33
svenyeah, i think your version should be fine. no need for the extra allocation
#asahi · 2021-09-22 08:32
svenpossibly because i wrote that after a few beers yesterday :)
#asahi · 2021-09-21 20:06
svenmaz: https://f.svpe.de/434ba8423259c210da337f060a6bf7a52e564afcfa544edaf525314ff2a494c1_dart-fix-reattach.patch should actually work and fix it
#asahi · 2021-09-21 16:41
svenshould copy from cfg->stream_maps. maybe.
#asahi · 2021-09-21 16:41
svenah yes. the memcpy is already wrong
#asahi · 2021-09-21 16:37
sven(my kernel tree is pretty messed up right now fwiw, so there's a good chance that pcie error is spurious)
#asahi · 2021-09-21 16:37
svenmaz: https://f.svpe.de/636177e0cd0a06448d05c0380b4bc5b4c7b9a888b62585731849c1aa6a8eb8f4_dart-bugfix.patch compiles but is completely untested, probably wrong and maybe doesn't even fix that issue. can't get pcie to work right now and i'm about to head out: https://f.svpe.de/b745ec0ca275c9438cf98b4c31c46a86ab38c555fc93086d1d6675bf7fe763d9_pcie.txt
#asahi · 2021-09-21 16:05
svenyeah, i2c uses the 24 mhz refclock
#asahi · 2021-09-21 15:55
sveni think the old group reference is still stuck in sid2group
#asahi · 2021-09-21 15:55
svenah. i think i know what's going on. let's see.
#asahi · 2021-09-21 15:28
svenhm.. weird. let me try to figure out what's going on there
#asahi · 2021-09-21 15:18
svenmaz: https://f.svpe.de/ad64a42b2629dcd2e65ae17358ae7f758c22023eed432518048dc420d64ad908_0001-iommu-dart-Remove-iommu_flush_ops.patch should be the correct fix. i'll send it later
#asahi · 2021-09-21 13:39
svenyeah.. it's essentially a left-over from v1 when i didn't yet understand the entire iommu api :(
#asahi · 2021-09-21 13:38
svenright now it would happen twice if those two functions weren't completely broken due to the wrong cookie that gets passed
#asahi · 2021-09-21 13:38
sventhe invalidation already happens with apple_dart_iotlb_sync and apple_dart_iotlb_sync_map which is called by iommu_map/unmap.
#asahi · 2021-09-21 11:56
svenmaz: i think the correct fix is to just drop the iommu_flush_ops completely. this may also have to go into one of the next rcs because it might be possible to hit this even without pci support
#asahi · 2021-09-20 19:15
sveni'll definitely give it a try tomorrow :)
#asahi · 2021-09-20 19:15
sveninteresting that the DART just works. i couldn't get another stream of the sio dart to work properly (aes engine)
#asahi · 2021-09-20 19:13
svennice!
#asahi · 2021-09-20 18:58
svenmust be the physics degree! :-P
#asahi · 2021-09-20 18:57
svenj_ey: 1 in natural units :P
#asahi · 2021-09-20 18:56
svenmaz: uh. untested because i'm traveling, but https://f.svpe.de/b93eda6b0f58e082603e4deda93d1d3c2f2596fa7d084c491d500cfc789b1e60_dart-fix.patch might fix that
#asahi · 2021-09-20 18:52
sveni technically have a physics degree. that surely also makes some kind of mathematician!
#asahi · 2021-09-19 08:24
svenalyssa: i also just use my first name as a handle :p
#asahi · 2021-09-18 18:51
sveni wonder what triggers the WARN_ON in the dwc gadget driver though
#asahi · 2021-09-18 18:50
svenugh. this smells like it needs a PHY reset for some reason :/
#asahi · 2021-09-18 18:45
svenbut uhh.. i looks like i can go back to gadget mode
#asahi · 2021-09-18 18:45
svencould've been just a weird combination of that ethernet gadget driver and your linux host :D
#asahi · 2021-09-18 18:44
svenalyssa: hrm, okay. so i can confirm that the port that's used to boot the linux kernel seems to break :/
#asahi · 2021-09-18 16:52
svenalyssa: also, how's that homework coming along?

plus ›