1. 11 3月, 2011 1 次提交
  2. 06 1月, 2011 1 次提交
  3. 09 8月, 2010 1 次提交
  4. 10 5月, 2010 1 次提交
    • S
      mtd: fix a huge latency problem in the MTD CFI and LPDDR flash drivers. · c4e77376
      Stefani Seibold 提交于
      The use of a memcpy() during a spinlock operation will cause very long
      thread context switch delays if the flash chip bandwidth is low and the
      data to be copied large, because a spinlock will disable preemption.
      
      For example: A flash with 6,5 MB/s bandwidth will cause under ubifs,
      which request sometimes 128 KiB (the flash erase size), a preemption delay of
      20 milliseconds. High priority threads will not be served during this
      time, regardless whether this threads access the flash or not. This behavior
      breaks real time.
      
      The patch changes all the use of spin_lock operations for xxxx->mutex
      into mutex operations, which is exact what the name says and means.
      
      I have checked the code of the drivers and there is no use of atomic
      pathes like interrupt or timers. The mtdoops facility will also not be used
      by this drivers. So it is dave to replace the spin_lock against mutex.
      
      There is no performance regression since the mutex is normally not
      acquired.
      
      Changelog:
       06.03.2010 First release
       26.03.2010 Fix mutex[1] issue and tested it for compile failure
      Signed-off-by: NStefani Seibold <stefani@seibold.net>
      Signed-off-by: NArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
      Signed-off-by: NDavid Woodhouse <David.Woodhouse@intel.com>
      c4e77376
  5. 16 9月, 2009 1 次提交
  6. 10 12月, 2008 1 次提交
    • A
      [MTD] update internal API to support 64-bit device size · 69423d99
      Adrian Hunter 提交于
      MTD internal API presently uses 32-bit values to represent
      device size.  This patch updates them to 64-bits but leaves
      the external API unchanged.  Extending the external API
      is a separate issue for several reasons.  First, no one
      needs it at the moment.  Secondly, whether the implementation
      is done with IOCTLs, sysfs or both is still debated.  Thirdly
      external API changes require the internal API to be accepted
      first.
      
      Note that although the MTD API will be able to support 64-bit
      device sizes, existing drivers do not and are not required
      to do so, although NAND base has been updated.
      
      In general, changing from 32-bit to 64-bit values cause little
      or no changes to the majority of the code with the following
      exceptions:
          	- printk message formats
          	- division and modulus of 64-bit values
          	- NAND base support
      	- 32-bit local variables used by mtdpart and mtdconcat
      	- naughtily assuming one structure maps to another
      	in MEMERASE ioctl
      Signed-off-by: NAdrian Hunter <ext-adrian.hunter@nokia.com>
      Signed-off-by: NArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
      Signed-off-by: NDavid Woodhouse <David.Woodhouse@intel.com>
      69423d99
  7. 05 6月, 2008 1 次提交
  8. 22 4月, 2008 2 次提交
  9. 09 4月, 2008 1 次提交
  10. 08 3月, 2007 1 次提交
  11. 09 2月, 2007 1 次提交
  12. 29 11月, 2006 1 次提交
  13. 23 5月, 2006 2 次提交
    • J
      [MTD] Introduce MTD_BIT_WRITEABLE · 5fa43394
      Joern Engel 提交于
      o Add a flag MTD_BIT_WRITEABLE for devices that allow single bits to be
        cleared.
      o Replace MTD_PROGRAM_REGIONS with a cleared MTD_BIT_WRITEABLE flag for
        STMicro and Intel Sibley flashes with internal ECC.  Those flashes
        disallow clearing of single bits, unlike regular NOR flashes, so the
        new flag models their behaviour better.
      o Remove MTD_ECC.  After the STMicro/Sibley merge, this flag is only set
        and never checked.
      Signed-off-by: NJoern Engel <joern@wh.fh-wedel.de>
      5fa43394
    • J
      [MTD] Merge STMicro NOR_ECC code with Intel Sibley code · c8b229de
      Joern Engel 提交于
      In 2002, STMicro started producing NOR flashes with internal ECC protection
      for small blocks (8 or 16 bytes).  Support for those flashes was added by me.
      In 2005, Intel Sibley flashes copied this strategy and Nico added support for
      those.  Merge the code for both.
      Signed-off-by: NJoern Engel <joern@wh.fh-wedel.de>
      c8b229de
  14. 09 5月, 2006 2 次提交
  15. 09 11月, 2005 1 次提交
    • O
      [PATCH] changing CONFIG_LOCALVERSION rebuilds too much, for no good reason · 733482e4
      Olaf Hering 提交于
      This patch removes almost all inclusions of linux/version.h.  The 3
      #defines are unused in most of the touched files.
      
      A few drivers use the simple KERNEL_VERSION(a,b,c) macro, which is
      unfortunatly in linux/version.h.
      
      There are also lots of #ifdef for long obsolete kernels, this was not
      touched.  In a few places, the linux/version.h include was move to where
      the LINUX_VERSION_CODE was used.
      
      quilt vi `find * -type f -name "*.[ch]"|xargs grep -El '(UTS_RELEASE|LINUX_VERSION_CODE|KERNEL_VERSION|linux/version.h)'|grep -Ev '(/(boot|coda|drm)/|~$)'`
      
      search pattern:
      /UTS_RELEASE\|LINUX_VERSION_CODE\|KERNEL_VERSION\|linux\/\(utsname\|version\).h
      Signed-off-by: NOlaf Hering <olh@suse.de>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      733482e4
  16. 07 11月, 2005 2 次提交
  17. 04 8月, 2005 1 次提交
    • T
      [MTD] CHIPS: Recognize Spansion CFI 1.4 chips · d88f977b
      Todd Poynor 提交于
      Modify Amd/Fujitsu CFI NOR flash primary vendor extension table revision
      check to recognize version 1.4.  Verified the existing driver can
      handle version 1.4 chips without additional info from 1.4 extended table.
      
      Move the primary vendor extension table revision check from common file
      to the 3 CFI chip driver files, since the data structures and revisions
      handled by those data structures are specific to the chip driver.
      
      Modify the error message printed when the revision is unknown to be a
      KERN_ERR instead of WARNING since this will cause mtd to ignore the chip.
      Signed-off-by: NTodd Poynor <tpoynor@mvista.com>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      d88f977b
  18. 14 7月, 2005 1 次提交
  19. 17 4月, 2005 1 次提交
    • L
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds 提交于
      Initial git repository build. I'm not bothering with the full history,
      even though we have it. We can create a separate "historical" git
      archive of that later if we want to, and in the meantime it's about
      3.2GB when imported into git - space that would just make the early
      git days unnecessarily complicated, when we don't have a lot of good
      infrastructure for it.
      
      Let it rip!
      1da177e4