Bug 43264 - Disable network / Enable network makes system hang up for a while
Summary: Disable network / Enable network makes system hang up for a while
Status: NEEDINFO
Alias: None
Product: Networking
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: P1 blocking
Assignee: Arnaldo Carvalho de Melo
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-18 21:14 UTC by conualfy
Modified: 2016-02-16 21:53 UTC (History)
5 users (show)

See Also:
Kernel Version: 3.14
Subsystem:
Regression: No
Bisected commit-id:


Attachments
The result of running "dmesg >log-3.2.0-23" (85.55 KB, application/octet-stream)
2012-05-21 23:23 UTC, conualfy
Details
How the log looks like after disabling networking. I will also attach the one after enabling it. They both freeze the laptop for 30sec-1-2min. (86.93 KB, application/octet-stream)
2012-05-21 23:33 UTC, conualfy
Details
Step 2, enabling networking. (119.93 KB, application/octet-stream)
2012-05-21 23:34 UTC, conualfy
Details

Description conualfy 2012-05-18 21:14:13 UTC
This is like many others, a very old bug and it is still unsolved, although it is very easy to reproduce it. I am a young linux user (I use Ubuntu), but I could see it in Natty, Oneiric and now I tested it in Precise, both with the standard kernel and the latest RC (3.4 RC6 was the last one tested, a few days ago).

uname -a
Linux florin-Satellite-C650 3.4.0-030400rc5-generic #201205011817 SMP Tue May 1 22:18:19 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

How to reproduce it:
1. Click the Network icon on top bar
2. Go to Disable network and press it
See the system hangs up for half a minute or more. Nothing moves, not even the mouse pointer.

Exactly the same when you Enable Network from that place. I
Comment 1 conualfy 2012-05-18 21:18:47 UTC
Please tell if you need any data to help debugging. This kind of bugs are "scary" for people coming from Windows (I am one of the stubborn ones and keep fighting with them, reporting everything ;) ).

From my point of view it is a lot better to fix everything before releasing a new version than having lots of versions with bugs.
Comment 2 Alan 2012-05-21 14:32:58 UTC
Boot the machine, get it to hang and at a command line then type "dmesg >log" and attach the log here. [You may want to edit the log file first to check there is nothing in it private]

Also the output of lspci -v would be useful, and information on which network devices you are using.
Comment 3 conualfy 2012-05-21 23:23:00 UTC
Created attachment 73346 [details]
The result of running "dmesg >log-3.2.0-23"

I start thinking it might be a problem with the network (maybe also bluetooth) drivers. Running the normal kernel (3.2.0-24; the one I use to test now and write this is the kernel before that one - see here https://bugs.launchpad.net/ubuntu/+source/linux/+bug/945379 that bug report&my actions; there is a similar one on kernel.org bugzilla) I had lots of connection problems with the ath9k driver (the linux forums are crowded by people having problems with ath9k).
A few days ago I changed the ath9k drivers (and 2 days ago I also reinstalled the bluetooth drivers) with the last ones from here http://linuxwireless.org/download/compat-wireless-2.6/compat-wireless-2.6.tar.bz2 and now I tested and I can disable/enable network without freezing the system.

But right now I tested with the 3.2.0-23 and the bug is present, see the attachment and the log below this. The same buggy reaction I get in 3.4.0-030400rc6-generic (and RC5 and many more before this moment).



lspci -v:

00:00.0 Host bridge: Intel Corporation Core Processor DRAM Controller (rev 02)
	Subsystem: Toshiba America Info Systems Device ff1e
	Flags: bus master, fast devsel, latency 0
	Capabilities: <access denied>
	Kernel driver in use: agpgart-intel

00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 02) (prog-if 00 [VGA controller])
	Subsystem: Toshiba America Info Systems Device fde2
	Flags: bus master, fast devsel, latency 0, IRQ 42
	Memory at d0000000 (64-bit, non-prefetchable) [size=4M]
	Memory at c0000000 (64-bit, prefetchable) [size=256M]
	I/O ports at 4050 [size=8]
	Expansion ROM at <unassigned> [disabled]
	Capabilities: <access denied>
	Kernel driver in use: i915
	Kernel modules: i915

00:16.0 Communication controller: Intel Corporation 5 Series/3400 Series Chipset HECI Controller (rev 06)
	Subsystem: Toshiba America Info Systems Device ff1e
	Flags: bus master, fast devsel, latency 0, IRQ 41
	Memory at d6406100 (64-bit, non-prefetchable) [size=16]
	Capabilities: <access denied>
	Kernel driver in use: mei
	Kernel modules: mei

