-
Notifications
You must be signed in to change notification settings - Fork 117
Description
Can the vbios extraction program be adapted to work with the NPU?
I've used this procedure successfully with minor modifications to pass-through the Strix Halo (395+) GPU to a guest. When I use similar procedures to pass the NPU, (NPU6, 0x17f0 0x20 on Strix Halo) it fails similarly to how the GPU pass-through fails when you don't pass the firmware. The NPU is seen and recognized by the guest, but it can't be initialized even though the virtio driver is attached to it on the host side.
I don't fully understand the script used to dump the local Vbios, but I assume it's looking for the appropriate local memory offset for the running firmware and copying from there. There is a lot of info on the NPU here: https://deepwiki.com/amd/xdna-driver/4.1-npu-device-variants and here: github.com/amd/xdna-driver/blob/6f630165/src/driver/amdxdna/npu6_regs.c#L1-L12
Is there any chance someone could adapt the program to extract the NPU firmware?