Skip to contentSkip to conversation

2.6 kernel won't reboot on AMD system - 8042 problem?

DISCUSSION David N. Welton 4 participants 5 messages Aug 6, 2004 – Aug 11, 2004 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

[ Re-added Sascha to the CC, as he's interested in this too. ]

Quoted 4 lines · James Lamanna

Change i8042.c:62 to
#define DEBUG
And see what printk's you get on trying to reboot. i8042_command has a bunch in it that are turned off by default.

Excellent suggestion.

*With keyboard* :

mice: PS/2 mouse device common for all mice

drivers/input/serio/i8042.c: 20 -> i8042 (command) [0]

drivers/input/serio/i8042.c: 65 <- i8042 (return) [0]

drivers/input/serio/i8042.c: 60 -> i8042 (command) [0]

drivers/input/serio/i8042.c: 74 -> i8042 (parameter) [0]

drivers/input/serio/i8042.c: d3 -> i8042 (command) [0]

drivers/input/serio/i8042.c: 5a -> i8042 (parameter) [0]

drivers/input/serio/i8042.c: 5a <- i8042 (return) [0]

drivers/input/serio/i8042.c: a9 -> i8042 (command) [0]

drivers/input/serio/i8042.c: 00 <- i8042 (return) [0]

drivers/input/serio/i8042.c: a7 -> i8042 (command) [0]

drivers/input/serio/i8042.c: 20 -> i8042 (command) [0]

drivers/input/serio/i8042.c: 74 <- i8042 (return) [0]

drivers/input/serio/i8042.c: a8 -> i8042 (command) [0]

drivers/input/serio/i8042.c: 20 -> i8042 (command) [0]

drivers/input/serio/i8042.c: 54 <- i8042 (return) [0]

drivers/input/serio/i8042.c: 60 -> i8042 (command) [0]

drivers/input/serio/i8042.c: 74 -> i8042 (parameter) [0]

drivers/input/serio/i8042.c: d3 -> i8042 (command) [0]

drivers/input/serio/i8042.c: f0 -> i8042 (parameter) [0]

drivers/input/serio/i8042.c: f0 <- i8042 (return) [0]

drivers/input/serio/i8042.c: 60 -> i8042 (command) [0]

drivers/input/serio/i8042.c: 54 -> i8042 (parameter) [0]
serio: i8042 AUX port at 0x60,0x64 irq 12

drivers/input/serio/i8042.c: 60 -> i8042 (command) [49]

drivers/input/serio/i8042.c: 56 -> i8042 (parameter) [49]

drivers/input/serio/i8042.c: d4 -> i8042 (command) [49]

drivers/input/serio/i8042.c: f2 -> i8042 (parameter) [49]

drivers/input/serio/i8042.c: fa <- i8042 (interrupt, kbd, 0) [99]

drivers/input/serio/i8042.c: ab <- i8042 (interrupt, kbd, 0) [149]

drivers/input/serio/i8042.c: 41 <- i8042 (interrupt, kbd, 0) [199]

drivers/input/serio/i8042.c: d4 -> i8042 (command) [243]

drivers/input/serio/i8042.c: ed -> i8042 (parameter) [243]

drivers/input/serio/i8042.c: fa <- i8042 (interrupt, kbd, 0) [293]

drivers/input/serio/i8042.c: 60 -> i8042 (command) [438]

drivers/input/serio/i8042.c: 54 -> i8042 (parameter) [438]

drivers/input/serio/i8042.c: 60 -> i8042 (command) [438]

drivers/input/serio/i8042.c: 44 -> i8042 (parameter) [438]
serio: i8042 KBD port at 0x60,0x64 irq 1

drivers/input/serio/i8042.c: 60 -> i8042 (command) [486]

drivers/input/serio/i8042.c: 45 -> i8042 (parameter) [486]

drivers/input/serio/i8042.c: f2 -> i8042 (kbd-data) [486]

drivers/input/serio/i8042.c: fa <- i8042 (interrupt, kbd, 1) [488]

drivers/input/serio/i8042.c: ab <- i8042 (interrupt, kbd, 1) [489]

drivers/input/serio/i8042.c: 41 <- i8042 (interrupt, kbd, 1) [490]

drivers/input/serio/i8042.c: ed -> i8042 (kbd-data) [490]

drivers/input/serio/i8042.c: fa <- i8042 (interrupt, kbd, 1) [493]

drivers/input/serio/i8042.c: 00 -> i8042 (kbd-data) [493]

drivers/input/serio/i8042.c: fa <- i8042 (interrupt, kbd, 1) [496]

drivers/input/serio/i8042.c: f3 -> i8042 (kbd-data) [496]

drivers/input/serio/i8042.c: fa <- i8042 (interrupt, kbd, 1) [498]

drivers/input/serio/i8042.c: 00 -> i8042 (kbd-data) [498]

drivers/input/serio/i8042.c: fa <- i8042 (interrupt, kbd, 1) [501]

drivers/input/serio/i8042.c: f4 -> i8042 (kbd-data) [501]

drivers/input/serio/i8042.c: fa <- i8042 (interrupt, kbd, 1) [504]

input: AT Translated Set 2 keyboard on isa0060/serio0

*Without keyboard* :

mice: PS/2 mouse device common for all mice

drivers/input/serio/i8042.c: fa <- i8042 (flush, aux) [0]

drivers/input/serio/i8042.c: 20 -> i8042 (command) [0]

drivers/input/serio/i8042.c: 9a <- i8042 (return) [0]

drivers/input/serio/i8042.c: 60 -> i8042 (command) [0]

drivers/input/serio/i8042.c: 9a -> i8042 (parameter) [0]

drivers/input/serio/i8042.c: d3 -> i8042 (command) [0]

drivers/input/serio/i8042.c: 5a -> i8042 (parameter) [0]

drivers/input/serio/i8042.c: a5 <- i8042 (return) [0]

drivers/input/serio/i8042.c: a7 -> i8042 (command) [0]

drivers/input/serio/i8042.c: 20 -> i8042 (command) [0]

drivers/input/serio/i8042.c: c7 <- i8042 (return) [0]

Failed to disable AUX port, but continuing anyway... Is this a SiS? If AUX port is really absent please use the 'i8042.noaux' option.

drivers/input/serio/i8042.c: a8 -> i8042 (command) [155]

drivers/input/serio/i8042.c: 20 -> i8042 (command) [155]

drivers/input/serio/i8042.c: e7 <- i8042 (return) [155]

drivers/input/serio/i8042.c: 60 -> i8042 (command) [155]

drivers/input/serio/i8042.c: 8a -> i8042 (parameter) [155]

serio: i8042 KBD port at 0x60,0x64 irq 1

drivers/input/serio/i8042.c: 60 -> i8042 (command) [203]

drivers/input/serio/i8042.c: 8b -> i8042 (parameter) [203]

drivers/input/serio/i8042.c: f2 -> i8042 (kbd-data) [203]

drivers/input/serio/i8042.c: fe <- i8042 (interrupt, aux, 1) [218]

drivers/input/serio/i8042.c: ed -> i8042 (kbd-data) [218]

drivers/input/serio/i8042.c: fe <- i8042 (interrupt, aux, 1) [232]

drivers/input/serio/i8042.c: 60 -> i8042 (command) [232]

drivers/input/serio/i8042.c: 8a -> i8042 (parameter) [232]

Anything there that says "don't reboot if there is no keyboard"?

Thankyou,

Signature · 2 lines
David N. Welton
[email protected]
#2 lore raw
Quoted 10 lines · David N. Welton

[ Re-added Sascha to the CC, as he's interested in this too. ]

Quoted 4 lines · James Lamanna

Change i8042.c:62 to
#define DEBUG
And see what printk's you get on trying to reboot. i8042_command has a bunch in it that are turned off by default.

Quoted 4 lines

Excellent suggestion.

*With keyboard* :

[snip]

Is that debug output from startup or when you try to reboot the machine?

Signature · 1 line
James Lamanna
#3 lore raw
In reply to David N. Welton
Quoted 8 lines · David N. Welton

[ Re-added Sascha to the CC, as he's interested in this too. ]

Quoted 4 lines · James Lamanna

Change i8042.c:62 to
#define DEBUG
And see what printk's you get on trying to reboot. i8042_command has a bunch in it that are turned off by default.

I just did some further testing, the problem here is exactly the same as Davids. And thinking about the exact point of failure and that Davids reboot problem is related to the keyboard being attached or not I realized what causes the problems for me:

I have a keyboard attached to the PS/2 port, but my mouse is attached to USB. So I pluged in a PS/2 mouse, and guess what? The box rebooted!

Well, this is by no means a solution, but I think it's pretty clear now, what exactly causes the trouble. Now we have to find out, why the i8042 code in 2.6.x breaks things on sertain hardware when there are not devices present in all ports, while in 2.4.x everything went well...

cheers
sascha

Quoted 1 line

++++++[<+++++++++++>-]<+.>+++[<++++++>-]<.---.---------.++++++.++++.---------

-.+++++++++++.+++++.>+++++++[<-------->-]<-.>++++++[<+++++++>-]<+.--.+++..---- ---.-.>++++++[<------>-]<.>++++[<+++++++++++++>-]<.------------.---.>++++++[<- ----->-]<-.>+++++[<+++++++>-]<.--.>+++[<++++++>-]<+.>++++++++[<--------->-]<--.

#4 lore raw
Quoted 19 lines · Sascha Wilde
Quoted 8 lines · David N. Welton

[ Re-added Sascha to the CC, as he's interested in this too. ]

Quoted 4 lines · James Lamanna

Change i8042.c:62 to
#define DEBUG
And see what printk's you get on trying to reboot. i8042_command has a bunch in it that are turned off by default.

I just did some further testing, the problem here is exactly the same as Davids. And thinking about the exact point of failure and that Davids reboot problem is related to the keyboard being attached or not I realized what causes the problems for me:

I have a keyboard attached to the PS/2 port, but my mouse is attached to USB. So I pluged in a PS/2 mouse, and guess what? The box rebooted!

Quoted 6 lines

Well, this is by no means a solution, but I think it's pretty clear now, what exactly causes the trouble. Now we have to find out, why the i8042 code in 2.6.x breaks things on sertain hardware when there are not devices present in all ports, while in 2.4.x everything went well...

You could also try out the following scenario: remove your USB mouse and _do not_ plug PS/2 one... What you might be seeing is another case of USB Legacy emulation thingy getting in your way.

Signature · 1 line
Dmitry
#5 lore raw
Quoted 18 lines · Dmitry Torokhov
Quoted 10 lines · Sascha Wilde

I just did some further testing, the problem here is exactly the same as Davids. And thinking about the exact point of failure and that Davids reboot problem is related to the keyboard being attached or not I realized what causes the problems for me:

I have a keyboard attached to the PS/2 port, but my mouse is attached to USB. So I pluged in a PS/2 mouse, and guess what? The box rebooted!

Quoted 6 lines

Well, this is by no means a solution, but I think it's pretty clear now, what exactly causes the trouble. Now we have to find out, why the i8042 code in 2.6.x breaks things on sertain hardware when there are not devices present in all ports, while in 2.4.x everything went well...

Quoted 3 lines

You could also try out the following scenario: remove your USB mouse and _do not_ plug PS/2 one... What you might be seeing is another case of USB Legacy emulation thingy getting in your way.

Just tried it, but I can't see anything special -- keyboard works and the box hangs on reboot, everything as usual...

cheers
sascha

Signature · 2 lines
Sascha Wilde
"Gimme about 10 seconds to think for a minute..."