[Bug 416921] New: Removing power supply from laptop freezes the machine
https://bugzilla.novell.com/show_bug.cgi?id=416921 Summary: Removing power supply from laptop freezes the machine Product: openSUSE 11.0 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Critical Priority: P5 - None Component: Kernel AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: psankar@novell.com QAContact: qa@suse.de Found By: --- I was working in a laptop - Thinkpad T60 Laptop was in the docking station. My neighbour took the power supply for the laptop as he wanted to use it. My machine hung. Absolutely no response at all. ctrl+alt+f2, capslock key, nothing worked. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=416921
Cyril Hrubis
https://bugzilla.novell.com/show_bug.cgi?id=416921
User zoz@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=416921#c1
Christian Zoz
https://bugzilla.novell.com/show_bug.cgi?id=416921
Christian Zoz
https://bugzilla.novell.com/show_bug.cgi?id=416921
User psankar@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=416921#c2
Sankar P
https://bugzilla.novell.com/show_bug.cgi?id=416921
Christian Zoz
https://bugzilla.novell.com/show_bug.cgi?id=416921
User seife@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=416921#c3
Stefan Seyfried
https://bugzilla.novell.com/show_bug.cgi?id=416921
User psankar@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=416921#c4
--- Comment #4 from Sankar P
Sankar, does this also happen if you unplug the AC adapter _outside_ of the docking station?
Nope. It has never happened when I remove the AC Adapter. I disconnect from the docking station in office and from the power in home. So, the usage frequency is also same for the both. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=416921
User seife@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=416921#c5
--- Comment #5 from Stefan Seyfried
https://bugzilla.novell.com/show_bug.cgi?id=416921
Stefan Seyfried
https://bugzilla.novell.com/show_bug.cgi?id=416921
User psankar@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=416921#c6
--- Comment #6 from Sankar P
https://bugzilla.novell.com/show_bug.cgi?id=416921
User psankar@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=416921#c7
--- Comment #7 from Sankar P
What type of docking station is this? Just the simple port replicator or the full featured dock with PCI slots etc. inside?
Full featured docking station with PCI slots. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=416921
User psankar@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=416921#c8
Sankar P
https://bugzilla.novell.com/show_bug.cgi?id=416921
User seife@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=416921#c9
Stefan Seyfried
https://bugzilla.novell.com/show_bug.cgi?id=416921
User hmacht@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=416921#c10
Holger Macht
https://bugzilla.novell.com/show_bug.cgi?id=416921
User psankar@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=416921#c11
Sankar P
https://bugzilla.novell.com/show_bug.cgi?id=416921
User hmacht@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=416921#c12
Holger Macht
https://bugzilla.novell.com/show_bug.cgi?id=416921
User psankar@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=416921#c13
Sankar P
https://bugzilla.novell.com/show_bug.cgi?id=416921
User psankar@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=416921#c14
--- Comment #14 from Sankar P
https://bugzilla.novell.com/show_bug.cgi?id=416921
User hmacht@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=416921#c15
Holger Macht
https://bugzilla.novell.com/show_bug.cgi?id=416921
User psankar@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=416921#c16
--- Comment #16 from Sankar P
https://bugzilla.novell.com/show_bug.cgi?id=416921
User trenn@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=416921#c17
Thomas Renninger
https://bugzilla.novell.com/show_bug.cgi?id=416921
Thomas Renninger
https://bugzilla.novell.com/show_bug.cgi?id=416921
User psankar@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=416921#c18
Sankar P
Is there a BIOS update?
No
Have older kernel versions (e.g. 11.0) worked?
Not sure. I have had this laptop only from 11.0 and the problem has been there with 11.0, 11.1 and the kernel I built from sources (as mentioned in comment #16 )
Is there a BIOS option related to AC (e.g. there are some where you can configure battery/performance optimized whether on AC or not). If yes, does switching it help?
I do not find any such.
I doubt that we have such a bug for X60 in 11.0 and still in mainline kernel, the X60 is too widespread, I know several people using such machine at office. Something seem to be fishy. Hmm, ok there are not that much with a docking station...
It is a t60p and not a x60. I tested with few more machines and it was reproducible everywhere.
Does sysreq still work if the machine freezes? Pass the sysrq_always_enabled boot param.
I passed this option. But, sadly, no luck. sysrq did not work when the machine freezes.
Then when it freezes push: SysRq-8 SysRq-T button (SysRq is a key, normally near the top-right corner). You may want to try SysRq while the machine is still running first. Output is normally seen when you switch to console 10: CTRL-ALT-F10.
Output is normally seen when i go to ^-alt-f10 , but when the machine hangs, this output is also hung. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=416921
User psankar@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=416921#c19
--- Comment #19 from Sankar P
https://bugzilla.novell.com/show_bug.cgi?id=416921
User trenn@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=416921#c20
Thomas Renninger
I can reproduce this. It happens atleast twice a month Ohoh, any idea how to always reproduce this (maybe if you have added a specific device or AC to the dock station it always happens or similar)?
I tried Ubuntu 7.10 which has 2.6.22-14 kernel and it did not hang. Hmm, how can you say for sure if it only happens every month?
Can you also paste or attach /proc/iomem and acpidump. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=416921
User psankar@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=416921#c21
--- Comment #21 from Sankar P
There were ioremap and pci transparent bridge related patches which may fix (or cause this): http://bugzilla.kernel.org/show_bug.cgi?id=11054 http://bugzilla.kernel.org/show_bug.cgi?id=9961
Related patch: git commit id: 12c22d6ef299ccf0955e5756eb57d90d7577ac68
Revert "PCI: remove transparent bridge sizing"
This reverts commit 8fa5913d54f3b1e09948e6a0db34da887e05ff1f,...
This could be the reason why the older (2.6.22) Ubuntu kernel works (guessing only). At least the first bug (11054) is related to (a rather old) ThinkPad and its docking station.
I need to dive deeper into this. If you know how to compile a kernel, I'd try latest git with and without above patch.
I will try this and let you know the result.
Can you boot into text mode and take pictures of where it hangs, possibly also scroll up a bit and picture everything important?
What do you mean by text mode ? (init 3?) I am not sure if anything will get printed at all. I don't have a camera to take a snap shot of it. I will try my best.
I can reproduce this. It happens atleast twice a month Ohoh, any idea how to always reproduce this (maybe if you have added a specific device or AC to the dock station it always happens or similar)?
I tried Ubuntu 7.10 which has 2.6.22-14 kernel and it did not hang. Hmm, how can you say for sure if it only happens every month?
With 11.0, I have not observed this often. Because, I was working more from office where there is constant power supply etc. But, with 11.1 , I manually disconnected power supply (to check this bug) and it is hanging whenever i remove the power supply. I tried with around 5-6 t60p laptops here and everyone of them hung (with 11.0 live dvd and 11.1 installation). So, I guess it should be fairly easy to reproduce. Please note that I am using a full-featured docking station with pci interface etc. (not a simple port replicator)
Can you also paste or attach /proc/iomem and acpidump.
I shall do that. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=416921
User psankar@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=416921#c22
--- Comment #22 from Sankar P
https://bugzilla.novell.com/show_bug.cgi?id=416921
User psankar@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=416921#c23
Sankar P
What do you mean by text mode e.g. removing splash= as a boot option (e.g. in /boot/grub/menu.lst). This would remove the picture at boot time, but it should not be necessary as
https://bugzilla.novell.com/show_bug.cgi?id=416921
User trenn@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=416921#c24
Thomas Renninger
I tried with around 5-6 t60p laptops here and everyone of them hung (with 11.0 live dvd and 11.1 installation). So, I guess it should be fairly easy to reproduce. Please note that I am using a full-featured docking station with pci interface etc. (not a simple port replicator) Hmm all the same models, I expect?
Some ideas: Does it work if you unload the ac driver? Does it work if you unload the thinkpad_acpi driver? Hmm better it doesn't get loaded at all: "blacklist thinkpad_acpi" entry in /etc/modprobe.conf.local should do the trick. Holger, AFAIK the dock event is used to undock disks, how could Sankar try this out explicitly? In normal configuration (without above ideas), try: Copy away previous system logs first: mv /var/log/messages /var/log/messages.bak rcsyslog restart echo 0x21F >/sys/module/acpi/parameters/debug_level tail -f /var/log/message Now let the machine freeze. Hopefully all data could still be saved to disk (you may want to compare the output you see and the output written to disk later), then reboot and last successfully processed ACPI code should pop up in /var/log/messages? This can be a lot, please attach all. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=416921
User psankar@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=416921#c25
--- Comment #25 from Sankar P
https://bugzilla.novell.com/show_bug.cgi?id=416921
User psankar@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=416921#c26
--- Comment #26 from Sankar P
https://bugzilla.novell.com/show_bug.cgi?id=416921
User psankar@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=416921#c27
--- Comment #27 from Sankar P
/sys/module/acpi/parameters/debug_level` exported and one is with this value. I will attach them.
-- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=416921
User psankar@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=416921#c28
--- Comment #28 from Sankar P
https://bugzilla.novell.com/show_bug.cgi?id=416921
User psankar@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=416921#c29
Sankar P
https://bugzilla.novell.com/show_bug.cgi?id=416921
User psankar@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=416921#c30
Sankar P
https://bugzilla.novell.com/show_bug.cgi?id=416921
Sankar P
https://bugzilla.novell.com/show_bug.cgi?id=416921
User trenn@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=416921#c31
Thomas Renninger
https://bugzilla.novell.com/show_bug.cgi?id=416921
User psankar@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=416921#c32
--- Comment #32 from Sankar P
https://bugzilla.novell.com/show_bug.cgi?id=416921
User psankar@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=416921#c33
--- Comment #33 from Sankar P
https://bugzilla.novell.com/show_bug.cgi?id=416921
User psankar@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=416921#c34
Sankar P
https://bugzilla.novell.com/show_bug.cgi?id=416921
User trenn@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=416921#c38
--- Comment #38 from Thomas Renninger
https://bugzilla.novell.com/show_bug.cgi?id=416921
User trenn@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=416921#c39
Thomas Renninger
https://bugzilla.novell.com/show_bug.cgi?id=416921
User trenn@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=416921#c40
--- Comment #40 from Thomas Renninger
https://bugzilla.novell.com/show_bug.cgi?id=416921
User trenn@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=416921#c41
--- Comment #41 from Thomas Renninger
https://bugzilla.novell.com/show_bug.cgi?id=416921
User psankar@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=416921#c42
Sankar P
https://bugzilla.novell.com/show_bug.cgi?id=416921
User gregkh@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=416921#c43
Greg Kroah-Hartman
https://bugzilla.novell.com/show_bug.cgi?id=416921
User knikanth@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=416921#c44
--- Comment #44 from Nikanth K
https://bugzilla.novell.com/show_bug.cgi?id=416921
User knikanth@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=416921#c45
Nikanth K
https://bugzilla.novell.com/show_bug.cgi?id=416921
Thomas Renninger
https://bugzilla.novell.com/show_bug.cgi?id=416921
User trenn@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=416921#c46
--- Comment #46 from Thomas Renninger
https://bugzilla.novell.com/show_bug.cgi?id=416921
User knikanth@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=416921#c47
--- Comment #47 from Nikanth K
https://bugzilla.novell.com/show_bug.cgi?id=416921
User knikanth@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=416921#c48
--- Comment #48 from Nikanth K
You did take the DSDT from Sankar? Better don't do that. Best is to revert the entry in /etc/sysconfig/kernel and invoke mkinitrd again.
I just tested with the DSDT in comment#40 once and reverted.
Please upload the acpidump output of your BIOS.
done.
Still, this very much looks like a SMM code bug. It's time for Lenovo to add a HW debugger and reproduce this (looks pretty simple to reprodcue) and then fix up the SMM BIOS code. Which pretty much should worth it, I could imagine Windows also suffers (at least sooner or later), from that bug.
My machine also has windows xp installed and just tested with it. you are right, windows also suffers from this defect. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=416921
User trenn@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=416921#c49
--- Comment #49 from Thomas Renninger
https://bugzilla.novell.com/show_bug.cgi?id=416921
User trenn@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=416921#c50
--- Comment #50 from Thomas Renninger
My machine also has windows xp installed and just tested with it. you are right, windows also suffers from this defect. Great. While Lenovo cares about Linux bugs, this should (hopefully) get another severity level there now.
-- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=416921
User knikanth@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=416921#c51
--- Comment #51 from Nikanth K
https://bugzilla.novell.com/show_bug.cgi?id=416921
User knikanth@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=416921#c52
--- Comment #52 from Nikanth K
Also I tried rebooting a few times and but once, after switching it back on, the system started responding and the problem seemed to have gone away.
Just to be clear.. Usually the system freezes no matter plugging-in/out but once it recovered -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=416921
User trenn@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=416921#c53
--- Comment #53 from Thomas Renninger
https://bugzilla.novell.com/show_bug.cgi?id=416921
User knikanth@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=416921#c54
--- Comment #54 from Nikanth K
Can you double check whether the DSDT really was overridden: dmesg |less then look out for something with initrd overridden by host OS or similar.
Yes I could see the message "ACPI: Table DSDT replaced by host OS" But without acpi_no_auto_ssdt there was a warning "ACPI: DSDT override uses original SSDTs unless "acpi_no_auto_ssdt"" So I tried both with and without that parameter. But not much of difference in behavior.
Also try with acpi.debug_level=0x21F and log_buf_len=33554432 boot params. If you are able to grab the messages sent out from when you (un)plug and freeze the system like Sankar did, that could help (hopefully it can recover, then you should be able to see everything in dmesg or /var/log/messages).
Yes, the system recovered after powering up again! And I was able to get the dmesg. During the power-off/on event the message seems to be [ACPI Debug] String [0x15] "UCMS left out in _Q27" and [ACPI Debug] String [0x15] "UCMS left out in _Q26" -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=416921
User knikanth@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=416921#c55
--- Comment #55 from Nikanth K
https://bugzilla.novell.com/show_bug.cgi?id=416921
User trenn@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=416921#c56
Thomas Renninger
https://bugzilla.novell.com/show_bug.cgi?id=416921
User knikanth@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=416921#c57
--- Comment #57 from Nikanth K
Hmm, it's hanging later now. Sorry, but it does not make sense to dig further.
Yes.
This is something Lenovo has to have a closer look. I'd check their BIOS site every month and look at the changelogs here and there. Has someone a pre-loaded Novell Linux on it? As Windows XP is also affected you could call the support anyway, they won't be able to say "not supported".
Will try that.
You said you are running the latest BIOS, but not the exact version, could you still add that info. dmidecode can tell you.
I was running "79ETD8WW (2.18) " but just now updated to " 79ETE3WW (2.23)". But it didn't help. :( Another colleague with very old bios version "79ET65WW (1.09a) 27/7/2006" do not have this problem !! So it could be a bug introduced after that version! -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=416921
User seife@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=416921#c58
--- Comment #58 from Stefan Seyfried
https://bugzilla.novell.com/show_bug.cgi?id=416921
User knikanth@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=416921#c59
--- Comment #59 from Nikanth K
participants (1)
-
bugzilla_noreply@novell.com