Skip to contentSkip to conversation

ath9k resume problem on Acer Ferrari One

Regression, 2.6.36-rc1 Rafael J. Wysocki 4 participants 20 messages Aug 18, 2010 – Aug 19, 2010

lore
Share & tools
lore
#0 lore raw

Hi,

While testing 2.6.36-rc1 (with a couple of fixes on top) I noticed that the ath9k driver didn't work after resume from suspend to RAM. An attempt to unload the driver using rmmod caused the BUG_ON() in kernel/workqueue.c:2844 to trigger.

I wonder if that regression is a result of the recent workqueue changes?

Thanks,
Rafael

#1 lore raw
Quoted 3 lines · Rafael J. Wysocki

Hi,

While testing 2.6.36-rc1 (with a couple of fixes on top)

Which couple of fixes?

Quoted 2 lines

I noticed that the ath9k
driver didn't work after resume from suspend to RAM.

To rule out if its an ath9k issue you can try
compat-wireless-2.6.36-rc1 from here:

http://wireless.kernel.org/en/users/Download/stable/

and install it on an older kernel, you can use ./scripts/driver-select to only enable ath9k to compile.

I've been using pm-suspend on this release for a few days now without any issue but I am using an AR9003 chipset. What chipset are you using? Can you provide the dmesg output upon module load?

Quoted 2 lines

?An attempt to unload the
driver using rmmod caused the BUG_ON() in kernel/workqueue.c:2844 to trigger.

That's a bug, a regression likely.

Quoted 1 line

I wonder if that regression is a result of the recent workqueue changes?

Yeah very likely.

Luis

#2 lore raw
Quoted 6 lines · Luis R. Rodriguez
Quoted 3 lines · Rafael J. Wysocki

Hi,

While testing 2.6.36-rc1 (with a couple of fixes on top)

Which couple of fixes?

AMD bood fix, HID suspend fix and shmem fix (two of them have already been merged).

Quoted 10 lines
Quoted 2 lines

I noticed that the ath9k
driver didn't work after resume from suspend to RAM.

To rule out if its an ath9k issue you can try
compat-wireless-2.6.36-rc1 from here:

http://wireless.kernel.org/en/users/Download/stable/

and install it on an older kernel, you can use ./scripts/driver-select to only enable ath9k to compile.

Well, that sounds a bit complicated and even if I know it's not ath9k, that's not going to help me find the real source of the problem.

Quoted 3 lines

I've been using pm-suspend on this release for a few days now without any issue but I am using an AR9003 chipset. What chipset are you using? Can you provide the dmesg output upon module load?

Sure.

[    9.680128] ath9k 0000:09:00.0: PCI INT A -> GSI 19 (level, low) -> IRQ 19
[    9.689487] ath9k 0000:09:00.0: setting latency timer to 64
[    9.706383] HDA Intel 0000:00:14.2: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[    9.805043] hda_codec: ALC272X: BIOS auto-probing.
[    9.819389] input: HDA Digital PCBeep as /devices/pci0000:00/0000:00:14.2/input/input8
[   10.155052] ath: EEPROM regdomain: 0x65
[   10.155058] ath: EEPROM indicates we should expect a direct regpair map
[   10.155066] ath: Country alpha2 being used: 00
[   10.155070] ath: Regpair used: 0x65
[   10.179762] phy0: Selected rate control algorithm 'ath9k_rate_control'
[   10.181657] Registered led device: ath9k-phy0::radio
[   10.181890] Registered led device: ath9k-phy0::assoc
[   10.182139] Registered led device: ath9k-phy0::tx
[   10.182339] Registered led device: ath9k-phy0::rx

lspci says it's:

09:00.0 Network controller: Atheros Communications Inc. AR928X Wireless Network Adapter (PCI-Express) (rev 01)

Thanks,
Rafael

#3 lore raw
In reply to Rafael J. Wysocki
Quoted 3 lines · Rafael J. Wysocki

Hi,

While testing 2.6.36-rc1 (with a couple of fixes on top)

Which couple of fixes?

Quoted 2 lines

I noticed that the ath9k
driver didn't work after resume from suspend to RAM.

To rule out if its an ath9k issue you can try
compat-wireless-2.6.36-rc1 from here:

http://wireless.kernel.org/en/users/Download/stable/

and install it on an older kernel, you can use ./scripts/driver-select to only enable ath9k to compile.

I've been using pm-suspend on this release for a few days now without any issue but I am using an AR9003 chipset. What chipset are you using? Can you provide the dmesg output upon module load?

Quoted 2 lines

 An attempt to unload the