00:1a.0 USB controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 05) (prog-if 20 [EHCI])
	Subsystem: Toshiba America Info Systems Device ff1e
	Flags: bus master, medium devsel, latency 0, IRQ 16
	Memory at d6405c00 (32-bit, non-prefetchable) [size=1K]
	Capabilities: <access denied>
	Kernel driver in use: ehci_hcd

00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio (rev 05)
	Subsystem: Toshiba America Info Systems Device ff1e
	Flags: bus master, fast devsel, latency 0, IRQ 43
	Memory at d6400000 (64-bit, non-prefetchable) [size=16K]
	Capabilities: <access denied>
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd-hda-intel

00:1c.0 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 1 (rev 05) (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 0
	Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
	I/O behind bridge: 00003000-00003fff
	Memory behind bridge: d5400000-d63fffff
	Prefetchable memory behind bridge: 00000000d0400000-00000000d13fffff
	Capabilities: <access denied>
	Kernel driver in use: pcieport
	Kernel modules: shpchp

00:1c.1 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 2 (rev 05) (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 0
	Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
	I/O behind bridge: 00002000-00002fff
	Memory behind bridge: d4400000-d53fffff
	Prefetchable memory behind bridge: 00000000d1400000-00000000d23fffff
	Capabilities: <access denied>
	Kernel driver in use: pcieport
	Kernel modules: shpchp

00:1c.4 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 5 (rev 05) (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 0
	Bus: primary=00, secondary=20, subordinate=22, sec-latency=0
	I/O behind bridge: 00001000-00001fff
	Memory behind bridge: d3400000-d43fffff
	Prefetchable memory behind bridge: 00000000d2400000-00000000d33fffff
	Capabilities: <access denied>
	Kernel driver in use: pcieport
	Kernel modules: shpchp

00:1d.0 USB controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 05) (prog-if 20 [EHCI])
	Subsystem: Toshiba America Info Systems Device ff1e
	Flags: bus master, medium devsel, latency 0, IRQ 23
	Memory at d6405800 (32-bit, non-prefetchable) [size=1K]
	Capabilities: <access denied>
	Kernel driver in use: ehci_hcd

00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev a5) (prog-if 01 [Subtractive decode])
	Flags: bus master, fast devsel, latency 0
	Bus: primary=00, secondary=03, subordinate=03, sec-latency=32
	Capabilities: <access denied>

00:1f.0 ISA bridge: Intel Corporation Mobile 5 Series Chipset LPC Interface Controller (rev 05)
	Subsystem: Toshiba America Info Systems Device ff1e
	Flags: bus master, medium devsel, latency 0
	Capabilities: <access denied>
	Kernel modules: iTCO_wdt

00:1f.2 SATA controller: Intel Corporation 5 Series/3400 Series Chipset 4 port SATA AHCI Controller (rev 05) (prog-if 01 [AHCI 1.0])
	Subsystem: Toshiba America Info Systems Device ff1e
	Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 40
	I/O ports at 4048 [size=8]
	I/O ports at 405c [size=4]
	I/O ports at 4040 [size=8]
	I/O ports at 4058 [size=4]
	I/O ports at 4020 [size=32]
	Memory at d6405000 (32-bit, non-prefetchable) [size=2K]
	Capabilities: <access denied>
	Kernel driver in use: ahci

00:1f.3 SMBus: Intel Corporation 5 Series/3400 Series Chipset SMBus Controller (rev 05)
	Subsystem: Toshiba America Info Systems Device ff1e
	Flags: medium devsel, IRQ 9
	Memory at d6406000 (64-bit, non-prefetchable) [size=256]
	I/O ports at 4000 [size=32]
	Kernel modules: i2c-i801

00:1f.6 Signal processing controller: Intel Corporation 5 Series/3400 Series Chipset Thermal Subsystem (rev 05)
	Subsystem: Toshiba America Info Systems Device ff1e
	Flags: bus master, fast devsel, latency 0, IRQ 21
	Memory at d6404000 (64-bit, non-prefetchable) [size=4K]
	Capabilities: <access denied>
	Kernel driver in use: intel ips
	Kernel modules: intel_ips

01:00.0 Ethernet controller: Atheros Communications Inc. AR8152 v1.1 Fast Ethernet (rev c1)
	Subsystem: Toshiba America Info Systems Device ff1e
	Flags: bus master, fast devsel, latency 0, IRQ 44
	Memory at d5400000 (64-bit, non-prefetchable) [size=256K]
	I/O ports at 3000 [size=128]
	Capabilities: <access denied>
	Kernel driver in use: atl1c
	Kernel modules: atl1c

02:00.0 Network controller: Atheros Communications Inc. AR9285 Wireless Network Adapter (PCI-Express) (rev 01)
	Subsystem: Lite-On Communications Inc Device 6611
	Flags: bus master, fast devsel, latency 0, IRQ 17
	Memory at d4400000 (64-bit, non-prefetchable) [size=64K]
	Capabilities: <access denied>
	Kernel driver in use: ath9k
	Kernel modules: ath9k

3f:00.0 Host bridge: Intel Corporation Core Processor QuickPath Architecture Generic Non-core Registers (rev 02)
	Subsystem: Toshiba America Info Systems Device ff1e
	Flags: bus master, fast devsel, latency 0

3f:00.1 Host bridge: Intel Corporation Core Processor QuickPath Architecture System Address Decoder (rev 02)
	Subsystem: Toshiba America Info Systems Device ff1e
	Flags: bus master, fast devsel, latency 0

3f:02.0 Host bridge: Intel Corporation Core Processor QPI Link 0 (rev 02)
	Subsystem: Toshiba America Info Systems Device ff1e
	Flags: bus master, fast devsel, latency 0

3f:02.1 Host bridge: Intel Corporation Core Processor QPI Physical 0 (rev 02)
	Subsystem: Toshiba America Info Systems Device ff1e
	Flags: bus master, fast devsel, latency 0

3f:02.2 Host bridge: Intel Corporation Core Processor Reserved (rev 02)
	Subsystem: Toshiba America Info Systems Device ff1e
	Flags: bus master, fast devsel, latency 0

3f:02.3 Host bridge: Intel Corporation Core Processor Reserved (rev 02)
	Subsystem: Toshiba America Info Systems Device ff1e
	Flags: bus master, fast devsel, latency 0
Comment 4 conualfy 2012-05-21 23:33:40 UTC
Created attachment 73348 [details]
How the log looks like after disabling networking. I will also attach the one after enabling it. They both freeze the laptop for 30sec-1-2min.
Comment 5 conualfy 2012-05-21 23:34:07 UTC
Created attachment 73349 [details]
Step 2, enabling networking.
Comment 6 conualfy 2012-05-21 23:36:47 UTC
Just as a mention, the first attachment includes all 4 stages: disabling + freeze + enable + freeze and then I separated them (the last 2 attachments) to make it easier to follow (I think).


Don't mind if you see a bluetooth plugged in/out, I use a bluetooth dongle (it is not related as I did not use for a long time and still got this bug).
Comment 7 conualfy 2012-05-22 01:26:50 UTC
I did some more tests and the conclusion is that the test without the bug was a coincidence, not a rule. In the last 5 tests, system froze every time.
Comment 8 conualfy 2012-06-11 17:14:10 UTC
Can I do something to help developers track/work around this bug?
Comment 9 Sujith 2012-06-13 15:44:43 UTC
(In reply to comment #3)
> Created an attachment (id=73346) [details]
> The result of running "dmesg >log-3.2.0-23"
> 
> I start thinking it might be a problem with the network (maybe also
> bluetooth)
> drivers. Running the normal kernel (3.2.0-24; the one I use to test now and
> write this is the kernel before that one - see here
> https://bugs.launchpad.net/ubuntu/+source/linux/+bug/945379 that bug
> report&my
> actions; there is a similar one on kernel.org bugzilla) I had lots of
> connection problems with the ath9k driver (the linux forums are crowded by
> people having problems with ath9k).

Well, let's try to change that. :)

> A few days ago I changed the ath9k drivers (and 2 days ago I also reinstalled
> the bluetooth drivers) with the last ones from here
>
> http://linuxwireless.org/download/compat-wireless-2.6/compat-wireless-2.6.tar.bz2
> and now I tested and I can disable/enable network without freezing the
> system.

As a quick fix, can you try with the latest compat package and check ? And the logs seem to indicate that either ath9k or atl1c is buggy. So can you 'modprobe -r ath9k' before disabling the network and see if you still see the freeze ?

Also, can you post the output of 'sudo lspci -vv' ? The earlier lspci output didn't have the capabilities information.

Thanks.
Comment 10 programmist11180 2014-01-31 07:12:00 UTC
Hello.
I also have this problem. AR9285 freeze my system totally on connect/disconnect/scan. The problem is present on kernels above than 2.6.38.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=697501
Comment 11 programmist11180 2014-05-03 06:56:15 UTC
In a kernel 3.14 there are changes for the driver ath9k. Currently, system work without freezes (only if powersave enabled).

Workaround:
/etc/modprobe.d/ar9285.conf
options ath9k ps_enable=1
etc/rc.local
iw dev wlan0 set power_save on

P.S. AR9285 is installed in notebook Gateway LT3103u.

Note You need to log in before you can comment on or make changes to this bug.