#
✕ nick:sven
#asahi · 2021-08-03 17:55
svenalyssa: disp0 dart isn't locked, only dcp dart
#asahi · 2021-08-03 12:32
svenyes
#asahi · 2021-08-03 12:29
svenapple_dart_attach_dev
#asahi · 2021-08-03 12:29
svenso what will happen is that the iommu dev attach for a pcie device will fail
#asahi · 2021-08-03 12:28
svenyes
#asahi · 2021-08-03 12:28
svenbut i'll fix the dma-iommu api in a follow up
#asahi · 2021-08-03 12:28
svenon 4k kernels, yes :(
#asahi · 2021-08-03 12:19
svenkettenis: thanks for updating the device tree dart nodes in u-boot btw. that made booting with pci support much less painful :-)
#asahi · 2021-08-03 10:38
svendoesn't matter either way
#asahi · 2021-08-03 10:38
sven*:D
#asahi · 2021-08-03 10:38
svenbecause i think that's the closest thing you can select in disk util :d
#asahi · 2021-08-03 10:37
svenprobably p5 in your case
#asahi · 2021-08-03 10:36
svenjust format one of them with ext4 or whatever system you prefer
#asahi · 2021-08-03 10:36
sveni strongly recommend against doing that for now fwiw. the mailbox driver is still quite a hack and the co-processor is not shut down cleanly. now if you're still brave enough to continue: if you follow that general setup guide you should have two FAT partitions there
#asahi · 2021-08-03 08:10
svenyou can also add the call to main.c
#asahi · 2021-08-03 08:07
svenwe still need to figure out those clock bindings :/
#asahi · 2021-08-03 08:07
svenit's definitely the missing clock gate :-)
#asahi · 2021-08-03 07:53
sven"push some more wtf" "hope that makes more sense now" :D
#asahi · 2021-08-03 07:34
svencan be used for all rtkit stuff and also for the SEP then
#asahi · 2021-08-03 07:34
svenone channel for each endpoint
#asahi · 2021-08-03 07:33
svenstill not sure where the other rtkit stuff (syslog, etc.) should go
#asahi · 2021-08-03 07:33
svenat this point i think the mailbox driver should probably really only implement the "dumb" mailbox interface. that's at least what all other drivers in there also do
#asahi · 2021-08-03 06:07
svenyeah, pretty much
#asahi · 2021-08-03 06:06
sventhis isn't about i2c, this is about ans
#asahi · 2021-08-03 06:06
svenand that makes no sense
#asahi · 2021-08-02 10:38
sventheir platform backend for the keyboard driver is probably a good start. might even already be upstreamable directly
#asahi · 2021-08-02 10:36
sventhat reminds me.. i should submit v5 of the dart driver
#asahi · 2021-08-02 10:30
svenoh, and probably gpio/pinctrl to make SPI work in the first place
#asahi · 2021-08-02 10:26
svenSPI controller (iirc also based on something linux already has a driver for) + platform backend for the already existing driver
#asahi · 2021-08-01 13:57
sveni'm not very happy with the current driver i have for that but it'll work
#asahi · 2021-08-01 13:57
svenalyssa: and for the mailbox part: just use the mailbox api for now. whatever ends up the correct solution has to be similar either way.
#asahi · 2021-08-01 13:56
sven*listen
#asahi · 2021-08-01 13:56
sven(but then again, i've also made everything hang from process context so maybe don't list to me too much :-))
#asahi · 2021-08-01 13:55
sven(for some value of worked)
#asahi · 2021-08-01 13:55
svendon't think so. i've done that and it worked
#asahi · 2021-08-01 13:53
svenalyssa: very short version: in atomic context (e.g. interrupt handles or inside spin_lock_irqsave) you're not allowed to sleep and if you block in there you can easily hang everything. in process context you can sleep while waiting for something and the kernel will schedule something else to run
#asahi · 2021-08-01 13:50
svenyeah :/
#asahi · 2021-08-01 13:50
svenj_ey: because that DART is locked by the time we get control
#asahi · 2021-08-01 13:49
svenso for DCP you'll need to hack the DART driver to make it work with the pagetable apple allocated :(
#asahi · 2021-08-01 13:47
svenalyssa: atomic vs. process context
#asahi · 2021-08-01 09:05
svenit's really something we need to discuss with someone who has more experience with these subsystems :)
#asahi · 2021-08-01 09:05
svenit's a little bit more complex. rpoc_boot e.g. usually really wants to load a firmware, but that can be worked around
#asahi · 2021-08-01 08:47
sveni've also seen something where mailbox was just the mailbox and then there were just some exported functions in drivers/soc or drivers/firmware for talking to that specific mailbox
#asahi · 2021-08-01 08:46
svensure, but remoteproc might still not be a good fit because it does a lot of heavy lifting for loading firmware
#asahi · 2021-08-01 08:37
svenmailbox certainly makes sense for the very low-level protocol (think send/recv message). the more interesting question is where the common rtkit stuff should be implemented
#asahi · 2021-08-01 08:36
svenwe briefly talked about that. we'll have to discuss that with someone who knows the kernel much better than we do
#asahi · 2021-08-01 08:29
svenmarcan: fwiw, there's a DAPF behind the AES engine that we can configure if you want to play with it and confirm that theory
#asahi · 2021-08-01 08:29
sveni also kinda expected a fully working linux driver by now
#asahi · 2021-07-31 16:55
sven:D
#asahi · 2021-07-31 13:40
svendon't think i ever saw that

plus ›