public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* PS/2 Keyboard is dead after resume.
@ 2005-07-15  2:35 Andrew Haninger
  2005-07-15  5:24 ` Dmitry Torokhov
  0 siblings, 1 reply; 5+ messages in thread
From: Andrew Haninger @ 2005-07-15  2:35 UTC (permalink / raw)
  To: suspend2-users, Linux Kernel Mailing List

Hello.

I'm using Linux Kernel 2.6.12.2 plus suspend 2.1.9.9 and acpi-20050408
with the hibernate-1.10 script. My machine is a Shuttle SK43G which
has a VIA KM400 chipset with an Athlon XP CPU.

Suspension seems to work well. However, when I resume, the keyboard is
dead and there is a warning in dmesg before and after suspension:

atkbd.c: Spurious ACK on isa0060/serio0. Some program, like XFree86,
might be trying access hardware directly.
Please include the following information in bug reports:
- SUSPEND core   : 2.1.9.9
- Kernel Version : 2.6.12.2
- Compiler vers. : 3.3
- Attempt number : 1
- Pageset sizes  : 5821 (5821 low) and 118350 (118350 low).
- Parameters     : 0 32 0 1 0 5
- Calculations   : Image size: 124376. Ram to suspend: 2240.
- Limits         : 126960 pages RAM. Initial boot: 123894.
- Overall expected compression percentage: 0.
- Compressor lzf enabled.
  Compressed 508604416 bytes into 23739845 (95 percent compression).
- Swapwriter active.
  Swap available for image: 487964 pages.
- Filewriter inactive.
- Preemptive kernel.
- Max extents used: 4
- I/O speed: Write 251 MB/s, Read 198 MB/s.
Resume block device is defe0860.
Real Time Clock Driver v1.12
atkbd.c: Spurious ACK on isa0060/serio0. Some program, like XFree86,
might be trying access hardware directly.


This machine doesn't have XFree86 on it.

I am presuming that this is a bug since I've used the exact same
kernel+patches (with hibernate 1.09 script) on another machine without
issues. I'm not sure if it's a suspension bug or if it's a kernel bug
that is brought to light by the suspend2 patches. If I'm wrong and
I've made a mistake, I'd love to hear it.

Thanks.

-Andy

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

* Re: PS/2 Keyboard is dead after resume.
  2005-07-15  2:35 PS/2 Keyboard is dead after resume Andrew Haninger
@ 2005-07-15  5:24 ` Dmitry Torokhov
  2005-07-15 11:43   ` Andrew Haninger
  0 siblings, 1 reply; 5+ messages in thread
From: Dmitry Torokhov @ 2005-07-15  5:24 UTC (permalink / raw)
  To: Andrew Haninger; +Cc: linux-kernel, suspend2-users

On Thursday 14 July 2005 21:35, Andrew Haninger wrote:
> Hello.
> 
> I'm using Linux Kernel 2.6.12.2 plus suspend 2.1.9.9 and acpi-20050408
> with the hibernate-1.10 script. My machine is a Shuttle SK43G which
> has a VIA KM400 chipset with an Athlon XP CPU.
> 
> Suspension seems to work well. However, when I resume, the keyboard is
> dead and there is a warning in dmesg before and after suspension:
> 
> atkbd.c: Spurious ACK on isa0060/serio0. Some program, like XFree86,
> might be trying access hardware directly.

Could you try doing:

	echo 1 > /sys/modules/i8042/parameters/debug

before suspending and the post your dmesg, please? Maybe we see something
there.

-- 
Dmitry

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

* Re: PS/2 Keyboard is dead after resume.
  2005-07-15  5:24 ` Dmitry Torokhov
@ 2005-07-15 11:43   ` Andrew Haninger
  2005-07-16  6:35     ` Dmitry Torokhov
  0 siblings, 1 reply; 5+ messages in thread
From: Andrew Haninger @ 2005-07-15 11:43 UTC (permalink / raw)
  To: Dmitry Torokhov; +Cc: linux-kernel, suspend2-users

