[BUG] 8139cp broken under KVM with 3.9

From: Stephen Hemminger <hidden>
Date: 2013-05-09 16:47:55

Swapped development environment from 3.6 to 3.9.1 kernel and the emulated 8139 NIC
in KVM gets transmit timeout as soon as brought up.

I suspect BQL and other changes in driver.

[   18.467323] 8139cp 0000:00:03.0 eth0: link up, 100Mbps, full-duplex, lpa 0x05E1
[   25.000072] ------------[ cut here ]------------
[   25.000143] WARNING: at net/sched/sch_generic.c:255 dev_watchdog+0x243/0x250()
[   25.000146] Hardware name: Bochs
[   25.000149] NETDEV WATCHDOG: eth0 (8139cp): transmit queue 0 timed out
[   25.000150] Modules linked in: 9p 9pnet fscache ipv6 tun mperf cpufreq_userspace cpufreq_stats virtio_uio(O) cpufreq_powersave cpufreq_ondemand freq_table cpufreq_conservative cirrus ttm hid_generic drm_kms_helper drm virtio_balloon serio_raw pcspkr microcode i2c_piix4 i2c_core sysimgblt sysfillrect psmouse syscopyarea evdev intel_agp intel_gtt agpgart processor thermal_sys button vfat fat usb_storage ohci_hcd squashfs loop overlayfs raid10 raid456 async_pq async_xor xor async_memcpy async_raid6_recov raid6_pq async_tx raid1 raid0 multipath linear md_mod igb_uio(O) pata_acpi uio usbhid hid ata_generic virtio_blk floppy e1000 8139cp virtio_pci virtio_ring virtio 8139too mii ata_piix
[   25.000216] Pid: 0, comm: swapper/2 Tainted: G           O 3.9.1-1-amd64-vyatta #1
[   25.000218] Call Trace:
[   25.000220]  <IRQ>  [<ffffffff8105574b>] ? warn_slowpath_common+0x7b/0xc0
[   25.000250]  [<ffffffff81055845>] ? warn_slowpath_fmt+0x45/0x50
[   25.000267]  [<ffffffff814e1275>] ? _raw_spin_lock+0x5/0x10
[   25.000272]  [<ffffffff8143ef73>] ? dev_watchdog+0x243/0x250
[   25.000279]  [<ffffffff81041e2f>] ? kvm_clock_read+0x1f/0x30
[   25.000284]  [<ffffffff8143ed30>] ? __netdev_watchdog_up+0x70/0x70
[   25.000287]  [<ffffffff8143ed30>] ? __netdev_watchdog_up+0x70/0x70
[   25.000295]  [<ffffffff81065723>] ? call_timer_fn+0x43/0x130
[   25.000299]  [<ffffffff81065bd7>] ? run_timer_softirq+0x237/0x280
[   25.000309]  [<ffffffff8107c680>] ? enqueue_hrtimer+0x20/0x80
[   25.000314]  [<ffffffff8105d9f1>] ? __do_softirq+0xe1/0x270
[   25.000318]  [<ffffffff8105dc85>] ? irq_exit+0xb5/0xc0
[   25.000328]  [<ffffffff81039f38>] ? smp_apic_timer_interrupt+0x68/0xa0
[   25.000338]  [<ffffffff814e2c5d>] ? apic_timer_interrupt+0x6d/0x80
[   25.000340]  <EOI>  [<ffffffff81042152>] ? native_safe_halt+0x2/0x10
[   25.000357]  [<ffffffff8101e1ef>] ? default_idle+0x3f/0xf0
[   25.000361]  [<ffffffff8101db48>] ? cpu_idle+0x88/0xd0
[   25.000365]  [<ffffffff814d660a>] ? start_secondary+0x211/0x216
[   25.000368] ---[ end trace b01ffb3f162295a6 ]---
[   25.000502] 8139cp 0000:00:03.0 eth0: Transmit timeout, status  d   3b    4 80ff
[   37.000160] 8139cp 0000:00:03.0 eth0: Transmit timeout, status  d   3b    5 80ff
[   49.000179] 8139cp 0000:00:03.0 eth0: Transmit timeout, status  d   3b    5 80ff
[   61.000161] 8139cp 0000:00:03.0 eth0: Transmit timeout, status  d   3b    5 80ff
[   73.000172] 8139cp 0000:00:03.0 eth0: Transmit timeout, status  d   3b    5 80ff
[   85.000209] 8139cp 0000:00:03.0 eth0: Transmit timeout, status  d   3b    5 80ff
[   97.000264] 8139cp 0000:00:03.0 eth0: Transmit timeout, status  d   3b    5 80ff
[  109.000141] 8139cp 0000:00:03.0 eth0: Transmit timeout, status  d   3b    5 80ff
[  121.000146] 8139cp 0000:00:03.0 eth0: Transmit timeout, status  d   3b    5 80ff
[  133.000124] 8139cp 0000:00:03.0 eth0: Transmit timeout, status  d   3b    5 80ff
[  145.000150] 8139cp 0000:00:03.0 eth0: Transmit timeout, status  d   3b    5 80ff
[  157.000193] 8139cp 0000:00:03.0 eth0: Transmit timeout, status  d   3b    5 80ff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help