1. 21 9月, 2012 1 次提交
    • B
      Revert "PCI: Use hotplug-safe pci_get_domain_bus_and_slot()" · 94bb3464
      Bjorn Helgaas 提交于
      This reverts commit 433efd22.
      
      When we remove an SR-IOV device, we have this call chain:
      
          driver .remove() method
              pci_disable_sriov()
                  sriov_disable()
                      virtfn_remove()
                          pci_get_domain_bus_and_slot()
      
      sriov_disable() is only called for PFs, not for VFs.  When it's called
      for a PF, it loops through all the VFs and calls virtfn_remove() for
      each.  But we stop and remove VFs before PFs, so by the time we get
      to virtfn_remove(), the VFs have already been stopped and deleted
      from the device list.  Now pci_get_domain_bus_and_slot(), which uses
      bus_find_device() and relies on that device list, doesn't find the
      VFs, so the VF references aren't released correctly.
      Reported-by: NYinghai Lu <yinghai@kernel.org>
      Signed-off-by: NBjorn Helgaas <bhelgaas@google.com>
      94bb3464
  2. 20 9月, 2012 1 次提交
  3. 19 9月, 2012 3 次提交
  4. 18 9月, 2012 2 次提交
  5. 13 9月, 2012 8 次提交
    • B
      Merge branch 'pci/trivial' into next · 6dabee73
      Bjorn Helgaas 提交于
      * pci/trivial:
        PCI: Drop duplicate const in DECLARE_PCI_FIXUP_SECTION
        PCI: Drop bogus default from ARCH_SUPPORTS_MSI
        PCI: cpqphp: Remove unreachable path
        PCI: Remove bus number resource debug messages
        PCI/AER: Print completion message at KERN_INFO to match starting message
        PCI: Fix drivers/pci/pci.c kernel-doc warnings
      6dabee73
    • B
      Merge commit 'v3.6-rc5' into next · 78890b59
      Bjorn Helgaas 提交于
      * commit 'v3.6-rc5': (1098 commits)
        Linux 3.6-rc5
        HID: tpkbd: work even if the new Lenovo Keyboard driver is not configured
        Remove user-triggerable BUG from mpol_to_str
        xen/pciback: Fix proper FLR steps.
        uml: fix compile error in deliver_alarm()
        dj: memory scribble in logi_dj
        Fix order of arguments to compat_put_time[spec|val]
        xen: Use correct masking in xen_swiotlb_alloc_coherent.
        xen: fix logical error in tlb flushing
        xen/p2m: Fix one-off error in checking the P2M tree directory.
        powerpc: Don't use __put_user() in patch_instruction
        powerpc: Make sure IPI handlers see data written by IPI senders
        powerpc: Restore correct DSCR in context switch
        powerpc: Fix DSCR inheritance in copy_thread()
        powerpc: Keep thread.dscr and thread.dscr_inherit in sync
        powerpc: Update DSCR on all CPUs when writing sysfs dscr_default
        powerpc/powernv: Always go into nap mode when CPU is offline
        powerpc: Give hypervisor decrementer interrupts their own handler
        powerpc/vphn: Fix arch_update_cpu_topology() return value
        ARM: gemini: fix the gemini build
        ...
      
      Conflicts:
      	drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
      	drivers/rapidio/devices/tsi721.c
      78890b59
    • J
      xen-pcifront: Use hotplug-safe pci_get_domain_bus_and_slot() · 2ccc246d
      Jiang Liu 提交于
      Following code has a race window between pci_find_bus() and pci_get_slot()
      if PCI hotplug operation happens between them which removes the pci_bus.
      So use PCI hotplug safe interface pci_get_domain_bus_and_slot() instead,
      which also reduces code complexity.
      
          struct pci_bus *pci_bus = pci_find_bus(domain, busno);
          struct pci_dev *pci_dev = pci_get_slot(pci_bus, devfn);
      Tested-by: NKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      Signed-off-by: NJiang Liu <jiang.liu@huawei.com>
      Signed-off-by: NBjorn Helgaas <bhelgaas@google.com>
      Acked-by: NKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      2ccc246d
    • J
      PCI: Use hotplug-safe pci_get_domain_bus_and_slot() · 433efd22
      Jiang Liu 提交于
      Following code has a race window between pci_find_bus() and pci_get_slot()
      if PCI hotplug operation happens between them which removes the pci_bus.
      So use PCI hotplug safe interface pci_get_domain_bus_and_slot() instead,
      which also reduces code complexity.
      
          struct pci_bus *pci_bus = pci_find_bus(domain, busno);
          struct pci_dev *pci_dev = pci_get_slot(pci_bus, devfn);
      Signed-off-by: NJiang Liu <jiang.liu@huawei.com>
      Signed-off-by: NBjorn Helgaas <bhelgaas@google.com>
      433efd22
    • J
      PCI/cpcihp: Use hotplug-safe pci_get_domain_bus_and_slot() · a9d18b37
      Jiang Liu 提交于
      Following code has a race window between pci_find_bus() and pci_get_slot()
      if PCI hotplug operation happens between them which removes the pci_bus.
      So use PCI hotplug safe interface pci_get_domain_bus_and_slot() instead,
      which also reduces code complexity.
      
          struct pci_bus *pci_bus = pci_find_bus(domain, busno);
          struct pci_dev *pci_dev = pci_get_slot(pci_bus, devfn);
      Signed-off-by: NJiang Liu <jiang.liu@huawei.com>
      Signed-off-by: NBjorn Helgaas <bhelgaas@google.com>
      a9d18b37
    • J
      PCI/vga: Use hotplug-safe pci_get_domain_bus_and_slot() · f85567c8
      Jiang Liu 提交于
      Following code has a race window between pci_find_bus() and pci_get_slot()
      if PCI hotplug operation happens between them which removes the pci_bus.
      So use PCI hotplug safe interface pci_get_domain_bus_and_slot() instead,
      which also reduces code complexity.
      
          struct pci_bus *pci_bus = pci_find_bus(domain, busno);
          struct pci_dev *pci_dev = pci_get_slot(pci_bus, devfn);
      Signed-off-by: NJiang Liu <jiang.liu@huawei.com>
      Signed-off-by: NBjorn Helgaas <bhelgaas@google.com>
      f85567c8
    • J
      ia64/PCI: Use hotplug-safe pci_get_domain_bus_and_slot() · ddec11b1
      Jiang Liu 提交于
      Following code has a race window between pci_find_bus() and pci_get_slot()
      if PCI hotplug operation happens between them which removes the pci_bus.
      So use PCI hotplug safe interface pci_get_domain_bus_and_slot() instead,
      which also reduces code complexity.
      
          struct pci_bus *pci_bus = pci_find_bus(domain, busno);
          struct pci_dev *pci_dev = pci_get_slot(pci_bus, devfn);
      Signed-off-by: NJiang Liu <jiang.liu@huawei.com>
      Signed-off-by: NBjorn Helgaas <bhelgaas@google.com>
      ddec11b1
    • B
      Merge branch 'pci/stephen-const' into next · 1959ec5f
      Bjorn Helgaas 提交于
      * pci/stephen-const:
        make drivers with pci error handlers const
        scsi: make pci error handlers const
        netdev: make pci_error_handlers const
        PCI: Make pci_error_handlers const
      1959ec5f
  6. 12 9月, 2012 6 次提交
  7. 11 9月, 2012 7 次提交
  8. 09 9月, 2012 3 次提交
    • L
      Linux 3.6-rc5 · 55d512e2
      Linus Torvalds 提交于
      55d512e2
    • L
      Merge branch 'fixes-for-3.6' of git://git.linaro.org/people/mszyprowski/linux-dma-mapping · 32d687ca
      Linus Torvalds 提交于
      Pull DMA-mapping fixes from Marek Szyprowski:
       "Another set of fixes for ARM dma-mapping subsystem.
      
        Commit e9da6e99 replaced custom consistent buffer remapping code
        with generic vmalloc areas.  It however introduced some regressions
        caused by limited support for allocations in atomic context.  This
        series contains fixes for those regressions.
      
        For some subplatforms the default, pre-allocated pool for atomic
        allocations turned out to be too small, so a function for setting its
        size has been added.
      
        Another set of patches adds support for atomic allocations to
        IOMMU-aware DMA-mapping implementation.
      
        The last part of this pull request contains two fixes for Contiguous
        Memory Allocator, which relax too strict requirements."
      
      * 'fixes-for-3.6' of git://git.linaro.org/people/mszyprowski/linux-dma-mapping:
        ARM: dma-mapping: IOMMU allocates pages from atomic_pool with GFP_ATOMIC
        ARM: dma-mapping: Introduce __atomic_get_pages() for __iommu_get_pages()
        ARM: dma-mapping: Refactor out to introduce __in_atomic_pool
        ARM: dma-mapping: atomic_pool with struct page **pages
        ARM: Kirkwood: increase atomic coherent pool size
        ARM: DMA-Mapping: print warning when atomic coherent allocation fails
        ARM: DMA-Mapping: add function for setting coherent pool size from platform code
        ARM: relax conditions required for enabling Contiguous Memory Allocator
        mm: cma: fix alignment requirements for contiguous regions
      32d687ca
    • L
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input · 11be4bc6
      Linus Torvalds 提交于
      Pull input subsystem updates from Dmitry Torokhov.
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
        Input: wacom - add support for EMR on Cintiq 24HD touch
        Input: i8042 - add Gigabyte T1005 series netbooks to noloop table
        Input: imx_keypad - reset the hardware before enabling
        Input: edt-ft5x06 - fix build error when compiling wthout CONFIG_DEBUG_FS
      11be4bc6
  9. 08 9月, 2012 7 次提交
  10. 07 9月, 2012 2 次提交