1. 28 May, 2014 5 commits
  2. 27 May, 2014 2 commits
  3. 26 May, 2014 5 commits
    • Bjorn Helgaas's avatar
      Merge branches 'dma-api', 'pci/virtualization', 'pci/msi', 'pci/misc' and 'pci/resource' into next · e5558d1a
      Bjorn Helgaas authored
      * dma-api:
        iommu/exynos: Remove unnecessary "&" from function pointers
        DMA-API: Update dma_pool_create ()and dma_pool_alloc() descriptions
        DMA-API: Fix duplicated word in DMA-API-HOWTO.txt
        DMA-API: Capitalize "CPU" consistently
        sh/PCI: Pass GAPSPCI_DMA_BASE CPU & bus address to dma_declare_coherent_memory()
        DMA-API: Change dma_declare_coherent_memory() CPU address to phys_addr_t
        DMA-API: Clarify physical/bus address distinction
      
      * pci/virtualization:
        PCI: Mark RTL8110SC INTx masking as broken
      
      * pci/msi:
        PCI/MSI: Remove pci_enable_msi_block()
      
      * pci/misc:
        PCI: Remove pcibios_add_platform_entries()
        s390/pci: use pdev->dev.groups for attribute creation
        PCI: Move Open Firmware devspec attribute to PCI common code
      
      * pci/resource:
        PCI: Add resource allocation comments
        PCI: Simplify __pci_assign_resource() coding style
        PCI: Change pbus_size_mem() return values to be more conventional
        PCI: Restrict 64-bit prefetchable bridge windows to 64-bit resources
        PCI: Support BAR sizes up to 8GB
        resources: Clarify sanity check message
        PCI: Don't add disabled subtractive decode bus resources
        PCI: Don't print anything while decoding is disabled
        PCI: Don't set BAR to zero if dma_addr_t is too small
        PCI: Don't convert BAR address to resource if dma_addr_t is too small
        PCI: Reject BAR above 4GB if dma_addr_t is too small
        PCI: Fail safely if we can't handle BARs larger than 4GB
        x86/gart: Tidy messages and add bridge device info
        x86/gart: Replace printk() with pr_info()
        x86/PCI: Move pcibios_assign_resources() annotation to definition
        x86/PCI: Mark ATI SBx00 HPET BAR as IORESOURCE_PCI_FIXED
        x86/PCI: Don't try to move IORESOURCE_PCI_FIXED resources
        x86/PCI: Fix Broadcom CNB20LE unintended sign extension
      e5558d1a
    • Bjorn Helgaas's avatar
      iommu/exynos: Remove unnecessary "&" from function pointers · 14574674
      Bjorn Helgaas authored
      Remove unnecessary "&" from function pointers in exynos_iommu_ops.
      Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
      Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
      14574674
    • Gioh Kim's avatar
      DMA-API: Update dma_pool_create ()and dma_pool_alloc() descriptions · 2af9da86
      Gioh Kim authored
      Use "boundary" to be more descriptive than "alloc" in the dma_pool_create()
      documentation.
      
      Replace "SLAB_KERNEL" and "SLAB_ATOMIC" with the correct "GFP_KERNEL" and
      "GFP_ATOMIC."
      
      [bhelgaas: changelog]
      Signed-off-by: default avatarGioh Kim <gioh.kim@lge.com>
      Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
      2af9da86
    • Emilio López's avatar
      DMA-API: Fix duplicated word in DMA-API-HOWTO.txt · 34c815fb
      Emilio López authored
      "coherent" is written twice when it should be just once.
      Signed-off-by: default avatarEmilio López <emilio@elopez.com.ar>
      Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
      34c815fb
    • Bjorn Helgaas's avatar
      DMA-API: Capitalize "CPU" consistently · f311a724
      Bjorn Helgaas authored
      Sometimes we used "cpu," other times "CPU."  Use "CPU" consistently.
      Suggested-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
      f311a724
  4. 23 May, 2014 15 commits
  5. 22 May, 2014 2 commits
  6. 21 May, 2014 2 commits
    • Suravee Suthikulpanit's avatar
      x86/PCI: Work around AMD Fam15h BIOSes that fail to provide _PXM · 94d4bb5b
      Suravee Suthikulpanit authored
      The BIOS is supposed to provide ACPI _PXM methods for PCI host bridges if
      it cares about platform topology.  But some BIOSes do not, so add Fam15h
      to the list of CPUs for which we fall back to reading node numbers from the
      hardware.
      
      Note that pci_acpi_scan_root() warns about the BIOS bug if we use this
      information because (1) the hardware node numbers are not necessarily
      compatible with other logical node numbers from ACPI, and (2) the lack of
      _PXM forces OS updates that would not otherwise be required.
      
      [bhelgaas: changelog, comments]
      Link: https://bugzilla.kernel.org/show_bug.cgi?id=72051Tested-by: default avatarAravind Gopalakrishnan <Aravind.Gopalakrishnan@amd.com>
      Signed-off-by: default avatarSuravee Suthikulpanit <Suravee.Suthikulpanit@amd.com>
      Signed-off-by: default avatarMyron Stowe <myron.stowe@redhat.com>
      Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
      Cc: Borislav Petkov <bp@suse.de>
      Cc: Robert Richter <rric@kernel.org>
      Cc: Daniel J Blueman <daniel@numascale.com>
      Cc: Andreas Herrmann <herrmann.der.user@googlemail.com>
      94d4bb5b
    • Myron Stowe's avatar
      x86/PCI: Warn if we have to "guess" host bridge node information · 33673101
      Myron Stowe authored
      The vast majority of platforms are not supplying ACPI _PXM (proximity)
      information corresponding to host bridge (PNP0A03/PNP0A08) devices
      resulting in sysfs "numa_node" values of -1 (NUMA_NO_NODE):
      
        # for i in /sys/devices/pci0000\:00/*/numa_node; do cat $i; done | uniq
        -1
      
        # find /sys/ -name "numa_node" | while read fname; do cat $fname; \
          done | uniq
        -1
      
      AMD based platforms provide a fall-back for this situation via amd_bus.c.
      These platforms snoop out the information by directly reading specific
      registers from the Northbridge and caching them via alloc_pci_root_info().
      
      Later during boot processing when host bridges are discovered -
      pci_acpi_scan_root() - the kernel looks for their corresponding ACPI _PXM
      method - drivers/acpi/numa.c::acpi_get_node().  If the BIOS supplied a _PXM
      method then that node (proximity) value is associated.  If the BIOS did not
      supply a _PXM method *and* the platform is AMD-based, the fall-back cached
      values obtained directly from the Northbridge are used; otherwise,
      "NUMA_NO_NODE" is associated.
      
      There are a number of issues with this fall-back mechanism the most notable
      being that amd_bus.c extracts a 3-bit number from a CPU register and uses
      it as the node number.  The node numbers used by Linux are logical and
      there's no reason they need to be identical to settings in the CPU
      registers.  So if we have some node information obtained in the normal way
      (from _PXM, SLIT, SRAT, etc.) and some from amd_bus.c, there's no reason to
      believe they will be compatible.
      
      This patch warns when this situation occurs:
      
        pci_root PNP0A08:00: [Firmware Bug]: no _PXM; falling back to node 0 from hardware (may be inconsistent with ACPI node numbers)
      
      Link: https://bugzilla.kernel.org/show_bug.cgi?id=72051Signed-off-by: default avatarMyron Stowe <myron.stowe@redhat.com>
      Signed-off-by: default avatarSuravee Suthikulpanit <Suravee.Suthikulpanit@amd.com>
      Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
      33673101
  7. 20 May, 2014 4 commits
  8. 30 Apr, 2014 2 commits
  9. 29 Apr, 2014 3 commits
    • Bjorn Helgaas's avatar
      Merge branches 'pci/hotplug', 'pci/msi', 'pci/virtualization' and 'pci/misc' into next · 518a6a34
      Bjorn Helgaas authored
      * pci/hotplug:
        PCI: rphahp: Fix endianess issues
        PCI: Allow hotplug service drivers to operate in polling mode
        PCI: pciehp: Acknowledge spurious "cmd completed" event
        PCI: pciehp: Use PCI_EXP_SLTCAP_PSN define
        PCI: hotplug: Remove unnecessary "dev->bus" test
      
      * pci/msi:
        GenWQE: Use pci_enable_msi_exact() instead of pci_enable_msi_block()
        PCI/MSI: Simplify populate_msi_sysfs()
        PCI/portdrv: Use pci_enable_msix_exact() instead of pci_enable_msix()
      
      * pci/virtualization:
        PCI: Add Patsburg (X79) to Intel PCH root port ACS quirk
      
      * pci/misc:
        PCI: Fix use of uninitialized MPS value
        PCI: Remove dead code
        MAINTAINERS: Add arch/x86/kernel/quirks.c to PCI file patterns
        PCI: Remove unnecessary __ref annotations
        PCI: Fail new_id for vendor/device values already built into driver
        PCI: Add new ID for Intel GPU "spurious interrupt" quirk
        PCI: Update my email address
        PCI: Fix incorrect vgaarb conditional in WARN_ON()
        PCI: Use designated initialization in PCI_VDEVICE
        PCI: Remove old serial device IDs
        PCI: Remove unnecessary includes of <linux/init.h>
        powerpc/PCI: Fix NULL dereference in sys_pciconfig_iobase() list traversal
      518a6a34
    • Bjorn Helgaas's avatar
      PCI: Fix use of uninitialized MPS value · 1e358f94
      Bjorn Helgaas authored
      If "pcie_bus_config == PCIE_BUS_PERFORMANCE", we don't initialize "smpss",
      so we pass a pointer to garbage into pcie_bus_configure_set(), where we
      compute "mps" based on the garbage.  We then pass the garbage "mps" to
      pcie_write_mps(), which ignores it in the PCIE_BUS_PERFORMANCE case.
      
      Coverity isn't smart enough to deduce that we ignore the garbage (it's a
      lot to expect from a human, too), so initialize "smpss" to a safe value in
      all cases.
      
      Found by Coverity (CID 146454).
      Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
      1e358f94
    • Bjorn Helgaas's avatar
      PCI: Remove dead code · efdd4070
      Bjorn Helgaas authored
      "pdev" can never be NULL here, so remove the test.
      
      Found by Coverity (CID 744313).
      Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
      efdd4070