1. 15 7月, 2016 7 次提交
    • N
      powerpc/pseries: Remove call to memblock_add() · fdb4f6e9
      Nathan Fontenot 提交于
      The call to memblock_add is not needed, this is already done by
      memory_add(). This patch removes this call which shrinks
      dlpar_add_lmb_memory() enough that it can be merged into dlpar_add_lmb().
      Signed-off-by: NNathan Fontenot <nfont@linux.vnet.ibm.com>
      Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
      fdb4f6e9
    • N
      powerpc/pseries: Auto-online hotplugged memory · ec999072
      Nathan Fontenot 提交于
      A recent update (commit id 31bc3858) allows for automatically
      onlining memory that is added. This patch sets the config option
      CONFIG_MEMORY_HOTPLUG_DEFAULT_ONLINE=y for pseries and updates the
      pseries memory hotplug code so that DLPAR added memory can be
      automatically onlined instead of explicitly onlining the memory.
      Signed-off-by: NNathan Fontenot <nfont@linux.vnet.ibm.com>
      Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
      ec999072
    • N
      powerpc/pseries: Dynamic add entires to associativity lookup array · c05a5a40
      Nathan Fontenot 提交于
      Dynamically add entries to the associativity lookup array
      
      The ibm,associativity-lookup-arrays property may only contain
      associativity arrays for LMBs present at boot time. When hotplug
      adding a LMB its associativity array may not be in the associativity
      lookup array, this patch adds the ability to add new entries to the
      associativity lookup array.
      Signed-off-by: NNathan Fontenot <nfont@linux.vnet.ibm.com>
      Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
      c05a5a40
    • N
      powerpc/pseries: Move property cloning into its own routine · c2101c90
      Nathan Fontenot 提交于
      Move property cloning code into its own routine
      
      Split the pieces of dlpar_clone_drconf_property() that create a copy of
      the property struct into its own routine. This allows for creating
      clones of more than just the ibm,dynamic-memory property used in memory
      hotplug.
      Signed-off-by: NNathan Fontenot <nfont@linux.vnet.ibm.com>
      Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
      c2101c90
    • M
      powerpc/pseries: HVC early debug options should depend on HVC_CONSOLE · 23697760
      Michael Ellerman 提交于
      The pseries HVC early debug options, CONFIG_PPC_EARLY_DEBUG_LPAR and
      CONFIG_PPC_EARLY_DEBUG_LPAR_HVSI both require code that is part of the
      hvc driver. If we turn them on but not CONFIG_HVC_CONSOLE then we get:
      
        arch/powerpc/kernel/built-in.o: In function `.udbg_early_init':
        arch/powerpc/kernel/built-in.o:(.debug_addr+0x9a00): undefined reference to `udbg_init_debug_lpar'
      
      Similarly for HVSI. So make them both depend on CONFIG_HVC_CONSOLE.
      Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
      23697760
    • M
      powerpc/tm: Fix stack pointer corruption in __tm_recheckpoint() · 6bcb8014
      Michael Neuling 提交于
      At the start of __tm_recheckpoint() we save the kernel stack pointer
      (r1) in SPRG SCRATCH0 (SPRG2) so that we can restore it after the
      trecheckpoint.
      
      Unfortunately, the same SPRG is used in the SLB miss handler.  If an
      SLB miss is taken between the save and restore of r1 to the SPRG, the
      SPRG is changed and hence r1 is also corrupted.  We can end up with
      the following crash when we start using r1 again after the restore
      from the SPRG:
      
        Oops: Bad kernel stack pointer, sig: 6 [#1]
        SMP NR_CPUS=2048 NUMA pSeries
        CPU: 658 PID: 143777 Comm: htm_demo Tainted: G            EL   X 4.4.13-0-default #1
        task: c0000b56993a7810 ti: c00000000cfec000 task.ti: c0000b56993bc000
        NIP: c00000000004f188 LR: 00000000100040b8 CTR: 0000000010002570
        REGS: c00000000cfefd40 TRAP: 0300   Tainted: G            EL   X  (4.4.13-0-default)
        MSR: 8000000300001033 <SF,ME,IR,DR,RI,LE>  CR: 02000424  XER: 20000000
        CFAR: c000000000008468 DAR: 00003ffd84e66880 DSISR: 40000000 SOFTE: 0
        PACATMSCRATCH: 00003ffbc865e680
        GPR00: fffffffcfabc4268 00003ffd84e667a0 00000000100d8c38 000000030544bb80
        GPR04: 0000000000000002 00000000100cf200 0000000000000449 00000000100cf100
        GPR08: 000000000000c350 0000000000002569 0000000000002569 00000000100d6c30
        GPR12: 00000000100d6c28 c00000000e6a6b00 00003ffd84660000 0000000000000000
        GPR16: 0000000000000003 0000000000000449 0000000010002570 0000010009684f20
        GPR20: 0000000000800000 00003ffd84e5f110 00003ffd84e5f7a0 00000000100d0f40
        GPR24: 0000000000000000 0000000000000000 0000000000000000 00003ffff0673f50
        GPR28: 00003ffd84e5e960 00000000003d0f00 00003ffd84e667a0 00003ffd84e5e680
        NIP [c00000000004f188] restore_gprs+0x110/0x17c
        LR [00000000100040b8] 0x100040b8
        Call Trace:
        Instruction dump:
        f8a1fff0 e8e700a8 38a00000 7ca10164 e8a1fff8 e821fff0 7c0007dd 7c421378
        7db142a6 7c3242a6 38800002 7c810164 <e9c100e0> e9e100e8 ea0100f0 ea2100f8
      
      We hit this on large memory machines (> 2TB) but it can also be hit on
      smaller machines when 1TB segments are disabled.
      
      To hit this, you also need to be virtualised to ensure SLBs are
      periodically removed by the hypervisor.
      
      This patches moves the saving of r1 to the SPRG to the region where we
      are guaranteed not to take any further SLB misses.
      
      Fixes: 98ae22e1 ("powerpc: Add helper functions for transactional memory context switching")
      Cc: stable@vger.kernel.org # v3.9+
      Signed-off-by: NMichael Neuling <mikey@neuling.org>
      Acked-by: NCyril Bur <cyrilbur@gmail.com>
      Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
      6bcb8014
    • M
      Merge tag 'powerpc-4.7-5' into next · b5f1bf48
      Michael Ellerman 提交于
      Pull in the fixes we sent during 4.7, we have code we want to merge into
      next that depends on some of them.
      b5f1bf48
  2. 14 7月, 2016 27 次提交
  3. 13 7月, 2016 6 次提交