View previous topic :: View next topic |
Author |
Message |
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6214 Location: Dallas area
|
Posted: Sun Mar 03, 2013 3:15 pm Post subject: [ Solved ] ethernet module crashes with IOMMU enabled |
|
|
I've just bought a new Asus MB (m5a99fx pro r2.0) and am having problems with getting the ethernet to not crash.
If IOMMU is enabled (getting ready to do pass through virtualization) then the driver will crash (minutes to hours later)
I get
Code: | [Sun Mar 3 08:17:47 2013] AMD-Vi: Event logged [IO_PAGE_FAULT device=0a:00.0 domain=0x0020 address=0x0000000000003000 f
lags=0x0050]
[Sun Mar 3 08:20:36 2013] ------------[ cut here ]------------
[Sun Mar 3 08:20:36 2013] WARNING: at net/sched/sch_generic.c:254 dev_watchdog+0x26b/0x280()
[Sun Mar 3 08:20:36 2013] Hardware name: To be filled by O.E.M.
[Sun Mar 3 08:20:36 2013] NETDEV WATCHDOG: eth0 (r8169): transmit queue 0 timed out |
*call trace, etc removed*
Code: | 0a:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168 PCI Express Gigabit Ethernet controller [10ec:8168] (rev 09) |
is the ethernet hardware.
I've tried both the kernel r8169 driver and the add on r8168 driver with kernels 3.4.10, 3.4.34 and 3.8.1 with the same end results.
Any ideas what might be causing this or how to fix it.
I need IOMMU enabled for what I'm doing so telling me to disable it isn't a long term fix.
Thanks for any replies
*Note: If this isn't the right sub-forum for this thread then it can be moved to one appropiate.* _________________ UM780, 6.12 zen kernel, gcc 13, openrc, wayland
Last edited by Anon-E-moose on Wed Mar 06, 2013 7:04 pm; edited 2 times in total |
|
Back to top |
|
|
s4e8 Guru
Joined: 29 Jul 2006 Posts: 311
|
Posted: Sun Mar 03, 2013 3:26 pm Post subject: |
|
|
add iommu=pv to grub. |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6214 Location: Dallas area
|
Posted: Sun Mar 03, 2013 5:03 pm Post subject: |
|
|
No difference _________________ UM780, 6.12 zen kernel, gcc 13, openrc, wayland |
|
Back to top |
|
|
_______0 Guru
Joined: 15 Oct 2012 Posts: 521
|
Posted: Sun Mar 03, 2013 5:19 pm Post subject: |
|
|
passthrough is only available with IOMMU, or would plain kvm do the job? I think it could be a solution to add a second card instead to use with the vm instead of crazy net configurations.
thnks |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6214 Location: Dallas area
|
Posted: Sun Mar 03, 2013 5:39 pm Post subject: |
|
|
I'm not even getting to the point of doing the virtualization.
I simply have IOMMU turned on in the bios and am running standard linux 3.8.1 and the ethernet module crashes,
if I turn off IOMMU then no crash. _________________ UM780, 6.12 zen kernel, gcc 13, openrc, wayland |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6214 Location: Dallas area
|
Posted: Sun Mar 03, 2013 7:57 pm Post subject: |
|
|
I went and picked up a pcie card, it's a realtek 8111/8168 but rev 06 not 09.
Seems to be working so far.
Not sure if this is a realtek problem or a combo problem, realtek 8111f/8168f AND iommu or if it's simply bad hardware.
I'm not sure how to contact the kernel developers to see if there are problems with the latest realtek chipsets and iommu,
so I'm not marking this as solved just yet.
I'll let it run overnight and then see what transpires. _________________ UM780, 6.12 zen kernel, gcc 13, openrc, wayland |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6214 Location: Dallas area
|
Posted: Tue Mar 05, 2013 3:17 pm Post subject: |
|
|
Found out yesterday that the sound doesn't work with IOMMU enabled (oss 4.2.2007)
It works ok with alsa.
Is there a way to find out if the problem with these devices is kernel code or bios implementation?
Both the ethernet and onboard sound work with iommu disabled so the hardware is fine.
Thanks for any help. _________________ UM780, 6.12 zen kernel, gcc 13, openrc, wayland |
|
Back to top |
|
|
Mad Merlin Veteran
Joined: 09 May 2005 Posts: 1155
|
Posted: Wed Mar 06, 2013 1:51 am Post subject: |
|
|
I have hardware with an IOMMU as well, though I'm currently not using it. Anyways, when I moved from kernel 3.0 to 3.2.9, I started getting crashes when copying large files over the network, very similar to your symptoms. I have these two ethernet cards, using the sky2 driver:
Code: |
05:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8056 PCI-E Gigabit Ethernet Controller (rev 12)
06:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8056 PCI-E Gigabit Ethernet Controller (rev 12)
|
I ended up disabling the IOMMU with intel_iommu=off, however, perhaps you could try an older kernel and see if it still crashes for you? If it works fine with an older kernel, you should file a bug over here: https://bugzilla.kernel.org/
They would probably be especially grateful if the bug report contained the results of a Git bisect (easy but time consuming, will take a dozen reboots or so). _________________ Game! - Where the stick is mightier than the sword! |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6214 Location: Dallas area
|
Posted: Wed Mar 06, 2013 10:54 am Post subject: |
|
|
I might try that, thanks for the hint.
I have posted to the iommu kernel mailing list, so I'll see if they have any hints.
I saw it originally on 3.4.10, then upgraded 3.4.34, then 3.8.1.
The add in card has been working without a problem, though it's a older rev of the onboard chipset.
Not sure if IOMMU is to blame, the drivers or some combination.
Again thanks _________________ UM780, 6.12 zen kernel, gcc 13, openrc, wayland |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6214 Location: Dallas area
|
Posted: Wed Mar 06, 2013 7:04 pm Post subject: |
|
|
I think it might be solved.
(tip of the hat to s4e8) though it's iommu=pt (not pv)
At least my sound is now working.
So I'm going to mark this as solved.
Note: Not sure why but I thought that the "pt" option was for intel cpus/motherboards.
I will check on whether the ethernet is fixed with this option at another time, will be marking this solved.
Anyway thanks to all for all the hints. _________________ UM780, 6.12 zen kernel, gcc 13, openrc, wayland |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6214 Location: Dallas area
|
Posted: Thu Mar 28, 2013 9:48 am Post subject: |
|
|
Update: the ethernet is working perfectly fine with iommu=pt being passed on the boot line.
I've got a second video card passing through to my kvm guests
and I pass through the addon ethernet while using the onboard for the linux host. _________________ UM780, 6.12 zen kernel, gcc 13, openrc, wayland |
|
Back to top |
|
|
chithanh Developer
Joined: 05 Aug 2006 Posts: 2158 Location: Berlin, Germany
|
|
Back to top |
|
|
|