Skip to contentSkip to conversation

Help testing for USB ethernet/xHCI regression

DISCUSSION Sarah Sharp 7 participants 13 messages Jan 29, 2014 – Jan 31, 2014 4 messages not in the archive

Subsystems (2)
lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 11 lines · On Wed, Jan 29, 2014 at 04:21:00PM +1100, [email protected] wrote:

Hello,

I am someone who has been struggling to get an ax88179 net adapter working reliably.

I have an integrated Asmedia 1042 xhci controller that is reportedly version 0.96 on an ASUS M5A99FX PRO R2.0, BIOS 2201 motherboard based on the AMD 990FX chipset.

The big issue I am currently facing is that I cannot get the device to work at all with 3.13 and current 3.14 mainline. This does not occur with 3.12.

With the working kernel, were you using vanilla 3.12, or a later 3.12 stable release, like 3.12.5?

Quoted 2 lines

Current issue is when plugging in the ax88179 there is lag when bringing the interface up and a bunch of kernel messages:

With which kernel?

Quoted 17 lines
[   63.389440] ax88179_178a 2-1:1.0 eth0: register 'ax88179_178a' at 
usb-0000:07:00.0-1, ASIX AX88179 USB 3.0 Gigabit Ethernet, 80:3f:5d:08:0c:65
[   63.389500] usbcore: registered new interface driver ax88179_178a
[   63.423942] systemd-udevd[560]: renamed network interface eth0 to enp7s0u1
[   79.481028] IPv6: ADDRCONF(NETDEV_UP): enp7s0u1: link is not ready
[   82.210721] ax88179_178a 2-1:1.0 enp7s0u1: ax88179 - Link status is: 1
[   82.338947] ax88179_178a 2-1:1.0 enp7s0u1: ax88179 - Link status is: 1
[   82.467148] ax88179_178a 2-1:1.0 enp7s0u1: kevent 4 may have been dropped
[   82.470028] ax88179_178a 2-1:1.0 enp7s0u1: ax88179 - Link status is: 1
[   82.595364] ax88179_178a 2-1:1.0 enp7s0u1: kevent 4 may have been dropped
[   82.598312] ax88179_178a 2-1:1.0 enp7s0u1: ax88179 - Link status is: 1
[   82.723580] ax88179_178a 2-1:1.0 enp7s0u1: kevent 4 may have been dropped
[   82.726487] ax88179_178a 2-1:1.0 enp7s0u1: ax88179 - Link status is: 1
[   82.851796] ax88179_178a 2-1:1.0 enp7s0u1: kevent 4 may have been dropped
[   82.854642] ax88179_178a 2-1:1.0 enp7s0u1: ax88179 - Link status is: 1
[snip]
[   87.218379] ax88179_178a 2-1:1.0 enp7s0u1: Failed to write reg index 
Quoted 1 line

0x0002: -110

Can you enable xHCI debugging as well, and send dmesg? You'll need to have CONFIG_USB_DEBUG turned on, and also run this command as root:

echo -n 'module xhci_hcd =p' > /sys/kernel/debug/dynamic_debug/control

Quoted 8 lines

Any traffic sent to the nic isn't seen by Linux.

I can confirm the following problems for me with 3.14:

reverting the writeq patch made USB 3 work for me again.

http://marc.info/?t=139093294600002&r=1&w=2

So what was the issue that caused you to revert that patch? The traffic not going to the device, or the device not being enumerated at all?

Quoted 4 lines

and

http://marc.info/?l=linux-usb&m=139092084714232&w=2

Quoted 8 lines

got rid of transiever errors

I cannot really test stability for the ax88179 until I can get it to work when plugging it in as above. I've tried the frag reversion and it's made no difference to this issue.

What about also reverting the writeq patch, on top of the other patches I asked Mark to try?

Sarah Sharp

#2 lore raw

From: Sarah Sharp

Quoted 4 lines
Quoted 2 lines

Current issue is when plugging in the ax88179 there is lag when bringing the interface up and a bunch of kernel messages:

With which kernel?

I saw similar issues testing some patches yesterday. Both with the ax179_178a and smsx95xx cards (connected to xhci). My kernel claims to be 3.13.0-dsl+ but it is lying since it was updated from linus's tree earlier this week.
I'd not seen any similar delays until the last week or so.

The xhci controller I'm using is the Intel 'Panther Point' 8086:1e31 rev 4 (also says 8086:1e2d and 8086:1e26).

