[Bug 351119] New: i8042 sometimes fails after resume
https://bugzilla.novell.com/show_bug.cgi?id=351119 Summary: i8042 sometimes fails after resume Product: openSUSE 10.3 Version: Final Platform: x86-64 OS/Version: openSUSE 10.3 Status: NEW Severity: Normal Priority: P5 - None Component: Kernel AssignedTo: kernel-maintainers@forge.provo.novell.com ReportedBy: hschaa@novell.com QAContact: qa@suse.de CC: seife@novell.com Found By: --- Sometimes after a successful suspend-resume-cycle (approximately 1 out of 20) the keyboard and touchpad do not work anymore (HP 2510p). Using the workaround suggested at [1] everything is working fine again. Some details from dmesg in failure-case: i8042.c: Detected active multiplexing controller, rev 1.1. serio: i8042 KBD port at 0x60,0x64 irq 1 serio: i8042 AUX0 port at 0x60,0x64 irq 12 serio: i8042 AUX1 port at 0x60,0x64 irq 12 serio: i8042 AUX2 port at 0x60,0x64 irq 12 serio: i8042 AUX3 port at 0x60,0x64 irq 12 i8042: Can't write CTR to resume atkbd serio0: PM: resume from 1, parent i8042 still 1 psmouse serio1: PM: resume from 1, parent i8042 still 1 serio serio2: PM: resume from 1, parent i8042 still 1 serio serio3: PM: resume from 1, parent i8042 still 1 psmouse serio4: PM: resume from 1, parent i8042 still 1 After using the workaround I get: i8042.c: Detected active multiplexing controller, rev 1.1. serio: i8042 KBD port at 0x60,0x64 irq 1 serio: i8042 AUX0 port at 0x60,0x64 irq 12 serio: i8042 AUX1 port at 0x60,0x64 irq 12 serio: i8042 AUX2 port at 0x60,0x64 irq 12 serio: i8042 AUX3 port at 0x60,0x64 irq 12 [1] http://en.opensuse.org/Pm-utils#Restarting_the_mouse -- 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=351119 Jeff Mahoney <jeffm@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jkosina@novell.com AssignedTo|kernel-maintainers@forge.provo.novell.com |pavel@novell.com -- 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=351119 User pavel@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=351119#c1 Pavel Machek <pavel@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |vojtech@novell.com Status|NEW |ASSIGNED --- Comment #1 from Pavel Machek <pavel@novell.com> 2008-01-04 04:59:23 MST --- Is it suspend-to-RAM or suspend-to-disk problem? -- 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=351119 User hschaa@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=351119#c2 --- Comment #2 from Helmut Schaa <hschaa@novell.com> 2008-01-07 00:53:15 MST --- suspend-to-disk (I did not try suspend-to-RAM yet) -- 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=351119 User pavel@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=351119#c3 Pavel Machek <pavel@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pavel@novell.com AssignedTo|pavel@novell.com |jkosina@novell.com Status|ASSIGNED |NEW --- Comment #3 from Pavel Machek <pavel@novell.com> 2008-01-07 04:21:06 MST --- Helmut: Can you try s2ram? It should allow much faster bug reproduction. Jirka: Can you take care? Seems like clear and cut input layer problem. -- 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=351119 User hschaa@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=351119#c4 --- Comment #4 from Helmut Schaa <hschaa@novell.com> 2008-01-07 07:06:23 MST --- I could not get s2ram to work yet but just noticed that the problem seems to also happen sometimes when doing a normal boot. -- 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=351119 User pavel@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=351119#c5 --- Comment #5 from Pavel Machek <pavel@novell.com> 2008-01-14 05:46:31 MST --- It happens during normal boot -> something for Jirka. -- 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=351119 User jkosina@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=351119#c6 --- Comment #6 from Jiri Kosina <jkosina@novell.com> 2008-01-14 12:48:42 MST --- Could you please try booting with 'i8042.nomux i8042.noaux' option to see whether it makes any difference? Thanks. -- 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=351119 Jiri Kosina <jkosina@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |hschaa@novell.com -- 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=351119 User hschaa@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=351119#c7 --- Comment #7 from Helmut Schaa <hschaa@novell.com> 2008-01-24 09:11:28 MST --- I need some time to check if it works as it did not happen every boot. I'll report back once I know more. -- 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=351119 User hschaa@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=351119#c8 Helmut Schaa <hschaa@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|hschaa@novell.com | --- Comment #8 from Helmut Schaa <hschaa@novell.com> 2008-01-25 11:45:39 MST --- Jiri, using 'i8042.nomux i8042.noaux' as mentioned in comment #6 results in touchpad not working anymore :( -- 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=351119 User jkosina@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=351119#c9 Jiri Kosina <jkosina@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |hschaa@novell.com --- Comment #9 from Jiri Kosina <jkosina@novell.com> 2008-01-28 02:23:25 MST --- Please also try with 'i8042.nomux' only. Thanks. -- 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=351119 User hschaa@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=351119#c10 Helmut Schaa <hschaa@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|hschaa@novell.com | --- Comment #10 from Helmut Schaa <hschaa@novell.com> 2008-02-06 08:05:17 MST --- Jiri, I tried the kernel option 'i8042.nomux' for some days now and the problem seems to be fixed (for both, suspend and boot). Next steps? -- 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=351119 User jkosina@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=351119#c11 Jiri Kosina <jkosina@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |hschaa@novell.com --- Comment #11 from Jiri Kosina <jkosina@novell.com> 2008-02-06 08:15:27 MST --- Please send me the output of dmidecode command, so that I can do a kernel patch for your system, so that 'nomux' parameter will no longer be needed. -- 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=351119 User hschaa@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=351119#c12 Helmut Schaa <hschaa@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|hschaa@novell.com | --- Comment #12 from Helmut Schaa <hschaa@novell.com> 2008-02-06 08:37:53 MST --- Created an attachment (id=193434) --> (https://bugzilla.novell.com/attachment.cgi?id=193434) dmidecode output Here is the requested dmidecode output. -- 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=351119 User hschaa@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=351119#c13 Helmut Schaa <hschaa@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |hschaa@novell.com --- Comment #13 from Helmut Schaa <hschaa@novell.com> 2008-02-07 09:07:07 MST --- I'm not yet sure but maybe i8042.nomux broke the scrolling-part of my touchpad. I have to investigate a bit further. -- 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=351119 User seife@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=351119#c14 --- Comment #14 from Stefan Seyfried <seife@novell.com> 2008-02-07 09:36:11 MST --- yes, probably the touchpad is only working in ps2 mode now and not as a synaptics pad anymore. Also, isn't i8042.nomux just papering over the real bug? Dont we need the multiplexer once we put the machine into a port replicator and use the external ps2 keyboard / mouse ports? -- 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=351119 User jkosina@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=351119#c15 --- Comment #15 from Jiri Kosina <jkosina@novell.com> 2008-02-29 07:07:36 MST --- Hemlut, is there any conclusion of your investigation, as per comment #13? -- 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=351119 User hschaa@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=351119#c16 Helmut Schaa <hschaa@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|hschaa@novell.com | --- Comment #16 from Helmut Schaa <hschaa@novell.com> 2008-03-03 01:21:49 MST --- Sorry, somehow missed to write a comment :) Setting i8042.nomux is no option for me as the touchpad does not provide the scrolling mechanism anymore. -- 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=351119 Jiri Kosina <jkosina@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED -- 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=351119 User seife@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=351119#c17 --- Comment #17 from Stefan Seyfried <seife@novell.com> 2008-05-13 14:42:12 MST --- Created an attachment (id=214902) --> (https://bugzilla.novell.com/attachment.cgi?id=214902) dmesg still happens with todays 2.6.25.3 I got this in the log after resume: [ 5680.023143] atkbd.c: Spurious ACK on isa0060/serio0. Some program might be trying access hardware directly. [ 5680.023161] i8042: Can't write CTR to resume I'll attach full dmesg. -- 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=351119 Stefan Seyfried <seife@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |377598 Found By|--- |Development Component|Kernel |Kernel Product|openSUSE 10.3 |openSUSE 11.0 Version|Final |Beta 3 -- 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=351119 User willem@neteyes.nl added comment https://bugzilla.novell.com/show_bug.cgi?id=351119#c18 Willem Meens <willem@neteyes.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |willem@neteyes.nl --- Comment #18 from Willem Meens <willem@neteyes.nl> 2008-05-17 12:17:43 MST --- Joining in as I have the same intermittent issue here with a Dell D520 laptop after using s2ram. It's both mouse and keyboard that don't work sometimes after resume. Workaround is to plug in a usb mouse and reboot the system. Using the 2.6.25.3-2-pae kernel. -- 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=351119 User seife@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=351119#c19 --- Comment #19 from Stefan Seyfried <seife@novell.com> 2008-05-17 16:08:27 MST --- Willem, do you also see the "i8042: Can't write CTR to resume" message in the log after the keyboard fails? This would be good to know if you are seeing the exact same issue here. Helmut, IIRC you already did write some debug code and investigate about retrying the i8042 reinitialization if it failed. Did you ever find out more about this issue? Maybe your preliminary debug patch can help the i8042 experts to cook up something helpful for this issue. Thanks! -- 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=351119 User willem@neteyes.nl added comment https://bugzilla.novell.com/show_bug.cgi?id=351119#c20 --- Comment #20 from Willem Meens <willem@neteyes.nl> 2008-05-18 03:29:04 MST --- Hi Stefan, I will check this the next time I get this and report back. -- 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=351119 User hschaa@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=351119#c21 --- Comment #21 from Helmut Schaa <hschaa@novell.com> 2008-05-19 03:40:08 MST --- (In reply to comment #19 from Stefan Seyfried)
Helmut, IIRC you already did write some debug code and investigate about retrying the i8042 reinitialization if it failed. Did you ever find out more about this issue? Maybe your preliminary debug patch can help the i8042 experts to cook up something helpful for this issue.
Not yet as I cannot reproduce this issue reliable it's really hard to get a clue. But my assumption is that i8042_command writing the CRT times out and therefore fails to restore the device correctly. As s2ram works now I'm trying to do some more tests. -- 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=351119 User seife@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=351119#c22 --- Comment #22 from Stefan Seyfried <seife@novell.com> 2008-05-19 05:05:35 MST --- note that i did never see this problem with s2ram, only suspend to disk. To the i8042 gurus: can't we just in case of the "Can't write CTR to resume"-problem try once again? or do the equivalent of an unbind / bind operation? This is a really nasty problem, because usually when this happens, the only thing you can do is reboot via powerbutton, since you have no input device left to do anything to recover the machine. -- 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=351119 User willem@neteyes.nl added comment https://bugzilla.novell.com/show_bug.cgi?id=351119#c23 --- Comment #23 from Willem Meens <willem@neteyes.nl> 2008-05-19 14:16:53 MST --- Hi Stefan. I only use s2ram but I don't know if we are having the same issue as I also checked hwinfo --keyb , which is telling me usbhid is being used for keyboard and mouse. Guess that means I had a different issue? :/ As for the 'nastyness' it might be an idea to have a usb mouse handy (and also a app icon that does a dmesg > textfile.txt or similar). In my case plugging in a mouse at least gave the ability to navigate and shutdown properly. -- 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=351119 User jkosina@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=351119#c24 Jiri Kosina <jkosina@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |hschaa@novell.com --- Comment #24 from Jiri Kosina <jkosina@novell.com> 2008-05-20 15:29:25 MST --- Could you please reproduce with i8042.debug kernel command line option turned on and attach the output from failing resume, so that we know more precisely what goes wrong? Thanks. -- 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=351119 User seife@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=351119#c25 --- Comment #25 from Stefan Seyfried <seife@novell.com> 2008-05-20 17:22:02 MST --- I'm sorry, but that is not doable. It happens once in maybe 20 suspends. i8042.debug creates enormous amounts of syslog output, so i cannot 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=351119 User hschaa@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=351119#c26 --- Comment #26 from Helmut Schaa <hschaa@novell.com> 2008-05-21 03:51:15 MST --- I can reproduce the issue with 2.6.26-rc2 after around 20 suspend-resume cycles using Seife's suspendtest-script. Using the attached patch (maybe let's call it a hack) I was able to get mouse and touchpad working again after the 'write CTR command' failed. I'll attach the dmesg output for that case. diff --git a/drivers/input/serio/i8042.c b/drivers/input/serio/i8042.c index 65a74cf..c41d59a 100644 --- a/drivers/input/serio/i8042.c +++ b/drivers/input/serio/i8042.c @@ -913,7 +913,7 @@ static int i8042_suspend(struct platform_device *dev, pm_message_t state) static int i8042_resume(struct platform_device *dev) { int error; - + int i = 0; /* * Do not bother with restoring state if we haven't suspened yet */ @@ -937,9 +937,17 @@ static int i8042_resume(struct platform_device *dev) i8042_ctr &= ~I8042_CTR_XLATE; i8042_ctr |= I8042_CTR_AUXDIS | I8042_CTR_KBDDIS; i8042_ctr &= ~(I8042_CTR_AUXINT | I8042_CTR_KBDINT); + printk(KERN_ERR "i8042: write CTR to resume\n"); if (i8042_command(&i8042_ctr, I8042_CMD_CTL_WCTR)) { - printk(KERN_ERR "i8042: Can't write CTR to resume\n"); - return -EIO; + while(i < 20) { + msleep(50); + printk(KERN_ERR "i8042: Can't write CTR to resume, retry %i\n", i); + if (!i8042_command(&i8042_ctr, I8042_CMD_CTL_WCTR)) + break; + i++; + } + if (i >= 20) + return -EIO; } if (i8042_mux_present) { -- 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=351119 User hschaa@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=351119#c27 --- Comment #27 from Helmut Schaa <hschaa@novell.com> 2008-05-21 03:53:40 MST --- Created an attachment (id=217177) --> (https://bugzilla.novell.com/attachment.cgi?id=217177) dmesg output -- 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=351119 User seife@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=351119#c28 Stefan Seyfried <seife@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|hschaa@novell.com | --- Comment #28 from Stefan Seyfried <seife@novell.com> 2008-05-26 06:30:27 MDT --- i think all info is provided -- 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=351119 User seife@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=351119#c29 --- Comment #29 from Stefan Seyfried <seife@novell.com> 2008-05-26 06:33:53 MDT --- Created an attachment (id=218105) --> (https://bugzilla.novell.com/attachment.cgi?id=218105) dmesg, i8042 failed completely after suspend to disk Today, keybard and mice failed completely after suspend to disk. unbind / bind trick did not help but only produced [21993.792695] i8042.c: Can't read CTR while initializing i8042. [21993.796930] i8042: probe of i8042 failed with error -5 I tried enabling i8042.debug, but this did not do anything (probably because there was no i8042 to debug anymore ;-) So i did another suspend to RAM, resume, and after that i retried the unbind / bind trick, this time with success (and lots of debug). The dmesg of this session is in the attachment. -- 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=351119 User jkosina@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=351119#c30 --- Comment #30 from Jiri Kosina <jkosina@novell.com> 2008-05-26 07:20:54 MDT --- Looks like your i8042 hardware reports itself being ready for data, but then it doesn't accept the write to CTR register (having i8042.debug output from the failing resume would help with diagnosing what is the exact failure though). I have raised this issue with Dmitry (upstream), to come up with proper workaround. -- 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=351119 User seife@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=351119#c31 --- Comment #31 from Stefan Seyfried <seife@novell.com> 2008-05-26 08:34:49 MDT --- i have added this hook as /etc/pm/sleep.d/99ZZi8042debug: #!/bin/bash case "$1" in thaw|resume) echo 0 > /sys/module/i8042/parameters/debug ;; suspend|hibernate) echo 1 > /sys/module/i8042/parameters/debug ;; *) ;; esac This will enable debug before suspend and disable afterwards. You still will only see half of the story in dmesg, since the "boot until image is loaded" part will be gone, but we will see if we find out something with that. Having debug on all the time is unfortunately not really doable :( -- 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=351119 User jkosina@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=351119#c32 --- Comment #32 from Jiri Kosina <jkosina@novell.com> 2008-05-27 08:29:30 MDT --- Created an attachment (id=218314) --> (https://bugzilla.novell.com/attachment.cgi?id=218314) Input: add retry login to resume with respect to CTR Could you please verify whether the kernel that can be obtained from http://labs.suse.cz/jikos/download/bug-351119/ which has the attached patch applied, fixes reliably the problem for you? It performs one retry on CTR write on resume path. It should be acceptable upstream, if it fixes the problem. Thanks. -- 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=351119 Jiri Kosina <jkosina@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |hschaa@novell.com -- 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=351119 User seife@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=351119#c33 --- Comment #33 from Stefan Seyfried <seife@novell.com> 2008-05-30 00:58:49 MDT --- Created an attachment (id=219027) --> (https://bugzilla.novell.com/attachment.cgi?id=219027) dmesg - after resume from suspend to disk, there was no 8042 anymore This is with a standard SUSE kernel (sorry, without that patch). What happened this time is: suspend to disk => keyboard gone pressed power button (configured to unbind / bind i8042) => does not help retried several times, without success plugged a USB keyboard / mouse executed suspend to ram after resume, still no keyboard => because the controller was already gone, there was nothing to reinit pressed power button again => keyboard and mouse reappeared. I enable i8042 debugging before suspend and disable it after resume, so there may be information in there on why it fails. Should i also enable debugging before the unbind / rebind procedure to get more information? -- 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=351119 User hschaa@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=351119#c34 Helmut Schaa <hschaa@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hschaa@novell.com Status|NEEDINFO |ASSIGNED Info Provider|hschaa@novell.com | --- Comment #34 from Helmut Schaa <hschaa@novell.com> 2008-06-09 03:35:26 MDT --- Jiri, I've tried the patch against 2.6.26-rc4 and it worked well. In 2 of 40 attempts I got the message "i8042: Can't write CTR to resume, retrying ..." and the retry succeeded. It seems as one retry is really enough and fixes this issue at least for me (HP 2510p). -- 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=351119 User jkosina@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=351119#c35 Jiri Kosina <jkosina@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #35 from Jiri Kosina <jkosina@novell.com> 2008-06-09 03:47:48 MDT --- Thanks a lot! I will commit the patch into our kernel repository for opensuse 11, and will push it also into upstream kernel. Thanks a lot again for excellent analysis and helpful testing. -- 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=351119 User meissner@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=351119#c36 --- Comment #36 from Marcus Meissner <meissner@novell.com> 2008-07-08 08:51:48 MDT --- 11.0 update kernel released, version-release is 2.6.25.9-0.2 -- 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.
participants (1)
-
bugzilla_noreply@novell.com