linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Grzegorz Kulewski <kangur@polcom.net>
To: "R. J. Wysocki" <rjwysocki@sisk.pl>
Cc: Ralf Hildebrandt <Ralf.Hildebrandt@charite.de>,
	linux-kernel@vger.kernel.org
Subject: Re: 2.6.5: keyboard lockup on a Toshiba laptop
Date: Fri, 9 Apr 2004 18:30:38 +0200 (CEST)	[thread overview]
Message-ID: <Pine.LNX.4.58.0404091734240.18073@alpha.polcom.net> (raw)
In-Reply-To: <200404091612.23032.rjwysocki@sisk.pl>

[-- Attachment #1: Type: TEXT/PLAIN, Size: 3065 bytes --]

On Fri, 9 Apr 2004, R. J. Wysocki wrote:

> On Wednesday 07 of April 2004 13:31, Grzegorz Kulewski wrote:
> > Ok, that should be easy to debug... I hope :-)
> >
> > Try to apply this patch to check what kernel part call connect function
> > too many times. (Maybe it is some power management stuff?)
> 
> I've applied this and I've got something like this in the log after a (recent) 
> lockup:
> 
> Apr  9 10:47:03 albercik kernel: Uniform CD-ROM driver Revision: 3.20
> Apr  9 10:47:03 albercik kernel: inserting floppy driver for 2.6.5
> Apr  9 10:47:03 albercik kernel: Floppy drive(s): fd0 is 1.44M
> Apr  9 10:47:03 albercik kernel: FDC 0 is a post-1991 82077
> Apr  9 10:47:03 albercik kernel: SCSI subsystem initialized
> Apr  9 10:51:11 albercik kernel: spurious 8259A interrupt: IRQ7.
> Apr  9 15:00:24 albercik kernel: Call Trace:
> Apr  9 15:00:24 albercik kernel:  [<c0277b29>] atkbd_connect+0x19/0x420
> Apr  9 15:00:24 albercik kernel:  [<c027adca>] serio_find_dev+0x6a/0x70
> Apr  9 15:00:24 albercik kernel:  [<c027aee9>] serio_handle_events+0xc9/0x120
> Apr  9 15:00:24 albercik kernel:  [<c027af85>] serio_thread+0x45/0x140
> Apr  9 15:00:24 albercik kernel:  [<c0117a40>] default_wake_function+0x0/0x20
> Apr  9 15:00:24 albercik kernel:  [<c027af40>] serio_thread+0x0/0x140
> Apr  9 15:00:24 albercik kernel:  [<c0105285>] kernel_thread_helper+0x5/0x10
> Apr  9 15:00:24 albercik kernel: 
> Apr  9 15:00:24 albercik kernel: input: AT Translated Set 2 keyboard on 
> isa0060/serio0
> Apr  9 15:42:19 albercik kernel: Call Trace:
> Apr  9 15:42:19 albercik kernel:  [<c0277b29>] atkbd_connect+0x19/0x420
> Apr  9 15:42:19 albercik kernel:  [<c027adca>] serio_find_dev+0x6a/0x70
> Apr  9 15:42:19 albercik kernel:  [<c027aee9>] serio_handle_events+0xc9/0x120
> Apr  9 15:42:19 albercik kernel:  [<c027af85>] serio_thread+0x45/0x140
> Apr  9 15:42:19 albercik kernel:  [<c0117a40>] default_wake_function+0x0/0x20
> Apr  9 15:42:19 albercik kernel:  [<c027af40>] serio_thread+0x0/0x140
> Apr  9 15:42:19 albercik kernel:  [<c0105285>] kernel_thread_helper+0x5/0x10
> Apr  9 15:42:19 albercik kernel: 
> Apr  9 15:42:19 albercik kernel: input: AT Translated Set 2 keyboard on 
> isa0060/serio0
> Apr  9 15:58:36 albercik kernel: Call Trace:
> Apr  9 15:58:36 albercik kernel:  [<c0277b29>] atkbd_connect+0x19/0x420
> Apr  9 15:58:36 albercik kernel:  [<c027adca>] serio_find_dev+0x6a/0x70
> Apr  9 15:58:36 albercik kernel:  [<c027aee9>] serio_handle_events+0xc9/0x120
> Apr  9 15:58:36 albercik kernel:  [<c027af85>] serio_thread+0x45/0x140
> Apr  9 15:58:36 albercik kernel:  [<c0117a40>] default_wake_function+0x0/0x20
> Apr  9 15:58:36 albercik kernel:  [<c027af40>] serio_thread+0x0/0x140
> Apr  9 15:58:36 albercik kernel:  [<c0105285>] kernel_thread_helper+0x5/0x10
> Apr  9 15:58:36 albercik kernel: 
> 
> Here I had to reboot the machine.

So we can see that atkbd_connect is called several times (and it probably 
should not... - somebody correct me if I am wrong).

Apply attached patch to see what causes reconnection.

Grzegorz Kulewski

[-- Attachment #2: Type: TEXT/PLAIN, Size: 631 bytes --]

--- /usr/src/linux-2.6.5/drivers/input/serio/serio.c.orig	2004-04-04 05:36:15.000000000 +0200
+++ /usr/src/linux-2.6.5/drivers/input/serio/serio.c	2004-04-09 18:28:50.268521936 +0200
@@ -166,6 +166,11 @@ static int serio_thread(void *nothing)
 static void serio_queue_event(struct serio *serio, int event_type)
 {
 	struct serio_event *event;
+	
+	if (event_type == SERIO_RESCAN || event_type == SERIO_RECONNECT) {
+		printk(KERN_WARNING "serio: RESCAN || RECONNECT requested: %d!\n", event_type);
+		dump_stack();
+	}
 
 	if ((event = kmalloc(sizeof(struct serio_event), GFP_ATOMIC))) {
 		event->type = event_type;

  reply	other threads:[~2004-04-09 16:30 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-07 10:22 2.6.5: keyboard lockup on a Toshiba laptop R. J. Wysocki
2004-04-07 10:33 ` Grzegorz Kulewski
2004-04-07 10:39   ` Ralf Hildebrandt
2004-04-07 10:51     ` Grzegorz Kulewski
2004-04-07 10:56       ` Ralf Hildebrandt
     [not found]       ` <20040407105522.GN20293@charite.de>
2004-04-07 11:03         ` Grzegorz Kulewski
2004-04-07 11:06           ` Ralf Hildebrandt
2004-04-07 11:31             ` Grzegorz Kulewski
2004-04-09 14:12               ` R. J. Wysocki
2004-04-09 16:30                 ` Grzegorz Kulewski [this message]
2004-04-07 11:21   ` R. J. Wysocki
2004-04-07 11:30     ` Vojtech Pavlik
2004-04-15 18:54       ` Ralf Hildebrandt
2004-04-15 19:47         ` Vojtech Pavlik
2004-04-07 10:47 ` Meelis Roos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.58.0404091734240.18073@alpha.polcom.net \
    --to=kangur@polcom.net \
    --cc=Ralf.Hildebrandt@charite.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rjwysocki@sisk.pl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).