1. 02 3月, 2016 1 次提交
  2. 09 1月, 2016 1 次提交
  3. 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
  4. 09 11月, 2015 3 次提交
  5. 06 10月, 2015 1 次提交
  6. 11 9月, 2015 1 次提交
    • C
      dma-mapping: consolidate dma_set_mask · 452e06af
      Christoph Hellwig 提交于
      Almost everyone implements dma_set_mask the same way, although some time
      that's hidden in ->set_dma_mask methods.
      
      This patch consolidates those into a common implementation that either
      calls ->set_dma_mask if present or otherwise uses the default
      implementation.  Some architectures used to only call ->set_dma_mask
      after the initial checks, and those instance have been fixed to do the
      full work.  h8300 implemented dma_set_mask bogusly as a no-ops and has
      been fixed.
      
      Unfortunately some architectures overload unrelated semantics like changing
      the dma_ops into it so we still need to allow for an architecture override
      for now.
      
      [jcmvbkbc@gmail.com: fix xtensa]
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Russell King <linux@arm.linux.org.uk>
      Cc: Catalin Marinas <catalin.marinas@arm.com>
      Cc: Will Deacon <will.deacon@arm.com>
      Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
      Cc: Michal Simek <monstr@monstr.eu>
      Cc: Jonas Bonn <jonas@southpole.se>
      Cc: Chris Metcalf <cmetcalf@ezchip.com>
      Cc: Guan Xuetao <gxt@mprc.pku.edu.cn>
      Cc: Ralf Baechle <ralf@linux-mips.org>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: "H. Peter Anvin" <hpa@zytor.com>
      Cc: Andy Shevchenko <andy.shevchenko@gmail.com>
      Signed-off-by: NMax Filippov <jcmvbkbc@gmail.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      452e06af
  7. 22 7月, 2015 1 次提交
  8. 15 4月, 2015 1 次提交
  9. 22 7月, 2014 1 次提交
  10. 21 2月, 2014 1 次提交
  11. 16 12月, 2013 1 次提交
  12. 24 10月, 2013 1 次提交
  13. 30 8月, 2013 1 次提交
  14. 22 8月, 2013 1 次提交
  15. 27 6月, 2013 1 次提交
  16. 23 4月, 2013 1 次提交
  17. 17 4月, 2013 1 次提交
  18. 08 1月, 2013 1 次提交
  19. 14 12月, 2012 1 次提交
  20. 03 12月, 2012 1 次提交
  21. 01 12月, 2012 1 次提交