1. 16 8月, 2018 2 次提交
  2. 24 11月, 2017 1 次提交
    • G
      s390: pci: add SPDX identifiers to the remaining files · adbb3901
      Greg Kroah-Hartman 提交于
      It's good to have SPDX identifiers in all files to make it easier to
      audit the kernel tree for correct licenses.
      
      Update the arch/s390/pci/ files with the correct SPDX license
      identifier based on the license text in the file itself.  The SPDX
      identifier is a legally binding shorthand, which can be used instead of
      the full boiler plate text.
      
      This work is based on a script and data from Thomas Gleixner, Philippe
      Ombredanne, and Kate Stewart.
      
      Cc: Sebastian Ott <sebott@linux.vnet.ibm.com>
      Cc: Gerald Schaefer <gerald.schaefer@de.ibm.com>
      Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
      Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Kate Stewart <kstewart@linuxfoundation.org>
      Cc: Philippe Ombredanne <pombredanne@nexb.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
      adbb3901
  3. 08 11月, 2017 1 次提交
  4. 16 8月, 2017 1 次提交
  5. 03 8月, 2017 1 次提交
  6. 28 6月, 2017 8 次提交
  7. 05 4月, 2017 4 次提交
  8. 25 1月, 2017 1 次提交
  9. 16 1月, 2017 1 次提交
  10. 14 12月, 2016 1 次提交
  11. 23 11月, 2016 1 次提交
  12. 24 8月, 2016 1 次提交
  13. 14 3月, 2016 1 次提交
  14. 02 3月, 2016 1 次提交
  15. 23 2月, 2016 1 次提交
  16. 26 1月, 2016 5 次提交
  17. 27 11月, 2015 1 次提交
    • G
      s390/pci_dma: fix DMA table corruption with > 4 TB main memory · 69eea95c
      Gerald Schaefer 提交于
      DMA addresses returned from map_page() are calculated by using an iommu
      bitmap plus a start_dma offset. The size of this bitmap is based on the main
      memory size. If we have more than (4 TB - start_dma) main memory, the DMA
      address calculation will also produce addresses > 4 TB. Such addresses
      cannot be inserted in the 3-level DMA page table, instead the entries
      modulo 4 TB will be overwritten.
      
      Fix this by restricting the iommu bitmap size to (4 TB - start_dma).
      Also set zdev->end_dma to the actual end address of the usable
      range, instead of the theoretical maximum as reported by the hardware,
      which fixes a sanity check in dma_map() and also the IOMMU API domain
      geometry aperture calculation.
      Signed-off-by: NGerald Schaefer <gerald.schaefer@de.ibm.com>
      Reviewed-by: NSebastian Ott <sebott@linux.vnet.ibm.com>
      Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
      69eea95c
  18. 29 7月, 2015 1 次提交
  19. 23 7月, 2015 1 次提交
  20. 22 7月, 2015 1 次提交
  21. 15 4月, 2015 2 次提交
  22. 25 3月, 2015 1 次提交
  23. 19 3月, 2015 1 次提交
    • Y
      PCI: Assign resources before drivers claim devices (pci_scan_root_bus()) · b97ea289
      Yijing Wang 提交于
      Previously, pci_scan_root_bus() created a root PCI bus, enumerated the
      devices on it, and called pci_bus_add_devices(), which made the devices
      available for drivers to claim them.
      
      Most callers assigned resources to devices after pci_scan_root_bus()
      returns, which may be after drivers have claimed the devices.  This is
      incorrect; the PCI core should not change device resources while a driver
      is managing the device.
      
      Remove pci_bus_add_devices() from pci_scan_root_bus() and do it after any
      resource assignment in the callers.
      
      Note that ARM's pci_common_init_dev() already called pci_bus_add_devices()
      after pci_scan_root_bus(), so we only need to remove the first call:
      
        pci_common_init_dev
          pcibios_init_hw
            pci_scan_root_bus
              pci_bus_add_devices        # first call
          pci_bus_assign_resources
          pci_bus_add_devices            # second call
      
      [bhelgaas: changelog, drop "root_bus" var in alpha common_init_pci(),
      return failure earlier in mn10300, add "return" in x86 pcibios_scan_root(),
      return early if xtensa platform_pcibios_fixup() fails]
      Signed-off-by: NYijing Wang <wangyijing@huawei.com>
      Signed-off-by: NBjorn Helgaas <bhelgaas@google.com>
      CC: Richard Henderson <rth@twiddle.net>
      CC: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
      CC: Matt Turner <mattst88@gmail.com>
      CC: David Howells <dhowells@redhat.com>
      CC: Tony Luck <tony.luck@intel.com>
      CC: Michal Simek <monstr@monstr.eu>
      CC: Ralf Baechle <ralf@linux-mips.org>
      CC: Koichi Yasutake <yasutake.koichi@jp.panasonic.com>
      CC: Sebastian Ott <sebott@linux.vnet.ibm.com>
      CC: "David S. Miller" <davem@davemloft.net>
      CC: Chris Metcalf <cmetcalf@ezchip.com>
      CC: Chris Zankel <chris@zankel.net>
      CC: Max Filippov <jcmvbkbc@gmail.com>
      CC: Thomas Gleixner <tglx@linutronix.de>
      b97ea289
  24. 28 2月, 2015 1 次提交