From owner-freebsd-current Sat Mar 30 20:55:42 2002 Delivered-To: freebsd-current@freebsd.org Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by hub.freebsd.org (Postfix) with ESMTP id 950C537B416; Sat, 30 Mar 2002 20:55:33 -0800 (PST) Received: by elvis.mu.org (Postfix, from userid 1192) id 67029AE03F; Sat, 30 Mar 2002 20:55:33 -0800 (PST) Date: Sat, 30 Mar 2002 20:55:33 -0800 From: Alfred Perlstein 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> References: <20020331044558.GD93885@elvis.mu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020331044558.GD93885@elvis.mu.org> User-Agent: Mutt/1.3.27i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * Alfred Perlstein [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: 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: on pcib2 pci2: at device 4.0 (no driver attached) pcib3: at device 5.0 on pci2 pci2: at device 5.1 (no driver attached) ... asr0: mem 0xf6000000-0xf7ffffff irq 5 at device 5.1 on pci2 asr0: mem 0xf6000000-0xf7ffffff irq 5 at device 5.1 on pci2 asr0: 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 AMD Features=0xc0480000 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: on motherboard npx0: INT 16 interface acpi0: 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: on acpi0 acpi_cpu1: on acpi0 acpi_button0: on acpi0 acpi_pcib0: port 0x8080-0x80ff,0x8000-0x807f,0xcf8-0xcff iomem 0xd8000-0xdbfff on acpi0 pci0: on acpi_pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at device 5.0 (no driver attached) isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0xf000-0xf00f at device 7.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 pci0: at device 7.3 (no driver attached) pcib2: at device 16.0 on pci0 pci2: on pcib2 pci2: at device 4.0 (no driver attached) pcib3: at device 5.0 on pci2 pci3: on pcib3 pci2: at device 5.1 (no driver attached) ohci0: mem 0xec901000-0xec901fff irq 10 at device 6.0 on pci2 usb0: OHCI version 1.0, legacy support usb0: 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: mem 0xec902000-0xec902fff irq 9 at device 6.1 on pci2 usb1: OHCI version 1.0, legacy support usb1: 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: 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: on xl0 ukphy0: on miibus0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto atkbdc0: port 0x64,0x60 irq 1 on acpi0 atkbd0: flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 psm0: 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: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 fdc0: port 0x3f7,0x3f0-0x3f5 irq 6 on acpi0 fdc0: FIFO enabled, 8 bytes threshold orm0: