jiangcuo / Proxmox-Arm64

Proxmox VE & PBS unofficial arm64 version
GNU Affero General Public License v3.0
389 stars 41 forks source link

Pcie passthrough problem #25

Closed tempus74 closed 1 year ago

tempus74 commented 1 year ago

Hi

I get this message when i try and do a pcie passthrough.

No IOMMU detected, please activate it.See Documentation for further information.

i have added this in grub: GRUB_CMDLINE_LINUX_DEFAULT="quiet iommu.passthrough=1" and this in /etc/modules vfio vfio_iommu_type1 vfio_pci vfio_virqfd

How can i get this working ?

jiangcuo commented 1 year ago

What hardware are you using?

tempus74 commented 1 year ago

Im using a huawei taishan 2280 kunpeng 920

jiangcuo commented 1 year ago

Make sure smmu has been enabled by bios

cronop commented 1 year ago

Hi @jiangcuo did you compile your own kernel to get smmu support? on orange pi 5 plus, even though rk3588 has MMU600, it does not seem to be enabled in either armbian or orange debian.

jiangcuo commented 1 year ago

@cronop Symbol ROCKCHIP_IOMMU=y has been enabled in kernel default config. See Rockchip IOMMU Support

I think that mybe not kernel's problem. There has a iommu doc https://www.kernel.org/doc/Documentation/devicetree/bindings/iommu/rockchip%2Ciommu.txt

jiangcuo commented 1 year ago

@tempus74 kernel has enabled iommu by default . https://github.com/jiangcuo/pve-arm64-kernel/raw/master/debian/config/config.pve You can check server's bios and make sure smmu has been enabled .

cronop commented 1 year ago

Thank you @jiangcuo and @tempus74! I think this is down to rockchip/orangepi mmu support - https://www.reddit.com/r/OrangePI/comments/14g4cob/orange_pi_5_plus_rk3588_iommu_smmu_vfio_pci

tempus74 commented 1 year ago

Thx @jiangcuo

After looking closer i have a Taishan 2280 v1 server with hi1616 cpu that I'm reading as kunpeng 916 but I'm not sure, i have no settings for smmu or any settings regarding virtualization in bios 2280 V2 looks like it has it, I'm having trouble downloading new bios from Huawei since om not a company and got the server used from ebay so it's from 2017, so if anyone has enterprise access to Huawei hook me up 😀

Everything else is working good thx for maintaining this repo. /Urban

jiangcuo commented 1 year ago

@tempus74 Huawei docs are not pulic. Try this path “Advanced > MICC Config > Support Smmu”