From owner-freebsd-current@FreeBSD.ORG Mon Nov 10 21:26:23 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DD51616A4CE for ; Mon, 10 Nov 2003 21:26:23 -0800 (PST) Received: from kyle.synetsystems.com (kyle.tandemedia.com [216.29.169.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id D515243F85 for ; Mon, 10 Nov 2003 21:26:22 -0800 (PST) (envelope-from rmtodd@servalan.servalan.com) Received: by kyle.synetsystems.com (Postfix, from userid 66) id 4468F55427; Tue, 11 Nov 2003 00:26:22 -0500 (EST) Received: from rmtodd by servalan.servalan.com with local (Exim 4.22) id 1AJQOs-0000uU-G7; Mon, 10 Nov 2003 22:45:10 -0600 To: freebsd-current@freebsd.org References: <3FA9A8F7.4090709@btinet.net> Message-Id: From: Richard Todd Date: Mon, 10 Nov 2003 22:45:10 -0600 Subject: Re: new interrupts not working for me X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Nov 2003 05:26:24 -0000 X-List-Received-Date: Tue, 11 Nov 2003 05:26:24 -0000 John Baldwin wrote: >On 06-Nov-2003 Peter Schultz wrote: >> John Baldwin wrote: >>> On 05-Nov-2003 Peter Schultz wrote: >>> >>>>I have a Tyan S1832DL w/dual pii 350s and it's not able to boot. Seems >>>>to be having trouble with my adaptec scsi controller, I get a whole >>>>bunch of output like this hand transcribed bit, it comes after "waiting >>>>15 seconds for scsi devices to settle": >>>> >>>>ahc0 timeout SCB already complete interrupts may not be functioning >>>>Infinite interrupt loop INTSTAT=0(probe3:ahc0:0:3:0): SCB 0x6 - timed out >>>> >>>>Anyone else seeing this? There are probably 100+ related lines of >>>>output, I'll have to configure serial debugging if you need to see it. >>> >>> >>> The dmesg output excluding all the ahc0 errors would help figure out >>> why your interrupts aren't working. However, I just committed a patch >>> that might fix your problem. >>> >> Now the kernel just dies and the machine reboots right in the beginning >> when it's setting up the ACPI/APIC stuff. Of course, with ACPI off, >> there's no apparent problem with the kernel. >Ok. Did the old kernel break before with ACPI turned off? It should >have. By the way, I've committed a fix for the ACPI breakage. I've got a similar motherboard to the original poster (a Tyan S1836DLUAN/GX instead of S1832DL), and ran across essentially the same problem -- the interrupts for the ahc controller weren't working -- with the new interrupt code. With the new kernel, booting with ACPI disabled worked okay, but booting with ACPI enabled caused the SCSI device probe to hang up. This is true even for a kernel compiled from current source today. Below I list the dmesg output for a boot with today's kernel with ACPI disabled. Alas, I don't have a similar file for the ACPI-enabled case (since the OS doesn't ever get up to a point where it can write to its disks, and don't have a machine available for ready serial console-ing), but I can tell you that where the non-ACPI boot said pcib0: slot 7 INTD routed to irq 19 pcib0: slot 17 INTA routed to irq 19 pcib0: slot 18 INTA routed to irq 16 pcib0: slot 18 INTB routed to irq 16 the booted-with-ACPI kernel said those interrupts were routed to IRQs 11 and 10, respectively, and the later ahc? probes said that ahc[01] were on irq 10 as well. I'd attach the dump of the ACPI tables as well, but, um, ichotolot# acpidump -t acpidump: sysctl machdep.acpi_root does not point to RSDP ichotolot# sysctl -a | grep acpi_root machdep.acpi_root: 0 ichotolot# So you can't dump the ACPI tables for debugging purposes if you didn't boot with ACPI? I don't recall this being the case before... Copyright (c) 1992-2003 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 5.1-CURRENT #9: Mon Nov 10 21:13:08 CST 2003 rmtodd@ichotolot.servalan.com:/usr/src/sys/i386/compile/ICHOTOLOTSMP Preloaded elf kernel "/boot/kernel/kernel" at 0xc0b3f000. MPTable: Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Pentium II/Pentium II Xeon/Celeron (400.91-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x653 Stepping = 3 Features=0x183fbff real memory = 668991488 (638 MB) avail memory = 640176128 (610 MB) FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 ioapic0: Assuming intbase of 0 ioapic0 irqs 0-23 on motherboard Pentium Pro MTRR support enabled npx0: [FAST] npx0: on motherboard npx0: INT 16 interface pcibios: BIOS version 2.10 pcib0: at pcibus 0 on motherboard pci0: on pcib0 pcib0: slot 7 INTD routed to irq 19 pcib0: slot 17 INTA routed to irq 19 pcib0: slot 18 INTA routed to irq 16 pcib0: slot 18 INTB routed to irq 16 agp0: mem 0xf8000000-0xfbffffff at device 0.0 on pci0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pcib1: slot 0 INTA routed to irq 16 pci1: at device 0.0 (no driver attached) isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0xffa0-0xffaf at device 7.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata0: [MPSAFE] ata1: at 0x170 irq 15 on atapci0 ata1: [MPSAFE] uhci0: port 0xef80-0xef9f irq 19 at device 7.2 on pci0 usb0: on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered ums0: Cypress Sem PS2/USB Browser Combo Mouse, rev 1.00/4.9c, addr 2, iclass 3/1 ums0: 5 buttons and Z dir. piix0: port 0x440-0x44f at device 7.3 on pci0 Timecounter "PIIX" frequency 3579545 Hz quality 0 pcib2: at device 16.0 on pci0 pci2: on pcib2 fxp0: port 0xef40-0xef5f mem 0xfea00000-0xfeafffff,0xfc4ff000-0xfc4fffff irq 19 at device 17.0 on pci0 fxp0: Ethernet address 00:e0:81:10:47:b2 miibus0: on fxp0 inphy0: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto ahc0: port 0xe400-0xe4ff mem 0xfebfe000-0xfebfefff irq 16 at device 18.0 on pci0 aic7895C: Ultra Wide Channel A, SCSI Id=7, 32/253 SCBs ahc1: port 0xe800-0xe8ff mem 0xfebff000-0xfebfffff irq 16 at device 18.1 on pci0 aic7895C: Ultra Wide Channel B, SCSI Id=7, 32/253 SCBs orm0: