Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
GA-990FXA-UD3 Rev 3 + IOMMU + Marvell 88SE91xx + Networking
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
CmdrMoozy
n00b
n00b


Joined: 13 Feb 2013
Posts: 4

PostPosted: Wed Feb 13, 2013 5:03 pm    Post subject: GA-990FXA-UD3 Rev 3 + IOMMU + Marvell 88SE91xx + Networking Reply with quote

I'm having trouble getting all of the hardware working on this particular board. The symptoms are very odd; if I have the AMD IOMMU disabled (either in the bios, or via iommu=off when booting), the Marvell SATA controller works just fine, but no networking will work - any network card (I even tried an e1000-based card) will seem to initialize and get a link, but refuse to send or receive any packets.

If the IOMMU is turned on, then NICs work just fine, but the SATA controller won't function - again, the AHCI driver sees the chip and initializes it, it sees the drive that's attached to it in dmesg, but no device in /dev is created, and it seems basically unusable (with the IOMMU off, this chip does SATA hotplugging out-of-the-box).

I believe this bug is related, or exactly the same problem, since it describes this situation more or less exactly: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1005226



I'm hoping for some way to get libata to simply ignore the IOMMU, while the rest of the system uses it, or barring that some workaround to get NICs working while the IOMMU is disabled.

Honestly it may simply be the case that a kernel patch is required - this bug seems to describe my situation more or less exactly (although I have an AMD system, not Intel, so this patch won't help me as-is): https://lkml.org/lkml/2012/12/19/104



Thanks in advance for any advice!
Back to top
View user's profile Send private message
s4e8
Guru
Guru


Joined: 29 Jul 2006
Posts: 311

PostPosted: Wed Feb 13, 2013 11:58 pm    Post subject: Reply with quote

This is bug of the Marvell 91xx controller, the controller itself pci id is X:0.0, but the DMA request issued by X:0.1, so IOMMU reject it.
Back to top
View user's profile Send private message
CmdrMoozy
n00b
n00b


Joined: 13 Feb 2013
Posts: 4

PostPosted: Thu Feb 14, 2013 3:05 am    Post subject: Reply with quote

s4e8 wrote:
This is bug of the Marvell 91xx controller, the controller itself pci id is X:0.0, but the DMA request issued by X:0.1, so IOMMU reject it.


That's actually very helpful in understanding exactly what Cooks' patch does.

If nobody has a suitable workaround, I may try my hand at writing a kernel patch targeting the AMD IOMMU in the next few days. I'm assuming the changes to drivers/pci/quirks.c can be left as-is, and simply a similar function would need to be added to drivers/iommu/amd_iommu.c. This seems like it would be quite easy.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum