1. 26 10月, 2005 2 次提交
    • P
      powerpc: Merge rtas.c into arch/powerpc/kernel · 033ef338
      Paul Mackerras 提交于
      This splits arch/ppc64/kernel/rtas.c into arch/powerpc/kernel/rtas.c,
      which contains generic RTAS functions useful on any CHRP platform,
      and arch/powerpc/platforms/pseries/rtas-fw.[ch], which contain
      some pSeries-specific firmware flashing bits.  The parts of rtas.c
      that are to do with pSeries-specific error logging are protected
      by a new CONFIG_RTAS_ERROR_LOGGING symbol.  The inclusion of rtas.o
      is controlled by the CONFIG_PPC_RTAS symbol, and the relevant
      platforms select that.
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      033ef338
    • K
      [PATCH] powerpc: some prom.c cleanups · 60dda256
      Kumar Gala 提交于
      On !CONFIG_PPC_MULTIPLATFORM _machine is defined as 0.  This is ok, but
      we can't assign a value to _machine then.
      
      We may not have CONFIG_PCI available, so only build in support for
      find_parent_pci_resource(), request_OF_resource(), release_OF_resource()
      if PCI is enabled.  This is probably not the long term fix but works out
      for now.
      
      Make reg_property64 contain 64-bit elements on a 32-bit machine.
      
      Mark the deprecated prom.c functions as __deprecated.
      Signed-off-by: NKumar K. Gala <kumar.gala@freescale.com>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      60dda256
  2. 23 10月, 2005 1 次提交
    • P
      powerpc: Run on old powermacs. · a575b807
      Paul Mackerras 提交于
      Old powermacs have a number of differences from current machines:
      - there is no interrupt tree in the device tree, just interrupt
        or AAPL,interrupt properties
      - the chosen node in the device tree is called /chosen@0
      - the OF claim method doesn't map the memory, so we have to do
        an explicit map call as well
      - there is no /chosen/cpu property on SMP machines
      - the NVRAM isn't structured as a set of partitions.
      
      This adapts the merged powermac support code to cope with these
      issues.
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      a575b807
  3. 12 10月, 2005 1 次提交
  4. 10 10月, 2005 1 次提交
  5. 06 10月, 2005 1 次提交
    • P
      powerpc: Merge in the ppc64 version of the prom code. · 9b6b563c
      Paul Mackerras 提交于
      This brings in the ppc64 version of prom_init.c, prom.c and btext.c
      and makes them work for ppc32.  This also brings in the new calling
      convention, where the first entry to the kernel (with r5 != 0) goes
      to the prom_init code, which then restarts from the beginning (with
      r5 == 0) after it has done its stuff.
      
      For now this also brings in the ppc32 version of setup.c.  It also
      merges lmb.h.
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      9b6b563c
  6. 09 9月, 2005 1 次提交
    • P
      [PATCH] Separate pci bits out of struct device_node · 1635317f
      Paul Mackerras 提交于
      This patch pulls the PCI-related junk out of struct device_node and
      puts it in a separate structure, struct pci_dn.  The device_node now
      just has a void * pointer in it, which points to a struct pci_dn for
      nodes that represent PCI devices.  It could potentially be used in
      future for device-specific data for other sorts of devices, such as
      virtual I/O devices.
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      1635317f
  7. 06 9月, 2005 1 次提交
  8. 29 8月, 2005 3 次提交
  9. 02 8月, 2005 1 次提交
  10. 22 6月, 2005 1 次提交
  11. 06 5月, 2005 1 次提交
    • P
      [PATCH] ppc64: fix prom.c compile warning · 3892c5fa
      Paul Mackerras 提交于
      The code in unflatten_device_tree knows that get_property is written to
      only return with lenp equal to 1 when also returning a valid pointer.
      The gcc 3.3.3 compiler is not able to prove this to itself, so it warns
      about a possible uninitialized pointer dereference:
      
       .../arch/ppc64/kernel/prom.c: In function `unflatten_device_tree':
       .../arch/ppc64/kernel/prom.c:828:
       warning: `p' might be used uninitialized in this function
      
      Unless it is desired to rework the interaction between the two
      functions, this will keep the existing behavior but quiet the compiler.
      Signed-off-by: NAmos Waterland <apw@us.ibm.com>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      3892c5fa
  12. 01 5月, 2005 1 次提交
    • P
      [PATCH] ppc64: Fix irq parsing on powermac · dc3ec750
      Paul Mackerras 提交于
      When I tried Ben's patches to the powermac sound driver on my G5, I found
      that it was taking enormous numbers of sound DMA transmit interrupts.  This
      turned out to be because it was incorrectly configured as level-sensitive
      instead of edge-sensitive, which in turn was because the code that parses
      the interrupt tree that Open Firmware gives us was incorrectly assigning
      another device the same irq number as the sound DMA transmit interrupt
      (i.e.  1).
      
      This patch fixes the problem, in a somewhat quick and dirty way for now,
      but one which will work for all the machines we currently run on.
      Ultimately Ben and I want to do something more general and robust, but this
      should go in for 2.6.12.
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      dc3ec750
  13. 17 4月, 2005 3 次提交