[2.5.60] /proc/interrupts comparsion - two irqs for i8042?

[2.5.60] /proc/interrupts comparsion - two irqs for i8042?

Post by Shawn Star » Thu, 13 Feb 2003 17:40:13



2.4:
           CPU0
  0:    2576292          XT-PIC  timer
  1:        661          XT-PIC  keyboard
  2:          0          XT-PIC  cascade
  3:         10          XT-PIC  serial
  5:    1104824          XT-PIC  soundblaster
  8:          1          XT-PIC  rtc
  9:          0          XT-PIC  acpi
 10:          7          XT-PIC  aic7xxx
 11:      15167          XT-PIC  usb-uhci, eth0
 14:       7554          XT-PIC  ide0
 15:          3          XT-PIC  ide1

2.5:

           CPU0
  0:      36281          XT-PIC  timer
  1:         15          XT-PIC  i8042
  2:          0          XT-PIC  cascade
  3:        149          XT-PIC  serial
  5:          0          XT-PIC  soundblaster
  8:          1          XT-PIC  rtc
  9:          0          XT-PIC  acpi
 10:         20          XT-PIC  aic7xxx
 11:        324          XT-PIC  uhci-hcd, eth0
 12:         60          XT-PIC  i8042 <--???
 14:        723          XT-PIC  ide0
 15:          9          XT-PIC  ide1
NMI:          0
LOC:      35547
ERR:          0
MIS:          0

Interesting, why are we using two interrupts for the i8042 (keyboard).

Shawn.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

[2.5.60] /proc/interrupts comparsion - two irqs for i8042?

Post by David Woodhous » Thu, 13 Feb 2003 17:50:12



> Interesting, why are we using two interrupts for the i8042 (keyboard).

Because the mouse is connected to the i8042 too.

--
dwmw2
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

[2.5.60] /proc/interrupts comparsion - two irqs for i8042?

Post by Brian Gers » Thu, 13 Feb 2003 18:00:17



> 2.4:
>            CPU0
>   0:    2576292          XT-PIC  timer
>   1:        661          XT-PIC  keyboard
>   2:          0          XT-PIC  cascade
>   3:         10          XT-PIC  serial
>   5:    1104824          XT-PIC  soundblaster
>   8:          1          XT-PIC  rtc
>   9:          0          XT-PIC  acpi
>  10:          7          XT-PIC  aic7xxx
>  11:      15167          XT-PIC  usb-uhci, eth0
>  14:       7554          XT-PIC  ide0
>  15:          3          XT-PIC  ide1

> 2.5:

>            CPU0
>   0:      36281          XT-PIC  timer
>   1:         15          XT-PIC  i8042
>   2:          0          XT-PIC  cascade
>   3:        149          XT-PIC  serial
>   5:          0          XT-PIC  soundblaster
>   8:          1          XT-PIC  rtc
>   9:          0          XT-PIC  acpi
>  10:         20          XT-PIC  aic7xxx
>  11:        324          XT-PIC  uhci-hcd, eth0
>  12:         60          XT-PIC  i8042 <--???
>  14:        723          XT-PIC  ide0
>  15:          9          XT-PIC  ide1
> NMI:          0
> LOC:      35547
> ERR:          0
> MIS:          0

> Interesting, why are we using two interrupts for the i8042 (keyboard).

IRQ12 is for the PS/2 mouse port.

--
                                Brian Gerst

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

[2.5.60] /proc/interrupts comparsion - two irqs for i8042?

Post by Russell Kin » Thu, 13 Feb 2003 18:00:24



>   1:         15          XT-PIC  i8042
>  12:         60          XT-PIC  i8042

> Interesting, why are we using two interrupts for the i8042 (keyboard).

i8042 != keyboard.

i8042 == keyboard controller + (optionally) PS/2 mouse controller.

IRQ1 = keyboard IRQ
IRQ12 = PS/2 mouse IRQ

--

             http://www.arm.linux.org.uk/personal/aboutme.html

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

[2.5.60] /proc/interrupts comparsion - two irqs for i8042?

Post by Dave Jone » Thu, 13 Feb 2003 18:10:14


 >   1:         15          XT-PIC  i8042

