Skip to contentSkip to conversation

Bizzare crashes on IBM Thinkpad A22e.. yenta_socket related

DISCUSSION Tester 4 participants 8 messages Sep 1, 2001 – Sep 7, 2001 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Tester

author
#1 lore raw

Hi,

I dont have ACPI enabled, but I have APM support... Should I try enabling ACPI?

And the result of dmesg follows:

Linux version 2.4.9 (Tester@TesterTop) (gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-85)) #15 Fri Aug 31 16:04:04 EDT 2001 BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009f800 (usable)
BIOS-e820: 000000000009f800 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000e0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 000000000fff0000 (usable)
BIOS-e820: 000000000fff0000 - 000000000fffec00 (ACPI data)
BIOS-e820: 000000000fffec00 - 0000000010000000 (ACPI NVS)
BIOS-e820: 00000000fff80000 - 0000000100000000 (reserved)
On node 0 totalpages: 65520
zone(0): 4096 pages.
zone(1): 61424 pages.
zone(2): 0 pages.
Kernel command line: auto BOOT_IMAGE=linux ro root=305 BOOT_FILE=/boot/vmlinuz
Initializing CPU#0
Detected 206.245 MHz processor.
Console: colour VGA+ 80x25
Calibrating delay loop... 430.89 BogoMIPS
Memory: 255768k/262080k available (887k kernel code, 5924k reserved, 292k data, 176k init, 0k highmem) Dentry-cache hash table entries: 32768 (order: 6, 262144 bytes)
Inode-cache hash table entries: 16384 (order: 5, 131072 bytes)
Mount-cache hash table entries: 4096 (order: 3, 32768 bytes)
Buffer-cache hash table entries: 16384 (order: 4, 65536 bytes)
Page-cache hash table entries: 65536 (order: 6, 262144 bytes)
CPU: Before vendor init, caps: 0383f9ff 00000000 00000000, vendor = 0
CPU: L1 I cache: 16K, L1 D cache: 16K
CPU: L2 cache: 128K
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.

CPU: After vendor init, caps: 0383f9ff 00000000 00000000 00000000
CPU:     After generic, caps: 0383f9ff 00000000 00000000 00000000
CPU:             Common caps: 0383f9ff 00000000 00000000 00000000
CPU: Intel Celeron (Coppermine) stepping 0a

Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
mtrr: v1.40 (20010327) Richard Gooch ([email protected])
mtrr: detected mtrr type: Intel
PCI: PCI BIOS revision 2.10 entry at 0xfd9af, last bus=3
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI: Using IRQ router PIIX [8086/7198] at 00:07.0
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
IBM machine detected. Enabling interrupts during APM calls.
apm: BIOS version 1.2 Flags 0x03 (Driver version 1.14)
Starting kswapd v1.8
Journalled Block Device driver loaded
pty: 256 Unix98 ptys configured
block: 128 slots per queue, batch=16
Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
PIIX4: IDE controller on PCI bus 00 dev 39
PIIX4: chipset revision 0
PIIX4: not 100% native mode: will probe irqs later

    ide0: BM-DMA at 0x1890-0x1897, BIOS settings: hda:DMA, hdb:DMA

hda: IC25N015ATDA04-0, ATA DISK drive
hdb: CD-224E, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
hda: 29498175 sectors (15103 MB) w/347KiB Cache, CHS=1950/240/63
hdb: ATAPI 24X CD-ROM drive, 128kB Cache
Uniform CD-ROM driver Revision: 3.12
Partition check:
hda: hda1 hda2 < hda5 hda6 hda7 >
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 2048 buckets, 16Kbytes
TCP: Hash tables configured (established 16384 bind 16384)
IPv4 over IPv4 tunneling driver
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Freeing unused kernel memory: 176k freed
Adding Swap: 529160k swap-space (priority -1)
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb-uhci.c: $Revision: 1.259 $ time 16:13:30 Aug 31 2001
usb-uhci.c: High bandwidth mode enabled
PCI: Found IRQ 11 for device 00:07.2
usb-uhci.c: USB UHCI at I/O 0x18a0, IRQ 11
usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 2 ports detected
usb-uhci.c: v1.251:USB Universal Host Controller Interface driver
EXT3 FS 2.4-0.9.6-249, 18 Aug 2001 on ide0(3,5), internal journal
eepro100.c:v1.09j-t 9/29/99 Donald Becker http://cesdis.gsfc.nasa.gov/linux/drivers/eepro100.html
eepro100.c: $Revision: 1.36 $ 2000/11/17 Modified by Andrey V. Savochkin <[email protected]> and others
PCI: Found IRQ 11 for device 00:03.0
PCI: Sharing IRQ 11 with 00:03.1
eth0: OEM i82557/i82558 10/100 Ethernet, 00:03:47:8E:AE:4D, IRQ 11.
Board assembly a30469-008, Physical connectors present: RJ45
Primary interface chip i82555 PHY #1.
Secondary interface chip i82555.
General self-test: passed.
Serial sub-system self-test: passed.
Internal registers self-test: passed.
ROM checksum self-test: passed (0x3258698e).
Intel 810 + AC97 Audio, version 0.03, 16:13:09 Aug 31 2001
PCI: Found IRQ 11 for device 00:00.1
PCI: Setting latency timer of device 00:00.1 to 64
i810: Intel 440MX found at IO 0x1800 and 0x2000, IRQ 11
ac97_codec: AC97 Audio codec, id: 0x4352:0x5935 (Unknown)
i810_audio: setting clocking to 177230
CSLIP: code copyright 1989 Regents of the University of California
PPP generic driver version 2.4.1
Loading Lucent Modem Controller driver version 6.00
Detected Parameters Irq=11 BaseAddress=0x1880 ComAddress=0x0
Lucent Modem Interface driver version 6.00 (2001-01-26) with SHARE_IRQ enabled
ttyLT00 at 0x1880 (irq = 11) is a Lucent Modem
PPP BSD Compression module registered
PPP Deflate Compression module registered

