<div dir="ltr">Hi,<div><br></div><div>Since long time ago, to enable the SR-IOV VF pci passthrough function, I'm always adding "amd_iommu=on" into kernel cmdline on AMD system. </div><div>But recently I found even I do not do this action, IOMMU is still enabled by kernel on AMD system. </div><div>After searching, I found there is no such setting any more, refer to <a href="https://github.com/torvalds/linux/blob/master/Documentation/admin-guide/kernel-parameters.txt#L286">https://github.com/torvalds/linux/blob/master/Documentation/admin-guide/kernel-parameters.txt#L286</a></div><div><br></div><div>There are only 3 possible value as below:</div><div><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre">amd_iommu= </span><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre">fullflush</span></div><div><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre">           </span><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre">off</span></div><div><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre">           </span><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre">force_isolation</span></div><div><br></div><div>Could anyone can help to confirm the changes?  Thank you! </div><div>And another question, it is said that the "iommu=pt" option is to improves IO performance for devices in the host, it is not a must for VF PCI passthrough, right?</div><div>I'm not sure about the user cases. </div><div></div><br>[Reference]<div>1. Reference about adding "amd_iommu=on", and it may be outdated:  <a href="http://dpdk-guide.gitlab.io/dpdk-guide/setup/iommu.html">http://dpdk-guide.gitlab.io/dpdk-guide/setup/iommu.html</a></div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>2. On AMD system without adding "amd_iommu=on"  in the kernel cmdline, the iommu is enabled:</div><div># cat /proc/cmdline <br>BOOT_IMAGE=(hd0,msdos1)/vmlinuz-4.18.0-193.el8.x86_64 root=/dev/mapper/rhel_hp--dl385g10--16-root ro crashkernel=auto resume=/dev/mapper/rhel_hp--dl385g10--16-swap <a href="http://rd.lvm.lv">rd.lvm.lv</a>=rhel_hp-dl385g10-16/root <a href="http://rd.lvm.lv">rd.lvm.lv</a>=rhel_hp-dl385g10-16/swap console=ttyS0,115200n81<br></div><div><br></div><div># dmesg | grep -i iommu <br>[    3.712029] iommu: Default domain type: Passthrough <br>[    6.736019] pci 0000:00:00.2: IOMMU performance counters supported<br>...<br>[    6.780040] pci 0000:e0:00.2: IOMMU performance counters supported<br>[    6.786740] pci 0000:00:01.0: Adding to iommu group 0<br>[    6.791876] pci 0000:00:01.1: Adding to iommu group 1<br>[    6.797015] pci 0000:00:01.2: Adding to iommu group 2<br>[    6.802150] pci 0000:00:01.4: Adding to iommu group 3<br>...</div><div>[    7.866463] pci 0000:e0:00.2: Found IOMMU cap 0x40<br>[    7.920222] perf/amd_iommu: Detected AMD IOMMU #0 (2 banks, 4 counters/bank).<br>[    7.927428] perf/amd_iommu: Detected AMD IOMMU #1 (2 banks, 4 counters/bank)<br></div><div>...</div><div><br><br>-------<br>Best Regards,<br>Yalan Zhang<br>IRC: yalzhang<br></div></div></div></div></div></div>