1. 15 Jan, 2010 6 commits
  2. 14 Jan, 2010 2 commits
    • Matt Fleming's avatar
      sh: Fix CONFIG_PMB=n build. · 46c4e5da
      Matt Fleming authored
      The last commit introduced the following breakage
      
      arch/sh/include/asm/mmu.h: In function 'pmb_remap':
      arch/sh/include/asm/mmu.h:79: error: expected ';' before '}' token
      
      and...
      
      arch/sh/include/asm/mmu.h:78: error: 'EINVAL' undeclared (first use in this function)
      arch/sh/include/asm/mmu.h:78: error: (Each undeclared identifier is reported only once
      arch/sh/include/asm/mmu.h:78: error: for each function it appears in.)
      arch/sh/include/asm/mmu.h: In function 'pmb_init':
      arch/sh/include/asm/mmu.h:87: error: 'ENODEV' undeclared (first use in this function)
      Signed-off-by: default avatarMatt Fleming <matt@console-pimps.org>
      Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
      46c4e5da
    • Paul Mundt's avatar
      sh: Preliminary SDK7786 board support. · 02bf6cc7
      Paul Mundt authored
      This stubs in some preliminary board support for the RTE SDK7786.
      
      This is quite stunted at the moment, and primarily builds on top of the
      system FPGA. FPGA IRQs are handled via CPU IRL masking for simplicity,
      with initial peripheral support restricted to the debug ethernet.
      Signed-off-by: default avatarMatt Fleming <matt@console-pimps.org>
      Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
      02bf6cc7
  3. 13 Jan, 2010 11 commits
    • Paul Mundt's avatar
      sh: Rename split-level pgtable headers. · e44d6c40
      Paul Mundt authored
      These were originally named _nopmd and _pmd to follow their asm-generic
      counterparts, but we rename them to -2level and -3level for general
      consistency.
      Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
      e44d6c40
    • Paul Mundt's avatar
      sh: default to extended TLB support. · 782bb5a5
      Paul Mundt authored
      All SH-X2 and SH-X3 parts support an extended TLB mode, which has been
      left as experimental since support was originally merged. Now that it's
      had some time to stabilize and get some exposure to various platforms,
      we can drop it as an option and default enable it across the board.
      
      This is also good future proofing for newer parts that will drop support
      for the legacy TLB mode completely.
      
      This will also force 3-level page tables for all newer parts, which is
      necessary both for the varying page sizes and larger memories.
      Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
      782bb5a5
    • Paul Mundt's avatar
      sh: Make all PxSEGADDR() calls fatal for non-legacy configs. · 206582c3
      Paul Mundt authored
      This stubs out all of the PxSEGADDR() wrappers for non-legacy code.
      29-bit will continue to work with these, while 32-bit code will now blow
      up on compile rather than at runtime.
      
      The vast majority of the in-tree offenders are gone, with the only
      remaining culprits being unable to support 32-bit mode.
      
      Hopefully this will prevent anyone from ever using these again.
      Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
      206582c3
    • Paul Mundt's avatar
      sh: Fix up L2 cache comment typo. · 88f73d22
      Paul Mundt authored
      Valid sizes include 256kB, not 258kB.
      Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
      88f73d22
    • Paul Mundt's avatar
      sh: fixed PMB mode refactoring. · a0ab3668
      Paul Mundt authored
      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: default avatarPaul Mundt <lethal@linux-sh.org>
      a0ab3668
    • Matt Fleming's avatar
      sh: PVR detection for 2nd cut SH7786. · 7f33306e
      Matt Fleming authored
      The mass produced cuts use an updated PVR value, add them to the list.
      Signed-off-by: default avatarMatt Fleming <matt@console-pimps.org>
      Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
      7f33306e
    • Paul Mundt's avatar
      sh: Add a vmlinux.bin target. · eca50f14
      Paul Mundt authored
      This makes vmlinux.bin generation an explicit make target, as opposed to
      just a dependency for some of the other targets.
      Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
      eca50f14
    • Paul Mundt's avatar
      sh: Add support for LZO-compressed kernels. · c7b16efb
      Paul Mundt authored
      Plugs in LZO along with the others.
      Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
      c7b16efb
    • Paul Mundt's avatar
    • Matt Fleming's avatar
      sh: Don't perform an icbi on a P2 address · 6430a598
      Matt Fleming authored
      The legacy P2 area may not always be mapped (for example when using
      PMB). So perform an icbi on an address that we know will always be
      mapped.
      Signed-off-by: default avatarMatt Fleming <matt@console-pimps.org>
      Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
      6430a598
    • Paul Mundt's avatar
      sh: Move over to dynamically allocated FPU context. · 0ea820cf
      Paul Mundt authored
      This follows the x86 xstate changes and implements a task_xstate slab
      cache that is dynamically sized to match one of hard FP/soft FP/FPU-less.
      
      This also tidies up and consolidates some of the SH-2A/SH-4 FPU
      fragmentation. Now fpu state restorers are commonly defined, with the
      init_fpu()/fpu_init() mess reworked to follow the x86 convention.
      The fpu_init() register initialization has been replaced by xstate setup
      followed by writing out to hardware via the standard restore path.
      
      As init_fpu() now performs a slab allocation a secondary lighterweight
      restorer is also introduced for the context switch.
      
      In the future the DSP state will be rolled in here, too.
      
      More work remains for math emulation and the SH-5 FPU, which presently
      uses its own special (UP-only) interfaces.
      Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
      0ea820cf
  4. 12 Jan, 2010 12 commits
  5. 11 Jan, 2010 9 commits