1. 10 2月, 2006 1 次提交
  2. 07 2月, 2006 2 次提交
  3. 15 1月, 2006 1 次提交
    • P
      [PATCH] ppc: Remove powermac support from ARCH=ppc · a7fdd90b
      Paul Mackerras 提交于
      This makes it possible to build kernels for PReP and/or CHRP
      with ARCH=ppc by removing the (non-building) powermac support.
      It's now also possible to select PReP and CHRP independently.
      Powermac users should now build with ARCH=powerpc instead of
      ARCH=ppc.  (This does mean that it is no longer possible to
      build a 32-bit kernel for a G5.)
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      a7fdd90b
  4. 09 1月, 2006 2 次提交
    • P
      [PATCH] ppc32: Put cache flush routines back into .relocate_code section · aed9c6cc
      Paul Janzen 提交于
      In 2.6.14, we had the following definition of _GLOBAL() in
      include/asm-ppc/processor.h:
      
      #define _GLOBAL(n)\
              .stabs __stringify(n:F-1),N_FUN,0,0,n;\
              .globl n;\
      n:
      
      In 2.6.15, as part of the great powerpc merge, we moved this definition to
      include/asm-powerpc/ppc_asm.h, where it appears (to 32-bit code) as:
      
      #define _GLOBAL(n)      \
              .text;          \
              .stabs __stringify(n:F-1),N_FUN,0,0,n;\
              .globl n;       \
      n:
      
      Mostly, this is fine.  However, we also have the following, in
      arch/ppc/boot/common/util.S:
      
              .section ".relocate_code","xa"
      [...]
      _GLOBAL(flush_instruction_cache)
      [...]
      _GLOBAL(flush_data_cache)
      [...]
      
      The addition of the .text section definition in the definition of
      _GLOBAL overrides the .relocate_code section definition.  As a result,
      these two functions don't end up in .relocate_code, so they don't get
      relocated correctly, and the boot fails.
      
      There's another suspicious-looking usage at kernel/swsusp.S:37 that
      someone should look into.  I did not exhaustively search the source
      tree, though.
      
      The following is the minimal patch that fixes the immediate problem.
      I could easily be convinced that the _GLOBAL definition should be
      modified to remove the ".text;" line either instead of, or in addition
      to, this fix.
      Signed-off-by: NPaul Janzen <pcj@linux.sez.to>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      aed9c6cc
    • K
      [PATCH] powerpc: Fix suboptimal uImage target · 706e6b2c
      Kumar Gala 提交于
      Sam Ravnborg pointed out that calling if_changed was redundant in the
      rule since a prerequisite had to have changed for us to get there.
      Signed-off-by: NKumar Gala <galak@kernel.crashing.org>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      706e6b2c
  5. 07 1月, 2006 1 次提交
  6. 02 12月, 2005 1 次提交
  7. 10 11月, 2005 2 次提交
    • D
      [PATCH] powerpc: Consolidate asm compatibility macros · 3ddfbcf1
      David Gibson 提交于
      This patch consolidates macros used to generate assembly for
      compatibility across different CPUs or configs.  A new header,
      asm-powerpc/asm-compat.h contains the main compatibility macros.  It
      uses some preprocessor magic to make the macros suitable both for use
      in .S files, and in inline asm in .c files.  Headers (bitops.h,
      uaccess.h, atomic.h, bug.h) which had their own such compatibility
      macros are changed to use asm-compat.h.
      
      ppc_asm.h is now for use in .S files *only*, and a #error enforces
      that.  As such, we're a lot more careless about namespace pollution
      here than in asm-compat.h.
      
      While we're at it, this patch adds a call to the PPC405_ERR77 macro in
      futex.h which should have had it already, but didn't.
      
      Built and booted on pSeries, Maple and iSeries (ARCH=powerpc).  Built
      for 32-bit powermac (ARCH=powerpc) and Walnut (ARCH=ppc).
      Signed-off-by: NDavid Gibson <dwg@au1.ibm.com>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      3ddfbcf1
    • P
      ppc/powerpc: workarounds for old Open Firmware versions · a23414be
      Paul Mackerras 提交于
      This adds code to work around some problems with old versions of
      Open Firmware, such as on the early powermacs (7500 etc.) and the
      "Longtrail" CHRP machine.  On these machines we have to claim
      the physical and virtual address ranges explicitly when claiming
      memory and then set up a V->P mapping.
      
      The Longtrail has more problems: setprop doesn't work, and we have
      to set an "allow-reclaim" variable to 0 in order to get claim on
      physical memory ranges to fail if the memory is already claimed.
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      a23414be
  8. 07 11月, 2005 2 次提交
  9. 26 10月, 2005 1 次提交
    • P
      powerpc: Fixes to get the Longtrail CHRP a bit further · c4988820
      Paul Mackerras 提交于
      Talk about buggy firmware...  the OF on the Longtrail returns 0
      from the claim client service rather than -1 when the claim fails.
      It also has no device_type on the /memory node and blows up if
      the output buffer for package-to-path is too big.
      
      This also fixes a bug with calling alloc_up with align == 0, where
      we did _ALIGN_UP(alloc_bottom, 0) which will end up as 0.
      
      Lastly, we now check the return value (in r3) from calling the
      prom, and return -1 from call_prom if we get a negative value back.
      That is supposed to indicate that the requested client service
      doesn't exist.
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      c4988820
  10. 23 10月, 2005 1 次提交
    • P
      powerpc: Make coff boot wrapper load the kernel at 8M · 85e568ea
      Paul Mackerras 提交于
      Previously it claimed 7MB starting at the 9M point and loaded the
      kernel there.  That meant that prom_init put the flattened device
      tree above 16M.  On the 601 that caused the early device tree scan
      to fail, since only 16MB are mapped with BATs on the 601.  Moving
      this down to 8MB allows prom_init to put the flattened device tree
      between 15M and 16M, so it works on the 601.
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      85e568ea
  11. 29 9月, 2005 1 次提交
  12. 10 9月, 2005 2 次提交
  13. 05 9月, 2005 11 次提交
  14. 29 8月, 2005 1 次提交
    • D
      [PATCH] Remove NACA fixed address constraint · 2e2446ea
      David Gibson 提交于
      Comments in head.S suggest that the iSeries naca has a fixed address,
      because tools expect to find it there.  The only tool which appears to
      access the naca is addRamDisk, but both the in-kernel version and the
      version used in RHEL and SuSE in fact locate the NACA the same way as
      the hypervisor does, by following the pointer in the hvReleaseData
      structure.
      
      Since the requirement for a fixed address seems to be obsolete, this
      patch removes the naca from head.S and replaces it with a normal C
      initializer.
      
      For good measure, it removes an old version of addRamDisk.c which was
      sitting, unused, in the ppc32 tree.
      Signed-off-by: NDavid Gibson <dwg@au1.ibm.com>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      2e2446ea
  15. 02 8月, 2005 1 次提交
  16. 14 7月, 2005 1 次提交
  17. 26 6月, 2005 1 次提交
  18. 24 6月, 2005 1 次提交
  19. 22 6月, 2005 1 次提交
  20. 29 5月, 2005 1 次提交
  21. 01 5月, 2005 1 次提交
  22. 17 4月, 2005 2 次提交