1. 11 5月, 2010 4 次提交
    • P
      4b478ee2
    • P
      sh: Ensure active regions have a backing PMB entry. · 21823259
      Paul Mundt 提交于
      In the NUMA or memory hot-add case where system memory has been
      partitioned up, we immediately run in to a situation where the existing
      PMB entry doesn't cover the new range (primarily as a result of the entry
      size being shrunk to match the node size early in the initialization). In
      order to fix this up it's necessary to preload a PMB mapping for the new
      range prior to activation in order to circumvent reset by MMU.
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      21823259
    • P
      sh: Reject small mappings for PMB bolting. · dfbca899
      Paul Mundt 提交于
      The minimum section size for the PMB is 16M, so just always error
      out early if the specified size is too small. This permits us to
      unconditionally call in to pmb_bolt_mapping() with variable sizes
      without wasting a TLB and cache flush for the range.
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      dfbca899
    • P
      sh: bootmem refactoring. · 4bc277ac
      Paul Mundt 提交于
      This reworks much of the bootmem setup and initialization code allowing
      us to get rid of duplicate work between the NUMA and non-NUMA cases. The
      end result is that we end up with a much more flexible interface for
      supporting more complex topologies (fake NUMA, highmem, etc, etc.) which
      is entirely LMB backed. This is an incremental step for more NUMA work as
      well as gradually enabling migration off of bootmem entirely.
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      4bc277ac
  2. 10 5月, 2010 2 次提交
    • P
      sh: rework memory limits to work with LMB. · 5e2ff328
      Paul Mundt 提交于
      This reworks the memory limit handling to tie in through the available
      LMB infrastructure. This requires a bit of reordering as we need to have
      all of the LMB reservations taken care of prior to establishing the
      limits.
      
      While we're at it, the crash kernel reservation semantics are reworked
      so that we allocate from the bottom up and reduce the risk of having
      to disable the memory limit due to a clash with the crash kernel
      reservation.
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      5e2ff328
    • P
      sh: enable LMB region setup via machvec. · 19d8f84f
      Paul Mundt 提交于
      This plugs in a memory init callback in the machvec to permit boards to
      wire up various bits of memory directly in to LMB. A generic machvec
      implementation is provided that simply wraps around the normal
      Kconfig-derived memory start/size.
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      19d8f84f
  3. 07 5月, 2010 3 次提交
  4. 06 5月, 2010 1 次提交
    • P
      sh: Make initrd detection more robust. · 9b7a3785
      Paul Mundt 提交于
      Various boot loaders go to various extents to thwart the initrd detection
      logic (mostly on account of not being able to be bothered with adhering
      to the established boot ABI), so we make the detection logic a bit more
      robust. This makes it possible to work around the SDK7786's firmware's
      attempts to thwart compressed image booting. Victory is mine.
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      9b7a3785
  5. 29 4月, 2010 2 次提交
  6. 27 4月, 2010 1 次提交
  7. 26 4月, 2010 21 次提交
  8. 25 4月, 2010 1 次提交
    • D
      VMware Balloon driver · 453dc659
      Dmitry Torokhov 提交于
      This is a standalone version of VMware Balloon driver.  Ballooning is a
      technique that allows hypervisor dynamically limit the amount of memory
      available to the guest (with guest cooperation).  In the overcommit
      scenario, when hypervisor set detects that it needs to shuffle some
      memory, it instructs the driver to allocate certain number of pages, and
      the underlying memory gets returned to the hypervisor.  Later hypervisor
      may return memory to the guest by reattaching memory to the pageframes and
      instructing the driver to "deflate" balloon.
      
      We are submitting a standalone driver because KVM maintainer (Avi Kivity)
      expressed opinion (rightly) that our transport does not fit well into
      virtqueue paradigm and thus it does not make much sense to integrate with
      virtio.
      
      There were also some concerns whether current ballooning technique is the
      right thing.  If there appears a better framework to achieve this we are
      prepared to evaluate and switch to using it, but in the meantime we'd like
      to get this driver upstream.
      
      We want to get the driver accepted in distributions so that users do not
      have to deal with an out-of-tree module and many distributions have
      "upstream first" requirement.
      
      The driver has been shipping for a number of years and users running on
      VMware platform will have it installed as part of VMware Tools even if it
      will not come from a distribution, thus there should not be additional
      risk in pulling the driver into mainline.  The driver will only activate
      if host is VMware so everyone else should not be affected at all.
      Signed-off-by: NDmitry Torokhov <dtor@vmware.com>
      Cc: Avi Kivity <avi@redhat.com>
      Cc: Jeremy Fitzhardinge <jeremy@goop.org>
      Cc: Ingo Molnar <mingo@elte.hu>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      453dc659
  9. 23 4月, 2010 1 次提交
  10. 22 4月, 2010 2 次提交
  11. 21 4月, 2010 2 次提交