1. 14 5月, 2013 6 次提交
  2. 10 5月, 2013 1 次提交
  3. 08 5月, 2013 1 次提交
    • B
      powerpc/powernv: Properly drop characters if console is closed · 1de1455f
      Benjamin Herrenschmidt 提交于
      If the firmware returns an error such as "closed" (or hardware
      error), we should drop characters.
      
      Currently we only do that when a firmware compatible with OPAL v2
      APIs is detected, in the code that calls opal_console_write_buffer_space(),
      which didn't exist with OPAL v1 (or didn't work).
      
      However, when enabling early debug consoles, the flag indicating
      that v2 is supported isn't set yet, causing us, in case of errors
      or closed console, to spin forever.
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      1de1455f
  4. 06 5月, 2013 8 次提交
  5. 02 5月, 2013 2 次提交
  6. 30 4月, 2013 6 次提交
  7. 26 4月, 2013 11 次提交
  8. 24 4月, 2013 2 次提交
  9. 23 4月, 2013 1 次提交
  10. 18 4月, 2013 2 次提交
    • N
      powerpc/pseries: close DDW race between functions of adapter · 61435690
      Nishanth Aravamudan 提交于
      Given a PCI device with multiple functions in a DDW capable slot, the
      following situation can be encountered: When the first function sets a
      64-bit DMA mask, enable_ddw() will be called and we can fail to properly
      configure DDW (the most common reason being the new DMA window's size is
      not large enough to map all of an LPAR's memory). With the recent
      changes to DDW, we remove the base window in order to determine if the
      new window is of sufficient size to cover an LPAR's memory. We correctly
      replace the base window if we find that not to be the case. However,
      once we go through and re-configured 32-bit DMA via the IOMMU, the next
      function of the adapter will go through the same process. And since DDW
      is a characteristic of the slot itself, we are most likely going to fail
      again. But to determine we are going to fail the second slot, we again
      remove the base window -- but that is now in-use by the first
      function/driver, which might be issuing I/O already.
      
      To close this window, keep a list of all the failed struct device_nodes
      that have failed to configure DDW. If the current device_node is in that
      list, just fail out immediately and fall back to 32-bit DMA without
      doing any DDW manipulation.
      Signed-off-by: NNishanth Aravamudan <nacc@linux.vnet.ibm.com>
      Signed-off-by: NMichael Ellerman <michael@ellerman.id.au>
      61435690
    • G
      powerpc/powernv: Use MSI bitmap to manage IRQs · fb1b55d6
      Gavin Shan 提交于
      As Michael Ellerman mentioned, arch/powerpc/sysdev/msi_bitmap.c
      already implemented bitmap to manage (alloc/free) MSI interrupts.
      The patch intends to use that mechanism to manage MSI interrupts
      for PowerNV platform.
      Signed-off-by: NGavin Shan <shangw@linux.vnet.ibm.com>
      Signed-off-by: NMichael Ellerman <michael@ellerman.id.au>
      fb1b55d6