Re: new interrupts not working for me

From: Richard Todd <rmtodd_at_servalan.servalan.com>
Date: Mon, 10 Nov 2003 22:45:10 -0600
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_at_ichotolot.servalan.com:/usr/src/sys/i386/compile/ICHOTOLOTSMP
Preloaded elf kernel "/boot/kernel/kernel" at 0xc0b3f000.
MPTable: <INTEL    440GX       >
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<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR>
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 <Version 1.1> irqs 0-23 on motherboard
Pentium Pro MTRR support enabled
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcibios: BIOS version 2.10
pcib0: <MPTable Host-PCI bridge> at pcibus 0 on motherboard
pci0: <PCI bus> 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: <Intel 82443GX host to PCI bridge> mem 0xf8000000-0xfbffffff at device 0.0 on pci0
pcib1: <MPTable PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pcib1: slot 0 INTA routed to irq 16
pci1: <display, VGA> at device 0.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 UDMA33 controller> 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: <Intel 82371AB/EB (PIIX4) USB controller> port 0xef80-0xef9f irq 19 at device 7.2 on pci0
usb0: <Intel 82371AB/EB (PIIX4) USB controller> 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: <PIIX Timecounter> port 0x440-0x44f at device 7.3 on pci0
Timecounter "PIIX" frequency 3579545 Hz quality 0
pcib2: <PCI-PCI bridge> at device 16.0 on pci0
pci2: <PCI bus> on pcib2
fxp0: <Intel 82558 Pro/100 Ethernet> 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: <MII bus> on fxp0
inphy0: <i82555 10/100 media interface> on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
ahc0: <Adaptec aic7895 Ultra SCSI adapter> 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: <Adaptec aic7895 Ultra SCSI adapter> 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: <Option ROMs> at iomem 0xcc000-0xd07ff,0xc0000-0xc87ff on isa0
pmtimer0 on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x64,0x60 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> at port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode
ppbus0: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sbc0: <Creative ViBRA16X> at port 0x388-0x38b,0x330-0x331,0x220-0x22f irq 5 drq 3,1 on isa0
pcm0: <SB16 DSP 4.16 (ViBRA16X)> on sbc0
unknown: <PNP0303> can't assign resources (port)
unknown: <PNP0c02> can't assign resources (port)
unknown: <PNP0501> can't assign resources (port)
unknown: <PNP0501> can't assign resources (port)
unknown: <PNP0400> can't assign resources (port)
unknown: <PNP0700> can't assign resources (port)

Timecounters tick every 10.000 msec
ipfw2 initialized, divert disabled, rule-based forwarding enabled, default to accept, logging disabled
IPsec: Initialized Security Association Processing.
Waiting 15 seconds for SCSI devices to settle
sa0 at ahc0 bus 0 target 0 lun 0
sa0: <SONY SDT-7000 0300> Removable Sequential Access SCSI-2 device 
sa0: 10.000MB/s transfers (10.000MHz, offset 15)
GEOM: create disk cd0 dp=0xc54fee00
GEOM: create disk da0 dp=0xc5616850
GEOM: create disk da1 dp=0xc5608850
GEOM: create disk da2 dp=0xc5608c50
da0 at ahc1 bus 0 target 2 lun 0
da0: <QUANTUM ATLAS IV 9 WLS 0707> Fixed Direct Access SCSI-3 device 
da0: 40.000MB/s transfers (20.000MHz, offset 8, 16bit), Tagged Queueing Enabled
da0: 8761MB (17942584 512 byte sectors: 255H 63S/T 1116C)
da1 at ahc1 bus 0 target 4 lun 0
da1: <QUANTUM ATLAS_V_18_WLS 0230> Fixed Direct Access SCSI-3 device 
da1: 40.000MB/s transfers (20.000MHz, offset 8, 16bit), Tagged Queueing Enabled
da1: 17510MB (35861388 512 byte sectors: 255H 63S/T 2232C)
da2 at ahc1 bus 0 target 6 lun 0
da2: <IBM IC35L073UWDY10-0 S23C> Fixed Direct Access SCSI-3 device 
da2: 40.000MB/s transfers (20.000MHz, offset 8, 16bit), Tagged Queueing Enabled
da2: 70007MB (143374805 512 byte sectors: 255H 63S/T 8924C)
SMP: AP CPU #1 Launched!
cd0 at ahc0 bus 0 target 3 lun 0
cd0: <YAMAHA CRW8424S 1.0g> Removable CD-ROM SCSI-2 device 
cd0: 20.000MB/s transfers (20.000MHz, offset 15)
cd0: cd present [187018 x 2048 byte records]
Mounting root from ufs:/dev/da1s1a
Accounting enabled
Received on Mon Nov 10 2003 - 20:26:23 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:28 UTC