Skip to contentSkip to conversation

iwlagn: crash when unloading the module

DISCUSSION Kalle Valo 4 participants 8 messages May 3, 2011 – May 7, 2011

lore
Share & tools
lore

Kalle Valo

author
#0 lore raw

Hi,

I noticed today a crash when removing iwlagn module. I can see the crash everytime on my lenovo x201 (x86 64bit, i5) with this wireless chip:

[   19.484551] iwlagn 0000:02:00.0: Detected Intel(R) Centrino(R)

Ultimate-N 6300 AGN, REV=0x74

As I'm travelling I only have two bad quality screenshots and 40 MB video of the crash :) From the stacktrace it looks that this is iommu related:

http://www.adurom.com/~kvalo/tmp/iwlagn/rmmod-iommu-crash/1.png
http://www.adurom.com/~kvalo/tmp/iwlagn/rmmod-iommu-crash/2.png

This is a new laptop and most likely I haven't removed iwlagn module before. So this shouldn't be a regression.

Signature · 1 line
Kalle Valo
#1 lore raw
Quoted 13 lines · Kalle Valo

Hi,

I noticed today a crash when removing iwlagn module. I can see the crash everytime on my lenovo x201 (x86 64bit, i5) with this wireless chip:

[   19.484551] iwlagn 0000:02:00.0: Detected Intel(R) Centrino(R)

Ultimate-N 6300 AGN, REV=0x74

As I'm travelling I only have two bad quality screenshots and 40 MB video of the crash :) From the stacktrace it looks that this is iommu related:

Quoted 6 lines

http://www.adurom.com/~kvalo/tmp/iwlagn/rmmod-iommu-crash/1.png
http://www.adurom.com/~kvalo/tmp/iwlagn/rmmod-iommu-crash/2.png

This is a new laptop and most likely I haven't removed iwlagn module before. So this shouldn't be a regression.

it is new to me as well, I never see that happen on my system. Could you share some more information with me? such as laptop model, kernel version, 32 or 64 bits.

Also is there any activity while you unload the iwlagn, is it in connect state or not?

Thanks
Wey

#2 lore raw
Quoted 7 lines · wwguy
Quoted 6 lines

http://www.adurom.com/~kvalo/tmp/iwlagn/rmmod-iommu-crash/1.png
http://www.adurom.com/~kvalo/tmp/iwlagn/rmmod-iommu-crash/2.png

This is a new laptop and most likely I haven't removed iwlagn module before. So this shouldn't be a regression.

Quoted 6 lines

it is new to me as well, I never see that happen on my system. Could you share some more information with me? such as laptop model, kernel version, 32 or 64 bits.

Also is there any activity while you unload the iwlagn, is it in connect state or not?

Dave looked at this and it turned out to most likely be a bug in the intel-iommu code. A tentative patch to fix it from him is here:
http://david.woodhou.se/double-unmap-check.patch

johannes

#3 lore raw
Quoted 13 lines · Johannes Berg
Quoted 11 lines · wwguy
Quoted 6 lines

http://www.adurom.com/~kvalo/tmp/iwlagn/rmmod-iommu-crash/1.png
http://www.adurom.com/~kvalo/tmp/iwlagn/rmmod-iommu-crash/2.png

This is a new laptop and most likely I haven't removed iwlagn module before. So this shouldn't be a regression.

it is new to me as well, I never see that happen on my system. Could you share some more information with me? such as laptop model, kernel version, 32 or 64 bits.

Quoted 6 lines
Quoted 2 lines

Also is there any activity while you unload the iwlagn, is it in connect state or not?

Dave looked at this and it turned out to most likely be a bug in the intel-iommu code. A tentative patch to fix it from him is here:
http://david.woodhou.se/double-unmap-check.patch

Err, no, http://david.woodhou.se/flush-unmaps-on-unbind.patch

johannes

author
#5 lore raw
In reply to wwguy
Quoted 5 lines · wwguy
Quoted 3 lines · Kalle Valo

I noticed today a crash when removing iwlagn module. I can see the crash everytime on my lenovo x201 (x86 64bit, i5) with this wireless chip:

[...]

Quoted 3 lines

it is new to me as well, I never see that happen on my system. Could you share some more information with me? such as laptop model, kernel version, 32 or 64 bits.

This was in my original mail, see above :)

Quoted 2 lines

Also is there any activity while you unload the iwlagn, is it in connect state or not?

wlan0 interface was down.

Signature · 1 line
Kalle Valo
#6 lore raw
In reply to Kalle Valo
Quoted 11 lines · Kalle Valo

I noticed today a crash when removing iwlagn module. I can see the crash everytime on my lenovo x201 (x86 64bit, i5) with this wireless chip:

[   19.484551] iwlagn 0000:02:00.0: Detected Intel(R) Centrino(R)

Ultimate-N 6300 AGN, REV=0x74

As I'm travelling I only have two bad quality screenshots and 40 MB video of the crash :) From the stacktrace it looks that this is iommu related:

Quoted 5 lines

http://www.adurom.com/~kvalo/tmp/iwlagn/rmmod-iommu-crash/1.png
http://www.adurom.com/~kvalo/tmp/iwlagn/rmmod-iommu-crash/2.png

This is a new laptop and most likely I haven't removed iwlagn module before. So this shouldn't be a regression.

We can not exclude iwlagn problem only triggered with intel iommu, because problem does not happen with other modules, or does it? Except test patch pointed by Johannes, I suggest turning on CONFIG_DMA_API_DEBUG and test with intel_iommu=on and intel_iommu=off.

Stanislaw

author
#7 lore raw
Quoted 7 lines · Stanislaw Gruszka
Quoted 6 lines · Kalle Valo

I noticed today a crash when removing iwlagn module. I can see the crash everytime on my lenovo x201 (x86 64bit, i5) with this wireless chip:

[   19.484551] iwlagn 0000:02:00.0: Detected Intel(R) Centrino(R)

Ultimate-N 6300 AGN, REV=0x74

[...]

Quoted 2 lines

We can not exclude iwlagn problem only triggered with intel iommu, because problem does not happen with other modules, or does it?

I have only seen the crash with iwlagn. But I have to admit that I haven't tried to unload modules that much.

Quoted 2 lines

Except test patch pointed by Johannes, I suggest turning on CONFIG_DMA_API_DEBUG

I already had this on and I haven't noticed anything wrong.

Quoted 1 line

and test with intel_iommu=on and intel_iommu=off.

I'll skip these as David's patch seem to already help.

Signature · 1 line
Kalle Valo