1. 21 Oct, 2015 4 commits
    • Gavin Shan's avatar
      powerpc/eeh: More relaxed hotplug criterion · f2da4ccf
      Gavin Shan authored
      Currently, we rely on the existence of struct pci_driver::err_handler
      to decide if the corresponding PCI device should be unplugged during
      EEH recovery (partially hotplug case). However that check is not
      sufficient. Some device drivers implement only some of the EEH error
      handlers to collect diag-data. That means the driver still expects a
      hotplug to recover from the EEH error.
      
      This makes the hotplug criterion more relaxed: if the device driver
      doesn't provide all necessary EEH error handlers, it will experience
      hotplug during EEH recovery.
      Signed-off-by: default avatarGavin Shan <gwshan@linux.vnet.ibm.com>
      [mpe: Minor change log rewording]
      Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
      f2da4ccf
    • Gavin Shan's avatar
      powerpc/eeh: Don't unfreeze PHB PE after reset · 527d10ef
      Gavin Shan authored
      On PowerNV platform, the PE is kept in frozen state until the PE
      reset is completed to avoid recursive EEH error caused by MMIO
      access during the period of EEH reset. The PE's frozen state is
      cleared after BARs of PCI device included in the PE are restored
      and enabled. However, we needn't clear the frozen state for PHB PE
      explicitly at this point as there is no real PE for PHB PE. As the
      PHB PE is always binding with PE#0, we actually clear PE#0, which
      is wrong. It doesn't incur any problem though.
      
      This checks if the PE is PHB PE and doesn't clear the frozen state
      if it is.
      Signed-off-by: default avatarGavin Shan <gwshan@linux.vnet.ibm.com>
      Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
      527d10ef
    • Geoff Levand's avatar
      powerpc/ps3: Quieten boot wrapper output with run_cmd · 879c26d4
      Geoff Levand authored
      Add a boot wrapper script function run_cmd which will run a shell command
      quietly and only print the output if either V=1 or an error occurs.
      
      Also, run the ps3 dd commands with run_cmd to clean up the build output.
      Signed-off-by: default avatarGeoff Levand <geoff@infradead.org>
      Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
      879c26d4
    • Christophe Jaillet's avatar
      powerpc/prom: Avoid reference to potentially freed memory · 1856f50c
      Christophe Jaillet authored
      of_get_property() is used inside the loop, but then the reference to the
      node is dropped before dereferencing the prop pointer, which could by then
      point to junk if the node has been freed.
      
      Instead use of_property_read_u32() to actually read the property
      value before dropping the reference.
      
      of_property_read_u32() requires at least one cell (u32) to be present,
      which is stricter than the old logic which would happily dereference a
      property of any size. However we believe all device trees in the wild
      have at least one cell.
      
      Skiboot may produce memory nodes with more than one cell, but that is
      OK, of_property_read_u32() will return the first one.
      Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
      [mpe: Expand change log with device tree details]
      Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
      1856f50c
  2. 19 Oct, 2015 2 commits
  3. 15 Oct, 2015 20 commits
  4. 12 Oct, 2015 2 commits
  5. 08 Oct, 2015 2 commits
  6. 06 Oct, 2015 2 commits
  7. 05 Oct, 2015 6 commits
  8. 02 Oct, 2015 2 commits