[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1494238348.6528.40.camel@infradead.org>
Date: Mon, 08 May 2017 11:12:28 +0100
From: David Woodhouse <dwmw2@...radead.org>
To: Ricard Wanderlof <ricard.wanderlof@...s.com>
Cc: Pavel Machek <pavel@....cz>, Tejun Heo <tj@...nel.org>,
boris.brezillon@...e-electrons.com, linux-scsi@...r.kernel.org,
Hans de Goede <hdegoede@...hat.com>,
linux-kernel@...r.kernel.org, linux-ide@...r.kernel.org,
linux-mtd@...ts.infradead.org,
Henrique de Moraes Holschuh <hmh@....eng.br>
Subject: Re: Race to power off harming SATA SSDs
On Mon, 2017-05-08 at 11:06 +0200, Ricard Wanderlof wrote:
>
> My point is really that say that the problem is in fact not that the erase
> is cut short due to the power fail, but that the software issues a second
> command before the first erase command has completed, for instance, or
> some other situation. Then we'd have a concrete situation which we can
> resolve (i.e., fix the bug), rather than assuming that it's the hardware's
> fault and implement various software workarounds.
On NOR flash we have *definitely* seen it during powerfail testing.
A block looks like it's all 0xFF when you read it back on mount, but if
you read it repeatedly, you may see bit flips because it wasn't
completely erased. And even if you read it ten times and 'trust' that
it's properly erased, it could start to show those bit flips when you
start to program it.
It was very repeatable, and that's when we implemented the 'clean
markers' written after a successful erase, rather than trusting a block
that "looks empty".
Download attachment "smime.p7s" of type "application/x-pkcs7-signature" (4938 bytes)
Powered by blists - more mailing lists