From owner-freebsd-drivers@FreeBSD.ORG Wed May 30 15:58:14 2012 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 831C51065679 for ; Wed, 30 May 2012 15:58:14 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (bigknife-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:75::2]) by mx1.freebsd.org (Postfix) with ESMTP id 586B58FC19 for ; Wed, 30 May 2012 15:58:14 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id A7A8FB96D; Wed, 30 May 2012 11:58:13 -0400 (EDT) From: John Baldwin To: freebsd-drivers@freebsd.org Date: Wed, 30 May 2012 10:48:54 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110714-p13; KDE/4.5.5; amd64; ; ) References: <20120522144716.24c94494.AVShutko@mail.khstu.ru> In-Reply-To: <20120522144716.24c94494.AVShutko@mail.khstu.ru> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <201205301048.54106.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Wed, 30 May 2012 11:58:13 -0400 (EDT) Cc: Subject: Re: AACRAID 6805 support on FreeBSD 9 X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 May 2012 15:58:14 -0000 On Monday, May 21, 2012 11:47:16 pm =D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0= =BD=D0=B4=D1=80 =D0=92. =D0=A8=D1=83=D1=82=D0=BA=D0=BE wrote: > Hi. I'm trying to get AACRAID 6805 support on FreeBSD 9. I downloaded the= driver code for =20 > FreeBSD 8.3 and compiled it on FreeBSD 9.0 and it compiled without any er= rors/warnings. Then I=20 > kldload-ed it and got: >=20 > aacu0: mem 0xf8c00000-0xf8ffffff,0xf8bbc000-0xf= 8bbc7ff,0xf8bbe000- > 0xf8bbe0ff irq 50 > at device 0.0 on pci132 > aacu0: Enable Raw I/O > aacu0: Enable 64-bit array > aacu0: New comm. interface type1 enabled > aacu0: Adaptec 6805, aac driver 2.4.2-18668 > aacd0: on aacu0 > aacd0: 2860022MB (5857325056 sectors) >=20 > aacu0: COMMAND 0xffffff8001fe3000 TIMEOUT AFTER 40 SECONDS > aacu0: aac_timeout: FIB @ 0xffffff86955fe020 > aacu0: XferState 830ad > aacu0: Command 502 > aacu0: StructType 1 > aacu0: Flags 0x0 > aacu0: Size 80 > aacu0: SenderSize 2048 > aacu0: SenderAddress 0x0 > aacu0: RcvrAddress 0x1962b020 > aacu0: SenderData 0x0 > aacu0: 00 00 00 00 00 00 00 00 00 02 00 00 00 00 01 00 > aacu0: 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 > The driver hangs forever printing >=20 > aacu0: COMMAND 0xffffff8001fe3000 TIMEOUT AFTER xxxx SECONDS >=20 > I compiled it with debug info to get verbose logging and found that all s= ync commands work during=20 > initialization, but the driver didn't get a reply on the first async rawi= o command. It looks like=20 > there is some problem with interrupts. >=20 > On 8.3 this code works without a problem. I tried to disable PCIE MSI/X i= n loader.conf=20 > but this didn't help. >=20 > Adaptec support answered "Unfortunately, at the present time we do not of= fer support for=20 > FreeBSD 9. Only 8.x is currently supported. Support for FreeBSD 9 is sche= duled and will be=20 > available on a future release currently expected in the fall of this year= (Oct time frame)." >=20 > Any ideas? >=20 > P.S. On FreeBSD 8.3 I noticed kernel message "aacu0: [ITHREAD]" after=20 > "aacu0: New comm. interface type1 enabled" but FreeBSD 9 doesn't write it. What do you see if you do 'vmstat -ai | grep aac'? =2D-=20 John Baldwin