2003-02-12 15:25:35

by Shawn Starr

[permalink] [raw]
Subject: [2.4.20][2.5.60] /proc/interrupts comparsion - two irqs for i8042?


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.


2003-02-12 15:34:23

by David Woodhouse

[permalink] [raw]
Subject: Re: [2.4.20][2.5.60] /proc/interrupts comparsion - two irqs for i8042?

On Wed, 2003-02-12 at 15:36, Shawn Starr wrote:

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

Because the mouse is connected to the i8042 too.

--
dwmw2

2003-02-12 15:43:26

by Russell King

[permalink] [raw]
Subject: Re: [2.4.20][2.5.60] /proc/interrupts comparsion - two irqs for i8042?

On Wed, Feb 12, 2003 at 10:36:16AM -0500, Shawn Starr wrote:
> 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

--
Russell King ([email protected]) The developer of ARM Linux
http://www.arm.linux.org.uk/personal/aboutme.html

2003-02-12 15:37:59

by Brian Gerst

[permalink] [raw]
Subject: Re: [2.4.20][2.5.60] /proc/interrupts comparsion - two irqs for i8042?

Shawn Starr wrote:
> 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

2003-02-12 15:50:13

by Dave Jones

[permalink] [raw]
Subject: Re: [2.4.20][2.5.60] /proc/interrupts comparsion - two irqs for i8042?

On Wed, Feb 12, 2003 at 10:36:16AM -0500, Shawn Starr wrote:

> 1: 15 XT-PIC i8042

keyboard.

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

PS2 mouse.

Dave

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

2003-02-12 16:03:57

by Shawn Starr

[permalink] [raw]
Subject: Re: [2.4.20][2.5.60] /proc/interrupts comparsion - two irqs for i8042?


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.

On Wed, 12 Feb 2003, Dave Jones wrote:

> On Wed, Feb 12, 2003 at 10:36:16AM -0500, Shawn Starr wrote:
>
> > 1: 15 XT-PIC i8042
>
> keyboard.
>
> > 12: 60 XT-PIC i8042 <--???
>
> PS2 mouse.
>
> Dave
>
> --
> | Dave Jones. http://www.codemonkey.org.uk
> | SuSE Labs
>
>

2003-02-12 16:01:22

by Shawn Starr

[permalink] [raw]
Subject: Re: [2.4.20][2.5.60] /proc/interrupts comparsion - two irqs for i8042?


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.


On Wed, 12 Feb 2003, Brian Gerst wrote:

> Shawn Starr wrote:
> > 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
>
>
>

2003-02-12 17:12:22

by Randy.Dunlap

[permalink] [raw]
Subject: Re: [2.4.20][2.5.60] /proc/interrupts comparsion - two irqs for i8042?

(see an answer at bottom)

On Wed, 12 Feb 2003 11:12:02 -0500 (EST)
Shawn Starr <[email protected]> wrote:

|
| 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.
|
|
| On Wed, 12 Feb 2003, Brian Gerst wrote:
|
| > Shawn Starr wrote:
| > > 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

2003-02-12 17:23:29

by Dave Jones

[permalink] [raw]
Subject: Re: [2.4.20][2.5.60] /proc/interrupts comparsion - two irqs for i8042?

On Wed, Feb 12, 2003 at 11:14:40AM -0500, Shawn Starr wrote:

> 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

2003-02-12 17:56:18

by Shawn Starr

[permalink] [raw]
Subject: Re: [2.4.20][2.5.60] /proc/interrupts comparsion - two irqs for i8042?


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.

On Wed, 12 Feb 2003, Randy.Dunlap wrote:

> (see an answer at bottom)
>
> On Wed, 12 Feb 2003 11:12:02 -0500 (EST)
> Shawn Starr <[email protected]> wrote:
>
> |
> | 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.
> |
> |
> | On Wed, 12 Feb 2003, Brian Gerst wrote:
> |
> | > Shawn Starr wrote:
> | > > 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
>
>

