From owner-cvs-src@FreeBSD.ORG Tue Dec 18 00:16:40 2007 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 26E1A16A41B; Tue, 18 Dec 2007 00:16:40 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.freebsd.org (Postfix) with ESMTP id E3E4F13C457; Tue, 18 Dec 2007 00:16:39 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (unknown [192.168.61.3]) by phk.freebsd.dk (Postfix) with ESMTP id 54A0D17107; Tue, 18 Dec 2007 00:16:38 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.14.2/8.14.2) with ESMTP id lBI0GcIP013253; Tue, 18 Dec 2007 00:16:38 GMT (envelope-from phk@critter.freebsd.dk) To: Bruce M Simpson From: "Poul-Henning Kamp" In-Reply-To: Your message of "Mon, 17 Dec 2007 15:26:19 GMT." <4766951B.8090504@incunabulum.net> Date: Tue, 18 Dec 2007 00:16:37 +0000 Message-ID: <13252.1197936997@critter.freebsd.dk> Sender: phk@critter.freebsd.dk Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, "Bruce M. Simpson" , cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sbin/atacontrol atacontrol.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Dec 2007 00:16:40 -0000 In message <4766951B.8090504@incunabulum.net>, Bruce M Simpson writes: >Ah, let me rephrase, I meant: > >* NAND Flash embedded ATA controllers should not erase sectors >containing data unless absolutely necessary, to implement wear levelling. That's part of the job description, but it is more complex than that. > * BIO_DELETE provides the necessary hint from the OS, by way of the ATA >CFA ERASE command, to tell the flash controller that the upper layer >consumer of the blocks has marked the data as being erased. Yes. > * The NAND flash ATA controller is *then* in a position to know how >best to implement that wear levelling as the OS has told it "I'm not >using these sectors any more". Possibly. For "best" substitute "better" and I might agree. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.