1. 02 Jul, 2004 5 commits
    • Tom Rini's avatar
      [PATCH] ppc32: OCP for MP10x · 0c54689b
      Tom Rini authored
      Attached is the latest version of Adrian Cox's OCP patch for
      MPC107/8240/8245.  This unifies some openpic setup code, and ensures that
      the OCP devices are only added to the bus on chip variants which have them.
      
      All interested parties seem happy, and this patch is necessary to provide a
      unified I2C driver for 85xx and 107/824x.
      Signed-off-by: default avatarAdrian Cox <adrian@humboldt.co.uk>
      Signed-off-by: default avatarTom Rini <trini@kernel.crashing.org>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      0c54689b
    • Paul Mackerras's avatar
      [PATCH] ppc64: Janitor rtas_call() return variables · 0fd58fb3
      Paul Mackerras authored
      Recently I changed the return value of rtas_call() from an unsigned long to
      an int.  That patch missed a few places where we declare a variable to
      store the result from rtas_call().  This new patch changes those places to
      use an int variable instead of a long or unsigned long variable.  Linas
      Vepstas pointed this out.
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      0fd58fb3
    • Paul Mackerras's avatar
      [PATCH] ppc64: janitor log_rtas_error() call arguments · e1148e37
      Paul Mackerras authored
      This patch from Linas Vepstas (rediffed by me) fixes the confusing argument
      aliasing of the log_rtas_error() subroutine.
      
      This patch makes no functional changes, it just cleans up some strange
      usage.
      
      The rtas_args used to communicate with firmware are always taken from the
      paca struct, so as to keep the args at a fixed, low-memory location.  But
      the log_rtas_error() routine also took an rtas_args pointer, which it
      assumed was aliased to the paca struct.  This aliasing is both
      un-neccessary, and confusing; this patch eliminates this confusion.
      Signed-off-by: default avatarLinas Vepstas <linas@linas.org>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      e1148e37
    • David Gibson's avatar
      [PATCH] ppc64: PACA cleanup · 16b004a7
      David Gibson authored
      Cleanup the PPC64 PACA structure.  It was previously a big mess of
      unecessary fields, overengineered cache layout and uninformative comments. 
      This is essentially a rewrite of include/asm-pp64/paca.h with associated
      changes elsewhere.  The patch:
      
      - Removes unused PACA fields
      
      - Removes uneeded #includes
      
      - Uses gcc attributes instead of explicit padding to get the desired
        cacheline layout, also rethinks the layout and comments accordingly.
      
      - Better comments where asm or firmware dependencies apply non-obvious
        layout constraints.
      
      - Splits up the pointless STAB structure, letting us move its elements
        independently.
      
      - Uses offsetof instead of hardcoded offset in spinlocks.
      
      - Eradicates xStudlyCaps identifiers
      
      - Replaces PACA guard page with an explicitly defined emergency stack
        (removing more than NR_CPUS pages from the initialized data segment).
      
      Cc: Paul Mackerras <paulus@samba.org>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      16b004a7
    • David Gibson's avatar
      [PATCH] ppc64: remove RTAS arguments from PACA · 78c39c9f
      David Gibson authored
      This patch removes the RTAS arguments structure on ppc64 from the PACA. 
      The args have to be in the RMO, but since we have a global spinlock for
      RTAS anyway, there's no reason to have a separate copy of the args per-CPU.
       This patch replaces the PACA field with a single instance in the global
      rtas structure.
      
      The one exception is for the rtas_stop_self() call, which can't take the
      lock, because it never returns.  But it has a fixed set of arguments, so we
      can use another global instance which is initialized at boot.
      
      This lets us remove rtas.h from paca.h, which substantially reduces overall
      #include hairiness (because paca.h is now, as it wants to be, a nice
      low-level structure-defining header which relies on very little and can
      safely be included almost anywhere).  Although it does add some noise to
      the patch, because a bunch of places relied on the indirect inclusion of
      rtas.h, or even more indirect inclusions (see the hunks applying to eeh.h
      and current.h!).
      
      Cc: Paul Mackerras <paulus@samba.org>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      78c39c9f
  2. 01 Jul, 2004 12 commits
  3. 30 Jun, 2004 23 commits