1. 24 4月, 2008 3 次提交
  2. 21 4月, 2008 1 次提交
  3. 18 4月, 2008 4 次提交
  4. 17 4月, 2008 3 次提交
    • M
      [POWERPC] Always add preferred consoles in platforms/pseries/lpar.c · 5faae2e5
      Michael Ellerman 提交于
      There is logic in platforms/peries/lpars.c which checks if the user has
      specified a console on the command line, and refrains from adding a
      preferred console entry for the hvc/hvsi console if they have.
      
      This trips up if you use "netconsole=foo" on the command line, and has
      the result that you get _only_ the netconsole, because the hvc device is
      never added as a preferred console. Worse still if you get the netconsole
      configuration wrong somehow, you end up with no console at all.
      
      As it turns out we don't need to worry about checking the command line.
      If the user has specified "console=foo", then foo will be set as the
      preferred console when the command line is parsed in start_kernel(), much
      later than the pseries code, and so the latter setting will take effect.
      Signed-off-by: NMichael Ellerman <michael@ellerman.id.au>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      5faae2e5
    • M
      [POWERPC] Move prototype for find_udbg_vterm() into a header file · 21cf9133
      Michael Ellerman 提交于
      Move the prototype for find_udbg_vterm() into pseries.h, removing
      it from setup.c.
      Signed-off-by: NMichael Ellerman <michael@ellerman.id.au>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      21cf9133
    • M
      [POWERPC] pseries/phyp dump: Reserve a variable amount of space at boot · 37ddd5d0
      Manish Ahuja 提交于
      This changes the way we calculate how much space to reserve for the
      pHyp dump.  Currently we reserve 256MB only.  With this change, the
      code first checks to see if an amount has been specified on the boot
      command line with the "phyp_dump_reserve_size" option, and if so, uses
      that much.
      
      Otherwise it computes 5% of total ram and rounds it down to a multiple
      of 256MB, and uses the larger of that or 256MB.
      
      This is for large systems with a lot of memory (10GB or more).  The
      aim is to have more space available for the kernel on reboot on
      machines with more resources.  Although the dump will be collected
      pretty fast and the memory released really early on allowing the
      machine to have the full memory available, this alleviates any issues
      that can be caused by having way too little memory on very very large
      systems during those few minutes.
      Signed-off-by: NManish Ahuja <mahuja@us.ibm.com>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      37ddd5d0
  5. 07 4月, 2008 1 次提交
  6. 01 4月, 2008 1 次提交
  7. 31 3月, 2008 1 次提交
  8. 26 3月, 2008 10 次提交
  9. 26 2月, 2008 1 次提交
  10. 22 2月, 2008 1 次提交
  11. 20 2月, 2008 1 次提交
  12. 07 2月, 2008 4 次提交
  13. 06 2月, 2008 1 次提交
    • J
      [POWERPC] arch/powerpc/platforms/pseries: Add missing of_node_put · 842decbd
      Julia Lawall 提交于
      Of_get_parent and of_find_compatible_node do an of_node_get, and thus a
      corresponding of_code_put is needed in the error case.
      
      The problem was found using the following semantic match.
      (http://www.emn.fr/x-info/coccinelle/)
      
      // <smpl>
      @@
      type T,T1,T2;
      identifier E;
      statement S;
      expression x1,x2,x3;
      int ret;
      @@
      
        T E;
        ...
      * E = \(of_get_parent\|of_find_compatible_node\)(...);
        if (E == NULL) S
        ... when != of_node_put(...,(T1)E,...)
            when != if (E != NULL) { ... of_node_put(...,(T1)E,...); ...}
            when != x1 = (T1)E
            when != E = x3;
            when any
        if (...) {
          ... when != of_node_put(...,(T2)E,...)
              when != if (E != NULL) { ... of_node_put(...,(T2)E,...); ...}
              when != x2 = (T2)E
      (
      *   return;
      |
      *   return ret;
      )
        }
      // </smpl>
      Signed-off-by: NJulia Lawall <julia@diku.dk>
      Cc: Stephen Rothwell <sfr@canb.auug.org.au>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Kumar Gala <galak@gate.crashing.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      842decbd
  14. 26 1月, 2008 1 次提交
    • G
      cpu-hotplug: replace lock_cpu_hotplug() with get_online_cpus() · 86ef5c9a
      Gautham R Shenoy 提交于
      Replace all lock_cpu_hotplug/unlock_cpu_hotplug from the kernel and use
      get_online_cpus and put_online_cpus instead as it highlights the
      refcount semantics in these operations.
      
      The new API guarantees protection against the cpu-hotplug operation, but
      it doesn't guarantee serialized access to any of the local data
      structures. Hence the changes needs to be reviewed.
      
      In case of pseries_add_processor/pseries_remove_processor, use
      cpu_maps_update_begin()/cpu_maps_update_done() as we're modifying the
      cpu_present_map there.
      Signed-off-by: NGautham R Shenoy <ego@in.ibm.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      86ef5c9a
  15. 25 1月, 2008 4 次提交
  16. 17 1月, 2008 1 次提交
  17. 15 1月, 2008 1 次提交
    • P
      [POWERPC] Fix boot failure on POWER6 · dfbe0d3b
      Paul Mackerras 提交于
      Commit 473980a9 added a call to clear
      the SLB shadow buffer before registering it.  Unfortunately this means
      that we clear out the entries that slb_initialize has previously set in
      there.  On POWER6, the hypervisor uses the SLB shadow buffer when doing
      partition switches, and that means that after the next partition switch,
      each non-boot CPU has no SLB entries to map the kernel text and data,
      which causes it to crash.
      
      This fixes it by reverting most of 473980a9 and instead clearing the
      3rd entry explicitly in slb_initialize.  This fixes the problem that
      473980a9 was trying to solve, but without breaking POWER6.
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      dfbe0d3b
  18. 11 1月, 2008 1 次提交