#
✕ nick:sven
#asahi · 2021-07-31 13:39
svenno
#asahi · 2021-07-31 13:27
svenyeah
#asahi · 2021-07-31 13:26
svenals, ugh, clocks. we'll need them at some point unless we just turn them all on in m1n1 and keep ignoring them
#asahi · 2021-07-31 13:25
svenchanges to the dt for the m1 have to go through marcan while the iommu stuff goes through the iommu tree i think
#asahi · 2021-07-31 13:24
svenbut i'll just submit the first three patches
#asahi · 2021-07-31 13:24
svenyeah, they're in there for convenience :)
#asahi · 2021-07-31 13:23
sventhe dt changes are separate from the rest anyway
#asahi · 2021-07-31 13:21
sveni should also submit v5 of that dart driver
#asahi · 2021-07-31 13:21
svenbut sounds good :-)
#asahi · 2021-07-31 13:21
svenhm, i'm not even sure if that thing is required
#asahi · 2021-07-31 11:05
svencan't you reference them in the usb nodes?
#asahi · 2021-07-31 11:02
sveni don't really see any security issues and if it helps u-boot :)
#asahi · 2021-07-31 11:02
svenstill makes sense to at least set the usb darts to bypass mode then imho
#asahi · 2021-07-31 11:01
svenoh, right. it never reaches the code path to set them "back" to bypass mode then
#asahi · 2021-07-31 10:59
svenyeah, that would make sense
#asahi · 2021-07-31 10:58
sveni think it's fine to still set them to bypass
#asahi · 2021-07-31 10:58
svenpcie would be another story, but those can't do bypass anyway ;)
#asahi · 2021-07-31 10:58
svenhm, not sure how you could exploit anything using the USB darts though
#asahi · 2021-07-31 10:57
svenso.. do we still want to set them to bypass mode at the end of m1n1?
#asahi · 2021-07-31 10:55
svenhrm, maybe i misremember because i saw that 0x80 (which someone claimed was the bypass offset) and assumed it was in bypass mode then
#asahi · 2021-07-31 10:53
sveni thought i checked them at one point and they were in bypass mode then :/
#asahi · 2021-07-31 10:52
svenare they just in translation enabled but without any pagetables configured then?
#asahi · 2021-07-31 10:52
svenoh, no, i must've missed that one
#asahi · 2021-07-31 09:05
svenwe should be able to eventually shrink that partition down a lot
#asahi · 2021-07-31 09:02
svenless work us :)
#asahi · 2021-07-31 09:02
sveni can't claim i tested this, but from what i've seen so far the firmware is loaded by iboot and locked down
#asahi · 2021-07-31 09:01
svenvery likely, yeah
#asahi · 2021-07-31 09:01
svenwe can't load firmware for any of the coprocessors (except for the SEP) ourselves
#asahi · 2021-07-31 08:58
sven(i think)
#asahi · 2021-07-31 08:57
svenpipcet[m]: that just means you can't call it from atomic contexts
#asahi · 2021-07-31 08:57
svenkettenis_: sure, i'm just wondering if all this system endpoint handling really fits into the mailbox framework.
#asahi · 2021-07-31 08:33
svenstill trying to wrap my head around how that subsystem works
#asahi · 2021-07-31 08:33
svennot sure, but it has e.g. rproc_boot which feels less awkward than requesting a fake mailbox in the nvme driver
#asahi · 2021-07-31 08:26
svenhrm, i also wonder if the remoteproc framework is better suited than the mailbox framework for all these coprocessors
#asahi · 2021-07-31 08:09
svenkettenis_: so from what i can tell the linux code has no issues with issuing multiple commands in parallel
#asahi · 2021-07-31 08:06
svenalso just pushed a new version that hopefully also compiles without CONFIG_PCI and cleans some minor things up
#asahi · 2021-07-31 07:50
svenamw: sure. that's much less stable than the usb though. please don't use it for anything productive :)
#asahi · 2021-07-30 19:56
sventhere's probably just some other status set in the second byte
#asahi · 2021-07-30 19:56
svenyeah
#asahi · 2021-07-30 19:56
sven[ 1982.677232] apple-mailbox 23e400000.mbox: syslog message: apComms.cpp:372: SMC HID Event: 01 01 01
#asahi · 2021-07-30 19:56
sven[ 1982.628136] apple-mailbox 23e400000.mbox: syslog message: apComms.cpp:372: SMC HID Event: 01 01 00
#asahi · 2021-07-30 19:49
svennot yet, but that sounds like a good plan
#asahi · 2021-07-30 19:27
sveneven ~100 concurrent readers/writers seem to behave just fine
#asahi · 2021-07-30 19:26
sveni can reproduce that fatfs issue fwiw. haven't been to break anything else despite stress testing it quite a bit
#asahi · 2021-07-30 16:35
sven*breaks
#asahi · 2021-07-30 16:35
svenpipcet[m]: yes! and if it does also break something i hope that we'll get some debug messages in the syslog of the co-processor
#asahi · 2021-07-30 15:38
svennothing that can't be fixed :)
#asahi · 2021-07-30 15:38
svenit leaves the co-processor in an unexpected state
#asahi · 2021-07-30 15:34
svenpipcet[m]: ^--
#asahi · 2021-07-30 15:33
svenwill probably also fail if you boot this via u-boot

plus ›