Re: [PATCH 03/12] sata_mv wait for empty+idle

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

 



Grant Grundler wrote:
On Fri, May 2, 2008 at 10:45 AM, Mark Lord <liml@xxxxxx> wrote:
Grant Grundler wrote:
..
BTW, I have no idea when EDMA stops on it's own or if we could
safely get EDMA to stop "prematurely" (e.g. disable PCI Bus Master).
..
 I don't know what you're talking about there.

I don't either. :)
..

Well, when we hit the disable bit, it stops fairly quickly.
The (existing) code still polls it there, but generally
it does stop without much fuss.

Another way to stop it is to just go and hit EDMA_RESET (ATA_RST),
which immediately kills everything.  The datasheet recommends against it,
but doesn't say why (disruption to packets in flight and possibly messing
up drive write cache and the like).

But the current code now tries for a more graceful shutdown,
with firm time limits.

I particularly like the new NCQ error-handling for FBS,
which allows activity on the non-failed links to quiesce
before beginning the EH/reset/recovery sequence.
Much less disruptive to the non-failing drives that way.

There's still an errata or two with some of the chips
that may prevent the full EH from working there sometimes.
The READ_LOG_EXT_10H may fail, meaning we might not report
the failed LBA number back up the stack.  With a bit of luck,
we'll tack that down once we learn the workaround.

Cheers
--
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux