1. 09 Jun, 2006 7 commits
    • John Rose's avatar
      [PATCH] powerpc: reorg RTAS delay code · 507279db
      John Rose authored
      This patch attempts to handle RTAS "busy" return codes in a more simple
      and consistent manner.  Typical callers of RTAS shouldn't have to
      manage wait times and delay calls.
      
      This patch also changes the kernel to use msleep() rather than udelay()
      when a runtime delay is necessary.  This will avoid CPU soft lockups
      for extended delay conditions.
      Signed-off-by: default avatarJohn Rose <johnrose@austin.ibm.com>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      507279db
    • Andrew Morton's avatar
      [PATCH] powerpc kbuild warning fix · 4a3ecc62
      Andrew Morton authored
      From: Andrew Morton <akpm@osdl.org>
      
      arch/powerpc/Kconfig:339:warning: leading whitespace ignored
      arch/powerpc/Kconfig:347:warning: leading whitespace ignored
      arch/powerpc/Kconfig:357:warning: leading whitespace ignored
      arch/powerpc/Kconfig:373:warning: leading whitespace ignored
      arch/powerpc/Kconfig:382:warning: leading whitespace ignored
      arch/powerpc/Kconfig:394:warning: leading whitespace ignored
      arch/powerpc/Kconfig:842:warning: leading whitespace ignored
      arch/powerpc/Kconfig:847:warning: leading whitespace ignored
      
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      4a3ecc62
    • Anton Blanchard's avatar
      [PATCH] powerpc: add num_pmcs to 970MP cputable entry · 87af41be
      Anton Blanchard authored
      The 970MP cputable entry needs a num_pmcs entry for oprofile to work.
      Signed-off-by: default avatarAnton Blanchard <anton@samba.org>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      87af41be
    • Will Schmidt's avatar
      [PATCH] powerpc: fix of_parse_dma_window · 03ac829b
      Will Schmidt authored
      My js20 appears to lack the ibm,#dma- properties, and boot fails with a
      "Kernel panic - not syncing: iommu_init_table: Can't allocate 0 bytes"
      message.
      
      This adds a fallback to the "#address-cells" property in case the
      "#ibm,dma-address-cells" property is missing.   Tested on js20 and
      power5 lpar.
      
      Unless there is a more elegant solution... :-)
      Signed-off-by: default avatarWill Schmidt <willschm@us.ibm.com>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      03ac829b
    • Benjamin Herrenschmidt's avatar
      [PATCH] powerpc: Fix buglet with MMU hash management · c5cf0e30
      Benjamin Herrenschmidt authored
      Our MMU hash management code would not set the "C" bit (changed bit) in
      the hardware PTE when updating a RO PTE into a RW PTE. That would cause
      the hardware to possibly to a write back to the hash table to set it on
      the first store access, which in addition to being a performance issue,
      might also hit a bug when running with native hash management (non-HV)
      as our code is specifically optimized for the case where no write back
      happens.
      
      Thus there is a very small therocial window were a hash PTE can become
      corrupted if that HPTE has just been upgraded to read write, a store
      access happens on it, and that races with another processor evicting
      that same slot. Since eviction (caused by an almost full hash) is
      extremely rare, the bug is very unlikely to happen fortunately.
      
      This fixes by allowing the updating of the protection bits in the native
      hash handling to also set (but not clear) the "C" bit, and, in order to
      also improve performances in the general case, by always setting that
      bit on newly inserted hash PTE so that writeback really never happens.
      Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      c5cf0e30
    • Benjamin Herrenschmidt's avatar
      [PATCH] powerpc vdso updates · a5bba930
      Benjamin Herrenschmidt authored
      This patch cleans up some locking & error handling in the ppc vdso and
      moves the vdso base pointer from the thread struct to the mm context
      where it more logically belongs. It brings the powerpc implementation
      closer to Ingo's new x86 one and also adds an arch_vma_name() function
      allowing to print [vsdo] in /proc/<pid>/maps if Ingo's x86 vdso patch is
      also applied.
      Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      a5bba930
    • Renzo Davoli's avatar
      [PATCH] powerpc: enable PPC_PTRACE_[GS]ETREGS on ppc32 · 98a90c02
      Renzo Davoli authored
      I have tested PPC_PTRACE_GETREGS and PPC_PTRACE_SETREGS on umview.
      
      I do not understand why historically these tags has been defined as
      PPC_PTRACE_GETREGS and PPC_PTRACE_SETREGS instead of simply
      PTRACE_[GS]ETREGS. The other "originality" is that the address must be
      put into the "addr" field instead of the "data" field as stated in the
      manual.
      Signed-off-by: default avatarrenzo davoli <renzo@cs.unibo.it>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      98a90c02
  2. 01 Jun, 2006 1 commit
  3. 31 May, 2006 32 commits