David

#3 lore raw

When using the ax88179 connected via the via based card the whole system gets brought down after a while i got this my system log.

I'm going to take a break and see if I can narrow anything more down tomorrow. This log is in reverse because of the wonderful way journalctl works.

I suppose I could try using iommu=pt as a kernel boot parameter but that doesn't sound like a safe thing to do.

 Jan 30 21:04:38 athas kernel: [<ffffffffc11281a0>] xhci_msi_irq [xhci_hcd]
Jan 30 21:04:38 athas kernel: handlers:
Jan 30 21:04:38 athas kernel:  [<ffffffffa74f9ee6>] 
system_call_fastpath+0x1a/0x1f
Jan 30 21:04:38 athas kernel:  [<ffffffffa715ef6a>] ? 
SyS_epoll_ctl+0x4fa/0xb00
Jan 30 21:04:38 athas kernel:  <EOI>  [<ffffffffa715f181>] ? 
SyS_epoll_ctl+0x711/0xb00
Jan 30 21:04:38 athas kernel:  [<ffffffffa74f982a>] common_interrupt+0x6a/0x6a
Jan 30 21:04:38 athas kernel:  [<ffffffffa700445a>] do_IRQ+0x4a/0xf0
Jan 30 21:04:38 athas kernel:  [<ffffffffa7004679>] handle_irq+0x19/0x30
Jan 30 21:04:38 athas kernel:  [<ffffffffa708200f>] handle_edge_irq+0x6f/0x120
Jan 30 21:04:38 athas kernel:  [<ffffffffa707f8b1>] handle_irq_event+0x31/0x50
Jan 30 21:04:38 athas kernel:  [<ffffffffa707f802>] 
handle_irq_event_percpu+0xc2/0x140
Jan 30 21:04:38 athas kernel:  [<ffffffffa7081b00>] note_interrupt+0xe0/0x1e0
Jan 30 21:04:38 athas kernel:  [<ffffffffa708176d>] __report_bad_irq+0x2d/0xc0
Jan 30 21:04:38 athas kernel:  <IRQ>  [<ffffffffa74efd3f>] 
dump_stack+0x45/0x56
Jan 30 21:04:38 athas kernel: Call Trace:
Jan 30 21:04:38 athas kernel:  0000000000000000 ffff88043edc3ed8 
ffffffffa7081b00 0000000000000000
Jan 30 21:04:38 athas kernel:  ffff88043edc3e98 ffffffffa708176d 
ffff880425031b00 000000000000004d
Jan 30 21:04:38 athas kernel:  ffff880425031b84 ffff88043edc3e70 
ffffffffa74efd3f ffff880425031b00
Jan 30 21:04:38 athas kernel: Hardware name: To be filled by O.E.M. To be 
filled by O.E.M./M5A99FX PRO R2.0, BIOS 2201 11/22/2013
Jan 30 21:04:38 athas kernel: CPU: 7 PID: 1160 Comm: Chrome_IOThread Not 
tainted 3.13.0+ #13
Jan 30 21:04:38 athas kernel: irq event 77: bogus return value ffffff94
Jan 30 21:04:38 athas kernel: xhci_hcd 0000:02:00.0: Host not halted after 
16000 microseconds.
Jan 30 21:04:38 athas kernel: AMD-Vi: Event logged [IO_PAGE_FAULT 
device=02:00.0 domain=0x0019 address=0x00000000002b2000 flags=0x0000]
Jan 30 21:04:38 athas kernel: xhci_hcd 0000:02:00.0: WARNING: Host System 

Error

Regards,

Will Trives

#4 lore raw

via vl800 pcie card
kernel parameter iommu=pt
ethtool -K xxx sg off
ifconfig xxx mtu 4060 up

stable so far, it's way past the point that it usually crashes.

i'll do proper testing tomorrow

iommu=pt bah !

Regards,

Will Trives

Quoted 55 lines · On Thursday 30 January 2014 21:46:27 [email protected] wrote:

When using the ax88179 connected via the via based card the whole system gets brought down after a while i got this my system log.

I'm going to take a break and see if I can narrow anything more down tomorrow. This log is in reverse because of the wonderful way journalctl works.

I suppose I could try using iommu=pt as a kernel boot parameter but that doesn't sound like a safe thing to do.

 Jan 30 21:04:38 athas kernel: [<ffffffffc11281a0>] xhci_msi_irq [xhci_hcd]