keyboard.

 >  12:         60          XT-PIC  i8042 <--???

PS2 mouse.

                Dave

--
| Dave Jones.        http://www.codemonkey.org.uk
| SuSE Labs
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

[2.5.60] /proc/interrupts comparsion - two irqs for i8042?

Post by Shawn Star » Thu, 13 Feb 2003 18:20:10


Right, but this wasn't a problem in 2.4? I had a PS/2 mouse before in 2.4
and this didnt have the problem.



> > 2.4:
> >            CPU0
> >   0:    2576292          XT-PIC  timer
> >   1:        661          XT-PIC  keyboard
> >   2:          0          XT-PIC  cascade
> >   3:         10          XT-PIC  serial
> >   5:    1104824          XT-PIC  soundblaster
> >   8:          1          XT-PIC  rtc
> >   9:          0          XT-PIC  acpi
> >  10:          7          XT-PIC  aic7xxx
> >  11:      15167          XT-PIC  usb-uhci, eth0
> >  14:       7554          XT-PIC  ide0
> >  15:          3          XT-PIC  ide1

> > 2.5:

> >            CPU0
> >   0:      36281          XT-PIC  timer
> >   1:         15          XT-PIC  i8042
> >   2:          0          XT-PIC  cascade
> >   3:        149          XT-PIC  serial
> >   5:          0          XT-PIC  soundblaster
> >   8:          1          XT-PIC  rtc
> >   9:          0          XT-PIC  acpi
> >  10:         20          XT-PIC  aic7xxx
> >  11:        324          XT-PIC  uhci-hcd, eth0
> >  12:         60          XT-PIC  i8042 <--???
> >  14:        723          XT-PIC  ide0
> >  15:          9          XT-PIC  ide1
> > NMI:          0
> > LOC:      35547
> > ERR:          0
> > MIS:          0

> > Interesting, why are we using two interrupts for the i8042 (keyboard).

> IRQ12 is for the PS/2 mouse port.

> --
>                            Brian Gerst

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
 
 
 

[2.5.60] /proc/interrupts comparsion - two irqs for i8042?

Post by Shawn Star » Thu, 13 Feb 2003 18:20:16


Right but, why does this *not* show up in 2.4? IRQ 12 is free in 2.4 but
not in 2.5 *with* PS/2 mouse enabled?!

Shawn.



>  >   1:         15          XT-PIC  i8042

> keyboard.

>  >  12:         60          XT-PIC  i8042 <--???

> PS2 mouse.

>            Dave

> --
> | Dave Jones.        http://www.codemonkey.org.uk
> | SuSE Labs

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
 
 
 

[2.5.60] /proc/interrupts comparsion - two irqs for i8042?

Post by Randy.Dunla » Thu, 13 Feb 2003 19:30:13


(see an answer at bottom)

On Wed, 12 Feb 2003 11:12:02 -0500 (EST)

|
| Right, but this wasn't a problem in 2.4? I had a PS/2 mouse before in 2.4
| and this didnt have the problem.
|
|

|

| > > 2.4:
| > >            CPU0
| > >   0:    2576292          XT-PIC  timer
| > >   1:        661          XT-PIC  keyboard
| > >   2:          0          XT-PIC  cascade
| > >   3:         10          XT-PIC  serial
| > >   5:    1104824          XT-PIC  soundblaster
| > >   8:          1          XT-PIC  rtc
| > >   9:          0          XT-PIC  acpi
| > >  10:          7          XT-PIC  aic7xxx
| > >  11:      15167          XT-PIC  usb-uhci, eth0
| > >  14:       7554          XT-PIC  ide0
| > >  15:          3          XT-PIC  ide1
| > >
| > > 2.5:
| > >
| > >            CPU0
| > >   0:      36281          XT-PIC  timer
| > >   1:         15          XT-PIC  i8042
| > >   2:          0          XT-PIC  cascade
| > >   3:        149          XT-PIC  serial
| > >   5:          0          XT-PIC  soundblaster
| > >   8:          1          XT-PIC  rtc
| > >   9:          0          XT-PIC  acpi
| > >  10:         20          XT-PIC  aic7xxx
| > >  11:        324          XT-PIC  uhci-hcd, eth0
| > >  12:         60          XT-PIC  i8042 <--???
| > >  14:        723          XT-PIC  ide0
| > >  15:          9          XT-PIC  ide1
| > > NMI:          0
| > > LOC:      35547
| > > ERR:          0
| > > MIS:          0
| > >
| > > Interesting, why are we using two interrupts for the i8042 (keyboard).
| >
| > IRQ12 is for the PS/2 mouse port.
| >
| > --
| >                          Brian Gerst

