1. 31 3月, 2015 8 次提交
  2. 24 3月, 2015 1 次提交
    • G
      powerpc/eeh: Do probe on pci_dn · ff57b454
      Gavin Shan 提交于
      Originally, EEH core probes on device_node or pci_dev to populate
      EEH devices and PEs, which conflicts with the fact: SRIOV VFs are
      usually enabled and created by PF's driver and they don't have the
      corresponding device_nodes. Instead, SRIOV VFs have dynamically
      created pci_dn, which can be used for EEH probe.
      
      The patch reworks EEH probe for PowerNV and pSeries platforms to
      do probing based on pci_dn, instead of pci_dev or device_node any
      more.
      Signed-off-by: NGavin Shan <gwshan@linux.vnet.ibm.com>
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      ff57b454
  3. 28 2月, 2015 1 次提交
  4. 05 2月, 2015 1 次提交
  5. 04 2月, 2015 1 次提交
  6. 03 2月, 2015 1 次提交
  7. 31 1月, 2015 5 次提交
  8. 29 1月, 2015 1 次提交
  9. 28 1月, 2015 2 次提交
    • Y
      PCI: Fail MSI-X mappings if there's no space assigned to MSI-X BAR · 6a878e50
      Yijing Wang 提交于
      Unlike MSI, which is configured via registers in the MSI capability in
      Configuration Space, MSI-X is configured via tables in Memory Space.
      These MSI-X tables are mapped by a device BAR, and if no Memory Space
      has been assigned to the BAR, MSI-X cannot be used.
      
      Fail MSI-X setup if no space has been assigned for the BAR.
      
      Previously, we ioremapped the MSI-X table even if the resource hadn't been
      assigned.  In this case, the resource address is undefined (and is often
      zero), which may lead to warnings or oopses in this path:
      
        pci_enable_msix
          msix_capability_init
            msix_map_region
              ioremap_nocache
      
      The PCI core sets resource flags to zero when it can't assign space for the
      resource (see reset_resource()).  There are also some cases where it sets
      the IORESOURCE_UNSET flag, e.g., pci_reassigndev_resource_alignment(),
      pci_assign_resource(), etc.  So we must check for both cases.
      
      [bhelgaas: changelog]
      Reported-by: NZhang Jukuo <zhangjukuo@huawei.com>
      Tested-by: NZhang Jukuo <zhangjukuo@huawei.com>
      Signed-off-by: NYijing Wang <wangyijing@huawei.com>
      Signed-off-by: NBjorn Helgaas <bhelgaas@google.com>
      6a878e50
    • L
      PCI: designware: Reject MSI-X IRQs · 19c5392e
      Lucas Stach 提交于
      The DesignWare PCIe MSI hardware does not support MSI-X IRQs.  Setting
      those up failed as a side effect of a bug which was fixed by 91f8ae82
      ("PCI: designware: Setup and clear exactly one MSI at a time").
      
      Now that this bug is fixed, MSI-X IRQs need to be rejected explicitly;
      otherwise devices trying to use them may end up with incorrectly working
      interrupts.
      
      Fixes: 91f8ae82 ("PCI: designware: Setup and clear exactly one MSI at a time")
      Signed-off-by: NLucas Stach <l.stach@pengutronix.de>
      Signed-off-by: NBjorn Helgaas <bhelgaas@google.com>
      Acked-by: NJingoo Han <jg1.han@samsung.com>
      CC: stable@vger.kernel.org	# v3.18+
      19c5392e
  10. 26 1月, 2015 1 次提交
  11. 24 1月, 2015 6 次提交
  12. 23 1月, 2015 1 次提交
    • R
      PCI: Add generic config accessors · 1f94a94f
      Rob Herring 提交于
      Many PCI controllers' configuration space accesses are memory-mapped and
      vary only in address calculation and access checks.  There are 2 main
      access methods: a decoded address space such as ECAM or a single address
      and data register similar to x86.  This implementation can support both
      cases as well as be used in cases that need additional pre- or post-access
      handling.
      
      Add a new pci_ops member, map_bus, which can do access checks and any
      necessary setup.  It returns the address to use for the configuration space
      access.  The access types supported are 32-bit only accesses or correct
      byte, word, or dword sized accesses.
      Tested-by: NThierry Reding <treding@nvidia.com>
      Signed-off-by: NRob Herring <robh@kernel.org>
      Signed-off-by: NBjorn Helgaas <bhelgaas@google.com>
      Reviewed-by: NThierry Reding <treding@nvidia.com>
      1f94a94f
  13. 22 1月, 2015 1 次提交
  14. 17 1月, 2015 8 次提交
  15. 10 1月, 2015 2 次提交