Jan 30 21:04:38 athas kernel: handlers:
Jan 30 21:04:38 athas kernel:  [<ffffffffa74f9ee6>]
system_call_fastpath+0x1a/0x1f
Jan 30 21:04:38 athas kernel:  [<ffffffffa715ef6a>] ?
SyS_epoll_ctl+0x4fa/0xb00
Jan 30 21:04:38 athas kernel:  <EOI>  [<ffffffffa715f181>] ?
SyS_epoll_ctl+0x711/0xb00
Jan 30 21:04:38 athas kernel:  [<ffffffffa74f982a>]
common_interrupt+0x6a/0x6a Jan 30 21:04:38 athas kernel: 
[<ffffffffa700445a>] do_IRQ+0x4a/0xf0 Jan 30 21:04:38 athas kernel: 
[<ffffffffa7004679>] handle_irq+0x19/0x30 Jan 30 21:04:38 athas kernel: 
[<ffffffffa708200f>] handle_edge_irq+0x6f/0x120 Jan 30 21:04:38 athas
kernel:  [<ffffffffa707f8b1>] handle_irq_event+0x31/0x50 Jan 30 21:04:38
athas kernel:  [<ffffffffa707f802>]
handle_irq_event_percpu+0xc2/0x140
Jan 30 21:04:38 athas kernel:  [<ffffffffa7081b00>]
note_interrupt+0xe0/0x1e0 Jan 30 21:04:38 athas kernel: 
[<ffffffffa708176d>] __report_bad_irq+0x2d/0xc0 Jan 30 21:04:38 athas
kernel:  <IRQ>  [<ffffffffa74efd3f>]
dump_stack+0x45/0x56
Jan 30 21:04:38 athas kernel: Call Trace:
Jan 30 21:04:38 athas kernel:  0000000000000000 ffff88043edc3ed8
ffffffffa7081b00 0000000000000000
Jan 30 21:04:38 athas kernel:  ffff88043edc3e98 ffffffffa708176d
ffff880425031b00 000000000000004d
Jan 30 21:04:38 athas kernel:  ffff880425031b84 ffff88043edc3e70
ffffffffa74efd3f ffff880425031b00
Jan 30 21:04:38 athas kernel: Hardware name: To be filled by O.E.M. To be
filled by O.E.M./M5A99FX PRO R2.0, BIOS 2201 11/22/2013
Jan 30 21:04:38 athas kernel: CPU: 7 PID: 1160 Comm: Chrome_IOThread Not
tainted 3.13.0+ #13
Jan 30 21:04:38 athas kernel: irq event 77: bogus return value ffffff94
Jan 30 21:04:38 athas kernel: xhci_hcd 0000:02:00.0: Host not halted after
16000 microseconds.
Jan 30 21:04:38 athas kernel: AMD-Vi: Event logged [IO_PAGE_FAULT
device=02:00.0 domain=0x0019 address=0x00000000002b2000 flags=0x0000]
Jan 30 21:04:38 athas kernel: xhci_hcd 0000:02:00.0: WARNING: Host System

Error

Regards,

Will Trives

#6 lore raw
In reply to a message not in the archive
Quoted 17 lines · David Laight

From: Sarah Sharp

Quoted 16 lines
Quoted 14 lines

Current issue is when plugging in the ax88179 there is lag when bringing the interface up and a bunch of kernel messages:

[   79.481028] IPv6: ADDRCONF(NETDEV_UP): enp7s0u1: link is not ready
[   82.210721] ax88179_178a 2-1:1.0 enp7s0u1: ax88179 - Link status is: 1
[   82.338947] ax88179_178a 2-1:1.0 enp7s0u1: ax88179 - Link status is: 1
[   82.467148] ax88179_178a 2-1:1.0 enp7s0u1: kevent 4 may have been dropped
[   82.470028] ax88179_178a 2-1:1.0 enp7s0u1: ax88179 - Link status is: 1
[   82.595364] ax88179_178a 2-1:1.0 enp7s0u1: kevent 4 may have been dropped
[   82.598312] ax88179_178a 2-1:1.0 enp7s0u1: ax88179 - Link status is: 1
[   82.723580] ax88179_178a 2-1:1.0 enp7s0u1: kevent 4 may have been dropped
[   82.726487] ax88179_178a 2-1:1.0 enp7s0u1: ax88179 - Link status is: 1
[   82.851796] ax88179_178a 2-1:1.0 enp7s0u1: kevent 4 may have been dropped
[   82.854642] ax88179_178a 2-1:1.0 enp7s0u1: ax88179 - Link status is: 1
Quoted 7 lines
Quoted 1 line

