Re: mmap returns incorrect data

From: marcus hall (marcus_at_tuells.org)
Date: 05/01/04

  • Next message: FabF: "Re: [PATCH 2.6.6-rc3-mm1] Add maxthinktime to sysfs"
    Date:	Fri, 30 Apr 2004 16:58:44 -0600
    To: linux-kernel@vger.kernel.org
    
    

    On Thu Apr 29 2004 - 18:48:22 EST, Russell King wrote:
    >You _really_ don't want to use ext3 on CF unless you want to wear the
    >flash quickly. Just because a filesystem has journaling does _not_
    >mean that its suitable for flash (in fact, it may be far worse for
    >flash than its non-journaled counterpart, as in this case.)

    I was concerned about that in the beginning, and was told that CF devices
    perform wear-leveling internally. In fact, we have had units in the field
    for a couple of years without failure, so my objections carried little
    weight. In practice, the filesystem isn't often written. Since the jffs2
    filesystem seems to be intertwined with the mtd drivers, there don't seem
    to be any other good failure-tolerant solutions. But, that isn't the
    point for now..

    >This is an IDE driver bug - it performs PIO but does not ensure that the
    >individual pages are properly flushed to RAM before telling the kernel
    >that the IO is complete. (If someone wants to disagree, look at how
    >rd.c does flush_dcache_page, and see previous discussions on lkml
    >concerning this.)

    Yes, this was in fact where the problem was. In the 2.5.59 kernel, in
    mm/filemap.c there were still two calls to flush_page_to_ram(), but in
    include/asm-arm/proc-armv/cache.h this was defined to be a nop. I
    replaced the flush_page_to_ram() calls with flush_dcache_page() calls
    and everything started working properly.

    In later versions, the flush_page_to_ram() calls have been removed from
    filemap.c, and I do not see any replacement of the functionality (at least
    nothing that seems clear to me!)

    I would like to eventually move forward to a 2.6 kernel, so I am interested
    in how this is addressed there.

    I also didn't seem to find (or recognize) the earlier discussion, so perhaps
    it is covered there..

    Anyhow, thanks for the help. Things are rolling again!

    Marcus Hall
    marcus@tuells.org
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: FabF: "Re: [PATCH 2.6.6-rc3-mm1] Add maxthinktime to sysfs"

    Relevant Pages

    • Re: Atyfb questions and issues
      ... >> Maybe his mips FW does this, ... How about the replacement for 'xlinit.c' I have attached here? ... I noticed that the big difference between what the 2.4 kernel and 2.6 ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Linux 2.6.9-ac2
      ... >> flash. ... Might as well add to the accessibility of the kernel. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • A possible approach to the IDE shadow problem
      ... Some IDE devices don't decode master/slave, ... stuff has flash and disk mixed. ... Either assumption is broken so the kernel ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: NetGear WG602 Linux Source Code?
      ... support manager saying that they will be putting together a package with all the ... > Since this is a fairly neat little box, it has enough RAM and Flash to ... > own kernel running on it. ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • Re: platform builder 4.2 debugger cannot connect to target
      ... I have a 10 M Extension Ethernet card. ... Enable Full Kernel Mode --- yes ... I captured the serial port output during the download and boot up. ... Downloading operating system image for flash target. ...
      (microsoft.public.windowsce.platbuilder)