Re: Suspend to RAM regression in 2.6.28-rc2 (bisected)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Carlos R. Mafra
Date: Monday, October 27, 2008 - 1:39 pm

On Mon 27.Oct'08 at 20:13:43 +0100, Johannes Berg wrote:

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);
 }
 




--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Suspend to RAM regression in 2.6.28-rc2 (bisected), Carlos R. Mafra, (Mon Oct 27, 9:20 am)
Re: Suspend to RAM regression in 2.6.28-rc2 (bisected), Rafael J. Wysocki, (Mon Oct 27, 10:32 am)
Re: Suspend to RAM regression in 2.6.28-rc2 (bisected), Rafael J. Wysocki, (Mon Oct 27, 10:39 am)
Re: Suspend to RAM regression in 2.6.28-rc2 (bisected), Carlos R. Mafra, (Mon Oct 27, 10:57 am)
Re: Suspend to RAM regression in 2.6.28-rc2 (bisected), John W. Linville, (Mon Oct 27, 11:00 am)
Re: Suspend to RAM regression in 2.6.28-rc2 (bisected), Soeren Sonnenburg, (Mon Oct 27, 11:07 am)
Re: Suspend to RAM regression in 2.6.28-rc2 (bisected), Rafael J. Wysocki, (Mon Oct 27, 11:16 am)
Re: Suspend to RAM regression in 2.6.28-rc2 (bisected), Johannes Berg, (Mon Oct 27, 11:31 am)
Re: Suspend to RAM regression in 2.6.28-rc2 (bisected), Carlos R. Mafra, (Mon Oct 27, 11:36 am)
Re: Suspend to RAM regression in 2.6.28-rc2 (bisected), Johannes Berg, (Mon Oct 27, 11:44 am)
Re: Suspend to RAM regression in 2.6.28-rc2 (bisected), Carlos R. Mafra, (Mon Oct 27, 11:51 am)
Re: Suspend to RAM regression in 2.6.28-rc2 (bisected), Carlos R. Mafra, (Mon Oct 27, 12:00 pm)
Re: Suspend to RAM regression in 2.6.28-rc2 (bisected), Johannes Berg, (Mon Oct 27, 12:03 pm)
Re: Suspend to RAM regression in 2.6.28-rc2 (bisected), Jens Axboe, (Mon Oct 27, 12:06 pm)
Re: Suspend to RAM regression in 2.6.28-rc2 (bisected), Johannes Berg, (Mon Oct 27, 12:09 pm)
Re: Suspend to RAM regression in 2.6.28-rc2 (bisected), Carlos R. Mafra, (Mon Oct 27, 12:11 pm)
Re: Suspend to RAM regression in 2.6.28-rc2 (bisected), Jens Axboe, (Mon Oct 27, 12:13 pm)
Re: Suspend to RAM regression in 2.6.28-rc2 (bisected), Johannes Berg, (Mon Oct 27, 12:13 pm)
Re: Suspend to RAM regression in 2.6.28-rc2 (bisected), Johannes Berg, (Mon Oct 27, 12:16 pm)
Re: Suspend to RAM regression in 2.6.28-rc2 (bisected), Jens Axboe, (Mon Oct 27, 12:20 pm)
Re: Suspend to RAM regression in 2.6.28-rc2 (bisected), Carlos R. Mafra, (Mon Oct 27, 1:39 pm)
Re: Suspend to RAM regression in 2.6.28-rc2 (bisected), Rafael J. Wysocki, (Mon Oct 27, 1:51 pm)
Re: Suspend to RAM regression in 2.6.28-rc2 (bisected), Carlos R. Mafra, (Mon Oct 27, 1:52 pm)
Re: Suspend to RAM regression in 2.6.28-rc2 (bisected), Christian Borntraeger, (Mon Oct 27, 1:59 pm)
Re: Suspend to RAM regression in 2.6.28-rc2 (bisected), Harvey Harrison, (Mon Oct 27, 2:06 pm)
Re: Suspend to RAM regression in 2.6.28-rc2 (bisected), Tomas Winkler, (Mon Oct 27, 2:07 pm)
Re: Suspend to RAM regression in 2.6.28-rc2 (bisected), Rafael J. Wysocki, (Mon Oct 27, 2:07 pm)
Re: Suspend to RAM regression in 2.6.28-rc2 (bisected), Carlos R. Mafra, (Mon Oct 27, 3:05 pm)
Re: Suspend to RAM regression in 2.6.28-rc2 (bisected), Carlos R. Mafra, (Mon Oct 27, 3:28 pm)
Re: Suspend to RAM regression in 2.6.28-rc2 (bisected), Tomas Winkler, (Mon Oct 27, 3:40 pm)
Re: Suspend to RAM regression in 2.6.28-rc2 (bisected), Rafael J. Wysocki, (Mon Oct 27, 3:50 pm)
Re: Suspend to RAM regression in 2.6.28-rc2 (bisected), Tomas Winkler, (Mon Oct 27, 4:12 pm)
Re: Suspend to RAM regression in 2.6.28-rc2 (bisected), Harvey Harrison, (Mon Oct 27, 4:23 pm)
Re: Suspend to RAM regression in 2.6.28-rc2 (bisected), Christian Borntraeger, (Mon Oct 27, 11:32 pm)
Re: Suspend to RAM regression in 2.6.28-rc2 (bisected), Rafael J. Wysocki, (Tue Oct 28, 8:30 am)
Re: Suspend to RAM regression in 2.6.28-rc2 (bisected), Tomas Winkler, (Tue Oct 28, 9:12 am)