driver using rmmod caused the BUG_ON() in kernel/workqueue.c:2844 to trigger.

That's a bug, a regression likely.

Quoted 1 line

I wonder if that regression is a result of the recent workqueue changes?

Yeah very likely.

Luis
_______________________________________________
linux-pm mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/linux-pm

#4 lore raw
In reply to Rafael J. Wysocki

Hello, Rafael.

Quoted 4 lines · Rafael J. Wysocki

While testing 2.6.36-rc1 (with a couple of fixes on top) I noticed that the ath9k driver didn't work after resume from suspend to RAM. An attempt to unload the driver using rmmod caused the BUG_ON() in kernel/workqueue.c:2844 to trigger.

That BUG_ON() triggers if destroy_workqueue() is called while work items are still pending on the workqueue. Can you please trigger stack traces after resume and post it?

Thanks.

Signature · 1 line
tejun
#5 lore raw
Quoted 11 lines · Tejun Heo

Hello, Rafael.

Quoted 4 lines · Rafael J. Wysocki

While testing 2.6.36-rc1 (with a couple of fixes on top) I noticed that the ath9k driver didn't work after resume from suspend to RAM. An attempt to unload the driver using rmmod caused the BUG_ON() in kernel/workqueue.c:2844 to trigger.

That BUG_ON() triggers if destroy_workqueue() is called while work items are still pending on the workqueue. Can you please trigger stack traces after resume and post it?

Do you mean sysrq-t?

Rafael

#6 lore raw

Hello,

Quoted 9 lines · Rafael J. Wysocki
Quoted 8 lines · Tejun Heo

Hello, Rafael.

Quoted 4 lines · Rafael J. Wysocki

While testing 2.6.36-rc1 (with a couple of fixes on top) I noticed that the ath9k driver didn't work after resume from suspend to RAM. An attempt to unload the driver using rmmod caused the BUG_ON() in kernel/workqueue.c:2844 to trigger.

Quoted 5 lines
Quoted 3 lines

That BUG_ON() triggers if destroy_workqueue() is called while work items are still pending on the workqueue. Can you please trigger stack traces after resume and post it?

Do you mean sysrq-t?

Yeah, I'm a bit confused regarding what's going on. I thought the most likely cause is thawing failing to kick a frozen workqueue into working state but then flush_workqueue() which is called from destroy_workqueue() should have hung too, that is, unless flush_workqueue() is broken too. If flush_workqueue() is not broken, then it could be that workqueue itself isn't at fault and works are being scheduled and executed fine for the workqueue ath9k is using but the driver doesn't work for another reason.

Also, the BUG_ON() being triggered means either flush_workqueue() is broken or the driver is failing to stop works on the workqueue from being requeued before calling destroy_workqueue(). So, finding out the followings would be great,

* While the driver isn't working, do a sysrq-t and see whether any worker is executing a work for ath9k.

* Repeat it several times and see whether the work is stuck or making progress and/or executing on different workers.

Thanks.

Signature · 1 line
tejun
#7 lore raw

Oh, can you also please attach log of the BUG()?

Thanks.

Signature · 1 line
tejun
#8 lore raw
Quoted 1 line · Tejun Heo

Oh, can you also please attach log of the BUG()?

That's difficult, because I have no way to collect it after it's happened.

I can try to convert it to WARN_ON or rewrite the call trace by hand.

Or I may try to make a photo. :-)

Thanks,
Rafael

#9 lore raw
In reply to Tejun Heo
Quoted 1 line · Tejun Heo

Oh, can you also please attach log of the BUG()?

That's difficult, because I have no way to collect it after it's happened.

I can try to convert it to WARN_ON or rewrite the call trace by hand.

Or I may try to make a photo. :-)

Thanks,
Rafael

#11 lore raw
In reply to Tejun Heo
Quoted 32 lines · Tejun Heo

Hello,

Quoted 9 lines · Rafael J. Wysocki
Quoted 8 lines · Tejun Heo

Hello, Rafael.

Quoted 4 lines · Rafael J. Wysocki

While testing 2.6.36-rc1 (with a couple of fixes on top) I noticed that the ath9k driver didn't work after resume from suspend to RAM. An attempt to unload the driver using rmmod caused the BUG_ON() in kernel/workqueue.c:2844 to trigger.

Quoted 5 lines
Quoted 3 lines

That BUG_ON() triggers if destroy_workqueue() is called while work items are still pending on the workqueue. Can you please trigger stack traces after resume and post it?

Do you mean sysrq-t?

