1. 13 Nov, 2006 8 commits
  2. 25 Oct, 2006 18 commits
  3. 24 Oct, 2006 3 commits
  4. 23 Oct, 2006 3 commits
  5. 18 Oct, 2006 2 commits
    • Mark A. Greer's avatar
      [POWERPC] More bootwrapper reorganization · c888554b
      Mark A. Greer authored
      More reorganization of the bootwrapper:
      - Add dtb section to zImage
      - ft_init now called by platform_init
      - Pack a flat dt before calling kernel
      - Remove size parameter from free
      - printf only calls console_ops.write it its not NULL
      - Some cleanup
      Signed-off-by: default avatarMark A. Greer <mgreer@mvista.com>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      c888554b
    • Paul Mackerras's avatar
      [POWERPC] Make sure interrupt enable gets restored properly · b0a779de
      Paul Mackerras authored
      The lazy IRQ disable patch missed a couple of places where the
      interrupt enable flags need to be restored correctly.  First, we
      weren't restoring the paca->hard_enabled flag on interrupt exit.
      Instead of saving it on entry, we compute it from the MSR_EE bit
      in the MSR we are restoring at exit.  Secondly, the MMU hash miss
      code was clearing both paca->soft_enabled and paca->hard_enabled
      but not restoring them in the case where hash_page was able to
      resolve the miss from the Linux page tables.
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      b0a779de
  6. 16 Oct, 2006 6 commits
    • Geoff Levand's avatar
      [POWERPC] Make pSeries_lpar_hpte_insert static · 035223fb
      Geoff Levand authored
      Change the powerpc hpte_insert routines now called through ppc_md to
      static scope.
      Signed-off-by: default avatarGeoff Levand <geoffrey.levand@am.sony.com>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      035223fb
    • David Gibson's avatar
      [POWERPC] Remove todc code from ARCH=powerpc · 0f03a43b
      David Gibson authored
      Apparently we've copied the todc drivers, for various RTCs used in
      embedded machines from ARCH=ppc to ARCH=powerpc, despite the fact that
      it's never used in the latter.  This patch removes it.
      
      If we ever need these drivers (which we probably shouldn't now the RTC
      class stuff is in), we can transfer them one by one from ARCH=ppc,
      removing from the hideous abomination which is the todc
      "infrastructure".
      Signed-off-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      0f03a43b
    • Olof Johansson's avatar
      [POWERPC] powerpc: Enable DEEPNAP power savings mode on 970MP · 5b43d20a
      Olof Johansson authored
      Without this patch, on an idle system I get:
      
      cpu-power-0:21.638
      cpu-power-1:27.102
      cpu-power-2:29.343
      cpu-power-3:25.784
      Total: 103.8W
      
      With this patch:
      
      cpu-power-0:11.730
      cpu-power-1:17.185
      cpu-power-2:18.547
      cpu-power-3:17.528
      Total: 65.0W
      
      If I lower HZ to 100, I can get it as low as:
      
      cpu-power-0:10.938
      cpu-power-1:16.021
      cpu-power-2:17.245
      cpu-power-3:16.145
      Total: 60.2W
      
      Another (older) Quad G5 went from 54W to 39W at HZ=250.
      
      Coming back out of Deep Nap takes 40-70 cycles longer than coming back
      from just Nap (which already takes quite a while). I don't think it'll
      be a performance issue (interrupt latency on an idle system), but in
      case someone does measurements feel free to report them.
      Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
      Acked-by: default avatarMichael Buesch <mb@bu3sch.de>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      5b43d20a
    • Paul Mackerras's avatar
      [POWERPC] Lazy interrupt disabling for 64-bit machines · d04c56f7
      Paul Mackerras authored
      This implements a lazy strategy for disabling interrupts.  This means
      that local_irq_disable() et al. just clear the 'interrupts are
      enabled' flag in the paca.  If an interrupt comes along, the interrupt
      entry code notices that interrupts are supposed to be disabled, and
      clears the EE bit in SRR1, clears the 'interrupts are hard-enabled'
      flag in the paca, and returns.  This means that interrupts only
      actually get disabled in the processor when an interrupt comes along.
      
      When interrupts are enabled by local_irq_enable() et al., the code
      sets the interrupts-enabled flag in the paca, and then checks whether
      interrupts got hard-disabled.  If so, it also sets the EE bit in the
      MSR to hard-enable the interrupts.
      
      This has the potential to improve performance, and also makes it
      easier to make a kernel that can boot on iSeries and on other 64-bit
      machines, since this lazy-disable strategy is very similar to the
      soft-disable strategy that iSeries already uses.
      
      This version renames paca->proc_enabled to paca->soft_enabled, and
      changes a couple of soft-disables in the kexec code to hard-disables,
      which should fix the crash that Michael Ellerman saw.  This doesn't
      yet use a reserved CR field for the soft_enabled and hard_enabled
      flags.  This applies on top of Stephen Rothwell's patches to make it
      possible to build a combined iSeries/other kernel.
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      d04c56f7
    • Anton Blanchard's avatar
      [POWERPC] Check for offline nodes in pci NUMA code · 284a9406
      Anton Blanchard authored
      During boot we bring up all memory and cpu nodes. Normally a PCI device
      will be in one of these online nodes, however in some weird setups it
      may not.
      
      We have only seen this in the lab but we may as well check for the case
      and fallback to -1 (all nodes).
      Signed-off-by: default avatarAnton Blanchard <anton@samba.org>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      284a9406
    • Anton Blanchard's avatar
      [POWERPC] Better check in show_instructions · 00ae36de
      Anton Blanchard authored
      Instead of just checking that an address is in the right range, use the
      provided __kernel_text_address() helper which covers both the kernel and
      module text sections.
      Signed-off-by: default avatarAnton Blanchard <anton@samba.org>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      00ae36de