With which kernel?

I saw similar issues testing some patches yesterday. Both with the ax179_178a and smsx95xx cards (connected to xhci). My kernel claims to be 3.13.0-dsl+ but it is lying since it was updated from linus's tree earlier this week.
I'd not seen any similar delays until the last week or so.

I see a report that these types of errors have been seen since the 3.11 kernel:

http://marc.info/?l=linux-usb&m=139105963723745&w=2

Since the USB ethernet scatter-gather support wasn't added until the 3.12 kernel, it's unlikely that the xHCI TD fragment issue is actually the root cause.

The interesting piece of information in that report is that when the USB 3.0 device falls back to USB 2.0 speeds under xHCI, it works.

Quoted 2 lines

The xhci controller I'm using is the Intel 'Panther Point' 8086:1e31 rev 4 (also says 8086:1e2d and 8086:1e26).

That's the host I have as well. I've been able to find an ASIX device with the right chipset, so I'm going to poke around at what's happening at the USB 3.0 bus level.

Sarah Sharp
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#7 lore raw

On 14-01-30 01:44 PM, Sarah Sharp wrote:
..

Quoted 6 lines

Since the USB ethernet scatter-gather support wasn't added until the 3.12 kernel, it's unlikely that the xHCI TD fragment issue is actually the root cause.

The interesting piece of information in that report is that when the USB 3.0 device falls back to USB 2.0 speeds under xHCI, it works.

Could be due to something related to the max URB length:

USB 2.0 High-Speed: max URB length 512.
USB 3.0 Super-Speed: max URB length 1024.

Cheers

Signature · 3 lines
Mark Lord
Real-Time Remedies Inc.
[email protected]
#8 lore raw
In reply to Sarah Sharp
Quoted 45 lines

From: [email protected] [mailto:[email protected]] On Behalf Of Sarah Sharp
Sent: Thursday, January 30, 2014 10:44 AM
To: David Laight
Cc: [email protected]; [email protected]; Mark Lord; Greg Kroah-Hartman; [email protected]
Subject: Re: Help testing for USB ethernet/xHCI regression

Quoted 17 lines · David Laight

From: Sarah Sharp

Quoted 16 lines
Quoted 14 lines

Current issue is when plugging in the ax88179 there is lag when bringing the interface up and a bunch of kernel messages:

[   79.481028] IPv6: ADDRCONF(NETDEV_UP): enp7s0u1: link is not ready
[   82.210721] ax88179_178a 2-1:1.0 enp7s0u1: ax88179 - Link status is: 1
[   82.338947] ax88179_178a 2-1:1.0 enp7s0u1: ax88179 - Link status is: 1
[   82.467148] ax88179_178a 2-1:1.0 enp7s0u1: kevent 4 may have been dropped
[   82.470028] ax88179_178a 2-1:1.0 enp7s0u1: ax88179 - Link status is: 1
[   82.595364] ax88179_178a 2-1:1.0 enp7s0u1: kevent 4 may have been dropped
[   82.598312] ax88179_178a 2-1:1.0 enp7s0u1: ax88179 - Link status is: 1
[   82.723580] ax88179_178a 2-1:1.0 enp7s0u1: kevent 4 may have been dropped
[   82.726487] ax88179_178a 2-1:1.0 enp7s0u1: ax88179 - Link status is: 1
[   82.851796] ax88179_178a 2-1:1.0 enp7s0u1: kevent 4 may have been dropped
[   82.854642] ax88179_178a 2-1:1.0 enp7s0u1: ax88179 - Link status is: 1
Quoted 7 lines
Quoted 1 line

With which kernel?

I saw similar issues testing some patches yesterday. Both with the ax179_178a and smsx95xx cards (connected to xhci). My kernel claims to be 3.13.0-dsl+ but it is lying since it was updated from linus's tree earlier this week.
I'd not seen any similar delays until the last week or so.

I see a report that these types of errors have been seen since the 3.11 kernel:

http://marc.info/?l=linux-usb&m=139105963723745&w=2

Since the USB ethernet scatter-gather support wasn't added until the 3.12 kernel, it's unlikely that the xHCI TD fragment issue is actually the root cause.

The interesting piece of information in that report is that when the USB 3.0 device falls back to USB 2.0 speeds under xHCI, it works.

