1. 15 7月, 2013 1 次提交
    • P
      sh: delete __cpuinit usage from all sh files · 4603f53a
      Paul Gortmaker 提交于
      The __cpuinit type of throwaway sections might have made sense
      some time ago when RAM was more constrained, but now the savings
      do not offset the cost and complications.  For example, the fix in
      commit 5e427ec2 ("x86: Fix bit corruption at CPU resume time")
      is a good example of the nasty type of bugs that can be created
      with improper use of the various __init prefixes.
      
      After a discussion on LKML[1] it was decided that cpuinit should go
      the way of devinit and be phased out.  Once all the users are gone,
      we can then finally remove the macros themselves from linux/init.h.
      
      Note that some harmless section mismatch warnings may result, since
      notify_cpu_starting() and cpu_up() are arch independent (kernel/cpu.c)
      are flagged as __cpuinit  -- so if we remove the __cpuinit from
      arch specific callers, we will also get section mismatch warnings.
      As an intermediate step, we intend to turn the linux/init.h cpuinit
      content into no-ops as early as possible, since that will get rid
      of these warnings.  In any case, they are temporary and harmless.
      
      This removes all the arch/sh uses of the __cpuinit macros from
      all C files.  Currently sh does not have any __CPUINIT used in
      assembly files.
      
      [1] https://lkml.org/lkml/2013/5/20/589
      
      Cc: Paul Mundt <lethal@linux-sh.org>
      Cc: linux-sh@vger.kernel.org
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      4603f53a
  2. 27 6月, 2012 1 次提交
  3. 09 12月, 2011 1 次提交
    • T
      SuperH: Use HAVE_MEMBLOCK_NODE_MAP · 534cfbee
      Tejun Heo 提交于
      sh doesn't access early_node_map[] directly and enabling
      HAVE_MEMBLOCK_NODE_MAP is trivial - replacing add_active_range() calls
      with memblock_set_node() and selecting HAVE_MEMBLOCK_NODE_MAP is
      enough.
      Signed-off-by: NTejun Heo <tj@kernel.org>
      Cc: Paul Mundt <lethal@linux-sh.org>
      Cc: linux-sh@vger.kernel.org
      534cfbee
  4. 05 9月, 2011 1 次提交
    • S
      sh: kexec: Register crashk_res · 41309b7a
      Simon Horman 提交于
      Register crashk_res so that it can be used by kexec-tools
      via /proc/iomem.
      
      The crash kernel resource needs to be requested the same as the
      other kernel resources due to the fact that it's handled during
      the common path for adding new memory ranges, so it's added in to
      __add_active_range() with the others. This ensures that the crash
      kernel is properly reserved regardless of which memory range it's
      placed in.
      Signed-off-by: NSimon Horman <horms@verge.net.au>
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      41309b7a
  5. 31 3月, 2011 1 次提交
  6. 09 11月, 2010 1 次提交
  7. 27 10月, 2010 1 次提交
  8. 26 10月, 2010 1 次提交
    • P
      sh: Expose physical addressing mode through cpuinfo. · 2f98492c
      Paul Mundt 提交于
      CPUs can be in either the legacy 29-bit or 32-bit physical addressing
      modes. This follows the x86 approach of tracking the phys bits in cpuinfo
      and exposing it to userspace through procfs.
      
      This change was requested to permit kexec-tools to detect the physical
      addressing mode in order to determine the appropriate address mangling.
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      2f98492c
  9. 06 10月, 2010 1 次提交
  10. 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
  11. 14 7月, 2010 1 次提交
  12. 11 5月, 2010 2 次提交
    • 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: 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
  13. 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
  14. 07 5月, 2010 4 次提交
  15. 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
  16. 26 4月, 2010 1 次提交
  17. 21 4月, 2010 1 次提交
  18. 03 3月, 2010 1 次提交
  19. 18 2月, 2010 1 次提交
    • P
      sh: Merge legacy and dynamic PMB modes. · d01447b3
      Paul Mundt 提交于
      This implements a bit of rework for the PMB code, which permits us to
      kill off the legacy PMB mode completely. Rather than trusting the boot
      loader to do the right thing, we do a quick verification of the PMB
      contents to determine whether to have the kernel setup the initial
      mappings or whether it needs to mangle them later on instead.
      
      If we're booting from legacy mappings, the kernel will now take control
      of them and make them match the kernel's initial mapping configuration.
      This is accomplished by breaking the initialization phase out in to
      multiple steps: synchronization, merging, and resizing. With the recent
      rework, the synchronization code establishes page links for compound
      mappings already, so we build on top of this for promoting mappings and
      reclaiming unused slots.
      
      At the same time, the changes introduced for the uncached helpers also
      permit us to dynamically resize the uncached mapping without any
      particular headaches. The smallest page size is more than sufficient for
      mapping all of kernel text, and as we're careful not to jump to any far
      off locations in the setup code the mapping can safely be resized
      regardless of whether we are executing from it or not.
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      d01447b3
  20. 16 1月, 2010 1 次提交
    • M
      sh: Add fixed ioremap support · 4d35b93a
      Matt Fleming 提交于
      Some devices need to be ioremap'd and accessed very early in the boot
      process. It is not possible to use the standard ioremap() function in
      this case because that requires kmalloc()'ing some virtual address space
      and kmalloc() may not be available so early in boot.
      
      This patch provides fixmap mappings that allow physical address ranges
      to be remapped into the kernel address space during the early boot
      stages.
      Signed-off-by: NMatt Fleming <matt@console-pimps.org>
      4d35b93a
  21. 13 1月, 2010 1 次提交
    • P
      sh: fixed PMB mode refactoring. · a0ab3668
      Paul Mundt 提交于
      This introduces some much overdue chainsawing of the fixed PMB support.
      fixed PMB was introduced initially to work around the fact that dynamic
      PMB mode was relatively broken, though they were never intended to
      converge. The main areas where there are differences are whether the
      system is booted in 29-bit mode or 32-bit mode, and whether legacy
      mappings are to be preserved. Any system booting in true 32-bit mode will
      not care about legacy mappings, so these are roughly decoupled.
      
      Regardless of the entry point, PMB and 32BIT are directly related as far
      as the kernel is concerned, so we also switch back to having one select
      the other.
      
      With legacy mappings iterated through and applied in the initialization
      path it's now possible to finally merge the two implementations and
      permit dynamic remapping overtop of remaining entries regardless of
      whether boot mappings are crafted by hand or inherited from the boot
      loader.
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      a0ab3668
  22. 15 12月, 2009 1 次提交
  23. 14 10月, 2009 1 次提交
  24. 10 10月, 2009 2 次提交
  25. 24 8月, 2009 1 次提交
    • P
      sh: Allow for kernel command line concatenation. · d724a9c9
      Pawel Moll 提交于
      So far kernel command line arguments could be passed in by a bootloader
      or defined as CONFIG_CMDLINE, which completely overwriting the first one.
      
      This change allows a developer to declare selected kernel parameters in
      a kernel configuration (eg. project-specific defconfig), retaining
      possibility of passing others by a bootloader.
      
      The obvious examples of the first type are MTD partition or
      bigphysarea-like region definitions, while "debug" option or network
      configuration should be given by a bootloader or a JTAG boot script.
      Signed-off-by: NPawel Moll <pawel.moll@st.com>
      Signed-off-by: NStuart Menefy <stuart.menefy@st.com>
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      d724a9c9
  26. 21 8月, 2009 1 次提交
  27. 15 8月, 2009 1 次提交
    • P
      sh: Track the CPU family in sh_cpuinfo. · e82da214
      Paul Mundt 提交于
      This adds a family member to struct sh_cpuinfo, which allows us to fall
      back more on the probe routines to work out what sort of subtype we are
      running on. This will be used by the CPU cache initialization code in
      order to first do family-level initialization, followed by subtype-level
      optimizations.
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      e82da214
  28. 03 7月, 2009 1 次提交
  29. 11 6月, 2009 1 次提交
    • M
      sh: rework mode pin code · 0d4fdbb6
      Magnus Damm 提交于
      This patch reworks the mode pin code to keep the pin
      definitions in one place. The mode pins values are now
      the value of the bit instead of bit number.
      
      With this patch in place the sh7785 header file contains
      mode pin comments. The sh7785 clock code and the sh7785lcr
      board code are updated to reflect the new shared mode pins.
      Signed-off-by: NMagnus Damm <damm@igel.co.jp>
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      0d4fdbb6
  30. 01 6月, 2009 1 次提交
    • M
      sh: boot word / mode pin support V2 · eb9b9b56
      Magnus Damm 提交于
      Add mode pin support for the SuperH architecture V2.
      
      With this patch applied the board code can add their
      own function to export the cpu mode pin configuration.
      In most cases this will be a constant bitmap, but
      boards that allow reading this from a register can
      instead read out the pin state from hardware.
      
      The code warns if a pin is tested but no board specific
      mode pin function has been provided.
      Signed-off-by: NMagnus Damm <damm@igel.co.jp>
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      eb9b9b56
  31. 08 5月, 2009 1 次提交
  32. 19 4月, 2009 1 次提交
  33. 16 4月, 2009 1 次提交
  34. 31 3月, 2009 1 次提交