--
Olivier Crete
Tester
[email protected]

#2 lore raw
Quoted 3 lines · Tester

I dont have ACPI enabled, but I have APM support... Should I try enabling ACPI?

It would be interesting to hear what happens. I bet you won't be happy with it compared to APM due to the lack of proper suspend etc, but from a testing standpoint it would be good to hear what happens, and what /proc/interrupts and ACPI report about the thing..

Linus

author
#3 lore raw

Hi,

ACPI doesnt give a different result.. using 2.4.9-ac5 with pnpbios enabled doesnt change anything either...

Tester

Quoted 14 lines · Linus Torvalds
Quoted 3 lines · Tester

I dont have ACPI enabled, but I have APM support... Should I try enabling ACPI?

It would be interesting to hear what happens. I bet you won't be happy with it compared to APM due to the lack of proper suspend etc, but from a testing standpoint it would be good to hear what happens, and what /proc/interrupts and ACPI report about the thing..

Linus

Signature · 4 lines
Tester
[email protected]

Those who do not understand Unix are condemned to reinvent it, poorly. -- Henry Spencer
#4 lore raw
Quoted 5 lines · Tester

Hi,

ACPI doesnt give a different result.. using 2.4.9-ac5 with pnpbios enabled doesnt change anything either...

On PNPBIOS: recently a hard hang was fixed in -ac by reserving port ranges of PNP0c02 (or 0c01?) devices (else yenta would choose these...)

Can you compare "lspnp -v" to see if there is another builtin device in conflict with the yenta ioport window allocation ?

author
#5 lore raw

Hi,

I dont see any conflicts with ac5, and it still doesnt work... I think Linus's explanation of the problem is more probable... Also, I have not been able to reproduce the crash with ACPI recently.. It seems that if I have ACPI, but no APM, it does freeze... Kernel with APM or with no power management at all will crash under the same circumstances... But how do I fix that... I dont know...

show version:
ACPI enabled kernel works fine...
Everything else freezes with yenta...

Tester

Quoted 13 lines · Gunther Mayer
Quoted 5 lines · Tester

Hi,

ACPI doesnt give a different result.. using 2.4.9-ac5 with pnpbios enabled doesnt change anything either...

On PNPBIOS: recently a hard hang was fixed in -ac by reserving port ranges of PNP0c02 (or 0c01?) devices (else yenta would choose these...)

Can you compare "lspnp -v" to see if there is another builtin device in conflict with the yenta ioport window allocation ?

Signature · 4 lines
Tester
[email protected]

Those who do not understand Unix are condemned to reinvent it, poorly. -- Henry Spencer
#6 lore raw
In reply to Gunther Mayer
Quoted 9 lines · Tester

Hi,

I dont see any conflicts with ac5, and it still doesnt work... I think Linus's explanation of the problem is more probable... Also, I have not been able to reproduce the crash with ACPI recently.. It seems that if I have ACPI, but no APM, it does freeze... Kernel with APM or with no power management at all will crash under the same circumstances... But how do I fix that... I dont know...

Quoted 3 lines

show version:
ACPI enabled kernel works fine...
Everything else freezes with yenta...

I am in the same boat as Tester. My laptop using kernels 2.4.8, 2.4.9, and a few -ac patches locks every single time when yenta_socket loads. Everything besides yenta_socket seems to work fine (so far). I generally compile APM as a module and I am not loading it on boot, so there are few modules loading on a raw boot. Perhaps I am required to use some sort of PNP setup with 2.4.x? My stupid bios has absolutely no settings regarding pcmcia/pccard. The only half-relevant option is the "PNP OS Installed? Y/N". Using 2.2.19pre17 (stock Debian Potato kernel) works generally fine with i82365/pcnet_cs loaded.

If anyone needs more h/w info or would like me to test patches I'd be more than happy to help.

***** 2.4.9 "lspci" output:

00:00.0 Host bridge: Acer Laboratories Inc. [ALi] M1541 (rev 04)
00:01.0 PCI bridge: Acer Laboratories Inc. [ALi] M5243 (rev 04)
00:03.0 CardBus bridge: Texas Instruments PCI1251B
00:03.1 CardBus bridge: Texas Instruments PCI1251B
00:07.0 ISA bridge: Acer Laboratories Inc. [ALi] M1533 PCI to ISA Bridge [Aladdin IV] (rev 0a) 00:09.0 Multimedia audio controller: ESS Technology ES1978 Maestro 2E (rev 10) 00:0f.0 IDE interface: Acer Laboratories Inc. [ALi] M5229 IDE (rev 20)
00:11.0 Bridge: Acer Laboratories Inc. [ALi] M7101 PMU (rev 09)
00:13.0 USB Controller: Acer Laboratories Inc. [ALi] M5237 USB (rev 03)
01:00.0 VGA compatible controller: ATI Technologies Inc 3D Rage LT Pro AGP-133 (rev dc)

Quoted 1 line

Tester

Signature · 4 lines
alan at       __  Corporate Accounts Payable, Nina speaking... Just a moment.
alangarrison  __  Corporate Accounts Payable, Nina speaking... Just a moment.
dot com       __  Corporate Accounts Payable, Nina speaking... Just a moment.
"all your apt-get are / belong to us dist-upgrade / now for great honour" -MM
author
#7 lore raw
In reply to a message not in the archive

Hi,

Quoted 4 lines · Linus Torvalds

In article <[email protected]>,

Quoted 2 lines · Olivier Crete

Ok, I've tried removing different parts of the kernel and I have been

able

Quoted 11 lines
Quoted 7 lines

to find that the instability (repetable freezes) start to appear when the yenta_socket.o module is loaded. I dont see the link between this module and the events that trigger the freezes... It crashes when I do the following things: use any of the non-keyboard buttons (thinkpad buttons and volume control), brightness control, etc.. These buttons fn-X combination have in common that they do not generate a scancode as shown by showkey.

What they are doing, however, is to generate a SCI, ie "System Control Interrupt". Which, I bet you five bucks, is routed to the same interrupt that your CardBus controller is on.

Seems like you may have lost five bucks... When ACPI is enabled the sci is on IRQ 9, while the CardBus controller is on a IRQ 11 along with the Sound card, the ethernet card, the modem and the usb controller. The SCI seems to go to irq 9... and be alone there... The bug does not happen when acpi is enabled tho... So I can't confirm...

Quoted 9 lines

So the fact that the system hangs only with the CardBus module loaded really has nothing to do with the yenta code itself - it's just that before the yenta module is loaded, the SCI will be entirely ignored. Once yenta _is_ loaded, however, we have a interrupt handler for the interrupt and will start accepting it.

However, the interrupt handler we have is _not_ aware of system control interrupts. So it won't be able to handle them, and the interrupts will go on forever - locking up the machine.

Where would that loop occur?

Signature · 4 lines
Tester
[email protected]

Those who do not understand Unix are condemned to reinvent it, poorly. -- Henry Spencer
#8 lore raw
Quoted 10 lines · Tester
Quoted 4 lines

What they are doing, however, is to generate a SCI, ie "System Control Interrupt". Which, I bet you five bucks, is routed to the same interrupt that your CardBus controller is on.

Seems like you may have lost five bucks... When ACPI is enabled the sci is on IRQ 9, while the CardBus controller is on a IRQ 11 along with the Sound card, the ethernet card, the modem and the usb controller. The SCI seems to go to irq 9... and be alone there... The bug does not happen when acpi is enabled tho... So I can't confirm...

No, I think I'll keep my 5 bucks, cheap bastard that I am.

The thing is, enabling ACPI will also force the _correct_ routing of the SCI interrupt (assuming ACPI works - it doesn't on all machines), and thus it doesn't show up as some random other irq. Which is why you don't get a lockup.

Quoted 5 lines
Quoted 3 lines

However, the interrupt handler we have is _not_ aware of system control interrupts. So it won't be able to handle them, and the interrupts will go on forever - locking up the machine.

Where would that loop occur?

There won't be any explicit loop - what will happen is that irq12 will stay active, so we will keep on having irq12 interrupts that the CardBus interrupt handler doesn't know what to do with - and immediately when the irq handler returns and acks the interrupt we'll just take the irq again.

Over and over.

Linus