On 7/15/05, Dmitry Torokhov <dtor_core@ameritech.net> wrote:
> Could you try doing:
> 
>         echo 1 > /sys/modules/i8042/parameters/debug
> 
> before suspending and the post your dmesg, please? Maybe we see something
> there.
Here you go:

12) *0, disabled.
ACPI: PCI Interrupt Link [ALKA] (IRQs 20) *15, disabled.
ACPI: PCI Interrupt Link [ALKB] (IRQs *21)
ACPI: PCI Interrupt Link [ALKC] (IRQs *22)
ACPI: PCI Interrupt Link [ALKD] (IRQs *23), disabled.
SCSI subsystem initialized
usbcore: registered new driver usbfs
usbcore: registered new driver hub
PCI: Using ACPI for IRQ routing
PCI: If a device doesn't work, try "pci=routeirq".  If it helps, post a report
Machine check exception polling timer started.
audit: initializing netlink socket (disabled)
audit(1121412889.356:0): initialized
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
Initializing Cryptographic API
ACPI: Power Button (FF) [PWRF]
ACPI: Power Button (CM) [PWRB]
ACPI: Sleep Button (CM) [SLPB]
ACPI: Fan [FAN] (on)
ACPI: CPU0 (power states: C1[C1] C2[C2])
ACPI: Thermal Zone [THRM] (29 C)
lp: driver loaded but no devices found
serio: i8042 AUX port at 0x60,0x64 irq 12
serio: i8042 KBD port at 0x60,0x64 irq 1
Serial: 8250/16550 driver $Revision: 1.90 $ 8 ports, IRQ sharing disabled
ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
parport0: PC-style at 0x378 [PCSPP(,...)]
lp0: using parport0 (polling).
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
8139too Fast Ethernet driver 0.9.27
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 10
PCI: setting IRQ 10 as level-triggered
ACPI: PCI Interrupt 0000:00:0b.0[A] -> Link [LNKC] -> GSI 10 (level,
low) -> IRQ 10
eth0: RealTek RTL8139 at 0xc400, 00:30:1b:3d:91:ee, IRQ 10
eth0:  Identified 8139 chip type 'RTL-8100B/8139D'
Linux Tulip driver version 1.1.13 (May 11, 2002)
ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 11
PCI: setting IRQ 11 as level-triggered
ACPI: PCI Interrupt 0000:00:0a.0[A] -> Link [LNKB] -> GSI 11 (level,
low) -> IRQ 11
eth1: Lite-On PNIC-II rev 37 at 0001c000, 00:C0:F0:70:43:C6, IRQ 11.
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
VP_IDE: IDE controller at PCI slot 0000:00:0f.0
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 12
PCI: setting IRQ 12 as level-triggered
ACPI: PCI Interrupt 0000:00:0f.0[A] -> Link [LNKA] -> GSI 12 (level,
low) -> IRQ 12
PCI: Via IRQ fixup for 0000:00:0f.0, from 255 to 12
VP_IDE: chipset revision 6
VP_IDE: not 100% native mode: will probe irqs later
VP_IDE: VIA vt8237 (rev 00) IDE UDMA133 controller on pci0000:00:0f.0
    ide0: BM-DMA at 0xcc00-0xcc07, BIOS settings: hda:DMA, hdb:pio
    ide1: BM-DMA at 0xcc08-0xcc0f, BIOS settings: hdc:DMA, hdd:pio
Probing IDE interface ide0...
hda: IBM-DTLA-307015, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
Probing IDE interface ide1...
hdc: WDC WD102BA, ATA DISK drive
ide1 at 0x170-0x177,0x376 on irq 15
Probing IDE interface ide2...
Probing IDE interface ide3...
Probing IDE interface ide4...
Probing IDE interface ide5...
hda: max request size: 128KiB
hda: 29336832 sectors (15020 MB) w/1916KiB Cache, CHS=29104/16/63, UDMA(100)
hda: cache flushes not supported
 hda: hda1 hda2
hdc: max request size: 128KiB
hdc: 20028960 sectors (10254 MB) w/2048KiB Cache, CHS=19870/16/63, UDMA(66)
hdc: cache flushes not supported
 hdc: hdc1
ACPI: PCI Interrupt 0000:00:10.4[C] -> Link [LNKC] -> GSI 10 (level,
low) -> IRQ 10
ehci_hcd 0000:00:10.4: VIA Technologies, Inc. USB 2.0
ehci_hcd 0000:00:10.4: new USB bus registered, assigned bus number 1
ehci_hcd 0000:00:10.4: irq 10, io mem 0xee043000
ehci_hcd 0000:00:10.4: USB 2.0 initialized, EHCI 1.00, driver 10 Dec 2004
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 8 ports detected
USB Universal Host Controller Interface driver v2.2
ACPI: PCI Interrupt 0000:00:10.0[A] -> Link [LNKA] -> GSI 12 (level,
low) -> IRQ 12
uhci_hcd 0000:00:10.0: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller
uhci_hcd 0000:00:10.0: new USB bus registered, assigned bus number 2
uhci_hcd 0000:00:10.0: irq 12, io base 0x0000d000
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
ACPI: PCI Interrupt 0000:00:10.1[A] -> Link [LNKA] -> GSI 12 (level,
low) -> IRQ 12
uhci_hcd 0000:00:10.1: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1
Controller (#2)
uhci_hcd 0000:00:10.1: new USB bus registered, assigned bus number 3
uhci_hcd 0000:00:10.1: irq 12, io base 0x0000d400
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 2 ports detected
ACPI: PCI Interrupt 0000:00:10.2[B] -> Link [LNKB] -> GSI 11 (level,
low) -> IRQ 11
uhci_hcd 0000:00:10.2: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1
Controller (#3)
uhci_hcd 0000:00:10.2: new USB bus registered, assigned bus number 4
uhci_hcd 0000:00:10.2: irq 11, io base 0x0000d800
hub 4-0:1.0: USB hub found
hub 4-0:1.0: 2 ports detected
ACPI: PCI Interrupt 0000:00:10.3[B] -> Link [LNKB] -> GSI 11 (level,
low) -> IRQ 11
uhci_hcd 0000:00:10.3: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1
Controller (#4)
uhci_hcd 0000:00:10.3: new USB bus registered, assigned bus number 5
uhci_hcd 0000:00:10.3: irq 11, io base 0x0000dc00
hub 5-0:1.0: USB hub found
hub 5-0:1.0: 2 ports detected
mice: PS/2 mouse device common for all mice
oprofile: using timer interrupt.
NET: Registered protocol family 2
IP: routing cache hash table of 4096 buckets, 32Kbytes
TCP established hash table entries: 16384 (order: 5, 131072 bytes)
TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 16384 bind 16384)
ip_conntrack version 2.1 (3967 buckets, 31736 max) - 212 bytes per conntrack
ip_tables: (C) 2000-2002 Netfilter core team
ipt_recent v0.3.1: Stephen Frost <sfrost@snowman.net>. 
http://snowman.net/projects/ipt_recent/
arp_tables: (C) 2002 David S. Miller
NET: Registered protocol family 1
NET: Registered protocol family 17
Software Suspend Core.
Software Suspend Compression Driver loading.
Software Suspend Encryption Driver loading.
Software Suspend Swap Writer loading.
Software Suspend FileWriter loading.
ACPI wakeup devices: 
SLPB PCI0 USB0 USB1 USB2 USB6 USB7 USB8 USB9 UAR1 LPT1 
ACPI: (supports S0 S1 S4 S5)
Resume block device is defe0ba0.
Software Suspend 2.1.9.9: Swapwriter: Signature found.
Software Suspend 2.1.9.9: Suspending enabled.
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 156k freed
input: AT Translated Set 2 keyboard on isa0060/serio0
input: AT Translated Set 2 keyboard on isa0060/serio0
Adding 1951856k swap on /dev/hda1.  Priority:-1 extents:1
eth0: link up, 10Mbps, half-duplex, lpa 0x0000
NET: Registered protocol family 10
IPv6 over IPv4 tunneling driver
eth0: no IPv6 routers present
eth1: no IPv6 routers present
drivers/input/serio/i8042.c: 18 <- i8042 (interrupt, KBD, 1) [113165]
drivers/input/serio/i8042.c: 98 <- i8042 (interrupt, KBD, 1) [113205]
drivers/input/serio/i8042.c: 18 <- i8042 (interrupt, KBD, 1) [113282]
drivers/input/serio/i8042.c: 98 <- i8042 (interrupt, KBD, 1) [113322]
drivers/input/serio/i8042.c: 0e <- i8042 (interrupt, KBD, 1) [113544]
drivers/input/serio/i8042.c: 8e <- i8042 (interrupt, KBD, 1) [113582]
drivers/input/serio/i8042.c: 0e <- i8042 (interrupt, KBD, 1) [113653]
drivers/input/serio/i8042.c: 8e <- i8042 (interrupt, KBD, 1) [113717]
drivers/input/serio/i8042.c: 13 <- i8042 (interrupt, KBD, 1) [113798]
drivers/input/serio/i8042.c: 93 <- i8042 (interrupt, KBD, 1) [113912]
drivers/input/serio/i8042.c: 18 <- i8042 (interrupt, KBD, 1) [113929]
drivers/input/serio/i8042.c: 98 <- i8042 (interrupt, KBD, 1) [113975]
drivers/input/serio/i8042.c: 18 <- i8042 (interrupt, KBD, 1) [114023]
drivers/input/serio/i8042.c: 98 <- i8042 (interrupt, KBD, 1) [114113]
drivers/input/serio/i8042.c: 14 <- i8042 (interrupt, KBD, 1) [114140]
drivers/input/serio/i8042.c: 94 <- i8042 (interrupt, KBD, 1) [114236]
drivers/input/serio/i8042.c: 1c <- i8042 (interrupt, KBD, 1) [114352]
drivers/input/serio/i8042.c: 9c <- i8042 (interrupt, KBD, 1) [114482]
drivers/input/serio/i8042.c: 12 <- i8042 (interrupt, KBD, 1) [114559]
drivers/input/serio/i8042.c: 92 <- i8042 (interrupt, KBD, 1) [114644]
drivers/input/serio/i8042.c: 2d <- i8042 (interrupt, KBD, 1) [114773]
drivers/input/serio/i8042.c: ad <- i8042 (interrupt, KBD, 1) [114859]
drivers/input/serio/i8042.c: 26 <- i8042 (interrupt, KBD, 1) [114864]
drivers/input/serio/i8042.c: a6 <- i8042 (interrupt, KBD, 1) [114958]
drivers/input/serio/i8042.c: 20 <- i8042 (interrupt, KBD, 1) [114970]
drivers/input/serio/i8042.c: a0 <- i8042 (interrupt, KBD, 1) [115051]
drivers/input/serio/i8042.c: 06 <- i8042 (interrupt, KBD, 1) [115298]
drivers/input/serio/i8042.c: 86 <- i8042 (interrupt, KBD, 1) [115397]
drivers/input/serio/i8042.c: 02 <- i8042 (interrupt, KBD, 1) [115440]
drivers/input/serio/i8042.c: 82 <- i8042 (interrupt, KBD, 1) [115494]
drivers/input/serio/i8042.c: 09 <- i8042 (interrupt, KBD, 1) [115543]
drivers/input/serio/i8042.c: 89 <- i8042 (interrupt, KBD, 1) [115636]
drivers/input/serio/i8042.c: 02 <- i8042 (interrupt, KBD, 1) [115645]
drivers/input/serio/i8042.c: 82 <- i8042 (interrupt, KBD, 1) [115706]
drivers/input/serio/i8042.c: 1c <- i8042 (interrupt, KBD, 1) [115787]
drivers/input/serio/i8042.c: 9c <- i8042 (interrupt, KBD, 1) [115876]
drivers/input/serio/i8042.c: 23 <- i8042 (interrupt, KBD, 1) [116475]
drivers/input/serio/i8042.c: a3 <- i8042 (interrupt, KBD, 1) [116570]
drivers/input/serio/i8042.c: 17 <- i8042 (interrupt, KBD, 1) [116580]
drivers/input/serio/i8042.c: 97 <- i8042 (interrupt, KBD, 1) [116656]
drivers/input/serio/i8042.c: 30 <- i8042 (interrupt, KBD, 1) [116726]
drivers/input/serio/i8042.c: 12 <- i8042 (interrupt, KBD, 1) [116794]
drivers/input/serio/i8042.c: b0 <- i8042 (interrupt, KBD, 1) [116848]
drivers/input/serio/i8042.c: 13 <- i8042 (interrupt, KBD, 1) [116866]
drivers/input/serio/i8042.c: 92 <- i8042 (interrupt, KBD, 1) [116893]
drivers/input/serio/i8042.c: 93 <- i8042 (interrupt, KBD, 1) [116933]
drivers/input/serio/i8042.c: 31 <- i8042 (interrupt, KBD, 1) [117035]
drivers/input/serio/i8042.c: 1e <- i8042 (interrupt, KBD, 1) [117100]
drivers/input/serio/i8042.c: b1 <- i8042 (interrupt, KBD, 1) [117127]
drivers/input/serio/i8042.c: 14 <- i8042 (interrupt, KBD, 1) [117174]
drivers/input/serio/i8042.c: 9e <- i8042 (interrupt, KBD, 1) [117217]
drivers/input/serio/i8042.c: 12 <- i8042 (interrupt, KBD, 1) [117241]
drivers/input/serio/i8042.c: 94 <- i8042 (interrupt, KBD, 1) [117305]
drivers/input/serio/i8042.c: 92 <- i8042 (interrupt, KBD, 1) [117361]
drivers/input/serio/i8042.c: 1c <- i8042 (interrupt, KBD, 1) [117486]
Resume block device is defe0860.
drivers/input/serio/i8042.c: 9c <- i8042 (interrupt, KBD, 1) [117557]
Resume block device is defe0860.
Resume block device is defe0860.
Resume block device is defe0860.
Resume block device is defe0860.
Resume block device is defe0860.
Resume block device is defe0860.
Resume block device is defe0860.
Resume block device is defe0860.
Resume block device is defe0860.
Resume block device is defe0860.
Resume block device is defe0860.
Resume block device is defe0860.
Resume block device is defe0860.
Resume block device is defe0860.
Resume block device is defe0860.
Software Suspend 2.1.9.9: Initiating a software suspend cycle.
Resume block device is defe0860.
Software Suspend 2.1.9.9: Swapwriter: Signature found.
Software Suspend 2.1.9.9: Suspending enabled.
20%...40%...60%...80%...100%...done.
drivers/input/serio/i8042.c: 60 -> i8042 (command) [119932]
drivers/input/serio/i8042.c: 65 -> i8042 (parameter) [119932]
ACPI: PCI Interrupt 0000:00:0a.0[A] -> Link [LNKB] -> GSI 11 (level,
low) -> IRQ 11
eth0: link up, 10Mbps, half-duplex, lpa 0x0000
ACPI: PCI Interrupt 0000:00:0f.0[A] -> Link [LNKA] -> GSI 12 (level,
low) -> IRQ 12
PCI: Via IRQ fixup for 0000:00:0f.0, from 255 to 12
ACPI: PCI Interrupt 0000:00:10.0[A] -> Link [LNKA] -> GSI 12 (level,
low) -> IRQ 12
ACPI: PCI Interrupt 0000:00:10.1[A] -> Link [LNKA] -> GSI 12 (level,
low) -> IRQ 12
ACPI: PCI Interrupt 0000:00:10.2[B] -> Link [LNKB] -> GSI 11 (level,
low) -> IRQ 11
ACPI: PCI Interrupt 0000:00:10.3[B] -> Link [LNKB] -> GSI 11 (level,
low) -> IRQ 11
ACPI: PCI Interrupt 0000:00:10.4[C] -> Link [LNKC] -> GSI 10 (level,
low) -> IRQ 10
ehci_hcd 0000:00:10.4: USB 2.0 restarted, EHCI 1.00, driver 10 Dec 2004
drivers/input/serio/i8042.c: 60 -> i8042 (command) [154857]
drivers/input/serio/i8042.c: 65 -> i8042 (parameter) [154857]
drivers/input/serio/i8042.c: 60 -> i8042 (command) [154857]
drivers/input/serio/i8042.c: 65 -> i8042 (parameter) [154857]
drivers/input/serio/i8042.c: 60 -> i8042 (command) [154857]
drivers/input/serio/i8042.c: 47 -> i8042 (parameter) [154857]
drivers/input/serio/i8042.c: f2 -> i8042 (kbd-data) [154857]
drivers/input/serio/i8042.c: fa <- i8042 (interrupt, KBD, 1) [154860]
drivers/input/serio/i8042.c: ab <- i8042 (interrupt, KBD, 1) [154861]
drivers/input/serio/i8042.c: 41 <- i8042 (interrupt, KBD, 1) [154862]
drivers/input/serio/i8042.c: ed -> i8042 (kbd-data) [154862]
drivers/input/serio/i8042.c: fa <- i8042 (interrupt, KBD, 1) [154865]
drivers/input/serio/i8042.c: 00 -> i8042 (kbd-data) [154865]
drivers/input/serio/i8042.c: fa <- i8042 (interrupt, KBD, 1) [154867]
drivers/input/serio/i8042.c: f3 -> i8042 (kbd-data) [154867]
drivers/input/serio/i8042.c: fa <- i8042 (interrupt, KBD, 1) [154870]
drivers/input/serio/i8042.c: 00 -> i8042 (kbd-data) [154870]
drivers/input/serio/i8042.c: fa <- i8042 (interrupt, KBD, 1) [154873]
drivers/input/serio/i8042.c: f4 -> i8042 (kbd-data) [154873]
drivers/input/serio/i8042.c: fa <- i8042 (interrupt, KBD, 1) [154876]
drivers/input/serio/i8042.c: ed -> i8042 (kbd-data) [154876]
drivers/input/serio/i8042.c: fa <- i8042 (interrupt, KBD, 1) [154879]
drivers/input/serio/i8042.c: 00 -> i8042 (kbd-data) [154879]
drivers/input/serio/i8042.c: fa <- i8042 (interrupt, KBD, 1) [154881]
20%...40%...60%...80%...100%...done.
drivers/input/serio/i8042.c: 60 -> i8042 (command) [155414]
drivers/input/serio/i8042.c: 47 -> i8042 (parameter) [155414]
drivers/input/serio/i8042.c: d4 -> i8042 (command) [155414]
drivers/input/serio/i8042.c: f2 -> i8042 (parameter) [155414]
drivers/input/serio/i8042.c: fa <- i8042 (interrupt, KBD, 1) [155417]
atkbd.c: Spurious ACK on isa0060/serio0. Some program, like XFree86,
might be trying access hardware directly.
drivers/input/serio/i8042.c: ab <- i8042 (interrupt, KBD, 1) [155418]
Please include the following information in bug reports:
- SUSPEND core   : 2.1.9.9
- Kernel Version : 2.6.12.2
- Compiler vers. : 3.3
- Attempt number : 1
- Pageset sizes  : 4186 (4186 low) and 6726 (6726 low).
- Parameters     : 0 32 0 1 0 5
- Calculations   : Image size: 11117. Ram to suspend: 2240.
- Limits         : 126960 pages RAM. Initial boot: 123843.
- Overall expected compression percentage: 0.
- Compressor lzf enabled.
  Compressed 44695552 bytes into 19230393 (56 percent compression).
- Swapwriter active.
  Swap available for image: 487964 pages.
- Filewriter inactive.
- Preemptive kernel.
- Max extents used: 4
- I/O speed: Write 78 MB/s, Read 52 MB/s.
drivers/input/serio/i8042.c: 41 <- i8042 (interrupt, KBD, 1) [155419]
Resume block device is defe0860.
Real Time Clock Driver v1.12
drivers/input/serio/i8042.c: d4 -> i8042 (command) [155614]
drivers/input/serio/i8042.c: ed -> i8042 (parameter) [155614]
drivers/input/serio/i8042.c: fa <- i8042 (interrupt, KBD, 1) [155616]
atkbd.c: Spurious ACK on isa0060/serio0. Some program, like XFree86,
might be trying access hardware directly.
drivers/input/serio/i8042.c: 60 -> i8042 (command) [155814]
drivers/input/serio/i8042.c: 45 -> i8042 (parameter) [155814]

Thanks.

-Andy

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

* Re: PS/2 Keyboard is dead after resume.
  2005-07-15 11:43   ` Andrew Haninger
@ 2005-07-16  6:35     ` Dmitry Torokhov
  2005-07-16 15:06       ` Andrew Haninger
  0 siblings, 1 reply; 5+ messages in thread
From: Dmitry Torokhov @ 2005-07-16  6:35 UTC (permalink / raw)
  To: Andrew Haninger; +Cc: linux-kernel

[Suspend2 was removed from CC as it appears to be subscribers-only list.]

On Friday 15 July 2005 06:43, Andrew Haninger wrote:
> On 7/15/05, Dmitry Torokhov <dtor_core@ameritech.net> wrote:
> > Could you try doing:
> > 
> >         echo 1 > /sys/modules/i8042/parameters/debug
> > 
> > before suspending and the post your dmesg, please? Maybe we see something
> > there.
> Here you go:
> 
> 12) *0, disabled.

Ok, so you start with IRQ 12 disabled.. You don't have a PS/2 mouse,
do you?

...
> serio: i8042 AUX port at 0x60,0x64 irq 12
> serio: i8042 KBD port at 0x60,0x64 irq 1

You did not select PNP support (but as far as keyboard controller settings
go we don't trust it anyway on i386).

...
> ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 12
> PCI: setting IRQ 12 as level-triggered
> ACPI: PCI Interrupt 0000:00:0f.0[A] -> Link [LNKA] -> GSI 12 (level,
> low) -> IRQ 12
> PCI: Via IRQ fixup for 0000:00:0f.0, from 255 to 12
> VP_IDE: chipset revision 6
...
> USB Universal Host Controller Interface driver v2.2
> ACPI: PCI Interrupt 0000:00:10.0[A] -> Link [LNKA] -> GSI 12 (level,
> low) -> IRQ 12
> uhci_hcd 0000:00:10.0: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller
> uhci_hcd 0000:00:10.0: new USB bus registered, assigned bus number 2
> uhci_hcd 0000:00:10.0: irq 12, io base 0x0000d000
> hub 2-0:1.0: USB hub found
> hub 2-0:1.0: 2 ports detected
> ACPI: PCI Interrupt 0000:00:10.1[A] -> Link [LNKA] -> GSI 12 (level,
> low) -> IRQ 12
> uhci_hcd 0000:00:10.1: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1
> Controller (#2)
> uhci_hcd 0000:00:10.1: new USB bus registered, assigned bus number 3
> uhci_hcd 0000:00:10.1: irq 12, io base 0x0000d400

And here you have a bunch of hardware gets assigned to IRQ 12...
Hmm, I tought ACPI would try not use 12 unless it is absolutely
necessary. What appens if you use "pci=routeirq" boot option?

> drivers/input/serio/i8042.c: 60 -> i8042 (command) [154857]
> drivers/input/serio/i8042.c: 65 -> i8042 (parameter) [154857]
> drivers/input/serio/i8042.c: 60 -> i8042 (command) [154857]
> drivers/input/serio/i8042.c: 65 -> i8042 (parameter) [154857]
> drivers/input/serio/i8042.c: 60 -> i8042 (command) [154857]
> drivers/input/serio/i8042.c: 47 -> i8042 (parameter) [154857]
> drivers/input/serio/i8042.c: f2 -> i8042 (kbd-data) [154857]
> drivers/input/serio/i8042.c: fa <- i8042 (interrupt, KBD, 1) [154860]
> drivers/input/serio/i8042.c: ab <- i8042 (interrupt, KBD, 1) [154861]
> drivers/input/serio/i8042.c: 41 <- i8042 (interrupt, KBD, 1) [154862]
> drivers/input/serio/i8042.c: ed -> i8042 (kbd-data) [154862]
> drivers/input/serio/i8042.c: fa <- i8042 (interrupt, KBD, 1) [154865]
> drivers/input/serio/i8042.c: 00 -> i8042 (kbd-data) [154865]
> drivers/input/serio/i8042.c: fa <- i8042 (interrupt, KBD, 1) [154867]
> drivers/input/serio/i8042.c: f3 -> i8042 (kbd-data) [154867]
> drivers/input/serio/i8042.c: fa <- i8042 (interrupt, KBD, 1) [154870]
> drivers/input/serio/i8042.c: 00 -> i8042 (kbd-data) [154870]
> drivers/input/serio/i8042.c: fa <- i8042 (interrupt, KBD, 1) [154873]
> drivers/input/serio/i8042.c: f4 -> i8042 (kbd-data) [154873]
> drivers/input/serio/i8042.c: fa <- i8042 (interrupt, KBD, 1) [154876]
> drivers/input/serio/i8042.c: ed -> i8042 (kbd-data) [154876]
> drivers/input/serio/i8042.c: fa <- i8042 (interrupt, KBD, 1) [154879]
> drivers/input/serio/i8042.c: 00 -> i8042 (kbd-data) [154879]
> drivers/input/serio/i8042.c: fa <- i8042 (interrupt, KBD, 1) [154881]

Keyboard seems to be resumed just fine...

> 20%...40%...60%...80%...100%...done.
> drivers/input/serio/i8042.c: 60 -> i8042 (command) [155414]
> drivers/input/serio/i8042.c: 47 -> i8042 (parameter) [155414]
> drivers/input/serio/i8042.c: d4 -> i8042 (command) [155414]
> drivers/input/serio/i8042.c: f2 -> i8042 (parameter) [155414]
> drivers/input/serio/i8042.c: fa <- i8042 (interrupt, KBD, 1) [155417]
> atkbd.c: Spurious ACK on isa0060/serio0. Some program, like XFree86,
> might be trying access hardware directly.
> drivers/input/serio/i8042.c: ab <- i8042 (interrupt, KBD, 1) [155418]

But when we try to talk to mouse port we ket response from the keyboard
and something gets confused.

You can try working around this with "i8042.noaux" kernel boot option,
but we should probably teach i8042 driver to not touch AUX port on resume
if it was disabled.

-- 
Dmitry

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

* Re: PS/2 Keyboard is dead after resume.
  2005-07-16  6:35     ` Dmitry Torokhov
@ 2005-07-16 15:06       ` Andrew Haninger
  0 siblings, 0 replies; 5+ messages in thread
From: Andrew Haninger @ 2005-07-16 15:06 UTC (permalink / raw)
  To: Dmitry Torokhov; +Cc: linux-kernel, suspend2-users

On 7/16/05, Dmitry Torokhov <dtor_core@ameritech.net> wrote:
> Ok, so you start with IRQ 12 disabled.. You don't have a PS/2 mouse,
> do you?
Nope :).

> > serio: i8042 AUX port at 0x60,0x64 irq 12
> > serio: i8042 KBD port at 0x60,0x64 irq 1
> 
> You did not select PNP support (but as far as keyboard controller settings
> go we don't trust it anyway on i386).
I've never ever found it to work, so I usually disable it.

> And here you have a bunch of hardware gets assigned to IRQ 12...
> Hmm, I tought ACPI would try not use 12 unless it is absolutely
> necessary. What appens if you use "pci=routeirq" boot option?
The keyboard was still dead after resume.

> You can try working around this with "i8042.noaux" kernel boot option,
> but we should probably teach i8042 driver to not touch AUX port on resume
> if it was disabled.
This worked. Strangely enough, after googling for i8042 and suspend
last night, I found the 2.6.12 kernel boot options file. I tried
i8042.nomux, i8042.direct, and some others, but nothing worked. Just
for fun, I tried booting without any kernel boot options (just the
suspend2 option) and with a PS/2 mouse plugged in. On suspend, the
keyboard worked.

Maybe this could/should be added to the suspend2 code as well?

Whatever. It works for now. If you'd like any more information, just
let me know. Thanks!

-Andy

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

end of thread, other threads:[~2005-07-16 15:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-15  2:35 PS/2 Keyboard is dead after resume Andrew Haninger
2005-07-15  5:24 ` Dmitry Torokhov
2005-07-15 11:43   ` Andrew Haninger
2005-07-16  6:35     ` Dmitry Torokhov
2005-07-16 15:06       ` Andrew Haninger

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