1. 09 12月, 2011 1 次提交
    • T
      memblock: Kill memblock_init() · fe091c20
      Tejun Heo 提交于
      memblock_init() initializes arrays for regions and memblock itself;
      however, all these can be done with struct initializers and
      memblock_init() can be removed.  This patch kills memblock_init() and
      initializes memblock with struct initializer.
      
      The only difference is that the first dummy entries don't have .nid
      set to MAX_NUMNODES initially.  This doesn't cause any behavior
      difference.
      Signed-off-by: NTejun Heo <tj@kernel.org>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Yinghai Lu <yinghai@kernel.org>
      Cc: Russell King <linux@arm.linux.org.uk>
      Cc: Michal Simek <monstr@monstr.eu>
      Cc: Paul Mundt <lethal@linux-sh.org>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Guan Xuetao <gxt@mprc.pku.edu.cn>
      Cc: "H. Peter Anvin" <hpa@zytor.com>
      fe091c20
  2. 01 11月, 2011 1 次提交
  3. 28 10月, 2011 1 次提交
    • S
      sh: kexec: Add PHYSICAL_START · e66ac3f2
      Simon Horman 提交于
      Add PHYSICAL_START kernel configuration parameter to set the address at
      which the kernel should be loaded.
      
      It has been observed on an sh7757lcr that simply modifying MEMORY_START
      does not achieve this goal for 32bit sh. This is due to MEMORY_OFFSET in
      arch/sh/kernel/vmlinux.lds.S bot being based on MEMORY_START on such
      systems.
      Signed-off-by: NSimon Horman <horms@verge.net.au>
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      e66ac3f2
  4. 01 7月, 2011 1 次提交
    • P
      perf: Remove the nmi parameter from the swevent and overflow interface · a8b0ca17
      Peter Zijlstra 提交于
      The nmi parameter indicated if we could do wakeups from the current
      context, if not, we would set some state and self-IPI and let the
      resulting interrupt do the wakeup.
      
      For the various event classes:
      
        - hardware: nmi=0; PMI is in fact an NMI or we run irq_work_run from
          the PMI-tail (ARM etc.)
        - tracepoint: nmi=0; since tracepoint could be from NMI context.
        - software: nmi=[0,1]; some, like the schedule thing cannot
          perform wakeups, and hence need 0.
      
      As one can see, there is very little nmi=1 usage, and the down-side of
      not using it is that on some platforms some software events can have a
      jiffy delay in wakeup (when arch_irq_work_raise isn't implemented).
      
      The up-side however is that we can remove the nmi parameter and save a
      bunch of conditionals in fast paths.
      Signed-off-by: NPeter Zijlstra <a.p.zijlstra@chello.nl>
      Cc: Michael Cree <mcree@orcon.net.nz>
      Cc: Will Deacon <will.deacon@arm.com>
      Cc: Deng-Cheng Zhu <dengcheng.zhu@gmail.com>
      Cc: Anton Blanchard <anton@samba.org>
      Cc: Eric B Munson <emunson@mgebm.net>
      Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
      Cc: Paul Mundt <lethal@linux-sh.org>
      Cc: David S. Miller <davem@davemloft.net>
      Cc: Frederic Weisbecker <fweisbec@gmail.com>
      Cc: Jason Wessel <jason.wessel@windriver.com>
      Cc: Don Zickus <dzickus@redhat.com>
      Link: http://lkml.kernel.org/n/tip-agjev8eu666tvknpb3iaj0fg@git.kernel.orgSigned-off-by: NIngo Molnar <mingo@elte.hu>
      a8b0ca17
  5. 30 6月, 2011 1 次提交
  6. 06 6月, 2011 1 次提交
  7. 31 5月, 2011 1 次提交
  8. 25 5月, 2011 1 次提交
  9. 23 3月, 2011 1 次提交
  10. 15 2月, 2011 2 次提交
  11. 14 1月, 2011 1 次提交
  12. 11 1月, 2011 1 次提交
  13. 01 12月, 2010 1 次提交
    • P
      sh: Assume new page cache pages have dirty dcache lines. · 55661fc1
      Paul Mundt 提交于
      This follows the ARM change c0177800
      ("ARM: 6379/1: Assume new page cache pages have dirty D-cache") for the
      same rationale:
      
          There are places in Linux where writes to newly allocated page
          cache pages happen without a subsequent call to flush_dcache_page()
          (several PIO drivers including USB HCD). This patch changes the
          meaning of PG_arch_1 to be PG_dcache_clean and always flush the
          D-cache for a newly mapped page in update_mmu_cache().
      
      This addresses issues seen with executing binaries from MMC, in
      addition to some of the other HCDs that don't explicitly do cache
      management for their pipe-in buffers.
      Requested-by: NYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      55661fc1
  14. 04 11月, 2010 1 次提交
    • P
      sh: nommu: use 32-bit phys mode. · e2fcf74f
      Paul Mundt 提交于
      The nommu code has regressed somewhat in that 29BIT gets set for the
      SH-2/2A configs regardless of the fact that they are really 32BIT sans
      MMU or PMB. This does a bit of tidying to get nommu properly selecting
      32BIT as it was before.
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      e2fcf74f
  15. 02 11月, 2010 1 次提交
  16. 27 10月, 2010 1 次提交
  17. 15 10月, 2010 1 次提交
    • P
      sh: Provide a generic SRAM pool for tiny memories. · c993487e
      Paul Mundt 提交于
      This sets up a generic SRAM pool for CPUs and platform code to insert
      their otherwise unused memories into. A simple alloc/free interface is
      provided (lifed from avr32) for generic code.
      
      This only applies to tiny SRAMs that are otherwise unmanaged, and does
      not take in to account the more complex SRAMs sitting behind transfer
      engines, or that employ an I/D split.
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      c993487e
  18. 14 10月, 2010 1 次提交
    • P
      sh: Fix up PMB locking. · f7fcec93
      Paul Mundt 提交于
      This first converts the PMB locking over to raw spinlocks, and secondly
      fixes up a nested locking issue that was triggering lockdep early on:
      
       swapper/0 is trying to acquire lock:
        (&pmbe->lock){......}, at: [<806be9bc>] pmb_init+0xf4/0x4dc
      
       but task is already holding lock:
        (&pmbe->lock){......}, at: [<806be98e>] pmb_init+0xc6/0x4dc
      
       other info that might help us debug this:
       1 lock held by swapper/0:
        #0:  (&pmbe->lock){......}, at: [<806be98e>] pmb_init+0xc6/0x4dc
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      f7fcec93
  19. 13 10月, 2010 1 次提交
    • Y
      memblock, bootmem: Round pfn properly for memory and reserved regions · c7fc2de0
      Yinghai Lu 提交于
      We need to round memory regions correctly -- specifically, we need to
      round reserved region in the more expansive direction (lower limit
      down, upper limit up) whereas usable memory regions need to be rounded
      in the more restrictive direction (lower limit up, upper limit down).
      
      This introduces two set of inlines:
      
      	memblock_region_memory_base_pfn()
      	memblock_region_memory_end_pfn()
      	memblock_region_reserved_base_pfn()
      	memblock_region_reserved_end_pfn()
      
      Although they are antisymmetric (and therefore are technically
      duplicates) the use of the different inlines explicitly documents the
      programmer's intention.
      
      The lack of proper rounding caused a bug on ARM, which was then found
      to also affect other architectures.
      Reported-by: NRussell King <rmk@arm.linux.org.uk>
      Signed-off-by: NYinghai Lu <yinghai@kernel.org>
      LKML-Reference: <4CB4CDFD.4020105@kernel.org>
      Cc: Jeremy Fitzhardinge <jeremy@goop.org>
      Signed-off-by: NH. Peter Anvin <hpa@linux.intel.com>
      c7fc2de0
  20. 24 9月, 2010 1 次提交
    • P
      sh: provide generic arch_debugfs_dir. · 3f224f4e
      Paul Mundt 提交于
      While sh previously had its own debugfs root, there now exists a
      common arch_debugfs_dir prototype, so we switch everything over to
      that.  Presumably once more architectures start making use of this
      we'll be able to just kill off the stub kdebugfs wrapper.
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      3f224f4e
  21. 23 9月, 2010 1 次提交
  22. 16 8月, 2010 1 次提交
  23. 04 8月, 2010 2 次提交
  24. 14 7月, 2010 1 次提交
  25. 02 7月, 2010 1 次提交
    • P
      sh: Provide a global TLB flush for U/I-TLB clear. · 59615ecd
      Paul Mundt 提交于
      This provides a sledgehammer approach for clearing the TLBs, only to be
      used in cases where we know we will never want to use the mappings again
      and have no interest in preserving state. This also destroys wired
      entries.
      
      The primary use for this is when we are either entering or exiting the
      kernel completely, in the latter case as a precursor for CPU reset by
      MMU.
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      59615ecd
  26. 21 6月, 2010 2 次提交
  27. 18 5月, 2010 2 次提交
  28. 11 5月, 2010 2 次提交
    • 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
  29. 10 5月, 2010 1 次提交
  30. 26 4月, 2010 3 次提交
  31. 20 4月, 2010 1 次提交
  32. 19 4月, 2010 1 次提交
  33. 02 4月, 2010 1 次提交
    • P
      sh: Fix up the SH-3 build for recent TLB changes. · be97d758
      Paul Mundt 提交于
      While the MMUCR.URB and ITLB/UTLB differentiation works fine for all SH-4
      and later TLBs, these features are absent on SH-3. This splits out
      local_flush_tlb_all() in to SH-4 and PTEAEX copies while restoring the
      old SH-3 one, subsequently fixing up the build.
      
      This will probably want some further reordering and tidying in the
      future, but that's out of scope at present.
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      be97d758
新手
引导
客服 返回
顶部