Do you have a PS/2 mouse enabled/configured in 2.4?
I do, and it shows this on 2.4.20:

  0:   78505022          XT-PIC  timer
  1:     305438          XT-PIC  keyboard
  2:          0          XT-PIC  cascade
  3:    2013477          XT-PIC  xirc2ps_cs
  5:          0          XT-PIC  usb-uhci
  8:          1          XT-PIC  rtc
 10:          4          XT-PIC  i82365
 11:    2188569          XT-PIC  i82365, cs46xx
 12:    1555382          XT-PIC  PS/2 Mouse
 14:     872963          XT-PIC  ide0
 15:          3          XT-PIC  ide1

and the driver code certainly requests IRQ 12 for the PS/2 mouse
when it's configured.

--
~Randy
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

[2.5.60] /proc/interrupts comparsion - two irqs for i8042?

Post by Dave Jone » Thu, 13 Feb 2003 19:40:10


 > Right but, why does this *not* show up in 2.4? IRQ 12 is free in 2.4 but
 > not in 2.5 *with* PS/2 mouse enabled?!

At a guess CONFIG_PSMOUSE=n
It works fine here.

                Dave

--
| Dave Jones.        http://www.codemonkey.org.uk
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

[2.5.60] /proc/interrupts comparsion - two irqs for i8042?

Post by Shawn Star » Thu, 13 Feb 2003 20:10:12


hmm, It appears the PS/2 was not on when I built that kernel.

But the fact remains, I'm out of IRQs some how. ;/

Shawn.


> (see an answer at bottom)

> On Wed, 12 Feb 2003 11:12:02 -0500 (EST)

> |
> | Right, but this wasn't a problem in 2.4? I had a PS/2 mouse before in 2.4
> | and this didnt have the problem.
> |
> |

> |

> | > > 2.4:
> | > >            CPU0
> | > >   0:    2576292          XT-PIC  timer
> | > >   1:        661          XT-PIC  keyboard
> | > >   2:          0          XT-PIC  cascade
> | > >   3:         10          XT-PIC  serial
> | > >   5:    1104824          XT-PIC  soundblaster
> | > >   8:          1          XT-PIC  rtc
> | > >   9:          0          XT-PIC  acpi
> | > >  10:          7          XT-PIC  aic7xxx
> | > >  11:      15167          XT-PIC  usb-uhci, eth0
> | > >  14:       7554          XT-PIC  ide0
> | > >  15:          3          XT-PIC  ide1
> | > >
> | > > 2.5:
> | > >
> | > >            CPU0
> | > >   0:      36281          XT-PIC  timer
> | > >   1:         15          XT-PIC  i8042
> | > >   2:          0          XT-PIC  cascade
> | > >   3:        149          XT-PIC  serial
> | > >   5:          0          XT-PIC  soundblaster
> | > >   8:          1          XT-PIC  rtc
> | > >   9:          0          XT-PIC  acpi
> | > >  10:         20          XT-PIC  aic7xxx
> | > >  11:        324          XT-PIC  uhci-hcd, eth0
> | > >  12:         60          XT-PIC  i8042 <--???
> | > >  14:        723          XT-PIC  ide0
> | > >  15:          9          XT-PIC  ide1
> | > > NMI:          0
> | > > LOC:      35547
> | > > ERR:          0
> | > > MIS:          0
> | > >
> | > > Interesting, why are we using two interrupts for the i8042 (keyboard).
> | >
> | > IRQ12 is for the PS/2 mouse port.
> | >
> | > --
> | >                             Brian Gerst

