1. 14 Jul, 2016 7 commits
  2. 13 Jul, 2016 6 commits
  3. 11 Jul, 2016 3 commits
  4. 08 Jul, 2016 15 commits
  5. 07 Jul, 2016 6 commits
  6. 05 Jul, 2016 3 commits
    • Oliver O'Halloran's avatar
      powerpc/boot: Add OPAL console to epapr wrappers · 656ad58e
      Oliver O'Halloran authored
      This patch adds an OPAL console backend to the powerpc boot wrapper so
      that decompression failures inside the wrapper can be reported to the
      user. This is important since it typically indicates data corruption in
      the firmware and other nasty things.
      
      Currently this only works when building a little endian kernel. When
      compiling a 64 bit BE kernel the wrapper is always build 32 bit to be
      compatible with some 32 bit firmwares. BE support will be added at a
      later date. Another limitation of this is that only the "raw" type of
      OPAL console is supported, however machines that provide a hvsi console
      also provide a raw console so this is not an issue in practice.
      Actually-written-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: default avatarOliver O'Halloran <oohall@gmail.com>
      [mpe: Move #ifdef __powerpc64__ to avoid warnings on 32-bit]
      Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
      656ad58e
    • Oliver O'Halloran's avatar
      powerpc/mm: Add a parameter to disable 1TB segs · faf78829
      Oliver O'Halloran authored
      This patch adds the kernel command line parameter "no_tb_segs" which
      forces the kernel to use 256MB rather than 1TB segments. Forcing the use
      of 256MB segments makes it considerably easier to test code that depends
      on an SLB miss occurring.
      Suggested-by: default avatarMichael Neuling <mikey@neuling.org>
      Suggested-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
      Signed-off-by: default avatarOliver O'Halloran <oohall@gmail.com>
      Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
      faf78829
    • Oliver O'Halloran's avatar
      powerpc/timer: Large Decrementer support · 79901024
      Oliver O'Halloran authored
      Power ISAv3 adds a large decrementer (LD) mode which increases the size
      of the decrementer register. The size of the enlarged decrementer
      register is between 32 and 64 bits with the exact size being dependent
      on the implementation. When in LD mode, reads are sign extended to 64
      bits and a decrementer exception is raised when the high bit is set (i.e
      the value goes below zero). Writes however are truncated to the physical
      register width so some care needs to be taken to ensure that the high
      bit is not set when reloading the decrementer. This patch adds support
      for using the LD inside the host kernel on processors that support it.
      
      When LD mode is supported firmware will supply the ibm,dec-bits property
      for CPU nodes to allow the kernel to determine the maximum decrementer
      value. Enabling LD mode is a hypervisor privileged operation so the kernel
      can only enable it manually when running in hypervisor mode. Guests that
      support LD mode can request it using the "ibm,client-architecture-support"
      firmware call (not implemented in this patch) or some other platform
      specific method. If this property is not supplied then the traditional
      decrementer width of 32 bit is assumed and LD mode will not be enabled.
      
      This patch was based on initial work by Jack Miller.
      Signed-off-by: default avatarOliver O'Halloran <oohall@gmail.com>
      Signed-off-by: default avatarBalbir Singh <bsingharora@gmail.com>
      Acked-by: default avatarMichael Neuling <mikey@neuling.org>
      Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
      79901024