#
✕ nick:kettenis
#asahi · 2021-02-07 17:53
kettenisand have U-Boot or tianocore expose it in a UEFI table
#asahi · 2021-02-07 17:53
kettenisif it would implement a PSCI interface it should just advertise it in the device tree
#asahi · 2021-02-07 17:53
kettenismarcan: I don't think it makes sense for m1n1 to do UEFI stuff itself
#asahi · 2021-02-07 17:32
kettenismarcan: U-Boot already does too much UEFI ;)
#asahi · 2021-02-07 16:54
kettenisindeed you either need smc which implies EL3 or hvc which implies EL2
#asahi · 2021-02-07 16:53
kettenisU-Boot provides an implementation for some boards
#asahi · 2021-02-07 16:53
kettenispsci was never tied to TF-A
#asahi · 2021-02-07 16:52
kettenisbut I don't see a benefit over using spin-table unless m1n1 would want to implement other psci functionality
#asahi · 2021-02-07 16:42
kettenisa device tree binding that provides the entry point that lives in memory reserved by the bootloader (m1n1) would work just as well
#asahi · 2021-02-07 16:40
kettenisI don't see why psci-as-a-firmware-call should be tied to UEFI
#asahi · 2021-02-07 13:04
kettenisthe AIC would ave to handle MSIs though like arnd suggested
#asahi · 2021-02-07 12:59
kettenisnever_released: yes
#asahi · 2021-02-07 12:58
kettenisbut it means you'll have to deal with clock (un)gating in m1n1
#asahi · 2021-02-07 12:58
kettenismarcan: that might work as long as m1n1 will continue to do this even if you pass on the blobs
#asahi · 2021-02-06 18:47
kettenismarcan: yes I found the TI docs
#asahi · 2021-02-06 18:42
kettenisbut got stuck trying to make sense out of the i2c type-c controller chip
#asahi · 2021-02-06 18:41
kettenisI started out with trying to get the dwc3 usb controllers to work
#asahi · 2021-02-06 18:40
kettenismy i2c driver on u-boot is based on the pasemi linux driver but some of the additional bits that the correllium driver sets are defenitely necessary
#asahi · 2021-02-06 18:38
kettenismarcon: can you share those docs?
#asahi · 2021-02-06 16:59
kettenismergers and acquisitions should be forbidden!
#asahi · 2021-02-06 16:54
kettenisthere just is't enough OCD around ;)
#asahi · 2021-02-06 16:53
kettenisand IBM uses both IBM and ibm
#asahi · 2021-02-06 16:48
kettenisand I think you have to use the AIC to route that interrupt to the appropriate CPU
#asahi · 2021-02-06 16:47
kettenisarnd, it looks like you can pick one of the 32 available AIC interrupts by passing its number in the messsage
#asahi · 2021-02-06 16:45
kettenisour driver model is different enough that copying code straight from Linux drivers usually doesn't make sense
#asahi · 2021-02-06 16:44
kettenisto be honest, the license only really matters for future GPU code
#asahi · 2021-02-06 16:39
kettenislookslike you can have 8 MSIs per root port
#asahi · 2021-02-06 16:38
kettenisbut the MSIs are handled by the pcie controller and translated into regular AIC interrupts by the looks of it
#asahi · 2021-02-06 15:42
kettenis(so I'm going with option #3)
#asahi · 2021-02-06 15:41
kettenisnever attribute to malice...
#asahi · 2021-02-06 15:15
kettenisso if anybody has a clue about how to do that, hints would be appreciated
#asahi · 2021-02-06 15:14
kettenisanayway, u-boot has zero infrastructure for IOMMU's, so bypassing the damn thing is the only real option for now
#asahi · 2021-02-06 15:05
kettenisthey aren't even powered up as far as I can tell
#asahi · 2021-02-06 15:05
kettenisand the TB ports are safe for now
#asahi · 2021-02-06 15:02
kettenisfor u-boot?
#asahi · 2021-02-06 15:01
kettenisyes, that was my thinking as well
#asahi · 2021-02-06 15:00
kettenisthis is a port of the corellium driver
#asahi · 2021-02-06 15:00
kettenisbut I fear I need to add some sort of DART (IOMMU) support before the usb controller can talk to usb devices
#asahi · 2021-02-06 14:59
kettenisso my u-boot enumerates the pci bus now
#asahi · 2021-01-31 17:09
kettenisso I don't think we can expect them to release those bits
#asahi · 2021-01-31 16:57
kettenisnone of the device driver stuff is there, but it seems apple stopped releasing those bits a long time ago