Skip to contentSkip to conversation

PNP PS/2 probing racy?

DISCUSSION Andi Kleen 2 participants 5 messages Jan 28, 2010 – Jan 29, 2010

lore
Share & tools
lore

Andi Kleen

author
#0 lore raw

Hi,

I noticed that on one test system of machine when booting the same kernel I get:

PNP: No PS/2 controller found. Probing ports directly.
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12

and sometimes on another boot

PNP: PS/2 Controller [PNP0303:PS2K,PNP0f03:PS2M] at 0x60,0x64 irq 1,12

Since I presume the BIOS does not change, is it possible the Linux procedure for this PNP probe is racy? I haven't checked the code so far.

Full boot logs for both cases:

http://halobates.de/config/dmesg-pnprace-1
http://halobates.de/config/dmesg-pnprace-2

-Andi

Signature · 1 line
[email protected] -- Speaking for myself only.
#1 lore raw

Hi Andi,

Quoted 10 lines · Andi Kleen

Hi,

I noticed that on one test system of machine when booting the same kernel I get:

PNP: No PS/2 controller found. Probing ports directly.
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12

Quoted 7 lines

and sometimes on another boot

PNP: PS/2 Controller [PNP0303:PS2K,PNP0f03:PS2M] at 0x60,0x64 irq 1,12

Since I presume the BIOS does not change, is it possible the Linux procedure for this PNP probe is racy? I haven't checked the code so far.

Are you using KVM with that box by any chance?

Signature · 1 line
Dmitry
author
#2 lore raw
Quoted 11 lines · Dmitry Torokhov
Quoted 11 lines

Hi,

I noticed that on one test system of machine when booting the same kernel I get:

PNP: No PS/2 controller found. Probing ports directly.
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12

and sometimes on another boot

Quoted 7 lines
Quoted 5 lines

PNP: PS/2 Controller [PNP0303:PS2K,PNP0f03:PS2M] at 0x60,0x64 irq 1,12

Since I presume the BIOS does not change, is it possible the Linux procedure for this PNP probe is racy? I haven't checked the code so far.

Are you using KVM with that box by any chance?

Yes, it uses a KVM, but the console was always on it.

-Andi

Signature · 1 line
[email protected] -- Speaking for myself only.
#3 lore raw
Quoted 14 lines · Andi Kleen
Quoted 13 lines · Dmitry Torokhov
Quoted 13 lines

Hi,

I noticed that on one test system of machine when booting the same kernel I get:

PNP: No PS/2 controller found. Probing ports directly.
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12

and sometimes on another boot

PNP: PS/2 Controller [PNP0303:PS2K,PNP0f03:PS2M] at 0x60,0x64 irq 1,12

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

Since I presume the BIOS does not change, is it possible the Linux procedure for this PNP probe is racy? I haven't checked the code so far.

Are you using KVM with that box by any chance?

Yes, it uses a KVM, but the console was always on it.

That is wierd... Was it on the whole time (including the time when BIOS was doing the initialization)? Anyway i8042 expects to find all PNP devices already enumerated by the time its initialization runs. When you see that message about PS2 controller not found do you see PNP0303 and PNP0f03 if you do:

	for i in /sys/devices/pnp0/00*; do echo -n "$i: "; cat $i/id; done

?

Signature · 1 line
Dmitry
author
#4 lore raw
Quoted 19 lines · Dmitry Torokhov
Quoted 18 lines · Andi Kleen
Quoted 17 lines · Dmitry Torokhov
Quoted 16 lines

Hi,

I noticed that on one test system of machine when booting the same kernel I get:

PNP: No PS/2 controller found. Probing ports directly.
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12

and sometimes on another boot

PNP: PS/2 Controller [PNP0303:PS2K,PNP0f03:PS2M] at 0x60,0x64 irq 1,12

Since I presume the BIOS does not change, is it possible the Linux procedure for this PNP probe is racy? I haven't checked the code so far.

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

Are you using KVM with that box by any chance?

Yes, it uses a KVM, but the console was always on it.

That is wierd... Was it on the whole time (including the time when BIOS was doing the initialization)? Anyway i8042 expects to find all PNP

I think so. That is of course the KVM might have a special state when the display is off, but it's hard for me to detect that. But I didn't switch the display

Quoted 5 lines

devices already enumerated by the time its initialization runs. When you see that message about PS2 controller not found do you see PNP0303 and PNP0f03 if you do:

	for i in /sys/devices/pnp0/00*; do echo -n "$i: "; cat $i/id; done

I'll check next time (machine out of reach right now)

-Andi

Signature · 1 line
[email protected] -- Speaking for myself only.