Very slow Qualcomm Atheros AR8121/AR8113/AR8114 Gigabit or Fast Ethernet (rev b0)
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | linux (Ubuntu) |
Medium
|
Unassigned | ||
Bug Description
After upgrading form Ubuntu 14.04 to Ubuntu 15.04, my gigabit ethernet controller is performing very very poorly. I get < 10mb throughput.
------
lspic:
02:00.0 controller: Qualcomm Atheros AR8121/
lshw:
*-pci:4
bus info: pci@0000:00:1c.5
width: 32 bits
clock: 33MHz
bus info: pci@0000:02:00.0
---
ApportVersion: 2.17.2-0ubuntu1
Architecture: amd64
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/
/dev/snd/
DistroRelease: Ubuntu 15.04
EcryptfsInUse: Yes
HibernationDevice: RESUME=
InstallationDate: Installed on 2015-04-29 (10 days ago)
InstallationMedia: Ubuntu-MATE 15.04 "Vivid Vervet" - Release amd64 (20150422.1)
JournalErrors: Error: command ['journalctl', '-b', '--priority', 'warning'] failed with exit code 1: No journal files were found.
MachineType: System manufacturer P5QL-E
NonfreeKernelMo
Package: linux (not installed)
ProcFB: 0 VESA VGA
ProcKernelCmdLine: BOOT_IMAGE=
ProcVersionSign
RelatedPackageV
linux-
linux-
linux-firmware 1.143
RfKill:
Tags: vivid
UdevLog: Error: [Errno 2] No such file or directory: '/var/log/udev'
Uname: Linux 3.19.0-16-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:
WifiSyslog:
_MarkForUpload: True
dmi.bios.date: 09/11/2009
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 1104
dmi.board.
dmi.board.name: P5QL-E
dmi.board.vendor: ASUSTeK Computer INC.
dmi.board.version: Rev 2.xx
dmi.chassis.
dmi.chassis.type: 3
dmi.chassis.vendor: Chassis Manufacture
dmi.chassis.
dmi.modalias: dmi:bvnAmerican
dmi.product.name: P5QL-E
dmi.product.
dmi.sys.vendor: System manufacturer
| description: | updated |
| Changed in linux (Ubuntu): | |
| status: | New → Incomplete |
| Cyking (cy-alexander-king) wrote : AlsaInfo.txt | #2 |
apport information
| tags: | added: apport-collected vivid |
| description: | updated |
| Cyking (cy-alexander-king) wrote : CRDA.txt | #3 |
apport information
apport information
| Cyking (cy-alexander-king) wrote : IwConfig.txt | #5 |
apport information
| Cyking (cy-alexander-king) wrote : Lspci.txt | #6 |
apport information
| Cyking (cy-alexander-king) wrote : Lsusb.txt | #7 |
apport information
apport information
apport information
apport information
apport information
apport information
| Cyking (cy-alexander-king) wrote : UdevDb.txt | #13 |
apport information
| Changed in linux (Ubuntu): | |
| status: | Incomplete → Confirmed |
Cyking, thank you for reporting this and helping make Ubuntu better.
Could you please test the latest upstream kernel available from the very top line at the top of the page (the release names are irrelevant for testing, and please do not test the daily folder) following https:/
If the test did not allow you to test to the issue (ex. you couldn't boot into the OS) please make a comment in your report about this, and continue to test the next most recent kernel version until you can test to the issue. Once you've tested the upstream kernel, please comment on which kernel version specifically you tested. If this bug is fixed in the mainline kernel, please add the following tags by clicking on the yellow circle with a black pencil icon, next to the word Tags, located at the bottom of the report description:
kernel-
kernel-
Where XY and Z are numbers corresponding to the kernel version.
If the mainline kernel does not fix this bug, please add the following tags:
kernel-
kernel-
Once testing of the upstream kernel is complete, please mark this bug's Status as Confirmed. Please let us know your results.
Thank you for your understanding.
| tags: |
added: latest-bios-1104 removed: ar8113 ar8114 ar8121 atheros gigabit ualcomm |
| Changed in linux (Ubuntu): | |
| importance: | Undecided → Medium |
| status: | Confirmed → Incomplete |
| Cyking (cy-alexander-king) wrote : | #15 |
transfer speed is the same on "latest" RC kernel.
---- log ---
test@test-
linux-headers-
linux-headers-
linux-image-
test@test-
[sudo] password for test:
Selecting previously unselected package linux-headers-
(Reading database ... 332259 files and directories currently installed.)
Preparing to unpack linux-headers-
Unpacking linux-headers-
Selecting previously unselected package linux-headers-
Preparing to unpack linux-headers-
Unpacking linux-headers-
Selecting previously unselected package linux-image-
Preparing to unpack linux-image-
Examining /etc/kernel/
run-parts: executing /etc/kernel/
Done.
Unpacking linux-image-
Setting up linux-headers-
Setting up linux-headers-
Examining /etc/kernel/
run-parts: executing /etc/kernel/
Error! Bad return status for module build on kernel: 4.1.0-040100rc2
Consult /var/lib/
Error! Bad return status for module build on kernel: 4.1.0-040100rc2
Consult /var/lib/
Error! Bad return status for module build on kernel: 4.1.0-040100rc2
Consult /var/lib/
Setting up linux-image-
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
Error! Bad return status for module build on kernel: 4.1.0-040100rc2
Consult /var/lib/
Error! Bad return status for module build on kernel: 4.1.0-040100rc2
Consult /var/lib/
Error! Bad return status for module build on kernel: 4.1.0-040100rc2
Consult /var/lib/
run-parts: executing /etc/kernel/
| tags: | added: kernel-bug-exists-upstream kernel-bug-exists-upstream-4.1-rc2 |
| Changed in linux (Ubuntu): | |
| status: | Incomplete → Confirmed |
| Cyking (cy-alexander-king) wrote : | #16 |
and yes, I did reboot ;-)
Cyking, the next step is to fully commit bisect from kernel 3.13 to 3.19 in order to identify the last good kernel commit, followed immediately by the first bad one. This will allow for a more expedited analysis of the root cause of your issue. Could you please do this following https:/
Please note, finding adjacent kernel versions is not fully commit bisecting.
Thank you for your understanding.
Helpful bug reporting tips:
https:/
| tags: | added: needs-bisect regression-release |
| Changed in linux (Ubuntu): | |
| status: | Confirmed → Incomplete |
| Cyking (cy-alexander-king) wrote : | #18 |
The instructions are not so easy to follow on how to fully bisect the kernel. Can someone walk me through the process.
This is as far as I got.... what next?
| Cyking (cy-alexander-king) wrote : | #19 |
$ git clone git://kernel.
Cloning into 'ubuntu-vivid'...
remote: Counting objects: 4488170, done.
remote: Compressing objects: 100% (703007/703007), done.
remote: Total 4488170 (delta 3769422), reused 4465814 (delta 3751407)
Receiving objects: 100% (4488170/4488170), 836.77 MiB | 732.00 KiB/s, done.
Resolving deltas: 100% (3769422/3769422), done.
Checking connectivity... done.
Checking out files: 100% (48949/48949), done.
$ cd ubuntu-vivid
$ git checkout -b mybisect origin/master
Branch mybisect set up to track remote branch master from origin.
Switched to a new branch 'mybisect'
$ git log --oneline Ubuntu-
9baa3c3 PCI: Remove DEFINE_
1911826 atl1e: use pci_zalloc_
a9690a8 atl1e: remove unnecessary break after return
537fae0 net: use SPEED_UNKNOWN and DUPLEX_UNKNOWN when appropriate
7ad24ea net: get rid of SET_ETHTOOL_OPS
d8e4435 atl1e: remove open-coded skb_cow_head.
3e3d354 ATHEROS-ATL1E: Convert iounmap to pci_iounmap
a81ab36 drivers/net: delete non-required instances of include <linux/init.h>
fb3a42f atl1e: update statistics code
$ git bisect start Ubuntu-3.13.0-0.10 Ubuntu-3.19.0-9.9
Bisecting: a merge base must be tested
[413541dd66d51f
$ sudo apt-get build-dep linux-image-$(uname -r)
Reading package lists... Done
Building dependency tree
Reading state information... Done
Picking 'linux' as source package instead of 'linux-
The following NEW packages will be installed:
asciidoc bison debhelper dh-apparmor dh-systemd docbook-dsssl docbook-utils flex intltool-debian jadetex kernel-wedge libaudit-dev
libbison-dev libdw-dev libdw1 libelf-dev libexpat1-dev libfl-dev libiberty-dev libnewt-dev libosp5 libostyle1c2 libpci-dev libpng12-dev
libpython-dev libpython2.7-dev libsgmls-perl libslang2-dev libsp1c2 libudev-dev libunwind-dev libunwind8-dev makedumpfile openjade
po-debconf python-dev python2.7-dev sgmlspl sp texlive-
0 upgraded, 43 newly installed, 0 to remove and 0 not upgraded.
Need to get 35.3 MB of archives.
After this operation, 87.7 MB of additional disk space will be used.
| Cyking (cy-alexander-king) wrote : | #20 |
https:/
says to change the debian.
and
https:/
says to:
chmod a+x debian/scripts/*
chmod a+x debian/
fakeroot debian/rules clean
fakeroot debian/rules editconfigs
however debian.master and debian folders do not exist.
$ pwd
/home/test/
$ ls
arch COPYING crypto drivers fs init Kbuild kernel MAINTAINERS mm README samples security tools virt
block CREDITS Documentation firmware include ipc Kconfig lib Makefile net REPORTING-BUGS scripts sound usr
| Cyking (cy-alexander-king) wrote : | #21 |
Am I doing this correct? I skipped until I found debian.
$ git bisect skip
| Cyking (cy-alexander-king) wrote : | #22 |
Hi, without any assistance this is the best I could come up with for a bisect log.
I've tried asking for help on #ubuntu and #ubuntu-kernel with no success.
The driver in linux kernel Ubuntu-3.13 works and Ubuntu-3.19 does not.
Please advise on what I can do next to help.
| Changed in linux (Ubuntu): | |
| status: | Incomplete → Confirmed |
| Joseph Salisbury (jsalisbury) wrote : | #23 |
I'd like to perform a bisect to figure out what commit caused this regression. We need to identify the earliest kernel where the issue started happening as well as the latest kernel that did not have this issue.
Can you test the following kernels and post back? We are looking for the first kernel version that exhibits this bug:
v3.14 final: http://
v3.16 final: http://
v3.19 final: http://
You don't have to test every kernel, just up until the kernel that first has this bug.
Thanks in advance!
| tags: |
added: performing-bisect removed: needs-bisect |
| Cyking (cy-alexander-king) wrote : | #24 |
Thank you so much, Joseph, for agreeing to help.
These all seem bad. Please find the results:
Linux Main-PC 3.14.0-
result = 7.8MB/sec thoughput
Linux Main-PC 3.16.0-
result = 7.8MB/sec thoughput
Linux Main-PC 3.19.0-
result = 600kB/sec thoughput
I took the liberty of trying v3.13.11=trusty with better results.
http://
Linux Main-PC 3.13.11-
result = 32MB/sec thoughput
however with v3.13.11 I had to manually disable and enable the network for it to ping out - so I believe this version isnt 100% either.
What next?
| Joseph Salisbury (jsalisbury) wrote : | #25 |
We should next test some of the 3.14 release candidates to see which one introduced the bug. Can you test the following:
3.14-rc1: http://
3.14-rc4: http://
3.14-rc7: http://
| Cyking (cy-alexander-king) wrote : | #26 |
No such luck. Here are the results:
Linux Main-PC 3.14.0-
4.0MB/sec throughput
Linux Main-PC 3.14.0-
8MB/sec throughput
Linux Main-PC 3.14.0-
8MB/sec throughput
I tested the 3.13.11 kernel again and still works.
Linux Main-PC 3.13.11-
32MB/sec throughput
| Joseph Salisbury (jsalisbury) wrote : | #27 |
Thanks for testing. We should be able to bisect between the v3.13 final kernel and v3.14-rc1. Can you test the 3.13 final kernel, just to confirm it does not exhibit the bug? It can be downloaded from:
| Cyking (cy-alexander-king) wrote : | #28 |
Here are the results (this matches what I would expect from my current hardware configuration i'm testing):
Linux Main-PC 3.13.0-
upload: 32MB/sec throughput
download: 40MB/sec throughput
| Cyking (cy-alexander-king) wrote : | #29 |
results on the latest kernel update - which seems to of botched my video :-(
Linux Main-PC 3.19.0-18-generic #18-Ubuntu SMP Tue May 19 18:31:35 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
upload: 660kB/sec throughput
| Joseph Salisbury (jsalisbury) wrote : | #30 |
I started a bisect between 3.13 final an d3.14-rc1. The first kernel is up to commit:
365c483f190fea0
The kernel can be downloaded from:
http://
Can you test this kernel and see if it exhibits the bug. I'll build the next kernel based on your test results.
Thanks in advance!
| Cyking (cy-alexander-king) wrote : | #31 |
(botched video resolved - linux-headers-
| Cyking (cy-alexander-king) wrote : | #32 |
works fine, here are the results:
Linux Main-PC 3.13.0-
download: 43MB/sec
upload: 48MB/sec
| Joseph Salisbury (jsalisbury) wrote : | #33 |
I haven't been able to get the bisect to continue yet. But looking at the code and changes, the regression could be due to:
085d7a4 clk: qcom: Add a regmap type clock struct
It was added in v3.14-rc1. I'll investigate further.
| Joseph Salisbury (jsalisbury) wrote : | #34 |
I built a Vivid test kernel with the CONFIG_
The kernel can be downloaded from:
http://
Can you test this kernel and see if it exhibits the bug?
Note, with this kernel you need to install both the linux-image and linux-image-extra .deb packages.
| Cyking (cy-alexander-king) wrote : | #35 |
Hi! sorry for the delay, I ended up putting an Intel NIC in so I could get the machine back to production and then work got me busy. I should be able to test the kernel out later this week. Thanks for your hard work and patience.
| Changed in linux (Ubuntu): | |
| status: | Confirmed → Incomplete |
| Launchpad Janitor (janitor) wrote : | #36 |
[Expired for linux (Ubuntu) because there has been no activity for 60 days.]
| Changed in linux (Ubuntu): | |
| status: | Incomplete → Expired |
| Ilari (ilarinews) wrote : | #37 |
I have same issue. Ubuntu 16.04 64bit.
Atheros AR8121/
Controller is integrated PCI-e on morherboard P5QL Pro.
Throughput is about 2Mbps.
I have tested also with 100Mbps USB network adapter, 3Com 100Mbps, different cable, all other work fine, throughput ~10Mbps.
Tested kernels:
3.16.0-25-generic
4.4.0-45-generic
*-network
bus info: pci@0000:02:00.0
| Changed in linux (Ubuntu): | |
| status: | Expired → Confirmed |
Ilari (ilarinews), it will help immensely if you filed a new report with the Ubuntu repository kernel (not mainline/upstream) via a terminal:
ubuntu-bug linux
Please feel free to subscribe me to it.
For more on why this is helpful, please see https:/
| Changed in linux (Ubuntu): | |
| status: | Confirmed → Incomplete |
| Launchpad Janitor (janitor) wrote : | #39 |
[Expired for linux (Ubuntu) because there has been no activity for 60 days.]
| Changed in linux (Ubuntu): | |
| status: | Incomplete → Expired |


This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:
apport-collect 1453391
and then change the status of the bug to 'Confirmed'.
If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.
This change has been made by an automated script, maintained by the Ubuntu Kernel Team.