Quoted 6 lines
Quoted 2 lines

The xhci controller I'm using is the Intel 'Panther Point' 8086:1e31 rev 4 (also says 8086:1e2d and 8086:1e26).

That's the host I have as well. I've been able to find an ASIX device with the right chipset, so I'm going to poke around at what's happening at the USB 3.0 bus level.

Hi Sarah,

Can you give a pointer to where we could buy one of these devices? I would like to test this with our (Synopsys) xHCI controller as well.

Signature · 1 line
Paul
#10 lore raw
In reply to a message not in the archive
Quoted 4 lines · Paul Zimmerman

Can you give a pointer to where we could buy one of these devices? I would like to test this with our (Synopsys) xHCI controller as well.

newegg.com, item N82E16817659005

Signature · 7 lines
Mark Lord
Real-Time Remedies Inc.
[email protected]
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#11 lore raw
Quoted 7 lines · Mark Lord
Quoted 4 lines · Paul Zimmerman

Can you give a pointer to where we could buy one of these devices? I would like to test this with our (Synopsys) xHCI controller as well.

newegg.com, item N82E16817659005

Ah, so it's also the ASIX AX88179 that's causing you issues.

Mark and David, can you pull the 3.13-td-changes-reverted branch again, and see if the latest patch fixes your issue? It disables scatter gather for the ax88179_178a device, but only when it's operating at USB 3.0 speeds.

Please test with it plugged into a USB 3.0 port, and when it's plugged in behind a USB 2.0 hub.

Sarah Sharp

#12 lore raw
Quoted 5 lines · Sarah Sharp

Mark and David, can you pull the 3.13-td-changes-reverted branch again, and see if the latest patch fixes your issue? It disables scatter gather for the ax88179_178a device, but only when it's operating at USB 3.0 speeds.

As expected, this works just fine.

Signature · 3 lines
Mark Lord
Real-Time Remedies Inc.
[email protected]
#14 lore raw
In reply to a message not in the archive
Quoted 8 lines · Mark Lord
Quoted 5 lines · Sarah Sharp

Mark and David, can you pull the 3.13-td-changes-reverted branch again, and see if the latest patch fixes your issue? It disables scatter gather for the ax88179_178a device, but only when it's operating at USB 3.0 speeds.

As expected, this works just fine.

Did it work when plugged into a USB 2.0 hub?

Sarah Sharp
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#15 lore raw
Quoted 11 lines · Sarah Sharp
Quoted 8 lines · Mark Lord
Quoted 5 lines · Sarah Sharp

Mark and David, can you pull the 3.13-td-changes-reverted branch again, and see if the latest patch fixes your issue? It disables scatter gather for the ax88179_178a device, but only when it's operating at USB 3.0 speeds.

As expected, this works just fine.

Did it work when plugged into a USB 2.0 hub?

Curiosity, NO. Dies almost immediately when run at USB 2.0 Hi-Speed. With a USB 2.0 hub, with a USB 2.0 port on a USB 3.0 hub, and with a USB 2.0 extension cable in place of a hub.

Near instant hangs.

Plugged directly to the USB 3.0 port, it works fine.

Signature · 3 lines
Mark Lord
Real-Time Remedies Inc.
[email protected]
#16 lore raw
Quoted 13 lines · Mark Lord
Quoted 11 lines · Sarah Sharp
Quoted 8 lines · Mark Lord
Quoted 5 lines · Sarah Sharp

Mark and David, can you pull the 3.13-td-changes-reverted branch again, and see if the latest patch fixes your issue? It disables scatter gather for the ax88179_178a device, but only when it's operating at USB 3.0 speeds.

As expected, this works just fine.

Did it work when plugged into a USB 2.0 hub?

Quoted 7 lines

Curiosity, NO. Dies almost immediately when run at USB 2.0 Hi-Speed. With a USB 2.0 hub, with a USB 2.0 port on a USB 3.0 hub, and with a USB 2.0 extension cable in place of a hub.

Near instant hangs.

Plugged directly to the USB 3.0 port, it works fine.

Ok, that makes sense. The patch I wrote only limited scatter-gather at USB 3.0 speeds, to see if scatter-gather could work at USB 2.0 speeds. Reverting commit 3804fad45411b48233b48003e33a78f290d227c8 "USBNET:
ax88179_178a: enable tso if usb host supports sg dma" is the right way to go instead.

Sarah Sharp