Yeah, I'm a bit confused regarding what's going on. I thought the most likely cause is thawing failing to kick a frozen workqueue into working state but then flush_workqueue() which is called from destroy_workqueue() should have hung too, that is, unless flush_workqueue() is broken too. If flush_workqueue() is not broken, then it could be that workqueue itself isn't at fault and works are being scheduled and executed fine for the workqueue ath9k is using but the driver doesn't work for another reason.

Also, the BUG_ON() being triggered means either flush_workqueue() is broken or the driver is failing to stop works on the workqueue from being requeued before calling destroy_workqueue(). So, finding out the followings would be great,

Quoted 5 lines

* While the driver isn't working, do a sysrq-t and see whether any worker is executing a work for ath9k.

* Repeat it several times and see whether the work is stuck or making progress and/or executing on different workers.

Actaully, I'm unable to reproduce the resume issue with current mainline (HEAD = 763008c4357b73c8d18396dfd8d79dc58fa3f99d), so I guess it either is a race (or another timing issue), or it's been fixed by one of the patches on top of -rc1.

I'll let you know if I see it again.

Thanks,
Rafael

#12 lore raw
Quoted 39 lines · Rafael J. Wysocki
Quoted 32 lines · Tejun Heo

Hello,

Quoted 9 lines · Rafael J. Wysocki
Quoted 8 lines · Tejun Heo

Hello, Rafael.

Quoted 4 lines · Rafael J. Wysocki

While testing 2.6.36-rc1 (with a couple of fixes on top) I noticed that the ath9k driver didn't work after resume from suspend to RAM. An attempt to unload the driver using rmmod caused the BUG_ON() in kernel/workqueue.c:2844 to trigger.

Quoted 5 lines
Quoted 3 lines

That BUG_ON() triggers if destroy_workqueue() is called while work items are still pending on the workqueue. Can you please trigger stack traces after resume and post it?

Do you mean sysrq-t?

Yeah, I'm a bit confused regarding what's going on. I thought the most likely cause is thawing failing to kick a frozen workqueue into working state but then flush_workqueue() which is called from destroy_workqueue() should have hung too, that is, unless flush_workqueue() is broken too. If flush_workqueue() is not broken, then it could be that workqueue itself isn't at fault and works are being scheduled and executed fine for the workqueue ath9k is using but the driver doesn't work for another reason.

Also, the BUG_ON() being triggered means either flush_workqueue() is broken or the driver is failing to stop works on the workqueue from being requeued before calling destroy_workqueue(). So, finding out the followings would be great,

Quoted 5 lines

* While the driver isn't working, do a sysrq-t and see whether any worker is executing a work for ath9k.

* Repeat it several times and see whether the work is stuck or making progress and/or executing on different workers.

Quoted 6 lines

Actaully, I'm unable to reproduce the resume issue with current mainline (HEAD = 763008c4357b73c8d18396dfd8d79dc58fa3f99d), so I guess it either is a race (or another timing issue), or it's been fixed by one of the patches on top of -rc1.

I'll let you know if I see it again.

To be clear, this is a non-issue now until further notice, ACK?

Luis

#13 lore raw
Quoted 40 lines · Luis R. Rodriguez
Quoted 39 lines · Rafael J. Wysocki
Quoted 37 lines · Tejun Heo

Hello,

Quoted 9 lines · Rafael J. Wysocki
Quoted 8 lines · Tejun Heo

Hello, Rafael.

Quoted 4 lines · Rafael J. Wysocki

While testing 2.6.36-rc1 (with a couple of fixes on top) I noticed that the ath9k driver didn't work after resume from suspend to RAM. An attempt to unload the driver using rmmod caused the BUG_ON() in kernel/workqueue.c:2844 to trigger.

Quoted 5 lines
Quoted 3 lines

That BUG_ON() triggers if destroy_workqueue() is called while work items are still pending on the workqueue. Can you please trigger stack traces after resume and post it?

Do you mean sysrq-t?

Yeah, I'm a bit confused regarding what's going on. I thought the most likely cause is thawing failing to kick a frozen workqueue into working state but then flush_workqueue() which is called from destroy_workqueue() should have hung too, that is, unless flush_workqueue() is broken too. If flush_workqueue() is not broken, then it could be that workqueue itself isn't at fault and works are being scheduled and executed fine for the workqueue ath9k is using but the driver doesn't work for another reason.

Also, the BUG_ON() being triggered means either flush_workqueue() is broken or the driver is failing to stop works on the workqueue from being requeued before calling destroy_workqueue(). So, finding out the followings would be great,

* While the driver isn't working, do a sysrq-t and see whether any worker is executing a work for ath9k.

* Repeat it several times and see whether the work is stuck or making progress and/or executing on different workers.

Quoted 8 lines
Quoted 6 lines

Actaully, I'm unable to reproduce the resume issue with current mainline (HEAD = 763008c4357b73c8d18396dfd8d79dc58fa3f99d), so I guess it either is a race (or another timing issue), or it's been fixed by one of the patches on top of -rc1.

I'll let you know if I see it again.

To be clear, this is a non-issue now until further notice, ACK?

Yep.

Rafael

#14 lore raw
In reply to Luis R. Rodriguez
Quoted 40 lines · Luis R. Rodriguez
Quoted 39 lines · Rafael J. Wysocki
Quoted 37 lines · Tejun Heo

Hello,

Quoted 9 lines · Rafael J. Wysocki
Quoted 8 lines · Tejun Heo

Hello, Rafael.

Quoted 4 lines · Rafael J. Wysocki

While testing 2.6.36-rc1 (with a couple of fixes on top) I noticed that the ath9k driver didn't work after resume from suspend to RAM. An attempt to unload the driver using rmmod caused the BUG_ON() in kernel/workqueue.c:2844 to trigger.

Quoted 5 lines
Quoted 3 lines

That BUG_ON() triggers if destroy_workqueue() is called while work items are still pending on the workqueue. Can you please trigger stack traces after resume and post it?

Do you mean sysrq-t?

Yeah, I'm a bit confused regarding what's going on. I thought the most likely cause is thawing failing to kick a frozen workqueue into working state but then flush_workqueue() which is called from destroy_workqueue() should have hung too, that is, unless flush_workqueue() is broken too. If flush_workqueue() is not broken, then it could be that workqueue itself isn't at fault and works are being scheduled and executed fine for the workqueue ath9k is using but the driver doesn't work for another reason.

Also, the BUG_ON() being triggered means either flush_workqueue() is broken or the driver is failing to stop works on the workqueue from being requeued before calling destroy_workqueue(). So, finding out the followings would be great,

* While the driver isn't working, do a sysrq-t and see whether any worker is executing a work for ath9k.

* Repeat it several times and see whether the work is stuck or making progress and/or executing on different workers.

Quoted 8 lines
Quoted 6 lines

Actaully, I'm unable to reproduce the resume issue with current mainline (HEAD = 763008c4357b73c8d18396dfd8d79dc58fa3f99d), so I guess it either is a race (or another timing issue), or it's been fixed by one of the patches on top of -rc1.

I'll let you know if I see it again.

To be clear, this is a non-issue now until further notice, ACK?

Yep.

Rafael

#15 lore raw
In reply to Rafael J. Wysocki
Quoted 39 lines · Rafael J. Wysocki
Quoted 32 lines · Tejun Heo

Hello,

Quoted 9 lines · Rafael J. Wysocki
Quoted 8 lines · Tejun Heo

Hello, Rafael.

Quoted 4 lines · Rafael J. Wysocki

While testing 2.6.36-rc1 (with a couple of fixes on top) I noticed that the ath9k driver didn't work after resume from suspend to RAM. An attempt to unload the driver using rmmod caused the BUG_ON() in kernel/workqueue.c:2844 to trigger.

Quoted 5 lines
Quoted 3 lines

That BUG_ON() triggers if destroy_workqueue() is called while work items are still pending on the workqueue. Can you please trigger stack traces after resume and post it?

Do you mean sysrq-t?

Yeah, I'm a bit confused regarding what's going on. I thought the most likely cause is thawing failing to kick a frozen workqueue into working state but then flush_workqueue() which is called from destroy_workqueue() should have hung too, that is, unless flush_workqueue() is broken too. If flush_workqueue() is not broken, then it could be that workqueue itself isn't at fault and works are being scheduled and executed fine for the workqueue ath9k is using but the driver doesn't work for another reason.

Also, the BUG_ON() being triggered means either flush_workqueue() is broken or the driver is failing to stop works on the workqueue from being requeued before calling destroy_workqueue(). So, finding out the followings would be great,

Quoted 5 lines

* While the driver isn't working, do a sysrq-t and see whether any worker is executing a work for ath9k.

* Repeat it several times and see whether the work is stuck or making progress and/or executing on different workers.

Quoted 6 lines

Actaully, I'm unable to reproduce the resume issue with current mainline (HEAD = 763008c4357b73c8d18396dfd8d79dc58fa3f99d), so I guess it either is a race (or another timing issue), or it's been fixed by one of the patches on top of -rc1.

I'll let you know if I see it again.

To be clear, this is a non-issue now until further notice, ACK?

Luis

#16 lore raw
In reply to Tejun Heo
Quoted 32 lines · Tejun Heo

