PCI Passthrough Issue: rtl8852be on ARM VM (Ubuntu host/OpenWrt guest)
Thanks for your quick response.
Quoted 8 lines
This looks like interoperability problem of 36-bit DMA. If you have below commit in your guest OS:
1fd4b3fe52ef("wifi: rtw89: pci: support 36-bit PCI DMA address")Please also have below commit to rollback 32-bit DMA.
aa70ff0945fe("wifi: rtw89: pci: early chips only enable 36-bit DMA on specific PCI hosts")With the latest kernel, you can just comment code as below to use 32-bit DMA.
I tried it and found that it still doesn't work
Quoted 2 lines
I have not ever tried passthrough, so I'm not sure if it can work. Can I know how different the passthrough is?
You can refer to this: https://docs.kernel.org/driver-api/vfio.html
Quoted 1 line
Does rtl8852be work on host OS?
I'm trying, but when I load the 8852be driver, strangely, I get nothing. $> dmesg |grep 8852be
no message!
$> lsmod |grep rtw
rtw_8852be 16384 0 rtw_8852b 352256 1 rtw_8852be rtw89pci 61440 1 rtw_8852be rtw89core 569344 2 rtw89pci,rtw_8852b
It looks like my device is not detected
Quoted 24 lines · At 2025-06-12 15:38:09, [email protected] wrote:
Thanks for your quick response.
Quoted 8 lines
This looks like interoperability problem of 36-bit DMA. If you have below commit in your guest OS:
1fd4b3fe52ef("wifi: rtw89: pci: support 36-bit PCI DMA address")Please also have below commit to rollback 32-bit DMA.
aa70ff0945fe("wifi: rtw89: pci: early chips only enable 36-bit DMA on specific PCI hosts")With the latest kernel, you can just comment code as below to use 32-bit DMA.
I tried it and found that it still doesn't work
Quoted 2 lines
I have not ever tried passthrough, so I'm not sure if it can work. Can I know how different the passthrough is?
You can refer to this: https://docs.kernel.org/driver-api/vfio.html
Quoted 1 line
Does rtl8852be work on host OS?
I'm trying, but when I load the 8852be driver, strangely, I get nothing. $> dmesg |grep 8852be
no message!
$> lsmod |grep rtw
Quoted 5 lines
rtw_8852be 16384 0 rtw_8852b 352256 1 rtw_8852be rtw89pci 61440 1 rtw_8852be rtw89core 569344 2 rtw89pci,rtw_8852bIt looks like my device is not detected
I've confirmed that the host system is working
Quoted 7 lines · lonthn
Quoted 6 lines · At 2025-06-12 15:38:09, [email protected] wrote:
Thanks for your quick response.
Quoted 4 lines
This looks like interoperability problem of 36-bit DMA. If you have below commit in your guest OS:
1fd4b3fe52ef("wifi: rtw89: pci: support 36-bit PCI DMA address")
Quoted 6 lines
Quoted 6 lines
Quoted 4 lines
Please also have below commit to rollback 32-bit DMA.
aa70ff0945fe("wifi: rtw89: pci: early chips only enable 36-bit DMA on specific PCI hosts")With the latest kernel, you can just comment code as below to use 32-bit DMA.
I tried it and found that it still doesn't work
The error means that firmware isn't ready, and download firmware is the first part driver asks WiFi device does DMA. Before the DMA, driver has done many memory mapping IO, so IO is okay, but DMA isn't.
I think you can try to force 36-bit DMA to see if it can work. (I suppose the experiments before is 32-bit DMA.)
Quoted 5 lines
Quoted 5 lines
Quoted 3 lines
I have not ever tried passthrough, so I'm not sure if it can work. Can I know how different the passthrough is?
You can refer to this: https://docs.kernel.org/driver-api/vfio.html
I don't quite understand what I should modify the driver. Do you have hints for me?
I feel PCI passthrough should be transparent to driver/device. I mean driver/device shouldn't need to know that it operates in host OS or guest OS (passthrough).
Quoted 13 lines
Quoted 7 lines
Quoted 2 lines
Does rtl8852be work on host OS?
I'm trying, but when I load the 8852be driver, strangely, I get nothing. $> dmesg |grep 8852be
no message!
$> lsmod |grep rtwQuoted 5 lines
rtw_8852be 16384 0 rtw_8852b 352256 1 rtw_8852be rtw89pci 61440 1 rtw_8852be rtw89core 569344 2 rtw89pci,rtw_8852bIt looks like my device is not detected
Quoted 1 line
I've confirmed that the host system is working
What were you do to fix that? Did you turn off iommu/VT-d or something?