1. 13 11月, 2006 7 次提交
  2. 25 10月, 2006 18 次提交
  3. 24 10月, 2006 3 次提交
  4. 23 10月, 2006 3 次提交
  5. 18 10月, 2006 2 次提交
    • M
      [POWERPC] More bootwrapper reorganization · c888554b
      Mark A. Greer 提交于
      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: NMark A. Greer <mgreer@mvista.com>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      c888554b
    • P
      [POWERPC] Make sure interrupt enable gets restored properly · b0a779de
      Paul Mackerras 提交于
      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: NPaul Mackerras <paulus@samba.org>
      b0a779de
  6. 16 10月, 2006 7 次提交
    • G
      [POWERPC] Make pSeries_lpar_hpte_insert static · 035223fb
      Geoff Levand 提交于
      Change the powerpc hpte_insert routines now called through ppc_md to
      static scope.
      Signed-off-by: NGeoff Levand <geoffrey.levand@am.sony.com>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      035223fb
    • D
      [POWERPC] Remove todc code from ARCH=powerpc · 0f03a43b
      David Gibson 提交于
      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: NDavid Gibson <david@gibson.dropbear.id.au>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      0f03a43b
    • O
      [POWERPC] powerpc: Enable DEEPNAP power savings mode on 970MP · 5b43d20a
      Olof Johansson 提交于
      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: NOlof Johansson <olof@lixom.net>
      Acked-by: NMichael Buesch <mb@bu3sch.de>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      5b43d20a
    • P
      [POWERPC] Lazy interrupt disabling for 64-bit machines · d04c56f7
      Paul Mackerras 提交于
      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: NPaul Mackerras <paulus@samba.org>
      d04c56f7
    • A
      [POWERPC] Check for offline nodes in pci NUMA code · 284a9406
      Anton Blanchard 提交于
      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: NAnton Blanchard <anton@samba.org>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      284a9406
    • A
      [POWERPC] Better check in show_instructions · 00ae36de
      Anton Blanchard 提交于
      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: NAnton Blanchard <anton@samba.org>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      00ae36de
    • A
      [POWERPC] POWER6 has 6 PMCs · 99f48610
      Anton Blanchard 提交于
      Change ->num_pmcs to match the number of PMCs in POWER6.
      Signed-off-by: NAnton Blanchard <anton@samba.org>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      99f48610