Re: sata_mv: module reloading doesn't work

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Apr 02, 2006 at 12:21:34PM -0400, Mark Lord wrote:
> Dan Aloni wrote:
> >On Sun, Apr 02, 2006 at 12:05:46PM -0400, Mark Lord wrote:
> >
> >>What kernel?  Any patches applied to sata_mv.c ??
> >
> >2.6.16 + ncq branch. sata_mv.c was modified by me - I'll retry
> >with a cleaner configuration, sorry.
> 
> The NCQ stuff is *unsafe* with the existing sata_mv.c,
> as there are known (to me, at least) bugs that prevent it
> from working reliably after the first I/O error of any kind.

Thanks for alerting me about that, I'll take that into consideration.
 
> The 2.6.16.1 branch is slightly better,
> and there is also the "three bug fixes" update
> that's in upstream to help things further.
>
> With all of those fixes, the module loads/unloads/reloads fine for me.

The fixes you've posted in the last weeks are merged in my tree.

However, I don't think that this particular problem has anything
to do with NCQ. In the last 2 hours I've tested a few different 
versions:

 * 2.6.16.1 with its sata_mv and the "three bug fixes" update. 
 * 2.6.16.1 + sata_mv 0.6 from 2.6.16-git back-ported.
 * 2.6.16 + ncq + modified sata_mv 0.6 (includes some changes
   I've posted before along with your fixes).

All versions show the same problem. The system in question has
two 6081 controllers and 14 disks.

My guess it that sata_mv leaves the controllers in a unclean
state and I'm now looking into this problem to see how it can
be fixed.

> If you want to use NCQ more safely, then you'll need to modify
> the mv_start_dma() routine to reinitialize the queue pointers
> each time, as they can get out of sync after an error.
> 
> There are still other bugs to be worked out and fixed, though.
> 
> I'll have a patch or two this week for the ones I know about.

I'll look forward to these patches, thanks.

-- 
Dan Aloni, Linux specialist
XIV LTD, http://www.xivstorage.com
[email protected], [email protected], [email protected], [email protected]
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux