1. 15 11月, 2012 2 次提交
    • B
      mtd: nand: fix Samsung SLC detection regression · 6924d99f
      Brian Norris 提交于
      This patch fixes errors seen in identifying old Samsung SLC, due to the
      following commits:
      
          commit e2d3a35e
          mtd: nand: detect Samsung K9GBG08U0A, K9GAG08U0F ID
      
          commit e3b88bd6
          mtd: nand: add generic READ ID length calculation functions
      
      Some Samsung NAND with "5-byte" ID really appear to have 6-byte IDs, with
      wraparound like:
      
        Samsung K9K8G08U0D
        ec d3 51 95 58 ec ec d3
      
        Samsung K9F1G08U0C
        ec f1 00 95 40 ec ec f1
      
        Samsung K9F2G08U0B
        ec da 10 95 44 00 ec da
      
      This bad wraparound makes it hard to reliably detect the difference
      between Samsung SLC with 5-byte ID and Samsung SLC with 6-byte ID.
      
      The fix is to, for now, only use the new Samsung table for MLC. We
      cannot support the new SLC (K9FAG08U0M) until Samsung gives better ID
      decode information.
      
      Note that this applies in addition to the previous regression fix:
      
          commit bc86cf7a
          mtd: nand: fix Samsung SLC NAND identification regression
      
      Together, these patches completely restore the previous detection
      behavior so that we cannot see any more regressions in Samsung SLC NAND
      (finger crossed). With luck, I can get a hold of a Samsung
      representative and stop having to cross my fingers eventually.
      Reported-by: NSylwester Nawrocki <sylvester.nawrocki@gmail.com>
      Tested-by: NSylwester Nawrocki <sylvester.nawrocki@gmail.com>
      Signed-off-by: NBrian Norris <computersforpeace@gmail.com>
      Signed-off-by: NArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
      6924d99f
    • B
      mtd: nand: fix Samsung SLC NAND identification regression · af451af4
      Brian Norris 提交于
      A combination of the following two commits caused a regression in 3.7-rc1
      when identifying some Samsung NAND, so that some previously working NAND
      were no longer detected properly:
      
          commit e3b88bd6
          mtd: nand: add generic READ ID length calculation functions
      
          commit e2d3a35e
          mtd: nand: detect Samsung K9GBG08U0A, K9GAG08U0F ID
      
      Particularly, a regression was seen on Samsung K9F2G08U0B, with the
      following full 8-byte READ ID string:
      
          ec da 10 95 44 00 ec da
      
      The basic problem is that Samsung manufactures both SLC and MLC NAND
      that use a non-standard decoding table for deriving information from
      their IDs. I have heuristically determined that all the chips that use
      the new table have ID strings which wrap around after the 6th byte.
      Unfortunately, I overlooked the fact that some older Samsung SLC (which
      use a different decoding table) have "5 byte ID strings" which also wrap
      around after the 6th byte.
      
      This patch re-introduces a distinction between these old and new Samsung
      NAND by checking that the 6th byte is non-zero, allowing both old and
      new Samsung NAND to be detected properly.
      Signed-off-by: NBrian Norris <computersforpeace@gmail.com>
      Tested-by: NBrian Norris <computersforpeace@gmail.com>
      Reported-by: NMarek Vasut <marex@denx.de>
      Tested-by: NMarek Vasut <marex@denx.de>
      Signed-off-by: NArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
      af451af4
  2. 09 11月, 2012 2 次提交
  3. 09 10月, 2012 3 次提交
    • D
      mtd: Disable mtdchar mmap on MMU systems · f5cf8f07
      David Woodhouse 提交于
      This code was broken because it assumed that all MTD devices were map-based.
      Disable it for now, until it can be fixed properly for the next merge window.
      Signed-off-by: NDavid Woodhouse <David.Woodhouse@intel.com>
      f5cf8f07
    • K
      mm: kill vma flag VM_RESERVED and mm->reserved_vm counter · 314e51b9
      Konstantin Khlebnikov 提交于
      A long time ago, in v2.4, VM_RESERVED kept swapout process off VMA,
      currently it lost original meaning but still has some effects:
      
       | effect                 | alternative flags
      -+------------------------+---------------------------------------------
      1| account as reserved_vm | VM_IO
      2| skip in core dump      | VM_IO, VM_DONTDUMP
      3| do not merge or expand | VM_IO, VM_DONTEXPAND, VM_HUGETLB, VM_PFNMAP
      4| do not mlock           | VM_IO, VM_DONTEXPAND, VM_HUGETLB, VM_PFNMAP
      
      This patch removes reserved_vm counter from mm_struct.  Seems like nobody
      cares about it, it does not exported into userspace directly, it only
      reduces total_vm showed in proc.
      
      Thus VM_RESERVED can be replaced with VM_IO or pair VM_DONTEXPAND | VM_DONTDUMP.
      
      remap_pfn_range() and io_remap_pfn_range() set VM_IO|VM_DONTEXPAND|VM_DONTDUMP.
      remap_vmalloc_range() set VM_DONTEXPAND | VM_DONTDUMP.
      
      [akpm@linux-foundation.org: drivers/vfio/pci/vfio_pci.c fixup]
      Signed-off-by: NKonstantin Khlebnikov <khlebnikov@openvz.org>
      Cc: Alexander Viro <viro@zeniv.linux.org.uk>
      Cc: Carsten Otte <cotte@de.ibm.com>
      Cc: Chris Metcalf <cmetcalf@tilera.com>
      Cc: Cyrill Gorcunov <gorcunov@openvz.org>
      Cc: Eric Paris <eparis@redhat.com>
      Cc: H. Peter Anvin <hpa@zytor.com>
      Cc: Hugh Dickins <hughd@google.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: James Morris <james.l.morris@oracle.com>
      Cc: Jason Baron <jbaron@redhat.com>
      Cc: Kentaro Takeda <takedakn@nttdata.co.jp>
      Cc: Matt Helsley <matthltc@us.ibm.com>
      Cc: Nick Piggin <npiggin@kernel.dk>
      Cc: Oleg Nesterov <oleg@redhat.com>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Cc: Robert Richter <robert.richter@amd.com>
      Cc: Suresh Siddha <suresh.b.siddha@intel.com>
      Cc: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
      Cc: Venkatesh Pallipadi <venki@google.com>
      Acked-by: NLinus Torvalds <torvalds@linux-foundation.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      314e51b9
    • R
      mm: remove __GFP_NO_KSWAPD · c6543459
      Rik van Riel 提交于
      When transparent huge pages were introduced, memory compaction and swap
      storms were an issue, and the kernel had to be careful to not make THP
      allocations cause pageout or compaction.
      
      Now that we have working compaction deferral, kswapd is smart enough to
      invoke compaction and the quadratic behaviour around isolate_free_pages
      has been fixed, it should be safe to remove __GFP_NO_KSWAPD.
      
      [minchan@kernel.org: Comment fix]
      [mgorman@suse.de: Avoid direct reclaim for deferred compaction]
      Cc: Andrea Arcangeli <aarcange@redhat.com>
      Signed-off-by: NRik van Riel <riel@redhat.com>
      Signed-off-by: NMel Gorman <mgorman@suse.de>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      c6543459
  4. 03 10月, 2012 10 次提交
  5. 29 9月, 2012 23 次提交