> Do you have a PS/2 mouse enabled/configured in 2.4?
> I do, and it shows this on 2.4.20:

>   0:   78505022          XT-PIC  timer
>   1:     305438          XT-PIC  keyboard
>   2:          0          XT-PIC  cascade
>   3:    2013477          XT-PIC  xirc2ps_cs
>   5:          0          XT-PIC  usb-uhci
>   8:          1          XT-PIC  rtc
>  10:          4          XT-PIC  i82365
>  11:    2188569          XT-PIC  i82365, cs46xx
>  12:    1555382          XT-PIC  PS/2 Mouse
>  14:     872963          XT-PIC  ide0
>  15:          3          XT-PIC  ide1

> and the driver code certainly requests IRQ 12 for the PS/2 mouse
> when it's configured.

> --
> ~Randy

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
 
 
 

[2.5.60] /proc/interrupts comparsion - two irqs for i8042?

Post by Randy.Dunla » Thu, 13 Feb 2003 20:30:19


How are you out of IRQs now?
Were you out of IRQs in 2.4.20 and just didn't notice it?

~Randy

On Wed, 12 Feb 2003 13:07:00 -0500 (EST)

|
| hmm, It appears the PS/2 was not on when I built that kernel.
|
| But the fact remains, I'm out of IRQs some how. ;/
|
| Shawn.
|

|
| > (see an answer at bottom)
| >
| > On Wed, 12 Feb 2003 11:12:02 -0500 (EST)

| >
| > |
| > | Right, but this wasn't a problem in 2.4? I had a PS/2 mouse before in 2.4
| > | and this didnt have the problem.
| > |
| > |

| > |

| > | > > 2.4:
| > | > >            CPU0
| > | > >   0:    2576292          XT-PIC  timer
| > | > >   1:        661          XT-PIC  keyboard
| > | > >   2:          0          XT-PIC  cascade
| > | > >   3:         10          XT-PIC  serial
| > | > >   5:    1104824          XT-PIC  soundblaster
| > | > >   8:          1          XT-PIC  rtc
| > | > >   9:          0          XT-PIC  acpi
| > | > >  10:          7          XT-PIC  aic7xxx
| > | > >  11:      15167          XT-PIC  usb-uhci, eth0
| > | > >  14:       7554          XT-PIC  ide0
| > | > >  15:          3          XT-PIC  ide1
| > | > >
| > | > > 2.5:
| > | > >
| > | > >            CPU0
| > | > >   0:      36281          XT-PIC  timer
| > | > >   1:         15          XT-PIC  i8042
| > | > >   2:          0          XT-PIC  cascade
| > | > >   3:        149          XT-PIC  serial
| > | > >   5:          0          XT-PIC  soundblaster
| > | > >   8:          1          XT-PIC  rtc
| > | > >   9:          0          XT-PIC  acpi
| > | > >  10:         20          XT-PIC  aic7xxx
| > | > >  11:        324          XT-PIC  uhci-hcd, eth0
| > | > >  12:         60          XT-PIC  i8042 <--???
| > | > >  14:        723          XT-PIC  ide0
| > | > >  15:          9          XT-PIC  ide1
| > | > > NMI:          0
| > | > > LOC:      35547
| > | > > ERR:          0
| > | > > MIS:          0
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

[2.5.60] /proc/interrupts comparsion - two irqs for i8042?

Post by Shawn Star » Thu, 13 Feb 2003 20:40:09


well, In 2.4, i wasn't out of IRQs, I had 3 Com ports and the sound
blaster working fine. If I didn't have PS/2 compiled In i don't know if
that would bring me back into the situation that I'm currently in.

Something weird is going on.


> How are you out of IRQs now?
> Were you out of IRQs in 2.4.20 and just didn't notice it?

> ~Randy

> On Wed, 12 Feb 2003 13:07:00 -0500 (EST)

> |
> | hmm, It appears the PS/2 was not on when I built that kernel.
> |
> | But the fact remains, I'm out of IRQs some how. ;/
> |
> | Shawn.
> |

> |
> | > (see an answer at bottom)
> | >
> | > On Wed, 12 Feb 2003 11:12:02 -0500 (EST)

