public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* Re: psmouse.c, throwing 3 bytes away
       [not found]   ` <20040208221933.92D0B3F1B-hJetzOkQQ2D26ODOwDBsm7iufofboIZS@public.gmane.org>
@ 2004-02-08 23:03     ` Bernd Schubert
       [not found]       ` <20040208230314.GA21937-XPbICIHHaRhIi1TGZYQs7PQvEQgnY+0MepZhswDD4dQ@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Bernd Schubert @ 2004-02-08 23:03 UTC (permalink / raw)
  To: linux-kernel-u79uwXL29TY76Z2rM5mHXA, vojtech-AlSwsSmVLrQ,
	acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

On Sun, Feb 08, 2004 at 11:19:32PM +0100, aeriksson-97jfqw80gc6171pxa8y+qA@public.gmane.org wrote:
> 
> > 
> > > Problem still occurs :-(
> > 
> > I have good news - I've managed to reliably reproduce the bug on my
> > machine and that means I now have a good chance to find and fix it.
> > 
> 
> Another data point. I just tried switching to a non-preempt kernel as
> was suggested by someone. The problem still occurs.
> 

Hello,

on IBM Thinkpads R31 this is also easiliy to reproduce:

For 2.6. one only needs to read from /proc/apm or /proc/acpic/...
and the mouse becomes crazy and one gets the throwing 2 bytes away
messages in the log files. By fast reading in an endless loop even
input from the keyboard is ignored.

For 2.4. this only happens on reading from /proc/apm, somehow acpi is not
affected in 2.4. kernel versions.

Well, for R31's it is said that it is the bad bios, but maybe its
related? Any ideas why it doesn't happen with acpi and 2.4.? 

My knowlege of the kernel interals is quite low and pretty much limited
to the basic vfs area, so could you please give me some good advises how to
debug this?

Thanks,
	Bernd


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: psmouse.c, throwing 3 bytes away
       [not found]       ` <20040208230314.GA21937-XPbICIHHaRhIi1TGZYQs7PQvEQgnY+0MepZhswDD4dQ@public.gmane.org>
@ 2004-02-08 23:30         ` Vojtech Pavlik
       [not found]           ` <20040208233052.GA17570-+ZI9xUNit7I@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Vojtech Pavlik @ 2004-02-08 23:30 UTC (permalink / raw)
  To: Bernd Schubert
  Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA,
	acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

On Mon, Feb 09, 2004 at 12:03:14AM +0100, Bernd Schubert wrote:

> On Sun, Feb 08, 2004 at 11:19:32PM +0100, aeriksson-97jfqw80gc6171pxa8y+qA@public.gmane.org wrote:
> > 
> > > 
> > > > Problem still occurs :-(
> > > 
> > > I have good news - I've managed to reliably reproduce the bug on my
> > > machine and that means I now have a good chance to find and fix it.
> > > 
> > 
> > Another data point. I just tried switching to a non-preempt kernel as
> > was suggested by someone. The problem still occurs.

> Hello,
> 
> on IBM Thinkpads R31 this is also easiliy to reproduce:
> 
> For 2.6. one only needs to read from /proc/apm or /proc/acpic/...
> and the mouse becomes crazy and one gets the throwing 2 bytes away
> messages in the log files. By fast reading in an endless loop even
> input from the keyboard is ignored.
> 
> For 2.4. this only happens on reading from /proc/apm, somehow acpi is not
> affected in 2.4. kernel versions.
> 
> Well, for R31's it is said that it is the bad bios, but maybe its
> related? Any ideas why it doesn't happen with acpi and 2.4.? 

There are many reasons why it can happen. I'm currently debugging the
one where no APM or ACPI or anything else is needed.

> My knowlege of the kernel interals is quite low and pretty much limited
> to the basic vfs area, so could you please give me some good advises how to
> debug this?

You can enable DEBUG in i8042.c, and then look at 'dmesg' when the
problem happens. There will be a missing byte in the stream ...

-- 
Vojtech Pavlik
SuSE Labs, SuSE CR


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Re: psmouse.c, throwing 3 bytes away
       [not found]           ` <20040208233052.GA17570-+ZI9xUNit7I@public.gmane.org>
@ 2004-02-09 12:43             ` roychris
  2004-02-09 15:12             ` roychris
  1 sibling, 0 replies; 4+ messages in thread
From: roychris @ 2004-02-09 12:43 UTC (permalink / raw)
  To: Vojtech Pavlik
  Cc: Bernd Schubert, linux-kernel-u79uwXL29TY76Z2rM5mHXA,
	acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

[-- Attachment #1: Type: text/plain, Size: 2588 bytes --]

I resolved this problem. It's the fault of the multiplexing on i8042. 
You must pass i8042_nomux=1 to the kernel for 2.4.X or 2.6.0 or you must 
modify
linux-2.6.x/drivers/input/serio/i8042.c by quoting many lines if > 2.6.0 
because nomux doesn't work :


/*      if (!i8042_noaux && !i8042_check_aux(&i8042_aux_values)) {
                if (!i8042_nomux && !i8042_check_mux(&i8042_aux_values))
                        for (i = 0; i < 4; i++) {
                                i8042_init_mux_values(i8042_mux_values + 
i, i804
2_mux_port + i, i);
                                i8042_port_register(i8042_mux_values + 
i, i8042_
mux_port + i);
                        }
                else
*/                    
             i8042_port_register(&i8042_aux_values, &i8042_aux_port);
//      }

I know it's a very bad way to solve the problem but it's working and I 
don't have more time.


Vojtech Pavlik a écrit :

>On Mon, Feb 09, 2004 at 12:03:14AM +0100, Bernd Schubert wrote:
>
>  
>
>>On Sun, Feb 08, 2004 at 11:19:32PM +0100, aeriksson-97jfqw80gc6171pxa8y+qA@public.gmane.org wrote:
>>    
>>
>>>>>Problem still occurs :-(
>>>>>          
>>>>>
>>>>I have good news - I've managed to reliably reproduce the bug on my
>>>>machine and that means I now have a good chance to find and fix it.
>>>>
>>>>        
>>>>
>>>Another data point. I just tried switching to a non-preempt kernel as
>>>was suggested by someone. The problem still occurs.
>>>      
>>>
>
>  
>
>>Hello,
>>
>>on IBM Thinkpads R31 this is also easiliy to reproduce:
>>
>>For 2.6. one only needs to read from /proc/apm or /proc/acpic/...
>>and the mouse becomes crazy and one gets the throwing 2 bytes away
>>messages in the log files. By fast reading in an endless loop even
>>input from the keyboard is ignored.
>>
>>For 2.4. this only happens on reading from /proc/apm, somehow acpi is not
>>affected in 2.4. kernel versions.
>>
>>Well, for R31's it is said that it is the bad bios, but maybe its
>>related? Any ideas why it doesn't happen with acpi and 2.4.? 
>>    
>>
>
>There are many reasons why it can happen. I'm currently debugging the
>one where no APM or ACPI or anything else is needed.
>
>  
>
>>My knowlege of the kernel interals is quite low and pretty much limited
>>to the basic vfs area, so could you please give me some good advises how to
>>debug this?
>>    
>>
>
>You can enable DEBUG in i8042.c, and then look at 'dmesg' when the
>problem happens. There will be a missing byte in the stream ...
>
>  
>


[-- Attachment #2: Type: text/html, Size: 4347 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Re: psmouse.c, throwing 3 bytes away
       [not found]           ` <20040208233052.GA17570-+ZI9xUNit7I@public.gmane.org>
  2004-02-09 12:43             ` roychris
@ 2004-02-09 15:12             ` roychris
  1 sibling, 0 replies; 4+ messages in thread
From: roychris @ 2004-02-09 15:12 UTC (permalink / raw)
  To: Vojtech Pavlik
  Cc: Bernd Schubert, acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

[-- Attachment #1: Type: text/plain, Size: 2588 bytes --]

I resolved this problem. It's the fault of the multiplexing on i8042. 
You must pass i8042_nomux=1 to the kernel for 2.4.X or 2.6.0 or you must 
modify
linux-2.6.x/drivers/input/serio/i8042.c by quoting many lines if > 2.6.0 
because nomux doesn't work :


/*      if (!i8042_noaux && !i8042_check_aux(&i8042_aux_values)) {
                if (!i8042_nomux && !i8042_check_mux(&i8042_aux_values))
                        for (i = 0; i < 4; i++) {
                                i8042_init_mux_values(i8042_mux_values + 
i, i804
2_mux_port + i, i);
                                i8042_port_register(i8042_mux_values + 
i, i8042_
mux_port + i);
                        }
                else
*/                    
             i8042_port_register(&i8042_aux_values, &i8042_aux_port);
//      }

I know it's a very bad way to solve the problem but it's working and I 
don't have more time.


Vojtech Pavlik a écrit :

>On Mon, Feb 09, 2004 at 12:03:14AM +0100, Bernd Schubert wrote:
>
>  
>
>>On Sun, Feb 08, 2004 at 11:19:32PM +0100, aeriksson-97jfqw80gc6171pxa8y+qA@public.gmane.org wrote:
>>    
>>
>>>>>Problem still occurs :-(
>>>>>          
>>>>>
>>>>I have good news - I've managed to reliably reproduce the bug on my
>>>>machine and that means I now have a good chance to find and fix it.
>>>>
>>>>        
>>>>
>>>Another data point. I just tried switching to a non-preempt kernel as
>>>was suggested by someone. The problem still occurs.
>>>      
>>>
>
>  
>
>>Hello,
>>
>>on IBM Thinkpads R31 this is also easiliy to reproduce:
>>
>>For 2.6. one only needs to read from /proc/apm or /proc/acpic/...
>>and the mouse becomes crazy and one gets the throwing 2 bytes away
>>messages in the log files. By fast reading in an endless loop even
>>input from the keyboard is ignored.
>>
>>For 2.4. this only happens on reading from /proc/apm, somehow acpi is not
>>affected in 2.4. kernel versions.
>>
>>Well, for R31's it is said that it is the bad bios, but maybe its
>>related? Any ideas why it doesn't happen with acpi and 2.4.? 
>>    
>>
>
>There are many reasons why it can happen. I'm currently debugging the
>one where no APM or ACPI or anything else is needed.
>
>  
>
>>My knowlege of the kernel interals is quite low and pretty much limited
>>to the basic vfs area, so could you please give me some good advises how to
>>debug this?
>>    
>>
>
>You can enable DEBUG in i8042.c, and then look at 'dmesg' when the
>problem happens. There will be a missing byte in the stream ...
>
>  
>


[-- Attachment #2: Type: text/html, Size: 4436 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-02-09 15:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20040208215935.GA13280@ucw.cz>
     [not found] ` <20040208221933.92D0B3F1B@latitude.mynet.no-ip.org>
     [not found]   ` <20040208221933.92D0B3F1B-hJetzOkQQ2D26ODOwDBsm7iufofboIZS@public.gmane.org>
2004-02-08 23:03     ` psmouse.c, throwing 3 bytes away Bernd Schubert
     [not found]       ` <20040208230314.GA21937-XPbICIHHaRhIi1TGZYQs7PQvEQgnY+0MepZhswDD4dQ@public.gmane.org>
2004-02-08 23:30         ` Vojtech Pavlik
     [not found]           ` <20040208233052.GA17570-+ZI9xUNit7I@public.gmane.org>
2004-02-09 12:43             ` roychris
2004-02-09 15:12             ` roychris

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox