From owner-freebsd-bugs Wed Nov 29 11:23:37 1995 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id LAA11900 for bugs-outgoing; Wed, 29 Nov 1995 11:23:37 -0800 Received: from nwpeople.demon.co.uk (nwpeople.demon.co.uk [158.152.27.96]) by freefall.freebsd.org (8.6.12/8.6.6) with SMTP id LAA11617 for ; Wed, 29 Nov 1995 11:17:54 -0800 Date: Wed, 29 Nov 1995 19:17:12 GMT From: iain@nwpeople.demon.co.uk (Iain Baird) Reply-To: iain@nwpeople.demon.co.uk Message-Id: <11948@nwpeople.demon.co.uk> To: se@zpr.uni-koeln.de (Stefan Esser) Cc: bugs@freebsd.org Subject: Re: NCR815 problem X-Mailer: PCElm 1.10 Lines: 175 Sender: owner-bugs@freebsd.org Precedence: bulk Thanks for you reply to my previous mail. > On Nov 27, 18:26, Iain Baird wrote: > } Subject: NCR815 problem > } I have just installed an NCR-815 PCI SCSI controller in my PC. > } When I boot 2.1.0-951026-SNAP (off IDE) I get the following error: > } > } pci_map_mem failed: device's memrange 0xc8000-0xc80ff is > } incompatible with its bridge's memrange 0x4000000-0xffffffff > } > } CACHE TEST FAILED: reg dstat-sstat2 readback ffffffff. > } CACHE INCORRECTLY CONFIGURED. > > Well, seems your system violates one of the assumptions > of the PCI code: The PCI devices are expected to be mapped > to addresses beyond the 1st Gigabyte of address space. > Your system uses much lower addresses: 0xc0000 is an > address below 1MB, i.e. in the ISA peripheral address > space. What causes this? Is it my motherboard/BIOS, or the NCR 815 card? I have been thinking about replacing the motherboard. > This ought to work, provided your system doesn't try to > cache accesses to the 640KB to 1MB address range, and > that you didn't turn on copying of BIOS ROMs into RAM at > those addresses. > > Could you please verify the BIOS setup ? I've turned caching and shadowing off. I haven't seen any cache test failures since. > } ncr0 rev 3 int a irq 15 on pci0:3 > ^^ > I'd rather avoid IRQ 15 in a system that also got IDE > drives. Haven't heard that it actually caused problems, > but I'd be afraid that IDE might want to have 14 and 15 > for its own use (and might for example install interrupt > handlers). I have experimented with this, using other IRQs makes no difference. I have only one IDE controller, it uses IRQ 14. > } pci0:5: vendor=0x1c1c, device=0x0001, class=old (misc) [no driver assigned] > ^^^^^^ > any idea, what kind of device that is ? Yes: it's a DTC PCI IDE Controller card. My motherboard has no on-board IDE controller, the system came with the DTC card. Here are some system details: Gateway 2000 4DX2-66P PhoenixBIOS 4.03 GPCI 4.03.09 Intel P&P BIOS Extensions v2.07 NCR SMDS v3.0 PCI SCSI BIOS, PCI Rev 2.0 NCR PCI04-3.06.00 > You will be able to use that 815 controller card, but it might > be necessary to build a custom kernel. Well, I got a little further, but I have been unable to get sd0 to work under FreeBSD. It works fine under DOS. I have attempted to disklabel the sd0 manually, but I think I'm tripping over the new slice support. I consulted the FAQ, it didn't help - the FAQ was clear enough, but nothing it suggested actually worked. Finally I used the installation floppy to create a FreeBSD partition on sd0. I had previously created a DOS partition so that the correct BIOS geometries would be picked up (1021/31/63). I chose "Dedicate whole disk to FreeBSD" and "Don't cooperate with other OS's". I forced a write from the partition menu. I then booted off IDE, verbose boot messages follow below. Note the last message: sd0s1: C/H/S end 1021/0/24 (24527) != end 1994036: invalid Attempts to disklabel the partition failed with the same error. I don't know whether I'm doing something wrong, or hitting a hardware problem or a bug. Something seems to be trashing the geometry. I'll be grateful for any further assistance you can give. iain -- Iain Baird Network People International Tel: +44 (0)1732 743591 The following boot messages were obtained with: External cache disabled Caching of C800-CBFF,CC00-CFFF disabled (Should this make any difference, if external cache is disabled? What about internal L1 cache?) Shadowing of C800-CBFF,CC00-CFFF disabled IRQ 15 the only IRQ left free for PCI FreeBSD 2.1.0-951026-SNAP #0: Mon Nov 27 02:28:15 GMT 1995 root@nomad:/usr/src/sys/compile/NOMAD.NCR CPU: i486 DX2 (486-class CPU) Origin = "GenuineIntel" Id = 0x435 Stepping=5 Features=0x3 real memory = 16777216 (16384K bytes) avail memory = 15065088 (14712K bytes) Probing for devices on the ISA bus: sc0 at 0x60-0x6f irq 1 on motherboard sc0: VGA color <16 virtual consoles, flags=0x0> ed0 at 0x280-0x29f irq 10 maddr 0xd8000 msize 8192 on isa ed0: address 00:00:c0:8e:30:a1, type SMC8416C/SMC8416BT (16 bit) sio0 at 0x3f8-0x3ff irq 4 on isa sio0: type 16550A sio1 at 0x2f8-0x2ff irq 3 on isa sio1: type 16550A lpt0 at 0x378-0x37f irq 7 on isa lpt0: Interrupt-driven port lp0: TCP/IP capable interface fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa fdc0: NEC 72065B fd0: 1.44MB 3.5in wdc0 at 0x1f0-0x1f7 irq 14 on isa wdc0: unit 0 (wd0): wd0: 515MB (1056384 sectors), 1048 cyls, 16 heads, 63 S/T, 512 B/S npx0 on motherboard npx0: INT 16 interface pcibus_setup(1): mode1res=0x0000000e (0x80000000), mode2res=0x0e (0x0e) pcibus_setup(2): mode1res=0x00000000 (0x80000000) pcibus_setup(3): mode1res=0x00000000 (0xff000001) pcibus_setup(4): now trying mechanism 2 pcibus_check: device 0 is there (id=04838086) Probing for devices on the PCI bus: configuration mode 2 allows 16 devices. chip0 rev 4 on pci0:0 CPU: 486DX2 or 486DX4, bus=33MHz, CPU->Memory posting ON Warning: NO DRAM parity! Cache: None DRAM: page mode code fetch, read and write, memory clocks=X-1-2-1 CPU->PCI: posting ON, burst mode ON PCI->Memory: posting ON chip1 rev 3 on pci0:2 Bus Modes: Bus Park, Bus Lock, Coprocessor errors enabled Keyboard controller: 60h,62h,64h,66h RTC: 70h-77h Configuration RAM: 0C00h,0800h-08FFh Port 92: enabled ncr0 rev 3 int a irq 15 on pci0:3 mapreg[10] type=1 addr=0000ff00 size=0100. mapreg[14] type=0 addr=000cc000 size=0100. pci_map_mem failed: device's memrange 0xcc000-0xcc0ff is incompatible with its bridge's memrange 0x4000000-0xffffffff reg20: virtual=0xf2a4f000 physical=0xcc000 size=0x100 ncr0: restart (scsi reset). ncr0 scanning for targets 0..6 (V2 pl23 95/09/07) ncr0 waiting for scsi devices to settle (ncr0:0:0): "SEAGATE ST31250N 0006" type 0 fixed SCSI 2 sd0(ncr0:0:0): Direct-Access sd0(ncr0:0:0): FAST SCSI-2 100ns (10 Mb/sec) offset 8. 973MB (1994037 512 byte sectors) sd0(ncr0:0:0): with 3712 cyls, 5 heads, and an average 107 sectors/track vga0 rev 0 on pci0:4 mapreg[10] type=0 addr=40000000 size=800000. pci0:5: vendor=0x1c1c, device=0x0001, class=old (misc) [no driver assigned] pci0: uses 8388608 bytes of memory from 40000000 upto 407fffff. pci0: uses 256 bytes of I/O space from ff00 upto ffff. BIOS Geometries: 0:03fe0f3f 0..1022=1023 cylinders, 0..15=16 heads, 1..63=63 sectors 1:03fc1e3f 0..1020=1021 cylinders, 0..30=31 heads, 1..63=63 sectors 0 accounted for wd0s1: type 0x6, start 63, end = 409247, size 409185 : OK wd0s2: type 0xa5, start 409248, end = 1056383, size 647136 : OK sd0s1: type 0xa5, start 0, end = 1994036, size 1994037 sd0s1: C/H/S end 1021/0/24 (24527) != end 1994036: invalid