Coral TPU PCI Passthrough
-
Nope - i tested recently with the latest updates and the vm still crashes...
There were some patches for Xen and i tested the one @andSmv posted without any change.
There looked to be quite a few patches around similar issues on upstream Xen but i have no idea if any of them were relevant.Maybe we will see improvement once Xcp-ng 9 comes about with a more recent version?
-
Ping @andSmv I don't remember the status of this
-
@redakula Thanks for letting me know.
I guess I'll just have to go with a dedicated low power stand alone device for Frigate and keep an eye out in the future to see if it makes it's way into Xcp-ng 9. -
I don't aware if there's something new from Marek who initially worked on these patches. I think at the time he addressed not this particular hardware but rather the global issue, and this patch wasn't tested with Coral HW, so most probably that's why it doesn't work (may be more issues...)
I will ping Marek on XEN Community Matrix channel to know if there's something new at that level and will keep you posted.
-
@andSmv Did you ever hear back by any chance?
-
Just got the answer from Marek on that. The patches he made was tested with Intel Wifi cards and was targeting the similar issue (MSI-x table) but not the same as Coral TPU (PBA). It should be not very very difficult to extend his patches to the PBA, but unfortunately neither him (neither us) don't have this specific hardware.
The patches he made are actually upstream
b2cd07a0447bfa25e96ae13e190225b61a3670cbso you can take a look at it if you want.I will try to see if we have an easy possibility to get this HW
-
The other way is to build a version that "should work" and make it test by the community

-
@milch I will take a look this week and try to figure out if we can make progress on that, so you could have something to test.
-
@andSmv @olivierlambert
Hi Guys,
I'm happy to help. I wouldn't say I'm overly technical but not a noob either.
I have a clean install with the hardware. I can arrange a remote connection to the machine if that makes it easier.Let me know and I'll do my best to assist.
-
@Niall-Con Thank you! I'll take a look to that and will ping you to test on real hardware. Just need to find time (in the middle of storm right now), so it'll take one or two weeks most probably.
-
@andSmv Any news on a test build with the patch? I'm wondering if this issue is related and would love to be able to test.
-
Also ended up here while researching/troubleshooting this hardware; Has there been any additional movement on this topic?
-
Reping @andSmv
-
Hey, sorry guys. Didn't have time to advance on that. I promise will put something to test during november.
-
@andSmv @olivierlambert Mid-December circle back.
Anything promising for us to test before the new year?
If not; happy non-denominational holiday and new year.
-
@firereverie Sorry, these last few weeks was very-very busy. So I REALLY hope will do something on this before the december end and come back to you.
-
Sorry guys. This one is harder than expected, basically the marek patch addresses only MSI-X Vector Table (and which has some emulation support included in Xen). MSI-x PBA related stuff is a different - so I will try to see how I can get the actual device to fix this one
-
@andSmv
I definitely think it would be nice with support even though i repurposed my M2 Coral for other uses.
But one thing to keep in mind regarding resources is that the product would appear to be heading to https://killedbygoogle.com
coral.ai redirects to their new NPU offering and no updates have been made from google to the driver since 2022... Mouser still has plenty of stock though.Frigate.nvr which is one of the popular uses for the Coral do not recommend it for new installs either.