Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Sep 2001 16:23:49 +0200
From:      Arjan Knepper <arjan@jak.nl>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        freebsd-smp <freebsd-smp@freebsd.org>
Subject:   Re: Problems with accessing ports on multiple Cyclades YeP cards
Message-ID:  <3BB487F5.3070602@jak.nl>
References:  <20010928222423.J53717-100000@delplex.bde.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Bruce Evans wrote:

>On Fri, 28 Sep 2001, Arjan Knepper wrote:
>
>>Bruce Evans wrote:
>>
>>>I always configure CY_PCI_FASTINTR and shuffle boards in the PCI slots
>>>to make the YeP interrupt non-shared.
>>>
>>The interups are not shared between the board but shared with  the NIC
>>and SCSI interface (both integrated on motherboard)
>>For me there not much to shuffle since there are only 3 PCI slots in the
>>the machine and all are supossed to have an YeP card.
>>
>>> This is easier with only 1 YeP
>>>board, but it still required lots of shuffling on a BP6 motherboard.
>>>(The BP6 needs an extra irq or two for the second ata controller
>>>(HPTsomething), and its BIOS doesn't support adjusting these like it
>>>does for the PCI slots, and the YeP irq ended up shared with an HPT
>>>irq in most configurations; this just prevented CY_PCI_FASTINTR from
>>>helping under FreeBSD, but it caused the boot to hang under Linux.)
>>>
>>Are you saying that the YeP interups shouldn't be shared at all? Not
>>with ANY pci device?
>>
>
>Almost.  Not with any active pci interrupt (it doesn't matter if they
>are shared with unused VGA interrupts).  This is just an optimization,
>but it may expose different bugs.  If CY_PCI_FASTINTR is configured and
>a CY_PCI irq is shared, then the following behaviour is normal:
>- if a CY_PCI device using a shared irq is configured before any other
>  device using the shared irq, then the CY_PCI device aquires the irq
>  exclusively and the other devices fail to attach.
>- otherwise, one of the other devices aquires the irq non-exclusively
>  (except in the unusual case where it also uses fast interrupts), and
>  the CY_PCI device is attached using a non-fast irq.
>
>Let's see your dmesg output.
>
Below the output from an exactly the same machine with exactly the same 
config having the same problems only with FreeBSD 4.4RC-5

Copyright (c) 1992-2001 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 4.4-RC5 #0: Tue Sep 18 14:57:21 CEST 2001
    apk@fax2.teledirekt.nl:/usr/src/sys/compile/DELL_PE_2550
Timecounter "i8254"  frequency 1193182 Hz
CPU: Pentium III/Pentium III Xeon/Celeron (930.96-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x68a  Stepping = 10
  
Features=0x383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
real memory  = 536805376 (524224K bytes)
config> q
avail memory = 518877184 (506716K bytes)
Changing APIC ID for IO APIC #0 from 0 to 2 on chip
Changing APIC ID for IO APIC #1 from 0 to 3 on chip
Programming 16 pins in IOAPIC #0
IOAPIC #0 intpin 2 -> irq 0
Programming 16 pins in IOAPIC #1
FreeBSD/SMP: Multiprocessor motherboard
 cpu0 (BSP): apic id:  1, version: 0x00040011, at 0xfee00000
 cpu1 (AP):  apic id:  0, version: 0x00040011, at 0xfee00000
 io0 (APIC): apic id:  2, version: 0x000f0011, at 0xfec00000
 io1 (APIC): apic id:  3, version: 0x000f0011, at 0xfec01000
Preloaded elf kernel "kernel" at 0xc035f000.
Preloaded userconfig_script "/boot/kernel.conf" at 0xc035f09c.
Pentium Pro MTRR support enabled
md0: Malloc disk
Using $PIR table, 8 entries at 0xc00fc270
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <ServerWorks host to PCI bridge> on motherboard
IOAPIC #1 intpin 6 -> irq 2
IOAPIC #1 intpin 2 -> irq 5
pci0: <PCI bus> on pcib0
cy0: <Cyclades Cyclom-Y Serial Adapter> port 0xec80-0xecff mem 
0xfe104000-0xfe107fff,0xfe109400-0xfe10947f irq 2 at device 4.0 on pci0
cy0: no ports found!
cy0: driver is using old-style compatibility shims
cy1: <Cyclades Cyclom-Y Serial Adapter> port 0xec00-0xec7f mem 
0xfe100000-0xfe103fff,0xfe109000-0xfe10907f irq 5 at device 8.0 on pci0
cy1: no ports found!
cy1: driver is using old-style compatibility shims
pci0: <ATI Mach64-GR graphics accelerator> at 14.0
isab0: <ServerWorks IB6566 PCI to ISA bridge> at device 15.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <ServerWorks ROSB4 ATA33 controller> port 0x8b0-0x8bf at device 
15.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
pcib2: <ServerWorks host to PCI bridge> on motherboard
IOAPIC #1 intpin 0 -> irq 10
pci2: <PCI bus> on pcib2
pcib4: <PCI to PCI bridge (vendor=8086 device=0962)> at device 2.0 on pci2
IOAPIC #1 intpin 15 -> irq 11
IOAPIC #1 intpin 14 -> irq 13
pci3: <PCI bus> on pcib4
ahc0: <Adaptec aic7899 Ultra160 SCSI adapter> port 0xcc00-0xccff mem 
0xfe7ff000-0xfe7fffff irq 11 at device 4.0 on pci3
aic7899: Ultra160 Wide Channel A, SCSI Id=7, 32/255 SCBs
ahc1: <Adaptec aic7899 Ultra160 SCSI adapter> port 0xc800-0xc8ff mem 
0xfe7fe000-0xfe7fefff irq 13 at device 4.1 on pci3
aic7899: Ultra160 Wide Channel B, SCSI Id=7, 32/255 SCBs
fxp0: <Intel Pro 10/100B/100+ Ethernet> port 0xbcc0-0xbcff mem 
0xfe500000-0xfe5fffff,0xfe900000-0xfe900fff irq 10 at device 4.0 on pci2
fxp0: Ethernet address 00:06:5b:04:5b:04
inphy0: <i82555 10/100 media interface> on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
pcib1: <ServerWorks host to PCI bridge> on motherboard
IOAPIC #1 intpin 1 -> irq 16
pci1: <PCI bus> on pcib1
pci1: <unknown card> (vendor=0x14e4, dev=0x1644) at 8.0 irq 16
pcib3: <ServerWorks host to PCI bridge> on motherboard
pci4: <PCI bus> on pcib3
orm0: <Option ROMs> at iomem 
0xc0000-0xc7fff,0xc8000-0xcdfff,0xec000-0xeffff on isa0
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
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
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: Generic chipset (ECP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
APIC_IO: Testing 8254 interrupt delivery
APIC_IO: Broken MP table detected: 8254 is not connected to IOAPIC #0 
intpin 2
APIC_IO: routing 8254 via 8259 and IOAPIC #0 intpin 0
SMP: AP CPU #1 Launched!
ata0-slave: ata_command: timeout waiting for intr
ata0-slave: identify failed
acd0: DVD-ROM <LG DVD-ROM DRN-8080B> at ata0-master using PIO4
Waiting 3 seconds for SCSI devices to settle
pass2 at ahc0 bus 0 target 6 lun 0
pass2: <DELL 1x4 U2W SCSI BP 1.30> Fixed Processor SCSI-2 device
pass2: 3.300MB/s transfers
da0 at ahc0 bus 0 target 0 lun 0
da0: <SEAGATE ST318305LC 2202> Fixed Direct Access SCSI-3 device
da0: 160.000MB/s transfers (80.000MHz, offset 63, 16bit), Tagged 
Queueing Enabled
da0: 17366MB (35566478 512 byte sectors: 255H 63S/T 2213C)
da1 at ahc0 bus 0 target 1 lun 0
da1: <SEAGATE ST318305LC 2202> Fixed Direct Access SCSI-3 device
da1: 160.000MB/s transfers (80.000MHz, offset 63, 16bit), Tagged 
Queueing Enabled
da1: 17366MB (35566478 512 byte sectors: 255H 63S/T 2213C)
Mounting root from ufs:/dev/da0s1a
cd9660: RockRidge Extension



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-smp" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3BB487F5.3070602>