Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 68849 - gentoo-dev-sources-2.6.9-r1: keyboard crashes after resume
Summary: gentoo-dev-sources-2.6.9-r1: keyboard crashes after resume
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High critical
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL: http://paste.phpfi.com/34432
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-25 09:02 UTC by Marco Nierlich
Modified: 2005-03-24 08:04 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Kernel Configuration for gentoo-dev-sources-2.6.9-r1 (config-2.6.9-r1,30.86 KB, text/plain)
2004-10-25 09:04 UTC, Marco Nierlich
Details
dmesg with development-sources-2.6.9 (dmesg-2.6.9,9.14 KB, text/plain)
2004-10-30 08:37 UTC, Marco Nierlich
Details
dmesg with gentoo-dev-sources-2.6.8-r10 (working) (dmesg-2.6.8-r10,9.96 KB, text/plain)
2004-10-30 08:37 UTC, Marco Nierlich
Details
current 2.6.9-r1 config file (.config,30.82 KB, text/plain)
2004-11-03 11:39 UTC, Marco Nierlich
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marco Nierlich 2004-10-25 09:02:15 UTC
Since Kernel gentoo-dev-source-2.6.9-r1 (built with a make oldconfig from gentoo-dev-sources-2.6.8-r10) my keyboard does not work anymore after resuming from suspend. Some keys produce double output of another key, some keys don't work at all. In the above URL you can see kernel messages of what happens when I push a key. If you need further informations (about chipsets for example), I can provide them.

Reproducible: Always
Steps to Reproduce:
1. Close the lid of the laptop
2. Open the lid of the laptop
3. Type something on the keyboard.

Actual Results:  
Some keys produce double output of another key, some keys don't work at all.

Expected Results:  
Echoing the correct key.

relevant output of dmesg

Linux version 2.6.9-gentoo-r1Y (root@pingu) (gcc version 3.3.4 20040623 (Gentoo
Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6)) #5 SMP Sat Oct 23 14:11:04 CEST 2004
[...]
No local APIC present or hardware disabled
[...]
Local APIC not detected. Using dummy APIC emulation.
[...]
apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16ac)
[...]
input: AT Translated Set 2 keyboard on isa0060/serio0


Kernel .config will be attached as a file
Comment 1 Marco Nierlich 2004-10-25 09:04:03 UTC
Created attachment 42567 [details]
Kernel Configuration for gentoo-dev-sources-2.6.9-r1
Comment 2 Daniel Drake (RETIRED) gentoo-dev 2004-10-27 15:59:00 UTC
Do any strange messages appear in dmesg after the resume? Can you reproduce this on 2.6.10-rc1?
Comment 3 Jory A. Pratt 2004-10-27 16:43:09 UTC
there are way to many new updates in 2.6.9 to run make oldconfig I suggest building the kernel again this time going threw each step I have a funny feeling you will see your problem disappear.
Comment 4 Marco Nierlich 2004-10-28 00:37:29 UTC
There are absolutely no strange messages in dmesg after the resume. Everything is normal.
2.6.10-rc1? According to packages.gentoo.org, this version is not yet out for gentoo-dev-sources.

I'm gogint o build my kernel without make oldconfig tonight. But IIRC, make oldconfig only prompted like 6-8 changes over 2.6.8-r10 and none of them seems to have something to do with keyboard devices.
Comment 5 Daniel Drake (RETIRED) gentoo-dev 2004-10-28 02:28:15 UTC
I mean development-sources-2.6.10-rc1
Comment 6 Marco Nierlich 2004-10-30 08:34:39 UTC
I just tried to build develoment-sources-2.6.9 and I have the same phenomenon.
But I could nail down the problem a litle bit. It has to do somehow with sound (interrupt sharing of IRQ 9, see below (this is the /proc/interrupts from 2.6.8-r10)). I can send the machine to standby (in the shell) as many times as I want and coming back with the keybaord alive. However, after several beep outputs (tab completion or backspace at the beginning of the command line), the system keyboard does not come back anymore after resume. I tried to disable alsa completely but the system beep keeps outputing and as a consequence, after several beeps, I can not get my keyboard working correctly anymore.

I've had no time yet to try out 2.6.10.

           CPU0
  0:     461930          XT-PIC  timer
  1:       1175          XT-PIC  i8042
  2:          0          XT-PIC  cascade
  9:       7781          XT-PIC  Intel 440MX, yenta, yenta, eth0
 12:      11684          XT-PIC  i8042
 14:       8525          XT-PIC  ide0
 15:          0          XT-PIC  uhci_hcd
NMI:          0
LOC:          0
ERR:          0
MIS:          0


After a resume from standby, I get the following in /var/log/messages

Oct 30 17:31:45 pingu PCI: Found IRQ 9 for device 0000:00:00.1
Oct 30 17:31:45 pingu PCI: Sharing IRQ 9 with 0000:00:13.1
Oct 30 17:31:45 pingu PCI: Setting latency timer of device 0000:00:00.1 to 64

So I'm quite sure it has to do something with IRQ sharing of IRQ9 as soon as that IRQ passes a particular value...
Comment 7 Marco Nierlich 2004-10-30 08:35:59 UTC
I'll attach dmesg of 2.6.9 and dmesg of 2.6.8-r10. Maybe it helps someone.
Comment 8 Marco Nierlich 2004-10-30 08:37:03 UTC
Created attachment 42912 [details]
dmesg with development-sources-2.6.9
Comment 9 Marco Nierlich 2004-10-30 08:37:34 UTC
Created attachment 42913 [details]
dmesg with gentoo-dev-sources-2.6.8-r10 (working)
Comment 10 Marco Nierlich 2004-10-31 11:53:38 UTC
I just tried with 2.6.10-r1 and the keyboard still fails after resume. But it seems that the sound output has nothing to do but it's with IRQ 1 (i8042) that after several keys being pressed, the resume fails.

I can see only one relevant config option in menuconfig
Device Drivers  ---> Input device support  ---> PCI PS/2 keyboard and PS/2 mouse controller (which is compiled in the kernel).

How can I further debug this failure? Have there been code changes for that part of the kernel?

Thanks
Marco
Comment 11 tklauser 2004-11-02 12:02:08 UTC
Is there a specific reason why you're using the PCI PS/2 driver. Gnerally it's only needed if you're using a docking station (maybe thats the case with you)?

Additionaly can you please post your APM specific Kernel configuration?
Comment 12 Marco Nierlich 2004-11-03 04:58:13 UTC
I thought I needed the pcips2 option since I'm using a port replicator. But already the maintainer of pcips2 told me that it's unlike I'm using pcips2.
Today, I completely removed support for pcips2 and since then, my system seems to work well (at least I can not reproduce the error until now).

The APM related configuration can be seen in attachment 1 [details].

So after all: is this a bug or not? Enabling a feature where there is no hardware available should not interfere, right?

Thanks
Marco
Comment 13 tklauser 2004-11-03 05:07:22 UTC
> So after all: is this a bug or not? Enabling a feature where there is no 
> hardware available should not interfere, right?

Yeah right. It _should_ not interfere. But somtimes it does nonetheless (due to bad code or whatever).

I think you could close _this_ bug safely since removing pcips2 support from kernel solved the problem, but I would report the problem to upstream if I were you so the Kernel hackers get the chance to fix it.
Comment 14 Daniel Drake (RETIRED) gentoo-dev 2004-11-03 05:25:57 UTC
Yep, closing as this is somewhat user-error. It's upto the pcips2 maintainer if he regards it as a bug or not - perhaps you could ask?
Comment 15 Marco Nierlich 2004-11-03 11:37:38 UTC
unfortunately, I have to reopen this bug again :-(
It seems it was coincidence that after removing the pcips2 support, the keyboard kept on working, because now, the bug is reproducable again whenever I want. My current kernel config will be attached again.

Thanks for further investigation. If you need to know more, just let me know.

Marco
Comment 16 Marco Nierlich 2004-11-03 11:39:37 UTC
Created attachment 43237 [details]
current 2.6.9-r1 config file
Comment 17 Daniel Drake (RETIRED) gentoo-dev 2004-11-03 11:51:59 UTC
Ok. If it's definately also a problem on 2.6.10-rc1 then its an upstream issue. Could you please file a bug at the kernel bugzilla? http://bugzilla.kernel.org
Thanks
Comment 18 Marco Nierlich 2005-03-24 08:04:38 UTC
upstream solved the problem.
as of gentoo-dev-sources-2.6.11-r4, the problem is inexistant.
thanks