1. 28 6月, 2007 38 次提交
  2. 25 6月, 2007 2 次提交
    • S
      [POWERPC] Fix Kexec/Kdump for power6 · b7abc5c5
      Sachin P. Sant 提交于
      On Power machines supporting VRMA, Kexec/Kdump does not work.
      VRMA (virtual real-mode area) means that accesses with IR/DR = 0
      (i.e. the MMU "off") actually still go through the hash table,
      using entries put there by the hypervisor.
      
      This means that when we clear out the hash table on kexec, we need to
      make sure these entries are left untouched.
      
      This also adds plpar_pte_read_raw() on the lines of
      plpar_pte_remove_raw().
      
      Signed-off-by : Sachin Sant <sachinp@in.ibm.com>
      Signed-off-by : Mohan Kumar M <mohan@in.ibm.com>
      Acked-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Acked-by: NOlof Johansson <olof@lixom.net>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      b7abc5c5
    • M
      [POWERPC] Fix interrupt distribution in ppc970 · 7ccb4a66
      Mohan Kumar M 提交于
      In some of the PPC970 based systems, interrupt would be distributed to
      offline cpus also even when booted with "maxcpus=1".  So check whether
      cpu online map and cpu present map are equal or not.  If they are equal
      default_distrib_server is used as interrupt server otherwise boot cpu
      (default_server) used as interrupt server.
      
      In addition to this, if an interrupt is assigned to a specific cpu (ie
      smp affinity) and if that cpu is not online, the earlier code used to
      return the default_distrib_server as interrupt server.  This
      introduces an additional parameter to the get_irq function, called
      strict_check.  Based on this parameter, if the cpu is not online
      either default_distrib_server or -1 is returned.
      Signed-off-by: NMohan Kumar M <mohan@in.ibm.com>
      Cc: Michael Ellerman <michael@ellerman.id.au>
      Acked-by: NMilton Miller <miltonm@bga.com>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      7ccb4a66