Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Mar 2002 20:55:33 -0800
From:      Alfred Perlstein <bright@mu.org>
To:        scott_long@btc.adaptec.com, mark_salyzyn@adaptec.com, obrien@freebsd.org
Cc:        current@freebsd.org
Subject:   Re: asr can not map memory?
Message-ID:  <20020331045533.GF93885@elvis.mu.org>
In-Reply-To: <20020331044558.GD93885@elvis.mu.org>
References:  <20020331044558.GD93885@elvis.mu.org>

next in thread | previous in thread | raw e-mail | index | archive | help
* Alfred Perlstein <bright@mu.org> [020330 20:47] wrote:
> I just got the Adaptec 4 port IDE raid card 2400A.
> 
> It doesn't probe right:
> asr0: could not map memory
> 
> I added some debug printouts to the asr driver and pci code.
> 
> asr0: <Adaptec Caching SCSI RAID> mem 0xf6000000-0xf7ffffff irq 5 at device 5.1 on pci2
> pcib2: device asr0 requested unsupported memory range 0xf6000000-0xf6400000
> pcib2: device asr0 requested unsupported memory range 0x0-0xec9fffff (decoding 0xec900000-0xec9fffff, 0xf6000000-0xfbffffff)
> asr: map failed at: 2602 p:f6000000 f6400000 l:00400000
> asr0: could not map memory
> device_probe_and_attach: asr0 attach returned 6
> 
> wtf is going on here?

One wild guess, our PCI code isn't noticing that the device is sitting
on the other side of a bridge?

pci2: <PCI bus> on pcib2
pci2: <display, VGA> at device 4.0 (no driver attached)
pcib3: <PCI-PCI bridge> at device 5.0 on pci2
pci2: <unknown> at device 5.1 (no driver attached)
...
asr0: <Adaptec Caching SCSI RAID> mem 0xf6000000-0xf7ffffff irq 5 at device 5.1 on pci2
asr0: <Adaptec Caching SCSI RAID> mem 0xf6000000-0xf7ffffff irq 5 at device 5.1 on pci2
asr0: <Adaptec Caching SCSI RAID> mem 0xf6000000-0xf7ffffff irq 5 at device 5.1 on pci2

full dmesg follows:

Copyright (c) 1992-2002 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.0-CURRENT #1: Sat Mar 30 12:28:13 PST 2002
    root@big.endian.org:/usr/src/sys/i386/compile/smpng2
Preloaded elf kernel "/boot/kernel/kernel" at 0xc0564000.
Preloaded userconfig_script "/boot/kernel.conf" at 0xc05640a8.
Preloaded elf module "/boot/kernel/acpi.ko" at 0xc05640f8.
Timecounter "i8254"  frequency 1193182 Hz
CPU: AMD Athlon(tm) MP 1900+ (1600.06-MHz 686-class CPU)
  Origin = "AuthenticAMD"  Id = 0x662  Stepping = 2
  Features=0x383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
  AMD Features=0xc0480000<MP,AMIE,DSP,3DNow!>
real memory  = 536870912 (524288K bytes)
avail memory = 515665920 (503580K bytes)
Programming 24 pins in IOAPIC #0
IOAPIC #0 intpin 2 -> irq 0
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): apic id:  1, version: 0x00040010, at 0xfee00000
 cpu1 (AP):  apic id:  0, version: 0x00040010, at 0xfee00000
 io0 (APIC): apic id:  2, version: 0x00170011, at 0xfec00000
Pentium Pro MTRR support enabled
VESA: v2.0, 8192k memory, flags:0x1, mode table:0xc0486d62 (1000022)
VESA: Matrox Graphics Inc.
Using $PIR table, 12 entries at 0xc00fdf00
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <PTLTD    RSDT  > on motherboard
acpi0: power button is handled as a fixed feature programming model.
acpi0: sleep button is handled as a fixed feature programming model.
Timecounter "ACPI-fast"  frequency 3579545 Hz
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x8008-0x800b on acpi0
acpi_cpu0: <CPU> on acpi0
acpi_cpu1: <CPU> on acpi0
acpi_button0: <Power Button> on acpi0
acpi_pcib0: <Host-PCI bridge> port 0x8080-0x80ff,0x8000-0x807f,0xcf8-0xcff iomem 0xd8000-0xdbfff on acpi0
pci0: <PCI bus> on acpi_pcib0
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <display, VGA> at device 5.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <AMD 768 ATA100 controller> port 0xf000-0xf00f at device 7.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
pci0: <bridge, PCI-unknown> at device 7.3 (no driver attached)
pcib2: <PCI-PCI bridge> at device 16.0 on pci0
pci2: <PCI bus> on pcib2
pci2: <display, VGA> at device 4.0 (no driver attached)
pcib3: <PCI-PCI bridge> at device 5.0 on pci2
pci3: <PCI bus> on pcib3
pci2: <unknown> at device 5.1 (no driver attached)
ohci0: <OPTi 82C861 (FireLink) USB controller> mem 0xec901000-0xec901fff irq 10 at device 6.0 on pci2
usb0: OHCI version 1.0, legacy support
usb0: <OPTi 82C861 (FireLink) USB controller> on ohci0
usb0: USB revision 1.0
uhub0: OPTi OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
ohci1: <OPTi 82C861 (FireLink) USB controller> mem 0xec902000-0xec902fff irq 9 at device 6.1 on pci2
usb1: OHCI version 1.0, legacy support
usb1: <OPTi 82C861 (FireLink) USB controller> on ohci1
usb1: USB revision 1.0
uhub1: OPTi OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
pcm0: <CMedia CMI8738> port 0x2000-0x20ff irq 9 at device 7.0 on pci2
xl0: <3Com 3c905C-TX Fast Etherlink XL> port 0x2400-0x247f mem 0xec903000-0xec90307f irq 9 at device 8.0 on pci2
xl0: Ethernet address: 00:e0:81:20:6f:f5
miibus0: <MII bus> on xl0
ukphy0: <Generic IEEE 802.3u media interface> on miibus0
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model 4D+ Mouse, device ID 8
sio0 port 0x3f8-0x3ff irq 4 on acpi0
sio0: type 16550A
sio1 port 0x2f8-0x2ff irq 3 on acpi0
sio1: type 16550A
ppc0 port 0x778-0x77f,0x378-0x37f irq 7 on acpi0
ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
fdc0: <enhanced floppy controller (i82077, NE72065 or clone)> port 0x3f7,0x3f0-0x3f5 irq 6 on acpi0
fdc0: FIFO enabled, 8 bytes threshold
orm0: <Option ROMs> at iomem 0xc8800-0xce7ff,0xc8000-0xc87ff,0xc0000-0xc7fff on isa0
pmtimer0 on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
APIC_IO: Testing 8254 interrupt delivery
APIC_IO: routing 8254 via IOAPIC #0 intpin 2
ad0: 29188MB <ST330630A> [59303/16/63] at ata0-master UDMA66
Mounting root from ufs:/dev/ad0s1a
SMP: AP CPU #1 Launched!
Non-unique normal route, mask not entered
Linux ELF exec handler installed
asr0: <Adaptec Caching SCSI RAID> mem 0xf6000000-0xf7ffffff irq 5 at device 5.1 on pci2
asr0: major=154
pcib2: device asr0 requested unsupported memory range 0xf6000000-0xf6400000
pcib2: device asr0 requested unsupported memory range 0x0-0xec9fffff (decoding 0xec900000-0xec9fffff, 0xf6000000-0xfbffffff)
asr: map failed at: 2602 p:f6000000 f6400000 l:00400000
asr0: could not map memory
device_probe_and_attach: asr0 attach returned 6
asr0: <Adaptec Caching SCSI RAID> mem 0xf6000000-0xf7ffffff irq 5 at device 5.1 on pci2
pcib2: device asr0 requested unsupported memory range 0xf6000000-0xf6400000
pcib2: device asr0 requested unsupported memory range 0x0-0xec9fffff (decoding 0xec900000-0xec9fffff, 0xf6000000-0xfbffffff)
asr: map failed at: 2602 p:f6000000 f6400000 l:00400000
asr0: could not map memory
device_probe_and_attach: asr0 attach returned 6
asr0: <Adaptec Caching SCSI RAID> mem 0xf6000000-0xf7ffffff irq 5 at device 5.1 on pci2
pcib2: device asr0 requested unsupported memory range 0xf6000000-0xf6400000
pcib2: device asr0 requested unsupported memory range 0x0-0xec9fffff (decoding 0xec900000-0xec9fffff, 0xf6000000-0xfbffffff)
asr: map failed at: 2602 p:f6000000 f6400000 l:00400000
asr0: could not map memory
device_probe_and_attach: asr0 attach returned 6

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




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