Re: [gentoo-user] Issues with AMD_IOMMU
On Sun, May 14, 2017 at 12:31 AM, Adam Carterwrote: > Tried kernels 4.10.13 and 4.11, with > CONFIG_GART_IOMMU=y > CONFIG_IOMMU_HELPER=y > CONFIG_IOMMU_API=y > CONFIG_IOMMU_SUPPORT=y > CONFIG_IOMMU_IOVA=y > CONFIG_AMD_IOMMU=y > CONFIG_AMD_IOMMU_V2=m > Chipset is 990FX, and AFAICT the V2 is for the APU (bdver3 and 4 vintage). > > When I enable the IOMMU in the BIOS I get stack traces. Is anyone using > AMD_IOMMU successfully? If so, any tips? I don't mean to suggest the problem is intractable, but on fairly new hardware (i7-4770K, MSI Z87-G45) there has been a regression in the kernel's nested KVM support that makes me view VT-x/AMD-V VT-d/AMD-Vi with a great deal of suspicion. In any case, devices are liable to just spontaneously not work, even if the hardware reports it has been properly initialized. This may require changes to the kernel and the information needed to make those changes may or may not be available.
Re: [gentoo-user] Issues with AMD_IOMMU
On a Phenom II?Yeah, I just retired mine a month ago. On that > system, the IOMMU hardware was kinda a legacy orphan thingy, I had to go > through all kinds of gyrations on the kernel command line in order to > initialize it correctly. I think I had it off in the bios, then enabled > it using a bunch of kernel commands. > > If it was off in the BIOS then i think that means you were just using CONFIG_GART_IOMMU not CONFIG_AMD_IOMMU
Re: [gentoo-user] Issues with AMD_IOMMU
I've added iommu=pt to my kernel command line, and now have; [1.240242] AMD-Vi: Found IOMMU at :00:00.2 cap 0x40 I was looking at IOMMU in the hope that my Win10 vmware guest would be more stable. No change, however. > APU? > I was under the impression that those CPU's used a different chipset, > not the 990FX. > Thanks for clearing up my confusion on the location of the IOMMU being the CPU, not the chipset. FWIW i'm using an FX-8350. The APU comment was with respect to CONFIG_AMD_IOMMU_V2. I believe FX CPU just uses CONFIG_AMD_IOMMU - that's certainly working for me with the FX-8350.
Re: [gentoo-user] Issues with AMD_IOMMU
On 05/14/2017 12:31 AM, Adam Carter wrote: > Tried kernels 4.10.13 and 4.11, with > CONFIG_GART_IOMMU=y > CONFIG_IOMMU_HELPER=y > CONFIG_IOMMU_API=y > CONFIG_IOMMU_SUPPORT=y > CONFIG_IOMMU_IOVA=y > CONFIG_AMD_IOMMU=y > CONFIG_AMD_IOMMU_V2=m > Chipset is 990FX, and AFAICT the V2 is for the APU (bdver3 and 4 vintage). > > When I enable the IOMMU in the BIOS I get stack traces. Is anyone using > AMD_IOMMU successfully? If so, any tips? - Background / System Info : 2 systems. Chipset 990FX, FX-9590 ( -march=bdver2 / Fam15h ) Chipset 790FX, PhenomII 980 ( -march=amdfam10 / Fam10h ) Gentoo x86_64, multilib, Kernel 4.9.x IOMMU enabled in UEFI, BIOS. - General Info : ( if you don't know already ... ) The 990FX / 790FX Chipset doesn't have a GART / AGP Aperature or IOMMU in it. The CPU contains the original K8 IOMMU ( v1 ) engineered / converted from a GART. Standard output in '/var/log/dmesg'. > [0.00] AGP: No AGP bridge found > [0.926911] PCI-DMA: Disabling AGP. > [0.927142] PCI-DMA: aperture base @ b400 size 65536 KB > [0.927263] PCI-DMA: using GART IOMMU. > [0.927376] PCI-DMA: Reserving 64MB of IOMMU area in the AGP aperture - Suggestion : read the Kernel Parameter docs. The automatic setup may need tweaking. You have to do a manual setup if you want, both, a working IOMMU and an AGP Aperature. Firmware can throw a major monkey wrench into that type of setup however. > /usr/src/linux/Documentation/kernel-parameters.txt This doc has the x86_64 IOMMU options listed ... > /usr/src/linux/Documentation/x86/x86_64/boot-options.txt Question : APU? I was under the impression that those CPU's used a different chipset, not the 990FX. Corbin
Re: [gentoo-user] Issues with AMD_IOMMU
On 05/14/2017 01:31 AM, Adam Carter wrote: Tried kernels 4.10.13 and 4.11, with CONFIG_GART_IOMMU=y CONFIG_IOMMU_HELPER=y CONFIG_IOMMU_API=y CONFIG_IOMMU_SUPPORT=y CONFIG_IOMMU_IOVA=y CONFIG_AMD_IOMMU=y CONFIG_AMD_IOMMU_V2=m Chipset is 990FX, and AFAICT the V2 is for the APU (bdver3 and 4 vintage). When I enable the IOMMU in the BIOS I get stack traces. Is anyone using AMD_IOMMU successfully? If so, any tips? Is this a gentoo kernel or one from kernel.org? What are the exact errors you are getting? random? can you post? On 05/14/2017 11:06 AM, Alan Grimes wrote: Adam Carter wrote: Tried kernels 4.10.13 and 4.11, with CONFIG_GART_IOMMU=y CONFIG_IOMMU_HELPER=y CONFIG_IOMMU_API=y CONFIG_IOMMU_SUPPORT=y CONFIG_IOMMU_IOVA=y CONFIG_AMD_IOMMU=y CONFIG_AMD_IOMMU_V2=m Chipset is 990FX, and AFAICT the V2 is for the APU (bdver3 and 4 vintage). When I enable the IOMMU in the BIOS I get stack traces. Is anyone using AMD_IOMMU successfully? If so, any tips? On a Phenom II?Yeah, I just retired mine a month ago. On that system, the IOMMU hardware was kinda a legacy orphan thingy, I had to go through all kinds of gyrations on the kernel command line in order to initialize it correctly. I think I had it off in the bios, then enabled it using a bunch of kernel commands. 990FX would probably be an AMD FX CPU such as the 8350, it usually works fine and is enabled by default on most distros.
Re: [gentoo-user] Issues with AMD_IOMMU
Adam Carter wrote: > Tried kernels 4.10.13 and 4.11, with > CONFIG_GART_IOMMU=y > CONFIG_IOMMU_HELPER=y > CONFIG_IOMMU_API=y > CONFIG_IOMMU_SUPPORT=y > CONFIG_IOMMU_IOVA=y > CONFIG_AMD_IOMMU=y > CONFIG_AMD_IOMMU_V2=m > Chipset is 990FX, and AFAICT the V2 is for the APU (bdver3 and 4 vintage). > > When I enable the IOMMU in the BIOS I get stack traces. Is anyone > using AMD_IOMMU successfully? If so, any tips? On a Phenom II?Yeah, I just retired mine a month ago. On that system, the IOMMU hardware was kinda a legacy orphan thingy, I had to go through all kinds of gyrations on the kernel command line in order to initialize it correctly. I think I had it off in the bios, then enabled it using a bunch of kernel commands. -- Strange Game. The only winning move is not to play. Powers are not rights.
[gentoo-user] Issues with AMD_IOMMU
Tried kernels 4.10.13 and 4.11, with CONFIG_GART_IOMMU=y CONFIG_IOMMU_HELPER=y CONFIG_IOMMU_API=y CONFIG_IOMMU_SUPPORT=y CONFIG_IOMMU_IOVA=y CONFIG_AMD_IOMMU=y CONFIG_AMD_IOMMU_V2=m Chipset is 990FX, and AFAICT the V2 is for the APU (bdver3 and 4 vintage). When I enable the IOMMU in the BIOS I get stack traces. Is anyone using AMD_IOMMU successfully? If so, any tips?