From owner-freebsd-hackers@FreeBSD.ORG Mon May 12 06:17:30 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CC25A37B401 for ; Mon, 12 May 2003 06:17:30 -0700 (PDT) Received: from otter3.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1324843FDD for ; Mon, 12 May 2003 06:17:30 -0700 (PDT) (envelope-from anderson@centtech.com) Received: from centtech.com (electron.centtech.com [204.177.173.173]) by otter3.centtech.com (8.12.3/8.12.3) with ESMTP id h4CDHT56073201; Mon, 12 May 2003 08:17:29 -0500 (CDT) (envelope-from anderson@centtech.com) Message-ID: <3EBF9ED2.4030008@centtech.com> Date: Mon, 12 May 2003 08:17:06 -0500 From: Eric Anderson User-Agent: Mozilla/5.0 (X11; U; Linux i386; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jung-uk Kim References: <3EBC1299.4060101@centtech.com> <200305091812.13007.jkim@niksun.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: Adaptec / MegaRAID SCSI issues - FIXED! X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 May 2003 13:17:31 -0000 Jung-uk Kim wrote: > I had a same problem with MegaRAID. I believe there is pass-through > problem. Try the following patch. > > Jung-uk Kim > > --- src/sys/dev/amr/amr.c.old Wed Jan 15 17:03:05 2003 > +++ src/sys/dev/amr/amr.c Fri May 9 18:00:11 2003 > @@ -237,12 +237,14 @@ > > debug(2, "controller query complete"); > > +#ifdef AMR_SCSI_PASSTHROUGH > /* > * Attach our 'real' SCSI channels to CAM. > */ > if (amr_cam_attach(sc)) > return(ENXIO); > debug(2, "CAM attach done"); > +#endif > > /* > * Create the control device. > @@ -339,8 +341,10 @@ > { > struct amr_command_cluster *acc; > > +#ifdef AMR_SCSI_PASSTHROUGH > /* detach from CAM */ > amr_cam_detach(sc); > +#endif > > /* cancel status timeout */ > untimeout(amr_periodic, sc, sc->amr_timeout); That did the trick! After I updated to 4.8-STABLE (from May 9th, 2003), and rebuilt, I still had the problem, so I applied your patch, rebuilt the kernel again, and voila! It works! Thanks for the patch and the quick response!! Can we be confident this will make it into 5.1-RELEASE and/or 4.9-RELEASE? Eric -- ------------------------------------------------------------------ Eric Anderson Systems Administrator Centaur Technology Attitudes are contagious, is yours worth catching? ------------------------------------------------------------------