1. 18 Nov, 2017 9 commits
  2. 17 Nov, 2017 5 commits
    • Babu Moger's avatar
      arch: Fix duplicates in Kconfig for parisc and sparc · 7b8b098c
      Babu Moger authored
      Fix duplicates for sparc and parisc. This was due these following commits.
      
      1. commit 4c97a0c8 ("arch: define CPU_BIG_ENDIAN for all fixed big
         endian archs")
      2. commit 97d9f969 ("arch/sparc: Define config parameter
         CPU_BIG_ENDIAN")
      3. commit 74ad3d28 ("parisc: Define CONFIG_CPU_BIG_ENDIAN")
      
      Remove duplicates.
      Signed-off-by: default avatarBabu Moger <babu.moger@oracle.com>
      Signed-off-by: default avatarHelge Deller <deller@gmx.de>
      7b8b098c
    • Helge Deller's avatar
      parisc: Make some PDC structures accessible in uapi headers · bc5a768e
      Helge Deller authored
      While working on a qemu and SeaBIOS-port to parisc, those PDC structures are
      useful to have accessible from userspace.
      Signed-off-by: default avatarHelge Deller <deller@gmx.de>
      bc5a768e
    • Luc Van Oostenryck's avatar
      parisc: Pass endianness info to sparse · 3744d988
      Luc Van Oostenryck authored
      parisc is big-endian only but sparse assumes the same endianness as the
      building machine.
      This is problematic for code which expect __BYTE_ORDER__ being correctly
      predefined by the compiler which sparse can then pre-process differently
      from what gcc would.
      
      Fix this by letting sparse know about the architecture endianness.
      
      To: James Bottomley <jejb@parisc-linux.org>
      To: Helge Deller <deller@gmx.de>
      CC: linux-parisc@vger.kernel.org
      Signed-off-by: default avatarLuc Van Oostenryck <luc.vanoostenryck@gmail.com>
      Signed-off-by: default avatarHelge Deller <deller@gmx.de>
      3744d988
    • Helge Deller's avatar
      parisc: Add CPU topology support · bf7b4c1b
      Helge Deller authored
      Add topology support, including multi-core scheduler support on
      PA8800/PA8900 CPUs and enhanced output in /proc/cpuinfo, e.g.
      lscpu now reports on a single-socket, dual-core machine:
      
      Architecture:          parisc64
      CPU(s):                2
      On-line CPU(s) list:   0,1
      Thread(s) per core:    1
      Core(s) per socket:    2
      Socket(s):             1
      CPU family:            PA-RISC 2.0
      Model name:            PA8800 (Mako)
      Signed-off-by: default avatarHelge Deller <deller@gmx.de>
      bf7b4c1b
    • John David Anglin's avatar
      parisc: Fix validity check of pointer size argument in new CAS implementation · 05f016d2
      John David Anglin authored
      As noted by Christoph Biedl, passing a pointer size of 4 in the new CAS
      implementation causes a kernel crash.  The attached patch corrects the
      off by one error in the argument validity check.
      
      In reviewing the code, I noticed that we only perform word operations
      with the pointer size argument.  The subi instruction intentionally uses
      a word condition on 64-bit kernels.  Nullification was used instead of a
      cmpib instruction as the branch should never be taken.  The shlw
      pseudo-operation generates a depw,z instruction and it clears the target
      before doing a shift left word deposit.  Thus, we don't need to clip the
      upper 32 bits of this argument on 64-bit kernels.
      
      Tested with a gcc testsuite run with a 64-bit kernel.  The gcc atomic
      code in libgcc is the only direct user of the new CAS implementation
      that I am aware of.
      Signed-off-by: default avatarJohn David Anglin <dave.anglin@bell.net>
      Cc: stable@vger.kernel.org # 3.13+
      Signed-off-by: default avatarHelge Deller <deller@gmx.de>
      05f016d2
  3. 16 Nov, 2017 26 commits