2003-02-12 18:22:28

by Shawn Starr

[permalink] [raw]
Subject: Re: [2.4.20][2.5.60] /proc/interrupts comparsion - two irqs for i8042?


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.

On Wed, 12 Feb 2003, Randy.Dunlap wrote:

> 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)
> Shawn Starr <[email protected]> wrote:
>
> |
> | 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.
> |
> | On Wed, 12 Feb 2003, Randy.Dunlap wrote:
> |
> | > (see an answer at bottom)
> | >
> | > On Wed, 12 Feb 2003 11:12:02 -0500 (EST)
> | > Shawn Starr <[email protected]> wrote:
> | >
> | > |
> | > | 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.
> | > |
> | > |
> | > | On Wed, 12 Feb 2003, Brian Gerst wrote:
> | > |
> | > | > Shawn Starr wrote:
> | > | > > 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
>
>

2003-02-12 18:13:34

by Randy.Dunlap

[permalink] [raw]
Subject: Re: [2.4.20][2.5.60] /proc/interrupts comparsion - two irqs for i8042?

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)
Shawn Starr <[email protected]> wrote:

|
| 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.
|
| On Wed, 12 Feb 2003, Randy.Dunlap wrote:
|
| > (see an answer at bottom)
| >
| > On Wed, 12 Feb 2003 11:12:02 -0500 (EST)
| > Shawn Starr <[email protected]> wrote:
| >
| > |
| > | 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.
| > |
| > |
| > | On Wed, 12 Feb 2003, Brian Gerst wrote:
| > |
| > | > Shawn Starr wrote:
| > | > > 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

2003-02-12 18:35:58

by Bruno Ducrot

[permalink] [raw]
Subject: Re: [2.4.20][2.5.60] /proc/interrupts comparsion - two irqs for i8042?

On Wed, Feb 12, 2003 at 11:14:40AM -0500, Shawn Starr wrote:
>
> 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

2003-02-12 19:11:50

by Shawn Starr

[permalink] [raw]
Subject: Re: [2.4.20][2.5.60] /proc/interrupts comparsion - two irqs for i8042?


I see, wasn't this better behaviour though?

On Wed, 12 Feb 2003, Ducrot Bruno wrote:

> On Wed, Feb 12, 2003 at 11:14:40AM -0500, Shawn Starr wrote:
> >
> > 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
>
>

2003-02-13 04:48:35

by Shawn Starr

[permalink] [raw]
Subject: Update on IRQ/DMA conflict w/ 2.5.60 and ISA PnP SB...


It appears if I disable IBM's OS PnP BIOS support. I get no more conflicts
with the SB card. As for the ISA PnP USRobotics modem, I can't tell if it
works or not.

ttyS0 at I/O 0x3f8 (irq = 3) is a 16550A
ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
ttyS2 at I/O 0x3e8 (irq = 4) is a 16550A

We report duplicate IRQs for COM1/COM2 however, the IBM BIOS *REFUSES*
all conflicts and will not allow shared communication ports. This is
bogus.

BIOS has this set:
ttyS0 = IRQ 4
ttyS1 = IRQ 3
-
ttyS2 = Determined by PnP

Shawn.

2003-02-13 23:28:50

by Bill Davidsen

[permalink] [raw]
Subject: Re: [2.4.20][2.5.60] /proc/interrupts comparsion - two irqs for i8042?

On Wed, 12 Feb 2003, Randy.Dunlap wrote:

> 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.

I would agree that the identification is far more useful in 2.4, but it
still takes the same number of IRQ.

Could I ask why the usage information has been de-clarified without
starting a flame war on the politics of the change? I assume there's a
good reason for not just identifying the usage to those who haven't
memorized the PC interrupt defaults.

--
bill davidsen <[email protected]>
CTO, TMR Associates, Inc
Doing interesting things with little computers since 1979.