From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 5 Jun 2001 05:46:12 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 5 Jun 2001 05:46:02 -0400 Received: from roma.axis.se ([193.13.178.2]:11398 "EHLO miranda.axis.se") by vger.kernel.org with ESMTP id ; Tue, 5 Jun 2001 05:45:53 -0400 Message-ID: <018601c0eda3$fff76770$0a070d0a@axis.se> From: "Johan Adolfsson" To: "David Woodhouse" , "David S. Miller" Cc: "Chris Wedgwood" , "Jeff Garzik" , , , In-Reply-To: <15132.22933.859130.119059@pizda.ninka.net> <13942.991696607@redhat.com> <3B1C1872.8D8F1529@mandrakesoft.com> <15132.15829.322534.88410@pizda.ninka.net> <20010605155550.C22741@metastasis.f00f.org> <25587.991730769@redhat.com> Subject: Re: Missing cache flush. Date: Tue, 5 Jun 2001 11:43:39 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Possibly saying something extremly stupid here, how about simply "fakewriting" 0xFF to the flash after an erase to update any caches? > 2. Flash. A few writes of magic data to magic addresses and a whole erase > block suddenly contains 0xFF. The CPU doesn't notice that either. do_erase_stuff(); /* While verifying, update cache */ for (address = adr; address < (adr + size); address++) { if ((verify = map->read8(map, address)) != 0xFF) { error = 1; break; } /* "Fake" write 0xFF's to the erased sector so that caches are updated * after we verified that uncached data is ok */ *(unsigned char*)CACHED(address) = 0xFF; } /Johan