Hello,

Quoted 9 lines · Rafael J. Wysocki
Quoted 8 lines · Tejun Heo

Hello, Rafael.

Quoted 4 lines · Rafael J. Wysocki

While testing 2.6.36-rc1 (with a couple of fixes on top) I noticed that the ath9k driver didn't work after resume from suspend to RAM. An attempt to unload the driver using rmmod caused the BUG_ON() in kernel/workqueue.c:2844 to trigger.

Quoted 5 lines
Quoted 3 lines

That BUG_ON() triggers if destroy_workqueue() is called while work items are still pending on the workqueue. Can you please trigger stack traces after resume and post it?

Do you mean sysrq-t?

Yeah, I'm a bit confused regarding what's going on. I thought the most likely cause is thawing failing to kick a frozen workqueue into working state but then flush_workqueue() which is called from destroy_workqueue() should have hung too, that is, unless flush_workqueue() is broken too. If flush_workqueue() is not broken, then it could be that workqueue itself isn't at fault and works are being scheduled and executed fine for the workqueue ath9k is using but the driver doesn't work for another reason.

Also, the BUG_ON() being triggered means either flush_workqueue() is broken or the driver is failing to stop works on the workqueue from being requeued before calling destroy_workqueue(). So, finding out the followings would be great,

Quoted 5 lines

* While the driver isn't working, do a sysrq-t and see whether any worker is executing a work for ath9k.

* Repeat it several times and see whether the work is stuck or making progress and/or executing on different workers.

Actaully, I'm unable to reproduce the resume issue with current mainline (HEAD = 763008c4357b73c8d18396dfd8d79dc58fa3f99d), so I guess it either is a race (or another timing issue), or it's been fixed by one of the patches on top of -rc1.

I'll let you know if I see it again.

Thanks,
Rafael

#17 lore raw
In reply to Rafael J. Wysocki

Hello,

Quoted 9 lines · Rafael J. Wysocki
Quoted 8 lines · Tejun Heo

Hello, Rafael.

Quoted 4 lines · Rafael J. Wysocki

While testing 2.6.36-rc1 (with a couple of fixes on top) I noticed that the ath9k driver didn't work after resume from suspend to RAM. An attempt to unload the driver using rmmod caused the BUG_ON() in kernel/workqueue.c:2844 to trigger.

Quoted 5 lines
Quoted 3 lines

That BUG_ON() triggers if destroy_workqueue() is called while work items are still pending on the workqueue. Can you please trigger stack traces after resume and post it?

Do you mean sysrq-t?

Yeah, I'm a bit confused regarding what's going on. I thought the most likely cause is thawing failing to kick a frozen workqueue into working state but then flush_workqueue() which is called from destroy_workqueue() should have hung too, that is, unless flush_workqueue() is broken too. If flush_workqueue() is not broken, then it could be that workqueue itself isn't at fault and works are being scheduled and executed fine for the workqueue ath9k is using but the driver doesn't work for another reason.

Also, the BUG_ON() being triggered means either flush_workqueue() is broken or the driver is failing to stop works on the workqueue from being requeued before calling destroy_workqueue(). So, finding out the followings would be great,

* While the driver isn't working, do a sysrq-t and see whether any worker is executing a work for ath9k.

* Repeat it several times and see whether the work is stuck or making progress and/or executing on different workers.

Thanks.

Signature · 1 line
tejun
#18 lore raw
In reply to Tejun Heo
Quoted 11 lines · Tejun Heo

Hello, Rafael.

Quoted 4 lines · Rafael J. Wysocki

While testing 2.6.36-rc1 (with a couple of fixes on top) I noticed that the ath9k driver didn't work after resume from suspend to RAM. An attempt to unload the driver using rmmod caused the BUG_ON() in kernel/workqueue.c:2844 to trigger.

That BUG_ON() triggers if destroy_workqueue() is called while work items are still pending on the workqueue. Can you please trigger stack traces after resume and post it?

Do you mean sysrq-t?

Rafael

#19 lore raw
In reply to Rafael J. Wysocki

Hello, Rafael.

Quoted 4 lines · Rafael J. Wysocki

While testing 2.6.36-rc1 (with a couple of fixes on top) I noticed that the ath9k driver didn't work after resume from suspend to RAM. An attempt to unload the driver using rmmod caused the BUG_ON() in kernel/workqueue.c:2844 to trigger.

That BUG_ON() triggers if destroy_workqueue() is called while work items are still pending on the workqueue. Can you please trigger stack traces after resume and post it?

Thanks.

Signature · 1 line
tejun