1. 06 Feb, 2007 1 commit
    • Nathan Lynch's avatar
      [POWERPC] Maple: use mmio nvram · 4297c986
      Nathan Lynch authored
      Some systems supported by the maple platform (e.g. JS2x blades running
      SLOF) are able to use the mmio_nvram backend for reading and writing
      nvram.  This is an improvement over the current situation -- no nvram
      access from userspace at all.
      Select MMIO_NVRAM for the maple platform.
      Initialize the mmio_nvram backend from maple setup code.
      Signed-off-by: default avatarNathan Lynch <ntl@pobox.com>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
  2. 08 Jan, 2007 1 commit
  3. 07 Dec, 2006 1 commit
  4. 03 Dec, 2006 1 commit
    • Benjamin Herrenschmidt's avatar
      [POWERPC] Make pci_read_irq_line the default · f90bb153
      Benjamin Herrenschmidt authored
      This patch reworks the way IRQs are fixed up on PCI for arch powerpc.
      It makes pci_read_irq_line() called by default in the PCI code for
      devices that are probed, and add an optional per-device fixup in
      ppc_md for platforms that really need to correct what they obtain
      from pci_read_irq_line().
      It also removes ppc_md.irq_bus_setup which was only used by pSeries
      and should not be needed anymore.
      I've also removed the pSeries s7a workaround as it can't work with
      the current interrupt code anyway. I'm trying to get one of these
      machines working so I can test a proper fix for that problem.
      I also haven't updated the old-style fixup code from 85xx_cds.c
      because it's actually buggy :) It assigns pci_dev->irq hard coded
      numbers which is no good with the new IRQ mapping code. It should
      at least use irq_create_mapping(NULL, hard_coded_number); and possibly
      also set_irq_type() to set them as level low.
      Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
  5. 30 Jul, 2006 1 commit
  6. 27 Jul, 2006 2 commits
  7. 03 Jul, 2006 2 commits
    • Benjamin Herrenschmidt's avatar
      [POWERPC] Add new interrupt mapping core and change platforms to use it · 0ebfff14
      Benjamin Herrenschmidt authored
      This adds the new irq remapper core and removes the old one.  Because
      there are some fundamental conflicts with the old code, like the value
      of NO_IRQ which I'm now setting to 0 (as per discussions with Linus),
      etc..., this commit also changes the relevant platform and driver code
      over to use the new remapper (so as not to cause difficulties later
      in bisecting).
      This patch removes the old pre-parsing of the open firmware interrupt
      tree along with all the bogus assumptions it made to try to renumber
      interrupts according to the platform. This is all to be handled by the
      new code now.
      For the pSeries XICS interrupt controller, a single remapper host is
      created for the whole machine regardless of how many interrupt
      presentation and source controllers are found, and it's set to match
      any device node that isn't a 8259.  That works fine on pSeries and
      avoids having to deal with some of the complexities of split source
      controllers vs. presentation controllers in the pSeries device trees.
      The powerpc i8259 PIC driver now always requests the legacy interrupt
      range. It also has the feature of being able to match any device node
      (including NULL) if passed no device node as an input. That will help
      porting over platforms with broken device-trees like Pegasos who don't
      have a proper interrupt tree.
      Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
    • Benjamin Herrenschmidt's avatar
      [POWERPC] Fix booting on Momentum "Apache" board (a Maple derivative) · 980a6513
      Benjamin Herrenschmidt authored
      This extends the maple device-tree workarounds to work on the
      Apache board as well, and extends the maple platform probing code
      to recognize the Apache board.
      Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
  8. 30 Jun, 2006 1 commit
  9. 27 Jun, 2006 1 commit
  10. 22 Apr, 2006 1 commit
  11. 28 Mar, 2006 1 commit
  12. 26 Mar, 2006 1 commit
    • Paul Mackerras's avatar
      powerpc: Unify the 32 and 64 bit idle loops · a0652fc9
      Paul Mackerras authored
      This unifies the 32-bit (ARCH=ppc and ARCH=powerpc) and 64-bit idle
      loops.  It brings over the concept of having a ppc_md.power_save
      function from 32-bit to ARCH=powerpc, which lets us get rid of
      native_idle().  With this we will also be able to simplify the idle
      handling for pSeries and cell.
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
  13. 14 Jan, 2006 1 commit
  14. 09 Jan, 2006 1 commit
  15. 08 Jan, 2006 4 commits
    • Benjamin Herrenschmidt's avatar
      [PATCH] powerpc: Experimental support for new G5 Macs (#2) · 1beb6a7d
      Benjamin Herrenschmidt authored
      This adds some very basic support for the new machines, including the
      Quad G5 (tested), and other new dual core based machines and iMac G5
      iSight (untested). This is still experimental !  There is no thermal
      control yet, there is no proper handing of MSIs, etc.. but it
      boots, I have all 4 cores up on my machine. Compared to the previous
      version of this patch, this one adds DART IOMMU support for the U4
      chipset and thus should work fine on setups with more than 2Gb of RAM.
      Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
    • Michael Ellerman's avatar
      [PATCH] powerpc: Add arch dependent basic infrastructure for Kdump. · cc532915
      Michael Ellerman authored
      Implementing the machine_crash_shutdown which will be called by
      crash_kexec (called in case of a panic, sysrq etc.). Disable the
      interrupts, shootdown cpus using debugger IPI and collect regs
      for all CPUs.
      elfcorehdr= specifies the location of elf core header stored by
      the crashed kernel. This command line option will be passed by
      the kexec-tools to capture kernel.
      savemaxmem= specifies the actual memory size that the first kernel
      has and this value will be used for dumping in the capture kernel.
      This command line option will be passed by the kexec-tools to
      capture kernel.
      Signed-off-by: default avatarHaren Myneni <haren@us.ibm.com>
      Signed-off-by: default avatarMichael Ellerman <michael@ellerman.id.au>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
    • Benjamin Herrenschmidt's avatar
      [PATCH] powerpc: serial port discovery (#2) · 463ce0e1
      Benjamin Herrenschmidt authored
      This moves the discovery of legacy serial ports to a separate file,
      makes it common to ppc32 and ppc64, and reworks it to use the new OF
      address translators to get to the ports early. This new version can also
      detect some PCI serial cards using legacy chips and will probably match
      those discovered port with the default console choice.
      Only ppc64 gets udbg still yet, unifying udbg isn't finished yet.
      It also adds some speed-probing code to udbg so that the default console
      can come up at the same speed it was set to by the firmware.
      Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
    • Michael Ellerman's avatar
      [PATCH] powerpc: Merge kexec · 3d1229d6
      Michael Ellerman authored
      This patch merges, to some extent, the PPC32 and PPC64 kexec implementations.
      We adopt the PPC32 approach of having ppc_md callbacks for the kexec functions.
      The current PPC64 implementation becomes the "default" implementation for PPC64
      which platforms can select if they need no special treatment.
      I've added these default callbacks to pseries/maple/cell/powermac, this means
      iSeries no longer supports kexec - but it never worked anyway.
      I've renamed PPC32's machine_kexec_simple to default_machine_kexec, inline with
      PPC64. Judging by the comments it might be better named machine_kexec_non_of,
      or something, but at the moment it's the only implementation for PPC32 so it's
      the "default".
      Kexec requires machine_shutdown(), which is in machine_kexec.c on PPC32, but we
      already have in setup-common.c on powerpc. All this does is call
      ppc_md.nvram_sync, which only powermac implements, so instead make
      machine_shutdown a ppc_md member and have it call core99_nvram_sync directly
      on powermac.
      I've also stuck relocate_kernel.S into misc_32.S for powerpc.
      Built for ARCH=ppc, and 32 & 64 bit ARCH=powerpc, with KEXEC=y/n. Booted on
      P5 LPAR and successfully kexec'ed.
      Should apply on top of 493f25ef
      Signed-off-by: default avatarMichael Ellerman <michael@ellerman.id.au>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
  16. 29 Oct, 2005 1 commit
  17. 19 Oct, 2005 1 commit
    • Paul Mackerras's avatar
      powerpc: Merge machdep.h · 143a1dec
      Paul Mackerras authored
      A few things change for consistency between ppc32 and ppc64:
      idle functions return void; *_get_boot_time functions return
      unsigned long (i.e. time_t) rather than filling in a struct rtc_time
      (since that's useful to the callers and easier for pmac to
      generate); *_get_rtc_time and *_set_rtc_time functions take
      a struct rtc_time; irq_canonicalize is gone; nvram_sync returns
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
  18. 10 Oct, 2005 1 commit
  19. 26 Sep, 2005 1 commit
  20. 06 Sep, 2005 1 commit
  21. 07 Jul, 2005 1 commit
  22. 23 Jun, 2005 1 commit
    • David Gibson's avatar
      [PATCH] Maple powerdown patch · d7152fe1
      David Gibson authored
      Currently reset and powerdown are not implemented on the Maple board,
      and attempting to do so will (incorrectly return).  This implements
      the proper communication with the service processor, allowing correct
      reset and powerdown on the Maple board, by communicating with the
      service processor.  If somehow it's unable to communicate with the
      service processor it will loop forever instead.
      Note that powerdown on the Maple will power down the CPUs, but not the
      fans or other board components due to hardware and firmware
      Signed-off-by: default avatarDavid Gibson <dwg@au1.ibm.com>
      Signed-off-by: default avatarFrank Rowand <frowand@mvista.com>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
  23. 22 Jun, 2005 1 commit
    • Arnd Bergmann's avatar
      [PATCH] ppc64: consolidate calibrate_decr implementations · 10f7e7c1
      Arnd Bergmann authored
      pSeries and maple have almost the same code for calibrate_decr,
      and BPA would need yet another copy. Instead, I'm moving the
      code to arch/ppc64/kernel/time.c.
      Some of the related declarations were missing from header
      files, so I'm moving those as well.
      It makes sense to merge this with the pmac function of the
      same name, so we end up having just one implemetation for
      iSeries and one for Open Firmware based machines.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
  24. 16 Apr, 2005 2 commits
    • Benjamin Herrenschmidt's avatar
      [PATCH] ppc64: Fix semantics of __ioremap · dfbacdc1
      Benjamin Herrenschmidt authored
      This patch fixes ppc64 __ioremap() so that it stops adding implicitely
      _PAGE_GUARDED when the cache is not writeback, and instead, let the callers
      provide the flag they want here.  This allows things like framebuffers to
      explicitely request a non-cacheable and non-guarded mapping which is more
      efficient for that type of memory without side effects.  The patch also
      fixes all current callers to add _PAGE_GUARDED except btext, which is fine
      without it.
      Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    • Linus Torvalds's avatar
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds authored
      Initial git repository build. I'm not bothering with the full history,
      even though we have it. We can create a separate "historical" git
      archive of that later if we want to, and in the meantime it's about
      3.2GB when imported into git - space that would just make the early
      git days unnecessarily complicated, when we don't have a lot of good
      infrastructure for it.
      Let it rip!