* Re: Suspend to RAM regression in 2.6.28-rc2 (bisected) [not found] <20081027162054.GA4015@localhost.aei.mpg.de> @ 2008-10-27 17:32 ` Rafael J. Wysocki 2008-10-27 18:07 ` Soeren Sonnenburg [not found] ` <200810271839.39236.rjw@sisk.pl> 1 sibling, 1 reply; 32+ messages in thread From: Rafael J. Wysocki @ 2008-10-27 17:32 UTC (permalink / raw) To: Carlos R. Mafra, Johannes Berg Cc: linux-kernel, tomas.winkler, kernel, John W. Linville, linux-wireless [Added some CCs] On Monday, 27 of October 2008, Carlos R. Mafra wrote: > Hi, > > So I managed to bisect my suspend to RAM regression in 2.6.27-rc2 > to commit 3b7ee69d0caefbdb85a606a98bff841b8c63b97e ("mac80211: disassociate > when moving to new BSS") by Tomas Winkler (Cc:-ed). > > Unfortunately it doesn't revert cleanly so I can't double check it. > > My laptop is a Vaio FZ240E Core2Duo@2GHz and I use the iwlagn module > for the wireless connection. > > The symptom is that suspending to RAM from inside X with 'echo mem > > /sys/power/state' leaves me a black screen when resuming back. > > I can test any patches and provide more information of my laptop too. Carlos, thanks a lot for bisecting this. Johannes, can you pls have a look? Thanks, Rafael ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Suspend to RAM regression in 2.6.28-rc2 (bisected) 2008-10-27 17:32 ` Suspend to RAM regression in 2.6.28-rc2 (bisected) Rafael J. Wysocki @ 2008-10-27 18:07 ` Soeren Sonnenburg 2008-10-27 18:31 ` Johannes Berg 0 siblings, 1 reply; 32+ messages in thread From: Soeren Sonnenburg @ 2008-10-27 18:07 UTC (permalink / raw) To: Rafael J. Wysocki Cc: Carlos R. Mafra, Johannes Berg, linux-kernel, tomas.winkler, John W. Linville, linux-wireless On Mon, 2008-10-27 at 18:32 +0100, Rafael J. Wysocki wrote: > [Added some CCs] > > On Monday, 27 of October 2008, Carlos R. Mafra wrote: > > Hi, > > > > So I managed to bisect my suspend to RAM regression in 2.6.27-rc2 > > to commit 3b7ee69d0caefbdb85a606a98bff841b8c63b97e ("mac80211: disassociate > > when moving to new BSS") by Tomas Winkler (Cc:-ed). > > > > Unfortunately it doesn't revert cleanly so I can't double check it. > > > > My laptop is a Vaio FZ240E Core2Duo@2GHz and I use the iwlagn module > > for the wireless connection. > > > > The symptom is that suspending to RAM from inside X with 'echo mem > > > /sys/power/state' leaves me a black screen when resuming back. > > > > I can test any patches and provide more information of my laptop too. > > Carlos, thanks a lot for bisecting this. > > Johannes, can you pls have a look? Hmmhh, I still have the problem when removing the mac80211 and other wireless modules before s2ram... Soeren ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Suspend to RAM regression in 2.6.28-rc2 (bisected) 2008-10-27 18:07 ` Soeren Sonnenburg @ 2008-10-27 18:31 ` Johannes Berg 2008-10-27 18:44 ` Johannes Berg 0 siblings, 1 reply; 32+ messages in thread From: Johannes Berg @ 2008-10-27 18:31 UTC (permalink / raw) To: Soeren Sonnenburg Cc: Rafael J. Wysocki, Carlos R. Mafra, linux-kernel, tomas.winkler, John W. Linville, linux-wireless [-- Attachment #1: Type: text/plain, Size: 315 bytes --] On Mon, 2008-10-27 at 19:07 +0100, Soeren Sonnenburg wrote: > > Johannes, can you pls have a look? I did, and I have no idea. Makes no sense at all. > Hmmhh, I still have the problem when removing the mac80211 and other > wireless modules before s2ram... And that makes even less sense :) johannes [-- Attachment #2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 836 bytes --] ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Suspend to RAM regression in 2.6.28-rc2 (bisected) 2008-10-27 18:31 ` Johannes Berg @ 2008-10-27 18:44 ` Johannes Berg 2008-10-27 19:00 ` Carlos R. Mafra 0 siblings, 1 reply; 32+ messages in thread From: Johannes Berg @ 2008-10-27 18:44 UTC (permalink / raw) To: Soeren Sonnenburg Cc: Rafael J. Wysocki, Carlos R. Mafra, linux-kernel, tomas.winkler, John W. Linville, linux-wireless [-- Attachment #1: Type: text/plain, Size: 1045 bytes --] On Mon, 2008-10-27 at 19:31 +0100, Johannes Berg wrote: > On Mon, 2008-10-27 at 19:07 +0100, Soeren Sonnenburg wrote: > > > > Johannes, can you pls have a look? > > I did, and I have no idea. Makes no sense at all. The only thing I can remotely think of is that iwlwifi doesn't like being called back from within the call that it did to mac80211, which obviously happens here. But I have no idea, the code as it stands is correct, just the interaction with iwlwifi's resume seems to be broken. Try this patch instead: --- everything.orig/drivers/net/wireless/iwlwifi/iwl-agn.c 2008-10-27 19:44:12.000000000 +0100 +++ everything/drivers/net/wireless/iwlwifi/iwl-agn.c 2008-10-27 19:44:15.000000000 +0100 @@ -2084,7 +2084,6 @@ static void iwl_alive_start(struct iwl_p iwl4965_error_recovery(priv); iwl_power_update_mode(priv, 1); - ieee80211_notify_mac(priv->hw, IEEE80211_NOTIFY_RE_ASSOC); if (test_and_clear_bit(STATUS_MODE_PENDING, &priv->status)) iwl4965_set_mode(priv, priv->iw_mode); johannes [-- Attachment #2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 836 bytes --] ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Suspend to RAM regression in 2.6.28-rc2 (bisected) 2008-10-27 18:44 ` Johannes Berg @ 2008-10-27 19:00 ` Carlos R. Mafra 2008-10-27 19:03 ` Johannes Berg 2008-10-27 19:06 ` Jens Axboe 0 siblings, 2 replies; 32+ messages in thread From: Carlos R. Mafra @ 2008-10-27 19:00 UTC (permalink / raw) To: Johannes Berg Cc: Soeren Sonnenburg, Rafael J. Wysocki, linux-kernel, tomas.winkler, John W. Linville, linux-wireless On Mon 27.Oct'08 at 19:44:42 +0100, Johannes Berg wrote: > On Mon, 2008-10-27 at 19:31 +0100, Johannes Berg wrote: > > On Mon, 2008-10-27 at 19:07 +0100, Soeren Sonnenburg wrote: > > > > > > Johannes, can you pls have a look? > > > > I did, and I have no idea. Makes no sense at all. > > The only thing I can remotely think of is that iwlwifi doesn't like > being called back from within the call that it did to mac80211, which > obviously happens here. But I have no idea, the code as it stands is > correct, just the interaction with iwlwifi's resume seems to be broken. > > Try this patch instead: Yep, with this patch it also works! > --- everything.orig/drivers/net/wireless/iwlwifi/iwl-agn.c 2008-10-27 19:44:12.000000000 +0100 > +++ everything/drivers/net/wireless/iwlwifi/iwl-agn.c 2008-10-27 19:44:15.000000000 +0100 > @@ -2084,7 +2084,6 @@ static void iwl_alive_start(struct iwl_p > iwl4965_error_recovery(priv); > > iwl_power_update_mode(priv, 1); > - ieee80211_notify_mac(priv->hw, IEEE80211_NOTIFY_RE_ASSOC); > > if (test_and_clear_bit(STATUS_MODE_PENDING, &priv->status)) > iwl4965_set_mode(priv, priv->iw_mode); > > > johannes ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Suspend to RAM regression in 2.6.28-rc2 (bisected) 2008-10-27 19:00 ` Carlos R. Mafra @ 2008-10-27 19:03 ` Johannes Berg 2008-10-27 19:11 ` Carlos R. Mafra 2008-10-27 19:06 ` Jens Axboe 1 sibling, 1 reply; 32+ messages in thread From: Johannes Berg @ 2008-10-27 19:03 UTC (permalink / raw) To: Carlos R. Mafra Cc: Soeren Sonnenburg, Rafael J. Wysocki, linux-kernel, tomas.winkler, John W. Linville, linux-wireless [-- Attachment #1: Type: text/plain, Size: 1591 bytes --] On Mon, 2008-10-27 at 20:00 +0100, Carlos R. Mafra wrote: > On Mon 27.Oct'08 at 19:44:42 +0100, Johannes Berg wrote: > > On Mon, 2008-10-27 at 19:31 +0100, Johannes Berg wrote: > > > On Mon, 2008-10-27 at 19:07 +0100, Soeren Sonnenburg wrote: > > > > > > > > Johannes, can you pls have a look? > > > > > > I did, and I have no idea. Makes no sense at all. > > > > The only thing I can remotely think of is that iwlwifi doesn't like > > being called back from within the call that it did to mac80211, which > > obviously happens here. But I have no idea, the code as it stands is > > correct, just the interaction with iwlwifi's resume seems to be broken. > > > > Try this patch instead: > > Yep, with this patch it also works! > > --- everything.orig/drivers/net/wireless/iwlwifi/iwl-agn.c 2008-10-27 19:44:12.000000000 +0100 > > +++ everything/drivers/net/wireless/iwlwifi/iwl-agn.c 2008-10-27 19:44:15.000000000 +0100 > > @@ -2084,7 +2084,6 @@ static void iwl_alive_start(struct iwl_p > > iwl4965_error_recovery(priv); > > > > iwl_power_update_mode(priv, 1); > > - ieee80211_notify_mac(priv->hw, IEEE80211_NOTIFY_RE_ASSOC); alright, well, if nothing else turns up soon then we should probably put this patch in rather than reverting the other one, imho mac80211 is doing the right thing there and the driver is calling into it at a point where either mac80211 or the driver cannot handle it. Do you get any kernel messages output? If you do, could you put messages into each line of ieee80211_set_disassoc to see where it hangs? johannes [-- Attachment #2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 836 bytes --] ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Suspend to RAM regression in 2.6.28-rc2 (bisected) 2008-10-27 19:03 ` Johannes Berg @ 2008-10-27 19:11 ` Carlos R. Mafra 2008-10-27 19:13 ` Johannes Berg 0 siblings, 1 reply; 32+ messages in thread From: Carlos R. Mafra @ 2008-10-27 19:11 UTC (permalink / raw) To: Johannes Berg Cc: Soeren Sonnenburg, Rafael J. Wysocki, linux-kernel, tomas.winkler, John W. Linville, linux-wireless On Mon 27.Oct'08 at 20:03:15 +0100, Johannes Berg wrote: > On Mon, 2008-10-27 at 20:00 +0100, Carlos R. Mafra wrote: > > On Mon 27.Oct'08 at 19:44:42 +0100, Johannes Berg wrote: > > > On Mon, 2008-10-27 at 19:31 +0100, Johannes Berg wrote: > > > > On Mon, 2008-10-27 at 19:07 +0100, Soeren Sonnenburg wrote: > > > > > > > > > > Johannes, can you pls have a look? > > > > > > > > I did, and I have no idea. Makes no sense at all. > > > > > > The only thing I can remotely think of is that iwlwifi doesn't like > > > being called back from within the call that it did to mac80211, which > > > obviously happens here. But I have no idea, the code as it stands is > > > correct, just the interaction with iwlwifi's resume seems to be broken. > > > > > > Try this patch instead: > > > > Yep, with this patch it also works! > > > > --- everything.orig/drivers/net/wireless/iwlwifi/iwl-agn.c 2008-10-27 19:44:12.000000000 +0100 > > > +++ everything/drivers/net/wireless/iwlwifi/iwl-agn.c 2008-10-27 19:44:15.000000000 +0100 > > > @@ -2084,7 +2084,6 @@ static void iwl_alive_start(struct iwl_p > > > iwl4965_error_recovery(priv); > > > > > > iwl_power_update_mode(priv, 1); > > > - ieee80211_notify_mac(priv->hw, IEEE80211_NOTIFY_RE_ASSOC); > > alright, well, if nothing else turns up soon then we should probably put > this patch in rather than reverting the other one, imho mac80211 is > doing the right thing there and the driver is calling into it at a point > where either mac80211 or the driver cannot handle it. > > Do you get any kernel messages output? If you do, could you put messages > into each line of ieee80211_set_disassoc to see where it hangs? No messages appear, just a black screen. But I can use the SysRq keys, and when I umount the screen shows the message that umount succeed. I also tried SysRq+t but the messages appear to fast to read. > > johannes ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Suspend to RAM regression in 2.6.28-rc2 (bisected) 2008-10-27 19:11 ` Carlos R. Mafra @ 2008-10-27 19:13 ` Johannes Berg 2008-10-27 20:39 ` Carlos R. Mafra 0 siblings, 1 reply; 32+ messages in thread From: Johannes Berg @ 2008-10-27 19:13 UTC (permalink / raw) To: Carlos R. Mafra Cc: Soeren Sonnenburg, Rafael J. Wysocki, linux-kernel, tomas.winkler, John W. Linville, linux-wireless [-- Attachment #1: Type: text/plain, Size: 789 bytes --] On Mon, 2008-10-27 at 20:11 +0100, Carlos R. Mafra wrote: > > Do you get any kernel messages output? If you do, could you put messages > > into each line of ieee80211_set_disassoc to see where it hangs? > > No messages appear, just a black screen. > > But I can use the SysRq keys, and when I umount the > screen shows the message that umount succeed. I also tried SysRq+t but > the messages appear to fast to read. Ok, but that means you _can_ get messages, it would help a lot if you could put a few printks into the set_disassoc function before/after each other function call, so we know where exactly it hangs. Pretty much all of them could possibly hang if there is some sort of locking error happening or anything relies on userspace to be running... johannes [-- Attachment #2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 836 bytes --] ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Suspend to RAM regression in 2.6.28-rc2 (bisected) 2008-10-27 19:13 ` Johannes Berg @ 2008-10-27 20:39 ` Carlos R. Mafra 2008-10-27 20:51 ` Rafael J. Wysocki 0 siblings, 1 reply; 32+ messages in thread From: Carlos R. Mafra @ 2008-10-27 20:39 UTC (permalink / raw) To: Johannes Berg Cc: Soeren Sonnenburg, Rafael J. Wysocki, linux-kernel, tomas.winkler, John W. Linville, linux-wireless On Mon 27.Oct'08 at 20:13:43 +0100, Johannes Berg wrote: > On Mon, 2008-10-27 at 20:11 +0100, Carlos R. Mafra wrote: > > > > Do you get any kernel messages output? If you do, could you put messages > > > into each line of ieee80211_set_disassoc to see where it hangs? > > > > No messages appear, just a black screen. > > > > But I can use the SysRq keys, and when I umount the > > screen shows the message that umount succeed. I also tried SysRq+t but > > the messages appear to fast to read. > > Ok, but that means you _can_ get messages, it would help a lot if you > could put a few printks into the set_disassoc function before/after each > other function call, so we know where exactly it hangs. Pretty much all > of them could possibly hang if there is some sort of locking error > happening or anything relies on userspace to be running... Ok, I humbly tried to do that with the patch at the end of the email, but I did not appear to hang in this function tough. Somehow I could get some messages printed when it was a black screen before (I think it has to do with the debug level I set with SysRq...) and I could see all the printks I've put there. The good thing is that I could get the complete syslog of the boot until the it failed after suspending to RAM (in 2.6.28-rc2 with my debug patch below applied). The last messages before the laptop become unresponsive (except for the SysRq) were these ones: Oct 27 21:03:06 localhost kernel: Registered led device: iwl-phy0:radio Oct 27 21:03:06 localhost kernel: Registered led device: iwl-phy0:assoc Oct 27 21:03:06 localhost kernel: Registered led device: iwl-phy0:RX Oct 27 21:03:06 localhost kernel: Registered led device: iwl-phy0:TX Oct 27 21:03:06 localhost kernel: before rcu_read_lock Oct 27 21:03:06 localhost kernel: before netif_tx_stop_all_queues Oct 27 21:03:06 localhost kernel: before netif_carrier_off Oct 27 21:03:06 localhost kernel: before ieee80211_sta Oct 27 21:03:06 localhost kernel: inside sef_disconnected 1 Oct 27 21:03:06 localhost kernel: before ieee8021_led_assoc Oct 27 21:03:06 localhost kernel: before ieee8021_sta_send_apinfo Oct 27 21:03:06 localhost kernel: before sta_info_unlink Oct 27 21:03:06 localhost kernel: before rcu_read_unlock Oct 27 21:03:06 localhost kernel: before sta_info_destroy Oct 27 21:03:06 localhost kernel: sd 0:0:0:0: [sda] Starting disk Oct 27 21:03:06 localhost kernel: ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300) Oct 27 21:03:06 localhost kernel: ata1.00: ACPI cmd ef/90:03:00:00:00:a0 succeeded Oct 27 21:03:06 localhost kernel: ata1.00: ACPI cmd f5/00:00:00:00:00:a0 filtered out Oct 27 21:03:06 localhost kernel: ata1.00: ACPI cmd ef/90:03:00:00:00:a0 succeeded Oct 27 21:03:06 localhost kernel: ata1.00: ACPI cmd f5/00:00:00:00:00:a0 filtered out Oct 27 21:03:06 localhost kernel: ata1.00: configured for UDMA/100 Oct 27 21:03:06 localhost kernel: ata1: exception Emask 0x10 SAct 0x0 SErr 0x0 action 0x9 t4 Oct 27 21:03:06 localhost kernel: ata1: irq_stat 0x00000040, connection status changed Oct 27 21:03:06 localhost kernel: ata1: hard resetting link Oct 27 21:03:06 localhost kernel: ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300) Oct 27 21:03:06 localhost kernel: ata1.00: ACPI cmd ef/90:03:00:00:00:a0 succeeded Oct 27 21:03:06 localhost kernel: ata1.00: ACPI cmd f5/00:00:00:00:00:a0 filtered out Oct 27 21:03:06 localhost kernel: ata1.00: ACPI cmd ef/90:03:00:00:00:a0 succeeded Oct 27 21:03:06 localhost kernel: ata1.00: ACPI cmd f5/00:00:00:00:00:a0 filtered out Oct 27 21:03:06 localhost kernel: ata1.00: configured for UDMA/100 Oct 27 21:03:06 localhost kernel: ata1: EH complete Oct 27 21:03:06 localhost kernel: sd 0:0:0:0: [sda] 488397168 512-byte hardware sectors: (250 GB/232 GiB) Oct 27 21:03:06 localhost kernel: sd 0:0:0:0: [sda] Write Protect is off Oct 27 21:03:06 localhost kernel: sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00 Oct 27 21:03:06 localhost kernel: sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA Oct 27 21:03:06 localhost kernel: sd 0:0:0:0: [sda] 488397168 512-byte hardware sectors: (250 GB/232 GiB) Oct 27 21:03:06 localhost kernel: sd 0:0:0:0: [sda] Write Protect is off Oct 27 21:03:06 localhost kernel: sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00 Oct 27 21:03:06 localhost kernel: sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA Oct 27 21:03:06 localhost kernel: Restarting tasks ... done. Oct 27 21:03:07 localhost ifplugd(wlan0)[3182]: Link beat lost. Oct 27 21:03:13 localhost ifplugd(wlan0)[3182]: Executing '/etc/ifplugd/ifplugd.action wlan0 down'. Oct 27 21:06:20 localhost kernel: SysRq : Changing Loglevel Oct 27 21:06:20 localhost kernel: Loglevel set to 4 Oct 27 21:06:22 localhost kernel: SysRq : Changing Loglevel Oct 27 21:06:22 localhost kernel: Loglevel set to 6 Oct 27 21:06:32 localhost kernel: ffff80251670>] ? autoremove_wake_function+0x0/0x40 Oct 27 21:06:32 localhost kernel: [<ffffffff8024e200>] ? worker_thread+0x0/0x110 Oct 27 21:06:32 localhost kernel: [<ffffffff8025119d>] kthread+0x4d/0x80 Oct 27 21:06:32 localhost kernel: [<ffffffff8020d1b9>] child_rip+0xa/0x11 and I have the complete trace also. I can try to put it somewhere in the web if it helps (I already tried it, but I am new at the institute here and I could not set up my webpage yet :-( This is the patch I applied, I don't know if this helps or not... --- net/mac80211/mlme.c | 17 +++++++++++++++-- 1 files changed, 15 insertions(+), 2 deletions(-) diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 87665d7..c6e3338 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c @@ -819,10 +819,12 @@ static void ieee80211_set_disassoc(struct ieee80211_sub_if_data *sdata, struct sta_info *sta; u32 changed = BSS_CHANGED_ASSOC; + printk("before rcu_read_lock\n"); rcu_read_lock(); sta = sta_info_get(local, ifsta->bssid); if (!sta) { + printk("before rcu_read_unlock\n"); rcu_read_unlock(); return; } @@ -834,18 +836,24 @@ static void ieee80211_set_disassoc(struct ieee80211_sub_if_data *sdata, ifsta->assoc_scan_tries = 0; ifsta->assoc_tries = 0; + printk("before netif_tx_stop_all_queues\n"); netif_tx_stop_all_queues(sdata->dev); + printk("before netif_carrier_off\n"); netif_carrier_off(sdata->dev); + printk("before ieee80211_sta\n"); ieee80211_sta_tear_down_BA_sessions(sdata, sta->sta.addr); if (self_disconnected) { - if (deauth) + if (deauth) { + printk("inside sef_disconnected 1\n"); ieee80211_send_deauth_disassoc(sdata, IEEE80211_STYPE_DEAUTH, reason); - else + } else { + printk("inside sef_disconnected 2\n"); ieee80211_send_deauth_disassoc(sdata, IEEE80211_STYPE_DISASSOC, reason); + } } ifsta->flags &= ~IEEE80211_STA_ASSOCIATED; @@ -858,18 +866,23 @@ static void ieee80211_set_disassoc(struct ieee80211_sub_if_data *sdata, sdata->bss_conf.ht_conf = NULL; sdata->bss_conf.ht_bss_conf = NULL; + printk("before ieee8021_led_assoc\n"); ieee80211_led_assoc(local, 0); sdata->bss_conf.assoc = 0; + printk("before ieee8021_sta_send_apinfo\n"); ieee80211_sta_send_apinfo(sdata, ifsta); if (self_disconnected) ifsta->state = IEEE80211_STA_MLME_DISABLED; + printk("before sta_info_unlink\n"); sta_info_unlink(&sta); + printk("before rcu_read_unlock\n"); rcu_read_unlock(); + printk("before sta_info_destroy\n"); sta_info_destroy(sta); } ^ permalink raw reply related [flat|nested] 32+ messages in thread
* Re: Suspend to RAM regression in 2.6.28-rc2 (bisected) 2008-10-27 20:39 ` Carlos R. Mafra @ 2008-10-27 20:51 ` Rafael J. Wysocki 2008-10-27 20:52 ` Carlos R. Mafra 2008-10-27 21:07 ` Tomas Winkler 0 siblings, 2 replies; 32+ messages in thread From: Rafael J. Wysocki @ 2008-10-27 20:51 UTC (permalink / raw) To: Carlos R. Mafra Cc: Johannes Berg, Soeren Sonnenburg, linux-kernel, tomas.winkler, John W. Linville, linux-wireless On Monday, 27 of October 2008, Carlos R. Mafra wrote: > On Mon 27.Oct'08 at 20:13:43 +0100, Johannes Berg wrote: > > On Mon, 2008-10-27 at 20:11 +0100, Carlos R. Mafra wrote: > > > > > > Do you get any kernel messages output? If you do, could you put messages > > > > into each line of ieee80211_set_disassoc to see where it hangs? > > > > > > No messages appear, just a black screen. > > > > > > But I can use the SysRq keys, and when I umount the > > > screen shows the message that umount succeed. I also tried SysRq+t but > > > the messages appear to fast to read. > > > > Ok, but that means you _can_ get messages, it would help a lot if you > > could put a few printks into the set_disassoc function before/after each > > other function call, so we know where exactly it hangs. Pretty much all > > of them could possibly hang if there is some sort of locking error > > happening or anything relies on userspace to be running... > > Ok, I humbly tried to do that with the patch at the end of the email, > but I did not appear to hang in this function tough. > > Somehow I could get some messages printed when it was a black screen > before (I think it has to do with the debug level I set with SysRq...) > and I could see all the printks I've put there. > > The good thing is that I could get the complete syslog of the boot until > the it failed after suspending to RAM (in 2.6.28-rc2 with my debug patch > below applied). The last messages before the laptop become unresponsive > (except for the SysRq) were these ones: > > Oct 27 21:03:06 localhost kernel: Registered led device: iwl-phy0:radio > Oct 27 21:03:06 localhost kernel: Registered led device: iwl-phy0:assoc > Oct 27 21:03:06 localhost kernel: Registered led device: iwl-phy0:RX > Oct 27 21:03:06 localhost kernel: Registered led device: iwl-phy0:TX > Oct 27 21:03:06 localhost kernel: before rcu_read_lock > Oct 27 21:03:06 localhost kernel: before netif_tx_stop_all_queues > Oct 27 21:03:06 localhost kernel: before netif_carrier_off > Oct 27 21:03:06 localhost kernel: before ieee80211_sta > Oct 27 21:03:06 localhost kernel: inside sef_disconnected 1 > Oct 27 21:03:06 localhost kernel: before ieee8021_led_assoc > Oct 27 21:03:06 localhost kernel: before ieee8021_sta_send_apinfo > Oct 27 21:03:06 localhost kernel: before sta_info_unlink > Oct 27 21:03:06 localhost kernel: before rcu_read_unlock > Oct 27 21:03:06 localhost kernel: before sta_info_destroy > Oct 27 21:03:06 localhost kernel: sd 0:0:0:0: [sda] Starting disk > Oct 27 21:03:06 localhost kernel: ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300) > Oct 27 21:03:06 localhost kernel: ata1.00: ACPI cmd ef/90:03:00:00:00:a0 succeeded > Oct 27 21:03:06 localhost kernel: ata1.00: ACPI cmd f5/00:00:00:00:00:a0 filtered out > Oct 27 21:03:06 localhost kernel: ata1.00: ACPI cmd ef/90:03:00:00:00:a0 succeeded > Oct 27 21:03:06 localhost kernel: ata1.00: ACPI cmd f5/00:00:00:00:00:a0 filtered out > Oct 27 21:03:06 localhost kernel: ata1.00: configured for UDMA/100 > Oct 27 21:03:06 localhost kernel: ata1: exception Emask 0x10 SAct 0x0 SErr 0x0 action 0x9 t4 > Oct 27 21:03:06 localhost kernel: ata1: irq_stat 0x00000040, connection status changed > Oct 27 21:03:06 localhost kernel: ata1: hard resetting link > Oct 27 21:03:06 localhost kernel: ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300) > Oct 27 21:03:06 localhost kernel: ata1.00: ACPI cmd ef/90:03:00:00:00:a0 succeeded > Oct 27 21:03:06 localhost kernel: ata1.00: ACPI cmd f5/00:00:00:00:00:a0 filtered out > Oct 27 21:03:06 localhost kernel: ata1.00: ACPI cmd ef/90:03:00:00:00:a0 succeeded > Oct 27 21:03:06 localhost kernel: ata1.00: ACPI cmd f5/00:00:00:00:00:a0 filtered out > Oct 27 21:03:06 localhost kernel: ata1.00: configured for UDMA/100 > Oct 27 21:03:06 localhost kernel: ata1: EH complete > Oct 27 21:03:06 localhost kernel: sd 0:0:0:0: [sda] 488397168 512-byte hardware sectors: (250 GB/232 GiB) > Oct 27 21:03:06 localhost kernel: sd 0:0:0:0: [sda] Write Protect is off > Oct 27 21:03:06 localhost kernel: sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00 > Oct 27 21:03:06 localhost kernel: sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA > Oct 27 21:03:06 localhost kernel: sd 0:0:0:0: [sda] 488397168 512-byte hardware sectors: (250 GB/232 GiB) > Oct 27 21:03:06 localhost kernel: sd 0:0:0:0: [sda] Write Protect is off > Oct 27 21:03:06 localhost kernel: sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00 > Oct 27 21:03:06 localhost kernel: sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA > Oct 27 21:03:06 localhost kernel: Restarting tasks ... done. > Oct 27 21:03:07 localhost ifplugd(wlan0)[3182]: Link beat lost. > Oct 27 21:03:13 localhost ifplugd(wlan0)[3182]: Executing '/etc/ifplugd/ifplugd.action wlan0 down'. > Oct 27 21:06:20 localhost kernel: SysRq : Changing Loglevel > Oct 27 21:06:20 localhost kernel: Loglevel set to 4 > Oct 27 21:06:22 localhost kernel: SysRq : Changing Loglevel > Oct 27 21:06:22 localhost kernel: Loglevel set to 6 > Oct 27 21:06:32 localhost kernel: ffff80251670>] ? autoremove_wake_function+0x0/0x40 > Oct 27 21:06:32 localhost kernel: [<ffffffff8024e200>] ? worker_thread+0x0/0x110 > Oct 27 21:06:32 localhost kernel: [<ffffffff8025119d>] kthread+0x4d/0x80 > Oct 27 21:06:32 localhost kernel: [<ffffffff8020d1b9>] child_rip+0xa/0x11 > > and I have the complete trace also. I can try to put it somewhere in the web if it helps > (I already tried it, but I am new at the institute here and I could not set up my > webpage yet :-( Please attach it to http://bugzilla.kernel.org/show_bug.cgi?id=11845 . Thanks, Rafael ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Suspend to RAM regression in 2.6.28-rc2 (bisected) 2008-10-27 20:51 ` Rafael J. Wysocki @ 2008-10-27 20:52 ` Carlos R. Mafra 2008-10-27 21:07 ` Rafael J. Wysocki 2008-10-27 21:07 ` Tomas Winkler 1 sibling, 1 reply; 32+ messages in thread From: Carlos R. Mafra @ 2008-10-27 20:52 UTC (permalink / raw) To: Rafael J. Wysocki Cc: Johannes Berg, Soeren Sonnenburg, linux-kernel, tomas.winkler, John W. Linville, linux-wireless On Mon 27.Oct'08 at 21:51:00 +0100, Rafael J. Wysocki wrote: > On Monday, 27 of October 2008, Carlos R. Mafra wrote: > > On Mon 27.Oct'08 at 20:13:43 +0100, Johannes Berg wrote: > > > On Mon, 2008-10-27 at 20:11 +0100, Carlos R. Mafra wrote: > > > > > > > > Do you get any kernel messages output? If you do, could you put messages > > > > > into each line of ieee80211_set_disassoc to see where it hangs? > > > > > > > > No messages appear, just a black screen. > > > > > > > > But I can use the SysRq keys, and when I umount the > > > > screen shows the message that umount succeed. I also tried SysRq+t but > > > > the messages appear to fast to read. > > > > > > Ok, but that means you _can_ get messages, it would help a lot if you > > > could put a few printks into the set_disassoc function before/after each > > > other function call, so we know where exactly it hangs. Pretty much all > > > of them could possibly hang if there is some sort of locking error > > > happening or anything relies on userspace to be running... > > > > Ok, I humbly tried to do that with the patch at the end of the email, > > but I did not appear to hang in this function tough. > > > > Somehow I could get some messages printed when it was a black screen > > before (I think it has to do with the debug level I set with SysRq...) > > and I could see all the printks I've put there. > > > > The good thing is that I could get the complete syslog of the boot until > > the it failed after suspending to RAM (in 2.6.28-rc2 with my debug patch > > below applied). The last messages before the laptop become unresponsive > > (except for the SysRq) were these ones: > > > > Oct 27 21:03:06 localhost kernel: Registered led device: iwl-phy0:radio > > Oct 27 21:03:06 localhost kernel: Registered led device: iwl-phy0:assoc > > Oct 27 21:03:06 localhost kernel: Registered led device: iwl-phy0:RX > > Oct 27 21:03:06 localhost kernel: Registered led device: iwl-phy0:TX > > Oct 27 21:03:06 localhost kernel: before rcu_read_lock > > Oct 27 21:03:06 localhost kernel: before netif_tx_stop_all_queues > > Oct 27 21:03:06 localhost kernel: before netif_carrier_off > > Oct 27 21:03:06 localhost kernel: before ieee80211_sta > > Oct 27 21:03:06 localhost kernel: inside sef_disconnected 1 > > Oct 27 21:03:06 localhost kernel: before ieee8021_led_assoc > > Oct 27 21:03:06 localhost kernel: before ieee8021_sta_send_apinfo > > Oct 27 21:03:06 localhost kernel: before sta_info_unlink > > Oct 27 21:03:06 localhost kernel: before rcu_read_unlock > > Oct 27 21:03:06 localhost kernel: before sta_info_destroy > > Oct 27 21:03:06 localhost kernel: sd 0:0:0:0: [sda] Starting disk > > Oct 27 21:03:06 localhost kernel: ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300) > > Oct 27 21:03:06 localhost kernel: ata1.00: ACPI cmd ef/90:03:00:00:00:a0 succeeded > > Oct 27 21:03:06 localhost kernel: ata1.00: ACPI cmd f5/00:00:00:00:00:a0 filtered out > > Oct 27 21:03:06 localhost kernel: ata1.00: ACPI cmd ef/90:03:00:00:00:a0 succeeded > > Oct 27 21:03:06 localhost kernel: ata1.00: ACPI cmd f5/00:00:00:00:00:a0 filtered out > > Oct 27 21:03:06 localhost kernel: ata1.00: configured for UDMA/100 > > Oct 27 21:03:06 localhost kernel: ata1: exception Emask 0x10 SAct 0x0 SErr 0x0 action 0x9 t4 > > Oct 27 21:03:06 localhost kernel: ata1: irq_stat 0x00000040, connection status changed > > Oct 27 21:03:06 localhost kernel: ata1: hard resetting link > > Oct 27 21:03:06 localhost kernel: ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300) > > Oct 27 21:03:06 localhost kernel: ata1.00: ACPI cmd ef/90:03:00:00:00:a0 succeeded > > Oct 27 21:03:06 localhost kernel: ata1.00: ACPI cmd f5/00:00:00:00:00:a0 filtered out > > Oct 27 21:03:06 localhost kernel: ata1.00: ACPI cmd ef/90:03:00:00:00:a0 succeeded > > Oct 27 21:03:06 localhost kernel: ata1.00: ACPI cmd f5/00:00:00:00:00:a0 filtered out > > Oct 27 21:03:06 localhost kernel: ata1.00: configured for UDMA/100 > > Oct 27 21:03:06 localhost kernel: ata1: EH complete > > Oct 27 21:03:06 localhost kernel: sd 0:0:0:0: [sda] 488397168 512-byte hardware sectors: (250 GB/232 GiB) > > Oct 27 21:03:06 localhost kernel: sd 0:0:0:0: [sda] Write Protect is off > > Oct 27 21:03:06 localhost kernel: sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00 > > Oct 27 21:03:06 localhost kernel: sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA > > Oct 27 21:03:06 localhost kernel: sd 0:0:0:0: [sda] 488397168 512-byte hardware sectors: (250 GB/232 GiB) > > Oct 27 21:03:06 localhost kernel: sd 0:0:0:0: [sda] Write Protect is off > > Oct 27 21:03:06 localhost kernel: sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00 > > Oct 27 21:03:06 localhost kernel: sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA > > Oct 27 21:03:06 localhost kernel: Restarting tasks ... done. > > Oct 27 21:03:07 localhost ifplugd(wlan0)[3182]: Link beat lost. > > Oct 27 21:03:13 localhost ifplugd(wlan0)[3182]: Executing '/etc/ifplugd/ifplugd.action wlan0 down'. > > Oct 27 21:06:20 localhost kernel: SysRq : Changing Loglevel > > Oct 27 21:06:20 localhost kernel: Loglevel set to 4 > > Oct 27 21:06:22 localhost kernel: SysRq : Changing Loglevel > > Oct 27 21:06:22 localhost kernel: Loglevel set to 6 > > Oct 27 21:06:32 localhost kernel: ffff80251670>] ? autoremove_wake_function+0x0/0x40 > > Oct 27 21:06:32 localhost kernel: [<ffffffff8024e200>] ? worker_thread+0x0/0x110 > > Oct 27 21:06:32 localhost kernel: [<ffffffff8025119d>] kthread+0x4d/0x80 > > Oct 27 21:06:32 localhost kernel: [<ffffffff8020d1b9>] child_rip+0xa/0x11 > > > > and I have the complete trace also. I can try to put it somewhere in the web if it helps > > (I already tried it, but I am new at the institute here and I could not set up my > > webpage yet :-( > > Please attach it to http://bugzilla.kernel.org/show_bug.cgi?id=11845 . Done. ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Suspend to RAM regression in 2.6.28-rc2 (bisected) 2008-10-27 20:52 ` Carlos R. Mafra @ 2008-10-27 21:07 ` Rafael J. Wysocki 2008-10-27 22:05 ` Carlos R. Mafra 0 siblings, 1 reply; 32+ messages in thread From: Rafael J. Wysocki @ 2008-10-27 21:07 UTC (permalink / raw) To: Carlos R. Mafra Cc: Johannes Berg, Soeren Sonnenburg, linux-kernel, tomas.winkler, John W. Linville, linux-wireless On Monday, 27 of October 2008, Carlos R. Mafra wrote: > On Mon 27.Oct'08 at 21:51:00 +0100, Rafael J. Wysocki wrote: > > On Monday, 27 of October 2008, Carlos R. Mafra wrote: > > > On Mon 27.Oct'08 at 20:13:43 +0100, Johannes Berg wrote: > > > > On Mon, 2008-10-27 at 20:11 +0100, Carlos R. Mafra wrote: > > > > > > > > > > Do you get any kernel messages output? If you do, could you put messages > > > > > > into each line of ieee80211_set_disassoc to see where it hangs? > > > > > > > > > > No messages appear, just a black screen. > > > > > > > > > > But I can use the SysRq keys, and when I umount the > > > > > screen shows the message that umount succeed. I also tried SysRq+t but > > > > > the messages appear to fast to read. > > > > > > > > Ok, but that means you _can_ get messages, it would help a lot if you > > > > could put a few printks into the set_disassoc function before/after each > > > > other function call, so we know where exactly it hangs. Pretty much all > > > > of them could possibly hang if there is some sort of locking error > > > > happening or anything relies on userspace to be running... > > > > > > Ok, I humbly tried to do that with the patch at the end of the email, > > > but I did not appear to hang in this function tough. > > > > > > Somehow I could get some messages printed when it was a black screen > > > before (I think it has to do with the debug level I set with SysRq...) > > > and I could see all the printks I've put there. > > > > > > The good thing is that I could get the complete syslog of the boot until > > > the it failed after suspending to RAM (in 2.6.28-rc2 with my debug patch > > > below applied). The last messages before the laptop become unresponsive > > > (except for the SysRq) were these ones: > > > > > > Oct 27 21:03:06 localhost kernel: Registered led device: iwl-phy0:radio > > > Oct 27 21:03:06 localhost kernel: Registered led device: iwl-phy0:assoc > > > Oct 27 21:03:06 localhost kernel: Registered led device: iwl-phy0:RX > > > Oct 27 21:03:06 localhost kernel: Registered led device: iwl-phy0:TX > > > Oct 27 21:03:06 localhost kernel: before rcu_read_lock > > > Oct 27 21:03:06 localhost kernel: before netif_tx_stop_all_queues > > > Oct 27 21:03:06 localhost kernel: before netif_carrier_off > > > Oct 27 21:03:06 localhost kernel: before ieee80211_sta > > > Oct 27 21:03:06 localhost kernel: inside sef_disconnected 1 > > > Oct 27 21:03:06 localhost kernel: before ieee8021_led_assoc > > > Oct 27 21:03:06 localhost kernel: before ieee8021_sta_send_apinfo > > > Oct 27 21:03:06 localhost kernel: before sta_info_unlink > > > Oct 27 21:03:06 localhost kernel: before rcu_read_unlock > > > Oct 27 21:03:06 localhost kernel: before sta_info_destroy > > > Oct 27 21:03:06 localhost kernel: sd 0:0:0:0: [sda] Starting disk > > > Oct 27 21:03:06 localhost kernel: ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300) > > > Oct 27 21:03:06 localhost kernel: ata1.00: ACPI cmd ef/90:03:00:00:00:a0 succeeded > > > Oct 27 21:03:06 localhost kernel: ata1.00: ACPI cmd f5/00:00:00:00:00:a0 filtered out > > > Oct 27 21:03:06 localhost kernel: ata1.00: ACPI cmd ef/90:03:00:00:00:a0 succeeded > > > Oct 27 21:03:06 localhost kernel: ata1.00: ACPI cmd f5/00:00:00:00:00:a0 filtered out > > > Oct 27 21:03:06 localhost kernel: ata1.00: configured for UDMA/100 > > > Oct 27 21:03:06 localhost kernel: ata1: exception Emask 0x10 SAct 0x0 SErr 0x0 action 0x9 t4 > > > Oct 27 21:03:06 localhost kernel: ata1: irq_stat 0x00000040, connection status changed > > > Oct 27 21:03:06 localhost kernel: ata1: hard resetting link > > > Oct 27 21:03:06 localhost kernel: ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300) > > > Oct 27 21:03:06 localhost kernel: ata1.00: ACPI cmd ef/90:03:00:00:00:a0 succeeded > > > Oct 27 21:03:06 localhost kernel: ata1.00: ACPI cmd f5/00:00:00:00:00:a0 filtered out > > > Oct 27 21:03:06 localhost kernel: ata1.00: ACPI cmd ef/90:03:00:00:00:a0 succeeded > > > Oct 27 21:03:06 localhost kernel: ata1.00: ACPI cmd f5/00:00:00:00:00:a0 filtered out > > > Oct 27 21:03:06 localhost kernel: ata1.00: configured for UDMA/100 > > > Oct 27 21:03:06 localhost kernel: ata1: EH complete > > > Oct 27 21:03:06 localhost kernel: sd 0:0:0:0: [sda] 488397168 512-byte hardware sectors: (250 GB/232 GiB) > > > Oct 27 21:03:06 localhost kernel: sd 0:0:0:0: [sda] Write Protect is off > > > Oct 27 21:03:06 localhost kernel: sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00 > > > Oct 27 21:03:06 localhost kernel: sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA > > > Oct 27 21:03:06 localhost kernel: sd 0:0:0:0: [sda] 488397168 512-byte hardware sectors: (250 GB/232 GiB) > > > Oct 27 21:03:06 localhost kernel: sd 0:0:0:0: [sda] Write Protect is off > > > Oct 27 21:03:06 localhost kernel: sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00 > > > Oct 27 21:03:06 localhost kernel: sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA > > > Oct 27 21:03:06 localhost kernel: Restarting tasks ... done. > > > Oct 27 21:03:07 localhost ifplugd(wlan0)[3182]: Link beat lost. > > > Oct 27 21:03:13 localhost ifplugd(wlan0)[3182]: Executing '/etc/ifplugd/ifplugd.action wlan0 down'. > > > Oct 27 21:06:20 localhost kernel: SysRq : Changing Loglevel > > > Oct 27 21:06:20 localhost kernel: Loglevel set to 4 > > > Oct 27 21:06:22 localhost kernel: SysRq : Changing Loglevel > > > Oct 27 21:06:22 localhost kernel: Loglevel set to 6 > > > Oct 27 21:06:32 localhost kernel: ffff80251670>] ? autoremove_wake_function+0x0/0x40 > > > Oct 27 21:06:32 localhost kernel: [<ffffffff8024e200>] ? worker_thread+0x0/0x110 > > > Oct 27 21:06:32 localhost kernel: [<ffffffff8025119d>] kthread+0x4d/0x80 > > > Oct 27 21:06:32 localhost kernel: [<ffffffff8020d1b9>] child_rip+0xa/0x11 > > > > > > and I have the complete trace also. I can try to put it somewhere in the web if it helps > > > (I already tried it, but I am new at the institute here and I could not set up my > > > webpage yet :-( > > > > Please attach it to http://bugzilla.kernel.org/show_bug.cgi?id=11845 . > > Done. Hmm, this looks like a result of playing with the magic SysRq. Did you try to press SysRq-something when the box became unresponsive? Rafael ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Suspend to RAM regression in 2.6.28-rc2 (bisected) 2008-10-27 21:07 ` Rafael J. Wysocki @ 2008-10-27 22:05 ` Carlos R. Mafra 0 siblings, 0 replies; 32+ messages in thread From: Carlos R. Mafra @ 2008-10-27 22:05 UTC (permalink / raw) To: Rafael J. Wysocki Cc: Johannes Berg, Soeren Sonnenburg, linux-kernel, tomas.winkler, John W. Linville, linux-wireless On Mon 27.Oct'08 at 22:07:42 +0100, Rafael J. Wysocki wrote: > On Monday, 27 of October 2008, Carlos R. Mafra wrote: > > On Mon 27.Oct'08 at 21:51:00 +0100, Rafael J. Wysocki wrote: > > > On Monday, 27 of October 2008, Carlos R. Mafra wrote: > > > > On Mon 27.Oct'08 at 20:13:43 +0100, Johannes Berg wrote: > > > > > On Mon, 2008-10-27 at 20:11 +0100, Carlos R. Mafra wrote: > > > > > > > > > > > > Do you get any kernel messages output? If you do, could you put messages > > > > > > > into each line of ieee80211_set_disassoc to see where it hangs? > > > > > > > > > > > > No messages appear, just a black screen. > > > > > > > > > > > > But I can use the SysRq keys, and when I umount the > > > > > > screen shows the message that umount succeed. I also tried SysRq+t but > > > > > > the messages appear to fast to read. > > > > > > > > > > Ok, but that means you _can_ get messages, it would help a lot if you > > > > > could put a few printks into the set_disassoc function before/after each > > > > > other function call, so we know where exactly it hangs. Pretty much all > > > > > of them could possibly hang if there is some sort of locking error > > > > > happening or anything relies on userspace to be running... > > > > > > > > Ok, I humbly tried to do that with the patch at the end of the email, > > > > but I did not appear to hang in this function tough. > > > > > > > > Somehow I could get some messages printed when it was a black screen > > > > before (I think it has to do with the debug level I set with SysRq...) > > > > and I could see all the printks I've put there. > > > > > > > > The good thing is that I could get the complete syslog of the boot until > > > > the it failed after suspending to RAM (in 2.6.28-rc2 with my debug patch > > > > below applied). The last messages before the laptop become unresponsive > > > > (except for the SysRq) were these ones: > > > > > > > > Oct 27 21:03:06 localhost kernel: Registered led device: iwl-phy0:radio > > > > Oct 27 21:03:06 localhost kernel: Registered led device: iwl-phy0:assoc > > > > Oct 27 21:03:06 localhost kernel: Registered led device: iwl-phy0:RX > > > > Oct 27 21:03:06 localhost kernel: Registered led device: iwl-phy0:TX > > > > Oct 27 21:03:06 localhost kernel: before rcu_read_lock > > > > Oct 27 21:03:06 localhost kernel: before netif_tx_stop_all_queues > > > > Oct 27 21:03:06 localhost kernel: before netif_carrier_off > > > > Oct 27 21:03:06 localhost kernel: before ieee80211_sta > > > > Oct 27 21:03:06 localhost kernel: inside sef_disconnected 1 > > > > Oct 27 21:03:06 localhost kernel: before ieee8021_led_assoc > > > > Oct 27 21:03:06 localhost kernel: before ieee8021_sta_send_apinfo > > > > Oct 27 21:03:06 localhost kernel: before sta_info_unlink > > > > Oct 27 21:03:06 localhost kernel: before rcu_read_unlock > > > > Oct 27 21:03:06 localhost kernel: before sta_info_destroy > > > > Oct 27 21:03:06 localhost kernel: sd 0:0:0:0: [sda] Starting disk > > > > Oct 27 21:03:06 localhost kernel: ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300) > > > > Oct 27 21:03:06 localhost kernel: ata1.00: ACPI cmd ef/90:03:00:00:00:a0 succeeded > > > > Oct 27 21:03:06 localhost kernel: ata1.00: ACPI cmd f5/00:00:00:00:00:a0 filtered out > > > > Oct 27 21:03:06 localhost kernel: ata1.00: ACPI cmd ef/90:03:00:00:00:a0 succeeded > > > > Oct 27 21:03:06 localhost kernel: ata1.00: ACPI cmd f5/00:00:00:00:00:a0 filtered out > > > > Oct 27 21:03:06 localhost kernel: ata1.00: configured for UDMA/100 > > > > Oct 27 21:03:06 localhost kernel: ata1: exception Emask 0x10 SAct 0x0 SErr 0x0 action 0x9 t4 > > > > Oct 27 21:03:06 localhost kernel: ata1: irq_stat 0x00000040, connection status changed > > > > Oct 27 21:03:06 localhost kernel: ata1: hard resetting link > > > > Oct 27 21:03:06 localhost kernel: ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300) > > > > Oct 27 21:03:06 localhost kernel: ata1.00: ACPI cmd ef/90:03:00:00:00:a0 succeeded > > > > Oct 27 21:03:06 localhost kernel: ata1.00: ACPI cmd f5/00:00:00:00:00:a0 filtered out > > > > Oct 27 21:03:06 localhost kernel: ata1.00: ACPI cmd ef/90:03:00:00:00:a0 succeeded > > > > Oct 27 21:03:06 localhost kernel: ata1.00: ACPI cmd f5/00:00:00:00:00:a0 filtered out > > > > Oct 27 21:03:06 localhost kernel: ata1.00: configured for UDMA/100 > > > > Oct 27 21:03:06 localhost kernel: ata1: EH complete > > > > Oct 27 21:03:06 localhost kernel: sd 0:0:0:0: [sda] 488397168 512-byte hardware sectors: (250 GB/232 GiB) > > > > Oct 27 21:03:06 localhost kernel: sd 0:0:0:0: [sda] Write Protect is off > > > > Oct 27 21:03:06 localhost kernel: sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00 > > > > Oct 27 21:03:06 localhost kernel: sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA > > > > Oct 27 21:03:06 localhost kernel: sd 0:0:0:0: [sda] 488397168 512-byte hardware sectors: (250 GB/232 GiB) > > > > Oct 27 21:03:06 localhost kernel: sd 0:0:0:0: [sda] Write Protect is off > > > > Oct 27 21:03:06 localhost kernel: sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00 > > > > Oct 27 21:03:06 localhost kernel: sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA > > > > Oct 27 21:03:06 localhost kernel: Restarting tasks ... done. > > > > Oct 27 21:03:07 localhost ifplugd(wlan0)[3182]: Link beat lost. > > > > Oct 27 21:03:13 localhost ifplugd(wlan0)[3182]: Executing '/etc/ifplugd/ifplugd.action wlan0 down'. > > > > Oct 27 21:06:20 localhost kernel: SysRq : Changing Loglevel > > > > Oct 27 21:06:20 localhost kernel: Loglevel set to 4 > > > > Oct 27 21:06:22 localhost kernel: SysRq : Changing Loglevel > > > > Oct 27 21:06:22 localhost kernel: Loglevel set to 6 > > > > Oct 27 21:06:32 localhost kernel: ffff80251670>] ? autoremove_wake_function+0x0/0x40 > > > > Oct 27 21:06:32 localhost kernel: [<ffffffff8024e200>] ? worker_thread+0x0/0x110 > > > > Oct 27 21:06:32 localhost kernel: [<ffffffff8025119d>] kthread+0x4d/0x80 > > > > Oct 27 21:06:32 localhost kernel: [<ffffffff8020d1b9>] child_rip+0xa/0x11 > > > > > > > > and I have the complete trace also. I can try to put it somewhere in the web if it helps > > > > (I already tried it, but I am new at the institute here and I could not set up my > > > > webpage yet :-( > > > > > > Please attach it to http://bugzilla.kernel.org/show_bug.cgi?id=11845 . > > > > Done. > > Hmm, this looks like a result of playing with the magic SysRq. Did you try to > press SysRq-something when the box became unresponsive? Yes, that long trace is the result of SysRq+t but I never managed to understand its result :-( This last hang was somewhat different because I could read the messages up to the point where the laptop was unresponsive (see the time in the log, I waited 3 minutes until I decided to hit SysRq+t). I am not sure why this happened, tough. All the other hangs were with a complete black screen. _But_ if I used some SysRq combination during the time the screen was black I could see the result in the screen. I know this because when the resume failed I always used to sync+umount+reboot using the SysRq, and those messages from the SysRq I could read ("Emergency Sync", "Emergency umount" or something like that). Ok, now I see I have another patch to test from Tomas...will try that. ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Suspend to RAM regression in 2.6.28-rc2 (bisected) 2008-10-27 20:51 ` Rafael J. Wysocki 2008-10-27 20:52 ` Carlos R. Mafra @ 2008-10-27 21:07 ` Tomas Winkler 2008-10-27 22:28 ` Carlos R. Mafra 2008-10-28 6:32 ` Christian Borntraeger 1 sibling, 2 replies; 32+ messages in thread From: Tomas Winkler @ 2008-10-27 21:07 UTC (permalink / raw) To: Rafael J. Wysocki Cc: Carlos R. Mafra, Johannes Berg, Soeren Sonnenburg, linux-kernel, John W. Linville, linux-wireless On Mon, Oct 27, 2008 at 10:51 PM, Rafael J. Wysocki <rjw@sisk.pl> wrote: > On Monday, 27 of October 2008, Carlos R. Mafra wrote: >> On Mon 27.Oct'08 at 20:13:43 +0100, Johannes Berg wrote: >> > On Mon, 2008-10-27 at 20:11 +0100, Carlos R. Mafra wrote: >> > >> > > > Do you get any kernel messages output? If you do, could you put messages >> > > > into each line of ieee80211_set_disassoc to see where it hangs? >> > > >> > > No messages appear, just a black screen. >> > > >> > > But I can use the SysRq keys, and when I umount the >> > > screen shows the message that umount succeed. I also tried SysRq+t but >> > > the messages appear to fast to read. >> > >> > Ok, but that means you _can_ get messages, it would help a lot if you >> > could put a few printks into the set_disassoc function before/after each >> > other function call, so we know where exactly it hangs. Pretty much all >> > of them could possibly hang if there is some sort of locking error >> > happening or anything relies on userspace to be running... >> >> Ok, I humbly tried to do that with the patch at the end of the email, >> but I did not appear to hang in this function tough. >> >> Somehow I could get some messages printed when it was a black screen >> before (I think it has to do with the debug level I set with SysRq...) >> and I could see all the printks I've put there. >> >> The good thing is that I could get the complete syslog of the boot until >> the it failed after suspending to RAM (in 2.6.28-rc2 with my debug patch >> below applied). The last messages before the laptop become unresponsive >> (except for the SysRq) were these ones: >> >> Oct 27 21:03:06 localhost kernel: Registered led device: iwl-phy0:radio >> Oct 27 21:03:06 localhost kernel: Registered led device: iwl-phy0:assoc >> Oct 27 21:03:06 localhost kernel: Registered led device: iwl-phy0:RX >> Oct 27 21:03:06 localhost kernel: Registered led device: iwl-phy0:TX >> Oct 27 21:03:06 localhost kernel: before rcu_read_lock >> Oct 27 21:03:06 localhost kernel: before netif_tx_stop_all_queues >> Oct 27 21:03:06 localhost kernel: before netif_carrier_off >> Oct 27 21:03:06 localhost kernel: before ieee80211_sta >> Oct 27 21:03:06 localhost kernel: inside sef_disconnected 1 >> Oct 27 21:03:06 localhost kernel: before ieee8021_led_assoc >> Oct 27 21:03:06 localhost kernel: before ieee8021_sta_send_apinfo >> Oct 27 21:03:06 localhost kernel: before sta_info_unlink >> Oct 27 21:03:06 localhost kernel: before rcu_read_unlock >> Oct 27 21:03:06 localhost kernel: before sta_info_destroy >> Oct 27 21:03:06 localhost kernel: sd 0:0:0:0: [sda] Starting disk >> Oct 27 21:03:06 localhost kernel: ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300) >> Oct 27 21:03:06 localhost kernel: ata1.00: ACPI cmd ef/90:03:00:00:00:a0 succeeded >> Oct 27 21:03:06 localhost kernel: ata1.00: ACPI cmd f5/00:00:00:00:00:a0 filtered out >> Oct 27 21:03:06 localhost kernel: ata1.00: ACPI cmd ef/90:03:00:00:00:a0 succeeded >> Oct 27 21:03:06 localhost kernel: ata1.00: ACPI cmd f5/00:00:00:00:00:a0 filtered out >> Oct 27 21:03:06 localhost kernel: ata1.00: configured for UDMA/100 >> Oct 27 21:03:06 localhost kernel: ata1: exception Emask 0x10 SAct 0x0 SErr 0x0 action 0x9 t4 >> Oct 27 21:03:06 localhost kernel: ata1: irq_stat 0x00000040, connection status changed >> Oct 27 21:03:06 localhost kernel: ata1: hard resetting link >> Oct 27 21:03:06 localhost kernel: ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300) >> Oct 27 21:03:06 localhost kernel: ata1.00: ACPI cmd ef/90:03:00:00:00:a0 succeeded >> Oct 27 21:03:06 localhost kernel: ata1.00: ACPI cmd f5/00:00:00:00:00:a0 filtered out >> Oct 27 21:03:06 localhost kernel: ata1.00: ACPI cmd ef/90:03:00:00:00:a0 succeeded >> Oct 27 21:03:06 localhost kernel: ata1.00: ACPI cmd f5/00:00:00:00:00:a0 filtered out >> Oct 27 21:03:06 localhost kernel: ata1.00: configured for UDMA/100 >> Oct 27 21:03:06 localhost kernel: ata1: EH complete >> Oct 27 21:03:06 localhost kernel: sd 0:0:0:0: [sda] 488397168 512-byte hardware sectors: (250 GB/232 GiB) >> Oct 27 21:03:06 localhost kernel: sd 0:0:0:0: [sda] Write Protect is off >> Oct 27 21:03:06 localhost kernel: sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00 >> Oct 27 21:03:06 localhost kernel: sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA >> Oct 27 21:03:06 localhost kernel: sd 0:0:0:0: [sda] 488397168 512-byte hardware sectors: (250 GB/232 GiB) >> Oct 27 21:03:06 localhost kernel: sd 0:0:0:0: [sda] Write Protect is off >> Oct 27 21:03:06 localhost kernel: sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00 >> Oct 27 21:03:06 localhost kernel: sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA >> Oct 27 21:03:06 localhost kernel: Restarting tasks ... done. >> Oct 27 21:03:07 localhost ifplugd(wlan0)[3182]: Link beat lost. >> Oct 27 21:03:13 localhost ifplugd(wlan0)[3182]: Executing '/etc/ifplugd/ifplugd.action wlan0 down'. >> Oct 27 21:06:20 localhost kernel: SysRq : Changing Loglevel >> Oct 27 21:06:20 localhost kernel: Loglevel set to 4 >> Oct 27 21:06:22 localhost kernel: SysRq : Changing Loglevel >> Oct 27 21:06:22 localhost kernel: Loglevel set to 6 >> Oct 27 21:06:32 localhost kernel: ffff80251670>] ? autoremove_wake_function+0x0/0x40 >> Oct 27 21:06:32 localhost kernel: [<ffffffff8024e200>] ? worker_thread+0x0/0x110 >> Oct 27 21:06:32 localhost kernel: [<ffffffff8025119d>] kthread+0x4d/0x80 >> Oct 27 21:06:32 localhost kernel: [<ffffffff8020d1b9>] child_rip+0xa/0x11 >> >> and I have the complete trace also. I can try to put it somewhere in the web if it helps >> (I already tried it, but I am new at the institute here and I could not set up my >> webpage yet :-( > > Please attach it to http://bugzilla.kernel.org/show_bug.cgi?id=11845 . Can someone try this one (it might be space broken I've just pasted that in) It's on top of 1d63e726408dfdb3e10ed8f00c383b30ebb333d3 (latest linux-2.6.git) diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c index 24a1aeb..321dbc8 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn.c @@ -2090,7 +2090,6 @@ static void iwl_alive_start(struct iwl_priv *priv) iwl4965_error_recovery(priv); iwl_power_update_mode(priv, 1); - ieee80211_notify_mac(priv->hw, IEEE80211_NOTIFY_RE_ASSOC); if (test_and_clear_bit(STATUS_MODE_PENDING, &priv->status)) iwl4965_set_mode(priv, priv->iw_mode); @@ -2342,6 +2341,7 @@ static void iwl_bg_alive_start(struct work_struct *data) mutex_lock(&priv->mutex); iwl_alive_start(priv); mutex_unlock(&priv->mutex); + ieee80211_notify_mac(priv->hw, IEEE80211_NOTIFY_RE_ASSOC); } static void iwl4965_bg_rf_kill(struct work_struct *work) Thanks Tomas ^ permalink raw reply related [flat|nested] 32+ messages in thread
* Re: Suspend to RAM regression in 2.6.28-rc2 (bisected) 2008-10-27 21:07 ` Tomas Winkler @ 2008-10-27 22:28 ` Carlos R. Mafra 2008-10-27 22:40 ` Tomas Winkler 2008-10-28 6:32 ` Christian Borntraeger 1 sibling, 1 reply; 32+ messages in thread From: Carlos R. Mafra @ 2008-10-27 22:28 UTC (permalink / raw) To: Tomas Winkler Cc: Rafael J. Wysocki, Johannes Berg, Soeren Sonnenburg, linux-kernel, John W. Linville, linux-wireless On Mon 27.Oct'08 at 23:07:00 +0200, Tomas Winkler wrote: >[...] > > Can someone try this one (it might be space broken I've just pasted > that in) It's on top of 1d63e726408dfdb3e10ed8f00c383b30ebb333d3 > (latest linux-2.6.git) Yes, this one also works for me (I applied it manually). > diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c > b/drivers/net/wireless/iwlwifi/iwl-agn.c > index 24a1aeb..321dbc8 100644 > --- a/drivers/net/wireless/iwlwifi/iwl-agn.c > +++ b/drivers/net/wireless/iwlwifi/iwl-agn.c > @@ -2090,7 +2090,6 @@ static void iwl_alive_start(struct iwl_priv *priv) > iwl4965_error_recovery(priv); > > iwl_power_update_mode(priv, 1); > - ieee80211_notify_mac(priv->hw, IEEE80211_NOTIFY_RE_ASSOC); > > if (test_and_clear_bit(STATUS_MODE_PENDING, &priv->status)) > iwl4965_set_mode(priv, priv->iw_mode); > @@ -2342,6 +2341,7 @@ static void iwl_bg_alive_start(struct work_struct *data) > mutex_lock(&priv->mutex); > iwl_alive_start(priv); > mutex_unlock(&priv->mutex); > + ieee80211_notify_mac(priv->hw, IEEE80211_NOTIFY_RE_ASSOC); > } > > static void iwl4965_bg_rf_kill(struct work_struct *work) > > > Thanks > Tomas ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Suspend to RAM regression in 2.6.28-rc2 (bisected) 2008-10-27 22:28 ` Carlos R. Mafra @ 2008-10-27 22:40 ` Tomas Winkler 2008-10-27 22:50 ` Rafael J. Wysocki 0 siblings, 1 reply; 32+ messages in thread From: Tomas Winkler @ 2008-10-27 22:40 UTC (permalink / raw) To: Carlos R. Mafra Cc: Rafael J. Wysocki, Johannes Berg, Soeren Sonnenburg, linux-kernel, John W. Linville, linux-wireless On Tue, Oct 28, 2008 at 12:28 AM, Carlos R. Mafra <crmafra2@gmail.com> wrote: > On Mon 27.Oct'08 at 23:07:00 +0200, Tomas Winkler wrote: >>[...] >> >> Can someone try this one (it might be space broken I've just pasted >> that in) It's on top of 1d63e726408dfdb3e10ed8f00c383b30ebb333d3 >> (latest linux-2.6.git) > > > Yes, this one also works for me (I applied it manually). Good, this was actually part of some older and bigger patch I wasn't aware it has this affect. It has some millage in iwl5000 branch. RFKIll went through some changes in the mainline so it wasn't merged yet. commit a91ad840c23a70bc0eabe239e178e0d979a6d44e Author: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Date: Mon Jun 30 17:48:26 2008 +0300 iwlwifi: bug fixes in RF-kill flows Tomas > > >> diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c >> b/drivers/net/wireless/iwlwifi/iwl-agn.c >> index 24a1aeb..321dbc8 100644 >> --- a/drivers/net/wireless/iwlwifi/iwl-agn.c >> +++ b/drivers/net/wireless/iwlwifi/iwl-agn.c >> @@ -2090,7 +2090,6 @@ static void iwl_alive_start(struct iwl_priv *priv) >> iwl4965_error_recovery(priv); >> >> iwl_power_update_mode(priv, 1); >> - ieee80211_notify_mac(priv->hw, IEEE80211_NOTIFY_RE_ASSOC); >> >> if (test_and_clear_bit(STATUS_MODE_PENDING, &priv->status)) >> iwl4965_set_mode(priv, priv->iw_mode); >> @@ -2342,6 +2341,7 @@ static void iwl_bg_alive_start(struct work_struct *data) >> mutex_lock(&priv->mutex); >> iwl_alive_start(priv); >> mutex_unlock(&priv->mutex); >> + ieee80211_notify_mac(priv->hw, IEEE80211_NOTIFY_RE_ASSOC); >> } >> >> static void iwl4965_bg_rf_kill(struct work_struct *work) >> >> >> Thanks >> Tomas > ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Suspend to RAM regression in 2.6.28-rc2 (bisected) 2008-10-27 22:40 ` Tomas Winkler @ 2008-10-27 22:50 ` Rafael J. Wysocki 2008-10-27 23:12 ` Tomas Winkler 0 siblings, 1 reply; 32+ messages in thread From: Rafael J. Wysocki @ 2008-10-27 22:50 UTC (permalink / raw) To: Tomas Winkler Cc: Carlos R. Mafra, Johannes Berg, Soeren Sonnenburg, linux-kernel, John W. Linville, linux-wireless On Monday, 27 of October 2008, Tomas Winkler wrote: > On Tue, Oct 28, 2008 at 12:28 AM, Carlos R. Mafra <crmafra2@gmail.com> wrote: > > On Mon 27.Oct'08 at 23:07:00 +0200, Tomas Winkler wrote: > >>[...] > >> > >> Can someone try this one (it might be space broken I've just pasted > >> that in) It's on top of 1d63e726408dfdb3e10ed8f00c383b30ebb333d3 > >> (latest linux-2.6.git) > > > > > > Yes, this one also works for me (I applied it manually). > Good, this was actually part of some older and bigger patch I wasn't > aware it has this affect. It has some millage in iwl5000 branch. > RFKIll went through some changes in the mainline so it wasn't merged yet. Are you going to push this patch upstream now? It's quite important to get this resume regression fixed ASAP. Thanks, Rafael ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Suspend to RAM regression in 2.6.28-rc2 (bisected) 2008-10-27 22:50 ` Rafael J. Wysocki @ 2008-10-27 23:12 ` Tomas Winkler 2008-10-27 23:23 ` Harvey Harrison 2008-10-28 15:30 ` Rafael J. Wysocki 0 siblings, 2 replies; 32+ messages in thread From: Tomas Winkler @ 2008-10-27 23:12 UTC (permalink / raw) To: Rafael J. Wysocki Cc: Carlos R. Mafra, Johannes Berg, Soeren Sonnenburg, linux-kernel, John W. Linville, linux-wireless h On Tue, Oct 28, 2008 at 12:50 AM, Rafael J. Wysocki <rjw@sisk.pl> wrote: > On Monday, 27 of October 2008, Tomas Winkler wrote: >> On Tue, Oct 28, 2008 at 12:28 AM, Carlos R. Mafra <crmafra2@gmail.com> wrote: >> > On Mon 27.Oct'08 at 23:07:00 +0200, Tomas Winkler wrote: >> >>[...] >> >> >> >> Can someone try this one (it might be space broken I've just pasted >> >> that in) It's on top of 1d63e726408dfdb3e10ed8f00c383b30ebb333d3 >> >> (latest linux-2.6.git) >> > >> > >> > Yes, this one also works for me (I applied it manually). >> Good, this was actually part of some older and bigger patch I wasn't >> aware it has this affect. It has some millage in iwl5000 branch. >> RFKIll went through some changes in the mainline so it wasn't merged yet. > > Are you going to push this patch upstream now? It's quite important to get > this resume regression fixed ASAP. Definitely I would post it to wireless and stable. I would like to hear from Harvey, though if this is somehow related to b43 as well. I will it give some more testing tomorrow morning I don't have any HW right now and need to suspend to bed :) Again, sorry for troubles. Tomas ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Suspend to RAM regression in 2.6.28-rc2 (bisected) 2008-10-27 23:12 ` Tomas Winkler @ 2008-10-27 23:23 ` Harvey Harrison 2008-10-28 15:30 ` Rafael J. Wysocki 1 sibling, 0 replies; 32+ messages in thread From: Harvey Harrison @ 2008-10-27 23:23 UTC (permalink / raw) To: Tomas Winkler Cc: Rafael J. Wysocki, Carlos R. Mafra, Johannes Berg, Soeren Sonnenburg, linux-kernel, John W. Linville, linux-wireless On Tue, 2008-10-28 at 01:12 +0200, Tomas Winkler wrote: > h > > On Tue, Oct 28, 2008 at 12:50 AM, Rafael J. Wysocki <rjw@sisk.pl> wrote: > > On Monday, 27 of October 2008, Tomas Winkler wrote: > >> On Tue, Oct 28, 2008 at 12:28 AM, Carlos R. Mafra <crmafra2@gmail.com> wrote: > >> > On Mon 27.Oct'08 at 23:07:00 +0200, Tomas Winkler wrote: > >> >>[...] > >> >> > >> >> Can someone try this one (it might be space broken I've just pasted > >> >> that in) It's on top of 1d63e726408dfdb3e10ed8f00c383b30ebb333d3 > >> >> (latest linux-2.6.git) > >> > > >> > > >> > Yes, this one also works for me (I applied it manually). > >> Good, this was actually part of some older and bigger patch I wasn't > >> aware it has this affect. It has some millage in iwl5000 branch. > >> RFKIll went through some changes in the mainline so it wasn't merged yet. > > > > Are you going to push this patch upstream now? It's quite important to get > > this resume regression fixed ASAP. > > Definitely I would post it to wireless and stable. I would like to > hear from Harvey, though if this is somehow related to b43 as well. I > will it give some more testing tomorrow morning I don't have any HW > right now and need to suspend to bed :) Go ahead and send it, I retried with linus HEAD and suspend/resume is fine here, not sure why it was failing, although it does seem to take longer to resume that 2.6.27, but that's purely subjective, no numbers to back that up. Harvey ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Suspend to RAM regression in 2.6.28-rc2 (bisected) 2008-10-27 23:12 ` Tomas Winkler 2008-10-27 23:23 ` Harvey Harrison @ 2008-10-28 15:30 ` Rafael J. Wysocki 2008-10-28 16:12 ` Tomas Winkler 1 sibling, 1 reply; 32+ messages in thread From: Rafael J. Wysocki @ 2008-10-28 15:30 UTC (permalink / raw) To: Tomas Winkler Cc: Carlos R. Mafra, Johannes Berg, Soeren Sonnenburg, linux-kernel, John W. Linville, linux-wireless On Tuesday, 28 of October 2008, Tomas Winkler wrote: > h > > On Tue, Oct 28, 2008 at 12:50 AM, Rafael J. Wysocki <rjw@sisk.pl> wrote: > > On Monday, 27 of October 2008, Tomas Winkler wrote: > >> On Tue, Oct 28, 2008 at 12:28 AM, Carlos R. Mafra <crmafra2@gmail.com> wrote: > >> > On Mon 27.Oct'08 at 23:07:00 +0200, Tomas Winkler wrote: > >> >>[...] > >> >> > >> >> Can someone try this one (it might be space broken I've just pasted > >> >> that in) It's on top of 1d63e726408dfdb3e10ed8f00c383b30ebb333d3 > >> >> (latest linux-2.6.git) > >> > > >> > > >> > Yes, this one also works for me (I applied it manually). > >> Good, this was actually part of some older and bigger patch I wasn't > >> aware it has this affect. It has some millage in iwl5000 branch. > >> RFKIll went through some changes in the mainline so it wasn't merged yet. > > > > Are you going to push this patch upstream now? It's quite important to get > > this resume regression fixed ASAP. > > Definitely I would post it to wireless and stable. Please send a CC to me too. Thanks, Rafael ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Suspend to RAM regression in 2.6.28-rc2 (bisected) 2008-10-28 15:30 ` Rafael J. Wysocki @ 2008-10-28 16:12 ` Tomas Winkler 0 siblings, 0 replies; 32+ messages in thread From: Tomas Winkler @ 2008-10-28 16:12 UTC (permalink / raw) To: Rafael J. Wysocki Cc: Carlos R. Mafra, Johannes Berg, Soeren Sonnenburg, linux-kernel, John W. Linville, linux-wireless On Tue, Oct 28, 2008 at 5:30 PM, Rafael J. Wysocki <rjw@sisk.pl> wrote: > On Tuesday, 28 of October 2008, Tomas Winkler wrote: >> h >> >> On Tue, Oct 28, 2008 at 12:50 AM, Rafael J. Wysocki <rjw@sisk.pl> wrote: >> > On Monday, 27 of October 2008, Tomas Winkler wrote: >> >> On Tue, Oct 28, 2008 at 12:28 AM, Carlos R. Mafra <crmafra2@gmail.com> wrote: >> >> > On Mon 27.Oct'08 at 23:07:00 +0200, Tomas Winkler wrote: >> >> >>[...] >> >> >> >> >> >> Can someone try this one (it might be space broken I've just pasted >> >> >> that in) It's on top of 1d63e726408dfdb3e10ed8f00c383b30ebb333d3 >> >> >> (latest linux-2.6.git) >> >> > >> >> > >> >> > Yes, this one also works for me (I applied it manually). >> >> Good, this was actually part of some older and bigger patch I wasn't >> >> aware it has this affect. It has some millage in iwl5000 branch. >> >> RFKIll went through some changes in the mainline so it wasn't merged yet. >> > >> > Are you going to push this patch upstream now? It's quite important to get >> > this resume regression fixed ASAP. >> >> Definitely I would post it to wireless and stable. > > Please send a CC to me too. Hmm. It looks like I've misspelled your email when I've sent the patch. Will send it again Tomas ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Suspend to RAM regression in 2.6.28-rc2 (bisected) 2008-10-27 21:07 ` Tomas Winkler 2008-10-27 22:28 ` Carlos R. Mafra @ 2008-10-28 6:32 ` Christian Borntraeger 1 sibling, 0 replies; 32+ messages in thread From: Christian Borntraeger @ 2008-10-28 6:32 UTC (permalink / raw) To: Tomas Winkler Cc: Rafael J. Wysocki, Carlos R. Mafra, Johannes Berg, Soeren Sonnenburg, linux-kernel, John W. Linville, linux-wireless Am Montag, 27. Oktober 2008 schrieb Tomas Winkler: > Can someone try this one (it might be space broken I've just pasted > that in) It's on top of 1d63e726408dfdb3e10ed8f00c383b30ebb333d3 > (latest linux-2.6.git) > > diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c > b/drivers/net/wireless/iwlwifi/iwl-agn.c > index 24a1aeb..321dbc8 100644 > --- a/drivers/net/wireless/iwlwifi/iwl-agn.c > +++ b/drivers/net/wireless/iwlwifi/iwl-agn.c > @@ -2090,7 +2090,6 @@ static void iwl_alive_start(struct iwl_priv *priv) > iwl4965_error_recovery(priv); > > iwl_power_update_mode(priv, 1); > - ieee80211_notify_mac(priv->hw, IEEE80211_NOTIFY_RE_ASSOC); > > if (test_and_clear_bit(STATUS_MODE_PENDING, &priv->status)) > iwl4965_set_mode(priv, priv->iw_mode); > @@ -2342,6 +2341,7 @@ static void iwl_bg_alive_start(struct work_struct *data) > mutex_lock(&priv->mutex); > iwl_alive_start(priv); > mutex_unlock(&priv->mutex); > + ieee80211_notify_mac(priv->hw, IEEE80211_NOTIFY_RE_ASSOC); > } > > static void iwl4965_bg_rf_kill(struct work_struct *work) This one works on my T61p. ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Suspend to RAM regression in 2.6.28-rc2 (bisected) 2008-10-27 19:00 ` Carlos R. Mafra 2008-10-27 19:03 ` Johannes Berg @ 2008-10-27 19:06 ` Jens Axboe 2008-10-27 19:09 ` Johannes Berg 1 sibling, 1 reply; 32+ messages in thread From: Jens Axboe @ 2008-10-27 19:06 UTC (permalink / raw) To: Carlos R. Mafra Cc: Johannes Berg, Soeren Sonnenburg, Rafael J. Wysocki, linux-kernel, tomas.winkler, John W. Linville, linux-wireless On Mon, Oct 27 2008, Carlos R. Mafra wrote: > On Mon 27.Oct'08 at 19:44:42 +0100, Johannes Berg wrote: > > On Mon, 2008-10-27 at 19:31 +0100, Johannes Berg wrote: > > > On Mon, 2008-10-27 at 19:07 +0100, Soeren Sonnenburg wrote: > > > > > > > > Johannes, can you pls have a look? > > > > > > I did, and I have no idea. Makes no sense at all. > > > > The only thing I can remotely think of is that iwlwifi doesn't like > > being called back from within the call that it did to mac80211, which > > obviously happens here. But I have no idea, the code as it stands is > > correct, just the interaction with iwlwifi's resume seems to be broken. > > > > Try this patch instead: > > Yep, with this patch it also works! Confirmed here as well, my x60 is happy again. -- Jens Axboe ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Suspend to RAM regression in 2.6.28-rc2 (bisected) 2008-10-27 19:06 ` Jens Axboe @ 2008-10-27 19:09 ` Johannes Berg 2008-10-27 19:13 ` Jens Axboe 0 siblings, 1 reply; 32+ messages in thread From: Johannes Berg @ 2008-10-27 19:09 UTC (permalink / raw) To: Jens Axboe Cc: Carlos R. Mafra, Soeren Sonnenburg, Rafael J. Wysocki, linux-kernel, tomas.winkler, John W. Linville, linux-wireless [-- Attachment #1: Type: text/plain, Size: 1080 bytes --] On Mon, 2008-10-27 at 20:06 +0100, Jens Axboe wrote: > On Mon, Oct 27 2008, Carlos R. Mafra wrote: > > On Mon 27.Oct'08 at 19:44:42 +0100, Johannes Berg wrote: > > > On Mon, 2008-10-27 at 19:31 +0100, Johannes Berg wrote: > > > > On Mon, 2008-10-27 at 19:07 +0100, Soeren Sonnenburg wrote: > > > > > > > > > > Johannes, can you pls have a look? > > > > > > > > I did, and I have no idea. Makes no sense at all. > > > > > > The only thing I can remotely think of is that iwlwifi doesn't like > > > being called back from within the call that it did to mac80211, which > > > obviously happens here. But I have no idea, the code as it stands is > > > correct, just the interaction with iwlwifi's resume seems to be broken. > > > > > > Try this patch instead: > > > > Yep, with this patch it also works! > > Confirmed here as well, my x60 is happy again. Thanks. Another alternative I could think of is deferring the notifications to a work struct, but I'd rather see that in the driver I think, not sure though, could be argued either way. johannes [-- Attachment #2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 836 bytes --] ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Suspend to RAM regression in 2.6.28-rc2 (bisected) 2008-10-27 19:09 ` Johannes Berg @ 2008-10-27 19:13 ` Jens Axboe 2008-10-27 19:16 ` Johannes Berg 0 siblings, 1 reply; 32+ messages in thread From: Jens Axboe @ 2008-10-27 19:13 UTC (permalink / raw) To: Johannes Berg Cc: Carlos R. Mafra, Soeren Sonnenburg, Rafael J. Wysocki, linux-kernel, tomas.winkler, John W. Linville, linux-wireless On Mon, Oct 27 2008, Johannes Berg wrote: > On Mon, 2008-10-27 at 20:06 +0100, Jens Axboe wrote: > > On Mon, Oct 27 2008, Carlos R. Mafra wrote: > > > On Mon 27.Oct'08 at 19:44:42 +0100, Johannes Berg wrote: > > > > On Mon, 2008-10-27 at 19:31 +0100, Johannes Berg wrote: > > > > > On Mon, 2008-10-27 at 19:07 +0100, Soeren Sonnenburg wrote: > > > > > > > > > > > > Johannes, can you pls have a look? > > > > > > > > > > I did, and I have no idea. Makes no sense at all. > > > > > > > > The only thing I can remotely think of is that iwlwifi doesn't like > > > > being called back from within the call that it did to mac80211, which > > > > obviously happens here. But I have no idea, the code as it stands is > > > > correct, just the interaction with iwlwifi's resume seems to be broken. > > > > > > > > Try this patch instead: > > > > > > Yep, with this patch it also works! > > > > Confirmed here as well, my x60 is happy again. > > Thanks. Another alternative I could think of is deferring the > notifications to a work struct, but I'd rather see that in the driver I > think, not sure though, could be argued either way. If you want something else tested, just let me know. I don't care a whole lot about how it gets fixed, as long as it does :-). I use STR heavily, so it's quite a burden to have it broken. -- Jens Axboe ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Suspend to RAM regression in 2.6.28-rc2 (bisected) 2008-10-27 19:13 ` Jens Axboe @ 2008-10-27 19:16 ` Johannes Berg 2008-10-27 19:20 ` Jens Axboe 0 siblings, 1 reply; 32+ messages in thread From: Johannes Berg @ 2008-10-27 19:16 UTC (permalink / raw) To: Jens Axboe Cc: Carlos R. Mafra, Soeren Sonnenburg, Rafael J. Wysocki, linux-kernel, tomas.winkler, John W. Linville, linux-wireless [-- Attachment #1: Type: text/plain, Size: 515 bytes --] On Mon, 2008-10-27 at 20:13 +0100, Jens Axboe wrote: > If you want something else tested, just let me know. I don't care a > whole lot about how it gets fixed, as long as it does :-). I use STR > heavily, so it's quite a burden to have it broken. I don't really know. Like I said to Carlos, figuring out which of the functions called from set_disassoc hangs would be useful, but you'd probably want to coordinate with him so you don't both do it. Or if you both do, it'd confirm it twice ;) johannes [-- Attachment #2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 836 bytes --] ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Suspend to RAM regression in 2.6.28-rc2 (bisected) 2008-10-27 19:16 ` Johannes Berg @ 2008-10-27 19:20 ` Jens Axboe 0 siblings, 0 replies; 32+ messages in thread From: Jens Axboe @ 2008-10-27 19:20 UTC (permalink / raw) To: Johannes Berg Cc: Carlos R. Mafra, Soeren Sonnenburg, Rafael J. Wysocki, linux-kernel, tomas.winkler, John W. Linville, linux-wireless On Mon, Oct 27 2008, Johannes Berg wrote: > On Mon, 2008-10-27 at 20:13 +0100, Jens Axboe wrote: > > > If you want something else tested, just let me know. I don't care a > > whole lot about how it gets fixed, as long as it does :-). I use STR > > heavily, so it's quite a burden to have it broken. > > I don't really know. Like I said to Carlos, figuring out which of the > functions called from set_disassoc hangs would be useful, but you'd > probably want to coordinate with him so you don't both do it. Or if you > both do, it'd confirm it twice ;) OK, I can try and do that tomorrow when I'm at the desktop again, I have the dock there serial console. -- Jens Axboe ^ permalink raw reply [flat|nested] 32+ messages in thread
[parent not found: <200810271839.39236.rjw@sisk.pl>]
* Re: Suspend to RAM regression in 2.6.28-rc2 (bisected) [not found] ` <200810271839.39236.rjw@sisk.pl> @ 2008-10-27 17:57 ` Carlos R. Mafra 2008-10-27 18:00 ` John W. Linville 2008-10-27 18:16 ` Rafael J. Wysocki 0 siblings, 2 replies; 32+ messages in thread From: Carlos R. Mafra @ 2008-10-27 17:57 UTC (permalink / raw) To: Rafael J. Wysocki; +Cc: linux-kernel, tomas.winkler, kernel, linux-wireless On Mon 27.Oct'08 at 18:39:38 +0100, Rafael J. Wysocki wrote: > On Monday, 27 of October 2008, Carlos R. Mafra wrote: > > Hi, > > > > So I managed to bisect my suspend to RAM regression in 2.6.27-rc2 > > to commit 3b7ee69d0caefbdb85a606a98bff841b8c63b97e ("mac80211: disassociate > > when moving to new BSS") by Tomas Winkler (Cc:-ed). > > > > Unfortunately it doesn't revert cleanly so I can't double check it. > > Why are you saying it doesn't revert cleanly? For me it does revert without > rejects from 2.6.28-rc2. I get this [mafra@localhost:linux-2.6]$ git checkout v2.6.28-rc2 -b s2ram Switched to a new branch "s2ram" [mafra@localhost:linux-2.6]$ git revert 3b7ee69d warning: too many files, skipping inexact rename detection Auto-merged net/mac80211/mlme.c CONFLICT (content): Merge conflict in net/mac80211/mlme.c Automatic revert failed. After resolving the conflicts, mark the corrected paths with 'git add <paths>' or 'git rm <paths>' and commit the result. I don't know what is happening here :-( ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Suspend to RAM regression in 2.6.28-rc2 (bisected) 2008-10-27 17:57 ` Carlos R. Mafra @ 2008-10-27 18:00 ` John W. Linville 2008-10-27 18:16 ` Rafael J. Wysocki 1 sibling, 0 replies; 32+ messages in thread From: John W. Linville @ 2008-10-27 18:00 UTC (permalink / raw) To: Carlos R. Mafra Cc: Rafael J. Wysocki, linux-kernel, tomas.winkler, kernel, linux-wireless On Mon, Oct 27, 2008 at 06:57:19PM +0100, Carlos R. Mafra wrote: > On Mon 27.Oct'08 at 18:39:38 +0100, Rafael J. Wysocki wrote: > > On Monday, 27 of October 2008, Carlos R. Mafra wrote: > > > Hi, > > > > > > So I managed to bisect my suspend to RAM regression in 2.6.27-rc2 > > > to commit 3b7ee69d0caefbdb85a606a98bff841b8c63b97e ("mac80211: disassociate > > > when moving to new BSS") by Tomas Winkler (Cc:-ed). > > > > > > Unfortunately it doesn't revert cleanly so I can't double check it. > > > > Why are you saying it doesn't revert cleanly? For me it does revert without > > rejects from 2.6.28-rc2. > > I get this > > [mafra@localhost:linux-2.6]$ git checkout v2.6.28-rc2 -b s2ram > Switched to a new branch "s2ram" > [mafra@localhost:linux-2.6]$ git revert 3b7ee69d > warning: too many files, skipping inexact rename detection > Auto-merged net/mac80211/mlme.c > CONFLICT (content): Merge conflict in net/mac80211/mlme.c > Automatic revert failed. After resolving the conflicts, > mark the corrected paths with 'git add <paths>' or 'git rm <paths>' and commit the result. > > I don't know what is happening here :-( That conflict is easy to resolve. Just delete everything between "<<<<" and ">>>>" (including those lines). Hth! John P.S. I don't see any obvious reason why that should affect X on resume -- maybe the iwlwifi guys have some ideas. John -- John W. Linville Linux should be at the core linville@tuxdriver.com of your literate lifestyle. ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Suspend to RAM regression in 2.6.28-rc2 (bisected) 2008-10-27 17:57 ` Carlos R. Mafra 2008-10-27 18:00 ` John W. Linville @ 2008-10-27 18:16 ` Rafael J. Wysocki 2008-10-27 18:36 ` Carlos R. Mafra 1 sibling, 1 reply; 32+ messages in thread From: Rafael J. Wysocki @ 2008-10-27 18:16 UTC (permalink / raw) To: Carlos R. Mafra; +Cc: linux-kernel, tomas.winkler, kernel, linux-wireless On Monday, 27 of October 2008, Carlos R. Mafra wrote: > On Mon 27.Oct'08 at 18:39:38 +0100, Rafael J. Wysocki wrote: > > On Monday, 27 of October 2008, Carlos R. Mafra wrote: > > > Hi, > > > > > > So I managed to bisect my suspend to RAM regression in 2.6.27-rc2 > > > to commit 3b7ee69d0caefbdb85a606a98bff841b8c63b97e ("mac80211: disassociate > > > when moving to new BSS") by Tomas Winkler (Cc:-ed). > > > > > > Unfortunately it doesn't revert cleanly so I can't double check it. > > > > Why are you saying it doesn't revert cleanly? For me it does revert without > > rejects from 2.6.28-rc2. > > I get this > > [mafra@localhost:linux-2.6]$ git checkout v2.6.28-rc2 -b s2ram > Switched to a new branch "s2ram" > [mafra@localhost:linux-2.6]$ git revert 3b7ee69d > warning: too many files, skipping inexact rename detection > Auto-merged net/mac80211/mlme.c > CONFLICT (content): Merge conflict in net/mac80211/mlme.c > Automatic revert failed. After resolving the conflicts, > mark the corrected paths with 'git add <paths>' or 'git rm <paths>' and commit the result. > > I don't know what is happening here :-( If you have quilt installed, you can do: $ git show 3b7ee69d > suspicious.patch $ quilt import -R suspicious.patch $ quilt push (that should work without rejects) and build the kernel. Thanks, Rafael ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Suspend to RAM regression in 2.6.28-rc2 (bisected) 2008-10-27 18:16 ` Rafael J. Wysocki @ 2008-10-27 18:36 ` Carlos R. Mafra 2008-10-27 18:51 ` Carlos R. Mafra 0 siblings, 1 reply; 32+ messages in thread From: Carlos R. Mafra @ 2008-10-27 18:36 UTC (permalink / raw) To: Rafael J. Wysocki; +Cc: linux-kernel, tomas.winkler, kernel, linux-wireless On Mon 27.Oct'08 at 19:16:37 +0100, Rafael J. Wysocki wrote: > On Monday, 27 of October 2008, Carlos R. Mafra wrote: > > On Mon 27.Oct'08 at 18:39:38 +0100, Rafael J. Wysocki wrote: > > > On Monday, 27 of October 2008, Carlos R. Mafra wrote: > > > > Hi, > > > > > > > > So I managed to bisect my suspend to RAM regression in 2.6.27-rc2 > > > > to commit 3b7ee69d0caefbdb85a606a98bff841b8c63b97e ("mac80211: disassociate > > > > when moving to new BSS") by Tomas Winkler (Cc:-ed). > > > > > > > > Unfortunately it doesn't revert cleanly so I can't double check it. > > > > > > Why are you saying it doesn't revert cleanly? For me it does revert without > > > rejects from 2.6.28-rc2. > > > > I get this > > > > [mafra@localhost:linux-2.6]$ git checkout v2.6.28-rc2 -b s2ram > > Switched to a new branch "s2ram" > > [mafra@localhost:linux-2.6]$ git revert 3b7ee69d > > warning: too many files, skipping inexact rename detection > > Auto-merged net/mac80211/mlme.c > > CONFLICT (content): Merge conflict in net/mac80211/mlme.c > > Automatic revert failed. After resolving the conflicts, > > mark the corrected paths with 'git add <paths>' or 'git rm <paths>' and commit the result. > > > > I don't know what is happening here :-( > > If you have quilt installed, you can do: > > $ git show 3b7ee69d > suspicious.patch > $ quilt import -R suspicious.patch > $ quilt push > > (that should work without rejects) and build the kernel. I wanted to do it with git, but gave up after some time :-( So I finally read the commit in question 3b7ee69d0caefbdb85a606a98bff841b8c63b97e and applied the patch below, which reverts it up to the whitespace fixes. And reverting it really made my brand new 2.6.28-rc2-something work again, regarding suspend to RAM. So consider it confirmed that this commit is guilty here. --- net/mac80211/mlme.c | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 87665d7..1751ebb 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c @@ -2396,10 +2396,6 @@ void ieee80211_sta_req_auth(struct ieee80211_sub_if_data *sdata, (ifsta->flags & (IEEE80211_STA_SSID_SET | IEEE80211_STA_AUTO_SSID_SEL))) { - if (ifsta->state == IEEE80211_STA_MLME_ASSOCIATED) - ieee80211_set_disassoc(sdata, ifsta, true, true, - WLAN_REASON_DEAUTH_LEAVING); - set_bit(IEEE80211_STA_REQ_AUTH, &ifsta->request); queue_work(local->hw.workqueue, &ifsta->work); } -- 1.6.0.rc2 ^ permalink raw reply related [flat|nested] 32+ messages in thread
* Re: Suspend to RAM regression in 2.6.28-rc2 (bisected) 2008-10-27 18:36 ` Carlos R. Mafra @ 2008-10-27 18:51 ` Carlos R. Mafra 0 siblings, 0 replies; 32+ messages in thread From: Carlos R. Mafra @ 2008-10-27 18:51 UTC (permalink / raw) To: Rafael J. Wysocki; +Cc: linux-kernel, tomas.winkler, kernel, linux-wireless On Mon 27.Oct'08 at 19:36:48 +0100, Carlos R. Mafra wrote: > On Mon 27.Oct'08 at 19:16:37 +0100, Rafael J. Wysocki wrote: > > On Monday, 27 of October 2008, Carlos R. Mafra wrote: > > > On Mon 27.Oct'08 at 18:39:38 +0100, Rafael J. Wysocki wrote: > > > > On Monday, 27 of October 2008, Carlos R. Mafra wrote: > > > > > Hi, > > > > > > > > > > So I managed to bisect my suspend to RAM regression in 2.6.27-rc2 > > > > > to commit 3b7ee69d0caefbdb85a606a98bff841b8c63b97e ("mac80211: disassociate > > > > > when moving to new BSS") by Tomas Winkler (Cc:-ed). > > > > > > > > > > Unfortunately it doesn't revert cleanly so I can't double check it. > > > > > > > > Why are you saying it doesn't revert cleanly? For me it does revert without > > > > rejects from 2.6.28-rc2. > > > > > > I get this > > > > > > [mafra@localhost:linux-2.6]$ git checkout v2.6.28-rc2 -b s2ram > > > Switched to a new branch "s2ram" > > > [mafra@localhost:linux-2.6]$ git revert 3b7ee69d > > > warning: too many files, skipping inexact rename detection > > > Auto-merged net/mac80211/mlme.c > > > CONFLICT (content): Merge conflict in net/mac80211/mlme.c > > > Automatic revert failed. After resolving the conflicts, > > > mark the corrected paths with 'git add <paths>' or 'git rm <paths>' and commit the result. > > > > > > I don't know what is happening here :-( > > > > If you have quilt installed, you can do: > > > > $ git show 3b7ee69d > suspicious.patch > > $ quilt import -R suspicious.patch > > $ quilt push > > > > (that should work without rejects) and build the kernel. > > I wanted to do it with git, but gave up after some time :-( > > So I finally read the commit in > question 3b7ee69d0caefbdb85a606a98bff841b8c63b97e and applied > the patch below, which reverts it up to the whitespace fixes. > > And reverting it really made my brand new 2.6.28-rc2-something > work again, regarding suspend to RAM. > > So consider it confirmed that this commit is guilty here. I double checked it. Linus' tree v2.6.28-rc2-58-g1d63e72 does not work, whereas with the patch below applied makes suspend to RAM work again. > --- > net/mac80211/mlme.c | 4 ---- > 1 files changed, 0 insertions(+), 4 deletions(-) > > diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c > index 87665d7..1751ebb 100644 > --- a/net/mac80211/mlme.c > +++ b/net/mac80211/mlme.c > @@ -2396,10 +2396,6 @@ void ieee80211_sta_req_auth(struct ieee80211_sub_if_data *sdata, > (ifsta->flags & (IEEE80211_STA_SSID_SET | > IEEE80211_STA_AUTO_SSID_SEL))) { > > - if (ifsta->state == IEEE80211_STA_MLME_ASSOCIATED) > - ieee80211_set_disassoc(sdata, ifsta, true, true, > - WLAN_REASON_DEAUTH_LEAVING); > - > set_bit(IEEE80211_STA_REQ_AUTH, &ifsta->request); > queue_work(local->hw.workqueue, &ifsta->work); > } > -- > 1.6.0.rc2 > > > -- > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > Please read the FAQ at http://www.tux.org/lkml/ ^ permalink raw reply [flat|nested] 32+ messages in thread
end of thread, other threads:[~2008-10-28 16:12 UTC | newest]
Thread overview: 32+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20081027162054.GA4015@localhost.aei.mpg.de>
2008-10-27 17:32 ` Suspend to RAM regression in 2.6.28-rc2 (bisected) Rafael J. Wysocki
2008-10-27 18:07 ` Soeren Sonnenburg
2008-10-27 18:31 ` Johannes Berg
2008-10-27 18:44 ` Johannes Berg
2008-10-27 19:00 ` Carlos R. Mafra
2008-10-27 19:03 ` Johannes Berg
2008-10-27 19:11 ` Carlos R. Mafra
2008-10-27 19:13 ` Johannes Berg
2008-10-27 20:39 ` Carlos R. Mafra
2008-10-27 20:51 ` Rafael J. Wysocki
2008-10-27 20:52 ` Carlos R. Mafra
2008-10-27 21:07 ` Rafael J. Wysocki
2008-10-27 22:05 ` Carlos R. Mafra
2008-10-27 21:07 ` Tomas Winkler
2008-10-27 22:28 ` Carlos R. Mafra
2008-10-27 22:40 ` Tomas Winkler
2008-10-27 22:50 ` Rafael J. Wysocki
2008-10-27 23:12 ` Tomas Winkler
2008-10-27 23:23 ` Harvey Harrison
2008-10-28 15:30 ` Rafael J. Wysocki
2008-10-28 16:12 ` Tomas Winkler
2008-10-28 6:32 ` Christian Borntraeger
2008-10-27 19:06 ` Jens Axboe
2008-10-27 19:09 ` Johannes Berg
2008-10-27 19:13 ` Jens Axboe
2008-10-27 19:16 ` Johannes Berg
2008-10-27 19:20 ` Jens Axboe
[not found] ` <200810271839.39236.rjw@sisk.pl>
2008-10-27 17:57 ` Carlos R. Mafra
2008-10-27 18:00 ` John W. Linville
2008-10-27 18:16 ` Rafael J. Wysocki
2008-10-27 18:36 ` Carlos R. Mafra
2008-10-27 18:51 ` Carlos R. Mafra
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).