#
✕ nick:sven
#asahi · 2021-03-21 10:22
svenlet me know if that branch works or if you run into any issues
#asahi · 2021-03-21 10:22
svenlet me know if that branch works or if you run into any issues
#asahi · 2021-03-21 10:22
svenit won't work at all without them
#asahi · 2021-03-21 10:22
svenit won't work at all without them
#asahi · 2021-03-21 10:22
svenamw: the only difference to wip are those magic PHY init pokes ;)
#asahi · 2021-03-21 10:22
svenamw: the only difference to wip are those magic PHY init pokes ;)
#asahi · 2021-03-21 07:38
svenkeep in mind that this is all still WIP and hasn't really been reviewed or tested by anyone else so expect things to break
#asahi · 2021-03-21 07:38
svenkeep in mind that this is all still WIP and hasn't really been reviewed or tested by anyone else so expect things to break
#asahi · 2021-03-21 07:37
svenamw: if you want usb in linux you're essentially on your own for now. you could start with https://github.com/svenpeter42/linux/tree/dart-iommu which will give you iommu support but you'll still need to configure the dwc3 driver and g_serial
#asahi · 2021-03-21 07:37
svenamw: if you want usb in linux you're essentially on your own for now. you could start with https://github.com/svenpeter42/linux/tree/dart-iommu which will give you iommu support but you'll still need to configure the dwc3 driver and g_serial
#asahi · 2021-03-21 07:36
svenamw: for m1n1 i have this branch https://github.com/svenpeter42/m1n1/tree/usb-dwc3-serial-wip installed which should give you uartproxy over usb + a framebuffer console
#asahi · 2021-03-21 07:36
svenamw: for m1n1 i have this branch https://github.com/svenpeter42/m1n1/tree/usb-dwc3-serial-wip installed which should give you uartproxy over usb + a framebuffer console
#asahi · 2021-03-21 07:35
svenamw: yeah, marcan needs to catch up reviewing :P
#asahi · 2021-03-21 07:35
svenamw: yeah, marcan needs to catch up reviewing :P
#asahi · 2021-03-20 15:38
svenugh, and exactly that happened ofc :(
#asahi · 2021-03-20 15:37
svenugh, and exactly that happened ofc :(
#asahi · 2021-03-20 13:35
sven"Be advised that Protonmail is generally known to be a pretty bad email host. They will munge up your outgoing emails and your patches may fail to apply when received by the other end" well.. that's encouraging already
#asahi · 2021-03-20 13:35
sven"Be advised that Protonmail is generally known to be a pretty bad email host. They will munge up your outgoing emails and your patches may fail to apply when received by the other end" well.. that's encouraging already
#asahi · 2021-03-20 13:07
svenyeah, just gotta grab some lunch and figure out how to send the patches to the ML without messing up ;)
#asahi · 2021-03-20 13:07
svenyeah, just gotta grab some lunch and figure out how to send the patches to the ML without messing up ;)
#asahi · 2021-03-20 11:45
sventrying to figure out right now why usb host mode doesn't want to work. it might actually use that second usb dart for (some part of) xhci :(
#asahi · 2021-03-20 11:45
sventrying to figure out right now why usb host mode doesn't want to work. it might actually use that second usb dart for (some part of) xhci :(
#asahi · 2021-03-20 11:44
sventhanks, hopefully by then we can do it on a mailing list instead of github
#asahi · 2021-03-20 11:44
sventhanks, hopefully by then we can do it on a mailing list instead of github
#asahi · 2021-03-20 10:17
svenmaz, kettenis2: https://github.com/svenpeter42/linux/commits/dart-iommu so that's the linux DART driver i currently have which at least works with that dwc3 controller in device mode. will do a final cleanup pass later today and then figure out how to submit it for review
#asahi · 2021-03-20 10:17
svenmaz, kettenis2: https://github.com/svenpeter42/linux/commits/dart-iommu so that's the linux DART driver i currently have which at least works with that dwc3 controller in device mode. will do a final cleanup pass later today and then figure out how to submit it for review
#asahi · 2021-03-19 21:32
sventhere's also the matrix bridge which also keeps history
#asahi · 2021-03-19 16:55
svenah, what a pity. just telling that TI chip to switch to source and DFP doesn't seem to be enough to get host mode working on the usb-c ports
#asahi · 2021-03-19 15:19
svenwould be great if we could just get away with applying them from m1n1
#asahi · 2021-03-19 15:11
sven(but they're also not required for usb 2 at least)
#asahi · 2021-03-19 15:11
svenI've only looked at usb and dart so far and at least for those they survive soft resets and clock gating
#asahi · 2021-03-19 15:10
svenyeah, https://github.com/AsahiLinux/m1n1/pull/41/files. there are at least two types but possible even more
#asahi · 2021-03-19 15:03
svenyeah, it's essentially just some glue code around io-pgtbl
#asahi · 2021-03-19 15:02
sventhe pagetables are very similar to the arm smmu ones. we can just reuse the code that's already in io-pgtbl
#asahi · 2021-03-19 15:00
svenno, they just share the name
#asahi · 2021-03-19 15:00
svenI can push what I currently have for that somewhere later today
#asahi · 2021-03-19 14:52
svenI've also played around with i2c and the linux pasemi thing essentially works. I should be able to switch the usb-c ports to host mode this weekend from m1n1
#asahi · 2021-03-19 14:51
svenI still need to get around to clean up this dart iommu driver I wrote
#asahi · 2021-03-19 14:51
sven:-)
#asahi · 2021-03-19 14:49
svenand also https://github.com/bazad/devicetree-parse
#asahi · 2021-03-19 14:48
sventhere's https://github.com/Siguza/dt
#asahi · 2021-03-19 14:48
svenyes, let me find them
#asahi · 2021-03-19 14:43
svenmaz: open("dt.bin", "wb").write(readmem(ba.devtree - ba.virt_base + ba.phys_base, ba.devtree_size))
#asahi · 2021-03-11 10:51
svenyup :-)
#asahi · 2021-03-11 10:49
svenand after that all of m1n1's tooling should just work with a normal usb cable
#asahi · 2021-03-11 10:48
svenbut implementing the CDC device side shouldn't take much work at this point
#asahi · 2021-03-11 10:48
svenpipcet[m]: essentially yes. I could abuse control transfers to do that
#asahi · 2021-03-11 10:46
svenessentially enumeration (i.e. descriptors, set address, set configuration etc.) and control transfers work with a linux host. Mac OS doesn't like what I'm doing at all though and balks directly after a reset so far
#asahi · 2021-03-11 10:43
svenj`ey: yeah, if everything works out I should be able to get a cdc device up and running this weekend. so probably another 2-3 weeks ;)
#asahi · 2021-03-11 10:42
svenI haven't looked at it very much but the parts I've seen look like they more or less reimplement what apple does instead of figuring out how linux would handle it

plus ›