1. 22 11月, 2019 1 次提交
    • N
      dma-mapping: treat dev->bus_dma_mask as a DMA limit · a7ba70f1
      Nicolas Saenz Julienne 提交于
      Using a mask to represent bus DMA constraints has a set of limitations.
      The biggest one being it can only hold a power of two (minus one). The
      DMA mapping code is already aware of this and treats dev->bus_dma_mask
      as a limit. This quirk is already used by some architectures although
      still rare.
      
      With the introduction of the Raspberry Pi 4 we've found a new contender
      for the use of bus DMA limits, as its PCIe bus can only address the
      lower 3GB of memory (of a total of 4GB). This is impossible to represent
      with a mask. To make things worse the device-tree code rounds non power
      of two bus DMA limits to the next power of two, which is unacceptable in
      this case.
      
      In the light of this, rename dev->bus_dma_mask to dev->bus_dma_limit all
      over the tree and treat it as such. Note that dev->bus_dma_limit should
      contain the higher accessible DMA address.
      Signed-off-by: NNicolas Saenz Julienne <nsaenzjulienne@suse.de>
      Reviewed-by: NRobin Murphy <robin.murphy@arm.com>
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      a7ba70f1
  2. 31 10月, 2019 2 次提交
  3. 04 9月, 2019 5 次提交
  4. 03 9月, 2019 1 次提交
  5. 29 8月, 2019 1 次提交
  6. 22 8月, 2019 1 次提交
  7. 23 7月, 2019 1 次提交
  8. 17 7月, 2019 1 次提交
  9. 10 7月, 2019 1 次提交
  10. 08 4月, 2019 1 次提交
  11. 07 3月, 2019 1 次提交
  12. 20 2月, 2019 3 次提交
  13. 14 2月, 2019 2 次提交
  14. 01 2月, 2019 2 次提交
  15. 08 1月, 2019 1 次提交
  16. 04 1月, 2019 4 次提交
  17. 23 12月, 2018 1 次提交
  18. 20 12月, 2018 1 次提交
  19. 14 12月, 2018 6 次提交
  20. 06 12月, 2018 3 次提交
  21. 02 12月, 2018 1 次提交