Adaptec / MegaRAID SCSI issues - FIXED!

Jung-uk Kim jkim at niksun.com
Mon May 12 10:46:43 PDT 2003


On Monday 12 May 2003 09:17 am, Eric Anderson wrote:
> 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!

Great.

> Thanks for the patch and the quick response!!

No problem.

> Can we be confident this will make it into 5.1-RELEASE and/or
> 4.9-RELEASE?

Unfortunately, this will turn off a pass-through feature recently 
added to the driver. More importantly, I am not a committer. ;-)

I will contact maintainer with the issue.

Thanks,

Jung-uk Kim

> Eric


More information about the freebsd-hackers mailing list