From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,37f77630e96453f2,start X-Google-Attributes: gid111c93,public From: wje@colossus2.cvl.bcm.tmc.edu (William J. Eaton) Subject: SMP hang in 2.2.11 and 2.2.12 kernels Date: 1999/09/08 Message-ID: #1/1 X-Deja-AN: 522658459 Organization: Biomedical Computation and Visualization Laboratory, Baylor College of Medicine Newsgroups: comp.os.linux.alpha I have seen a system hang on an Alpha system with the 2.2.11 and 2.2.12 kernels. The problem is not present in the 2.2.10 kernel. Network activity causes the system to simply freeze, becoming unresponsive to pings or the serial-terminal console. This particular system does not have a keyboard or graphics display fitted, and uses the SRM console set up to use a VT220 terminal on serial port 1. Some minimal debugging was done on the 2.2.12 kernel. System: Compaq DS20, single Alpha processor, all SCSI disks. The hang is reliably provoked in a few minutes by sending network traffic to it. linuxbox == DS20, otherbox == SGI O2. On otherbox, "tar cBf - / | rsh linuxbox 'cat - > /dev/null'". The kernel was built with SMP enabled so that a second processor might be added later. System type is DP264, SCSI drivers AIC7XXX and SYM53C8XX and network driver DE4X5 (generic DECchip) are included. After provoking the hang, pressing the reset button brings back the SRM console prompt and gives the last PC. Consulting the System.map file shows the PC to be inside synchronize_irq, in linux-2.2.12/arch/alpha/kernel/irq.c. This is repeatable. The above file was then edited and DEBUG_SYNCHRONIZE_IRQ set to 1, a new kernel built, and the network traffic test repeated. This produced the following console messages, and had the side-effect of preventing the hang. Sep 7 14:58:29 sirchuck kernel: 0:2/1 Sep 7 14:58:29 sirchuck kernel: Sep 7 14:58:29 sirchuck kernel: synchronize_irq, CPU 0: fffffc00004252b0 Sep 7 14:58:29 sirchuck kernel: irq: 1 [2(0x0000020000000000) 0(0x0000000000000000)] Sep 7 14:58:29 sirchuck kernel: bh: 1 [1 0] The address fffffc0000425b20 is de4x5_txur, part of the Ethernet driver. The numbers on the first line are cpu#, local_irq_count[cpu#], and global_irq_count[cpu#]. This looks like an IRQ handler got entered twice or some memory walkover happened. A kernel built without SMP works, and the 2.2.10 kernel with SMP also works. A short test on an Intel platform failed to reproduce the problem, so it may be Alpha-specific or driver-specific. It has not been tested on other Alpha systems. May the Kernel Deities be pleased with this humble burnt offering, and bless us with a fix for 2.2.13! :-) -- William J. Eaton, System Administrator of the BCVL computing facility. Email wje@bcm.tmc.edu Location: Baylor College of Medicine, room 213D Phone (713) 798-8915, Fax (713) 798-8389 | If it looks like I know what I'm http://colossus2.cvl.bcm.tmc.edu/~wje/ | doing, it's an optical illusion!