1. 13 7月, 2014 1 次提交
  2. 07 7月, 2014 1 次提交
  3. 04 7月, 2014 1 次提交
  4. 30 6月, 2014 1 次提交
  5. 29 6月, 2014 1 次提交
    • T
      ARM: 8076/1: mm: add support for HW coherent systems in PL310 cache · 98ea2dba
      Thomas Petazzoni 提交于
      When a PL310 cache is used on a system that provides hardware
      coherency, the outer cache sync operation is useless, and can be
      skipped. Moreover, on some systems, it is harmful as it causes
      deadlocks between the Marvell coherency mechanism, the Marvell PCIe
      controller and the Cortex-A9.
      
      To avoid this, this commit introduces a new Device Tree property
      'arm,io-coherent' for the L2 cache controller node, valid only for the
      PL310 cache. It identifies the usage of the PL310 cache in an I/O
      coherent configuration. Internally, it makes the driver disable the
      outer cache sync operation.
      
      Note that technically speaking, a fully coherent system wouldn't
      require any of the other .outer_cache operations. However, in
      practice, when booting secondary CPUs, these are not yet coherent, and
      therefore a set of cache maintenance operations are necessary at this
      point. This explains why we keep the other .outer_cache operations and
      only ->sync is disabled.
      
      While in theory any write to a PL310 register could cause the
      deadlock, in practice, disabling ->sync is sufficient to workaround
      the deadlock, since the other cache maintenance operations are only
      used in very specific situations.
      
      Contrary to previous versions of this patch, this new version does not
      simply NULL-ify the ->sync member, because the l2c_init_data
      structures are now 'const' and therefore cannot be modified, which is
      a good thing. Therefore, this patch introduces a separate
      l2c_init_data instance, called of_l2c310_coherent_data.
      Signed-off-by: NThomas Petazzoni <thomas.petazzoni@free-electrons.com>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      98ea2dba
  6. 25 6月, 2014 3 次提交
  7. 24 6月, 2014 5 次提交
  8. 22 6月, 2014 1 次提交
    • A
      spi: qup: Remove chip select function · 4a8573ab
      Andy Gross 提交于
      This patch removes the chip select function.  Chip select should instead be
      supported using GPIOs, defining the DT entry "cs-gpios", and letting the SPI
      core assert/deassert the chip select as it sees fit.
      
      The chip select control inside the controller is buggy.  It is supposed to
      automatically assert the chip select based on the activity in the controller,
      but it is buggy and doesn't work at all.  So instead we elect to use GPIOs.
      Signed-off-by: NAndy Gross <agross@codeaurora.org>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      4a8573ab
  9. 19 6月, 2014 2 次提交
  10. 17 6月, 2014 4 次提交
  11. 13 6月, 2014 2 次提交
  12. 12 6月, 2014 5 次提交
  13. 11 6月, 2014 5 次提交
  14. 10 6月, 2014 4 次提交
  15. 09 6月, 2014 1 次提交
  16. 07 6月, 2014 3 次提交
    • K
      mm: mark remap_file_pages() syscall as deprecated · 33041a0d
      Kirill A. Shutemov 提交于
      The remap_file_pages() system call is used to create a nonlinear
      mapping, that is, a mapping in which the pages of the file are mapped
      into a nonsequential order in memory.  The advantage of using
      remap_file_pages() over using repeated calls to mmap(2) is that the
      former approach does not require the kernel to create additional VMA
      (Virtual Memory Area) data structures.
      
      Supporting of nonlinear mapping requires significant amount of
      non-trivial code in kernel virtual memory subsystem including hot paths.
      Also to get nonlinear mapping work kernel need a way to distinguish
      normal page table entries from entries with file offset (pte_file).
      Kernel reserves flag in PTE for this purpose.  PTE flags are scarce
      resource especially on some CPU architectures.  It would be nice to free
      up the flag for other usage.
      
      Fortunately, there are not many users of remap_file_pages() in the wild.
      It's only known that one enterprise RDBMS implementation uses the
      syscall on 32-bit systems to map files bigger than can linearly fit into
      32-bit virtual address space.  This use-case is not critical anymore
      since 64-bit systems are widely available.
      
      The plan is to deprecate the syscall and replace it with an emulation.
      The emulation will create new VMAs instead of nonlinear mappings.  It's
      going to work slower for rare users of remap_file_pages() but ABI is
      preserved.
      
      One side effect of emulation (apart from performance) is that user can
      hit vm.max_map_count limit more easily due to additional VMAs.  See
      comment for DEFAULT_MAX_MAP_COUNT for more details on the limit.
      
      [akpm@linux-foundation.org: fix spello]
      Signed-off-by: NKirill A. Shutemov <kirill.shutemov@linux.intel.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Ingo Molnar <mingo@kernel.org>
      Cc: Dave Jones <davej@redhat.com>
      Cc: Armin Rigo <arigo@tunes.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      33041a0d
    • C
      mm: introduce kmemleak_update_trace() · ffe2c748
      Catalin Marinas 提交于
      The memory allocation stack trace is not always useful for debugging a
      memory leak (e.g.  radix_tree_preload).  This function, when called,
      updates the stack trace for an already allocated object.
      Signed-off-by: NCatalin Marinas <catalin.marinas@arm.com>
      Cc: Johannes Weiner <hannes@cmpxchg.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      ffe2c748
    • M
      vmscan: memcg: always use swappiness of the reclaimed memcg · 688eb988
      Michal Hocko 提交于
      Memory reclaim always uses swappiness of the reclaim target memcg
      (origin of the memory pressure) or vm_swappiness for global memory
      reclaim.  This behavior was consistent (except for difference between
      global and hard limit reclaim) because swappiness was enforced to be
      consistent within each memcg hierarchy.
      
      After "mm: memcontrol: remove hierarchy restrictions for swappiness and
      oom_control" each memcg can have its own swappiness independent of
      hierarchical parents, though, so the consistency guarantee is gone.
      This can lead to an unexpected behavior.  Say that a group is explicitly
      configured to not swapout by memory.swappiness=0 but its memory gets
      swapped out anyway when the memory pressure comes from its parent with a
      It is also unexpected that the knob is meaningless without setting the
      hard limit which would trigger the reclaim and enforce the swappiness.
      There are setups where the hard limit is configured higher in the
      hierarchy by an administrator and children groups are under control of
      somebody else who is interested in the swapout behavior but not
      necessarily about the memory limit.
      
      From a semantic point of view swappiness is an attribute defining anon
      vs.
       file proportional scanning of LRU which is memcg specific (unlike
      charges which are propagated up the hierarchy) so it should be applied
      to the particular memcg's LRU regardless where the memory pressure comes
      from.
      
      This patch removes vmscan_swappiness() and stores the swappiness into
      the scan_control structure.  mem_cgroup_swappiness is then used to
      provide the correct value before shrink_lruvec is called.  The global
      vm_swappiness is used for the root memcg.
      
      [hughd@google.com: oopses immediately when booted with cgroup_disable=memory]
      Signed-off-by: NMichal Hocko <mhocko@suse.cz>
      Acked-by: NJohannes Weiner <hannes@cmpxchg.org>
      Cc: Tejun Heo <tj@kernel.org>
      Signed-off-by: NHugh Dickins <hughd@google.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      688eb988