Wi-Fi hardware passthrough#262
Conversation
|
I am currently trying this example and had a few comments:
|
Ah yes that was from my debugging attempt. I'll remove them once I figure out why removing
Ah thanks for the tip! |
Signed-off-by: Bill Nguyen <bill.nguyen@unsw.edu.au>
Signed-off-by: Bill Nguyen <bill.nguyen@unsw.edu.au>
|
Link #62. |
|
I was getting boot errors with emmc2 that were congesting my user-space console; I was able to just remove this and still access WiFi through passthrough. In the overlay.dts I included the following: I then removed the mapping in the .system file for this bus. |
Cool! Thanks for the feedback, I'll make sure to incorporate it in my example. I'm glad that it is working for you, please let me know if you run into other problems with libvmm. |
|
One solution to being able to remove Then you can also remove the memory mapping and interrupts for the dma-controller from the .system file and vmm.c file. From what I am observing, the interrupts are getting stuck when trying to load the driver using DMA. Disabling DMA forces PIO, which succeeds. In my user-land kernel boot, I now see the message |
So that would require the CPU to manually shuffle data to and from the WiFi card? That isn't great for performance, I think there is a bug in our VGIC code somewhere. I'll investigate this and see if we can keep the DMA controller. |
This is far from being ready but opening a PR so I don't forget about it.
Edit: after some thoughts, perhaps it would be better if we fold #180 into this as well.