> | >
> | > |
> | > | Right, but this wasn't a problem in 2.4? I had a PS/2 mouse before in 2.4
> | > | and this didnt have the problem.
> | > |
> | > |

> | > |

> | > | > > 2.4:
> | > | > >            CPU0
> | > | > >   0:    2576292          XT-PIC  timer
> | > | > >   1:        661          XT-PIC  keyboard
> | > | > >   2:          0          XT-PIC  cascade
> | > | > >   3:         10          XT-PIC  serial
> | > | > >   5:    1104824          XT-PIC  soundblaster
> | > | > >   8:          1          XT-PIC  rtc
> | > | > >   9:          0          XT-PIC  acpi
> | > | > >  10:          7          XT-PIC  aic7xxx
> | > | > >  11:      15167          XT-PIC  usb-uhci, eth0
> | > | > >  14:       7554          XT-PIC  ide0
> | > | > >  15:          3          XT-PIC  ide1
> | > | > >
> | > | > > 2.5:
> | > | > >
> | > | > >            CPU0
> | > | > >   0:      36281          XT-PIC  timer
> | > | > >   1:         15          XT-PIC  i8042
> | > | > >   2:          0          XT-PIC  cascade
> | > | > >   3:        149          XT-PIC  serial
> | > | > >   5:          0          XT-PIC  soundblaster
> | > | > >   8:          1          XT-PIC  rtc
> | > | > >   9:          0          XT-PIC  acpi
> | > | > >  10:         20          XT-PIC  aic7xxx
> | > | > >  11:        324          XT-PIC  uhci-hcd, eth0
> | > | > >  12:         60          XT-PIC  i8042 <--???
> | > | > >  14:        723          XT-PIC  ide0
> | > | > >  15:          9          XT-PIC  ide1
> | > | > > NMI:          0
> | > | > > LOC:      35547
> | > | > > ERR:          0
> | > | > > MIS:          0

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
 
 
 

[2.5.60] /proc/interrupts comparsion - two irqs for i8042?

Post by Ducrot Brun » Thu, 13 Feb 2003 20:50:18



> Right but, why does this *not* show up in 2.4? IRQ 12 is free in 2.4 but
> not in 2.5 *with* PS/2 mouse enabled?!

Because this interrupt is only requested when /dev/psaux is opened in 2.4.

--
Ducrot Bruno
http://www.poupinou.org        Page profaissionelle
http://toto.tu-me-saoules.com  Haume page
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

[2.5.60] /proc/interrupts comparsion - two irqs for i8042?

Post by Shawn Star » Thu, 13 Feb 2003 21:30:17


I see, wasn't this better behaviour though?



> > Right but, why does this *not* show up in 2.4? IRQ 12 is free in 2.4 but
> > not in 2.5 *with* PS/2 mouse enabled?!

> Because this interrupt is only requested when /dev/psaux is opened in 2.4.

> --
> Ducrot Bruno
> http://www.poupinou.org        Page profaissionelle
> http://toto.tu-me-saoules.com  Haume page

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
 
 
 

[2.5.60] /proc/interrupts comparsion - two irqs for i8042?

Post by Pete Zaitce » Thu, 13 Feb 2003 22:20:15



>> > Right but, why does this *not* show up in 2.4? IRQ 12 is free in 2.4 but
>> > not in 2.5 *with* PS/2 mouse enabled?!

>> Because this interrupt is only requested when /dev/psaux is opened in 2.4.

> I see, wasn't this better behaviour though?

Not for all hardware. As SMM emulated "software i8042" continue
to spread, the bugs continue to spread as well. Some systems,
notably Dell i5000 simply do not work at all if the IRQ12 is
not serviced (it's actually a little more complicated, but anyway...).

I saw that the counter was at zero for your soundblaster, but
I strongly suspect it had little to do with the PS/2 mouse.
I am surprised it even compiles. I think it was one of the
last drivers converted to proper DMA API, perhaps it just
wasn't done right. I know SB won't interrupt if DMA does not
complete. Why don't you verify that the sound subsystem is
sane in your case? You might be using ALSA and not knowing it.

-- Pete
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/