From owner-freebsd-current@FreeBSD.ORG Sat Sep 10 22:33:10 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8865716A41F for ; Sat, 10 Sep 2005 22:33:10 +0000 (GMT) (envelope-from mischa.peters@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0242843D46 for ; Sat, 10 Sep 2005 22:33:09 +0000 (GMT) (envelope-from mischa.peters@gmail.com) Received: by xproxy.gmail.com with SMTP id i31so2120377wxd for ; Sat, 10 Sep 2005 15:33:09 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=FG00bYsbufEQFIpms9Viq2l6inQJar5/xetkx6BI7UKjP7C7LZQZonS8XiqmfKsCfVXKBfnPWsj+3XzrAn6zwS2uV/3GRlyCYYRP5XfK9qoo5XkJ5PndneiHU1rcnLVvL4wO5YRlKA1OGKLIbcw5e1pLlRkibBcGoDi5UHSKJ8g= Received: by 10.70.111.11 with SMTP id j11mr57057wxc; Sat, 10 Sep 2005 15:33:09 -0700 (PDT) Received: by 10.70.76.10 with HTTP; Sat, 10 Sep 2005 15:33:09 -0700 (PDT) Message-ID: <25e9cd0105091015332c4b80b1@mail.gmail.com> Date: Sun, 11 Sep 2005 00:33:09 +0200 From: Mischa Peters To: freebsd-current@freebsd.org, Dimitry Andric In-Reply-To: <1925484655.20050911000627@andric.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <25e9cd0105082823337369bb6d@mail.gmail.com> <4312C7BC.1010603@home.pl> <25e9cd0105083006006713c8ca@mail.gmail.com> <25e9cd01050910132847bdf260@mail.gmail.com> <1925484655.20050911000627@andric.com> Cc: Subject: Re: LSI Logic fibre channel adapter in FreeBSD 6.0-BETA3 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: mischa.peters@gmail.com List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Sep 2005 22:33:10 -0000 Hi Dim! :) On 9/11/05, Dimitry Andric wrote: > On 2005-09-10 at 22:28:53 Mischa Peters wrote: >=20 > >> > > I have a Fibre Channel card in my server, LSI Logic FC909A which w= as > --snip-- > > root:~ # pciconf -vl > > none0@pci0:11:0: class=3D0x0c0400 card=3D0x10101000 chip=3D0x062= 61000 rev=3D0x00 > > hdr=3D0x00 > > vendor =3D 'LSI Logic (Was: Symbios Logic, NCR)' > > device =3D 'LSIFC929X Dual Channel Fibre Channel I/O Processor' >=20 > Hm, your PCI configuration says it's a 929X? And its chip id seems to > be 0x0626, which isn't present in sys/dev/mpt/mpt_pci.c... For some > reason it was left out in the "massive overhaul" around revision 1.20? >=20 > Maybe you can apply a diff similar to the following (which was done > for the RELENG_4_11 branch): > http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/mpt/mpt_pci.c.diff?r1= =3D1.3.2.3&r2=3D1.3.2.3.10.1&f=3Dh >=20 > It looks like simply adding the required PCI id, adding a case in > mpt_pci_probe, and some minor other things. Can you try the attached > patch? Since I'm doing this *completely* blind, YMMV, but please let > us know how it goes. A dmesg would be nice! ;) I will try the patch and report back, dmesg is included. > > root:~ # kldload mpt > > kldload: can't load mpt: File exists >=20 > This isn't needed, the mpt driver is statically linked in the GENERIC > kernel (assuming you're using that). I asumed that much, but you never know. I am not running GENERIC but it's close. :) =3D=3D=3D dmesg =3D=3D=3D Copyright (c) 1992-2005 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 6.0-BETA4 #2: Fri Sep 9 06:37:32 CEST 2005 WARNING: WITNESS option enabled, expect reduced performance. Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Celeron(TM) CPU 1300MHz (1302.96-MHz 686-class= CPU) Origin =3D "GenuineIntel" Id =3D 0x6b4 Stepping =3D 4 Features=3D0x383fbff real memory =3D 1073676288 (1023 MB) avail memory =3D 1041797120 (993 MB) npx0: [FAST] npx0: on motherboard npx0: INT 16 interface acpi0: on motherboard acpi0: Power Button (fixed) pci_link0: irq 5 on acpi0 pci_link1: irq 10 on acpi0 pci_link2: irq 11 on acpi0 pci_link3: irq 12 on acpi0 Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0 cpu0: on acpi0 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff,0x4000-0x407f,0x4080-0x40ff,0x5000-0x500f on acpi0 pci0: on pcib0 agp0: mem 0xf0000000-0xf3ffffff at device 0.0 on pci0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at device 0.0 (no driver attached) twe0: <3ware Storage Controller. Driver version 1.50.01.002> port 0xb000-0xb00f mem 0xf8000000-0xf87fffff irq 10 at device 7.0 on pci0 twe0: [GIANT-LOCKED] twe0: 4 ports, Firmware FE7X 1.05.00.063, BIOS BE7X 1.08.00.048 pci0: at device 11.0 (no driver attached) pci0: at device 11.1 (no driver attached) atapci0: port 0xbc00-0xbc07,0xc000-0xc003,0xc400-0xc407,0xc800-0xc803,0xcc00-0xcc3f mem 0xf8900000-0xf891ffff irq 11 at device 12.0 on pci0 ata2: on atapci0 ata3: on atapci0 fxp0: port 0xd000-0xd03f mem 0xf8960000-0xf8960fff,0xf8800000-0xf88fffff irq 12 at device 13.0 on pci0 miibus0: on fxp0 inphy0: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto fxp0: Ethernet address: 00:30:48:41:ba:1d isab0: at device 17.0 on pci0 isa0: on isab0 atapci1: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xd400-0xd40f at device 17.1 on pci0 ata0: on atapci1 ata1: on atapci1 uhci0: port 0xd800-0xd81f irq 12 at device 17.2 on pci0 uhci0: [GIANT-LOCKED] usb0: on uhci0 usb0: USB revision 1.0 uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhci1: port 0xdc00-0xdc1f irq 12 at device 17.3 on pci0 uhci1: [GIANT-LOCKED] usb1: on uhci1 usb1: USB revision 1.0 uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered uhci2: port 0xe000-0xe01f irq 12 at device 17.4 on pci0 uhci2: [GIANT-LOCKED] usb2: on uhci2 usb2: USB revision 1.0 uhub2: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub2: 2 ports with 2 removable, self powered acpi_tz0: on acpi0 fdc0: port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0 fdc0: [FAST] fd0: <1440-KB 3.5" drive> on fdc0 drive 0 sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acp= i0 sio0: type 16550A, console sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0 sio1: type 16550A ppc0: port 0x378-0x37f,0x778-0x77b irq 7 drq 3 on acpi0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/16 bytes threshold ppbus0: on ppc0 plip0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 pmtimer0 on isa0 orm0: at iomem 0xc0000-0xc7fff,0xcc000-0xccfff,0xcd000-0xd0fff,0xd1000-0xd8fff on isa0 atkbdc0: at port 0x60,0x64 on isa0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=3D0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounter "TSC" frequency 1302961317 Hz quality 800 Timecounters tick every 1.000 msec ad1: 19595MB at ata0-slave UDMA100 twed0: on twe0 Trying to mount root from ufs:/dev/ad1s1a =3D=3D=3D end dmesg =3D=3D=3D Mischa