1. 31 Mar, 2021 1 commit
    • riggy2013's avatar
      Update libxdma.h · 1777447e
      riggy2013 authored
      per Julien BERAUD, fix pci_aer name change issue in RedHat 8.3 in a more consistent coding style.
      1777447e
  2. 30 Mar, 2021 1 commit
    • riggy2013's avatar
      Update xdma_mod.c · 4d4bf2a6
      riggy2013 authored
      build on CentOS 8.3 will generate error:
      
      XDMA/linux-kernel/xdma/xdma_mod.c:301:2: error: implicit declaration of function ??pci_cleanup_aer_uncorrect_error_status?? [-Werror=implicit-function-declaration]
        pci_cleanup_aer_uncorrect_error_status(pdev);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      cc1: some warnings being treated as errors
      make[2]: *** [scripts/Makefile.build:316: /home/ndam/Downloads/dma_ip_drivers-master/XDMA/linux-kernel/xdma/xdma_mod.o] Error 1
      
      The reason is, name change from pci_cleanup_aer_uncorrect_error_status() to pci_aer_clear_nonfatal_status() at https://github.com/torvalds/linux/commit/894020fdd88c1e9a74c60b67c0f19f1c7696ba2f
      
      CentOS and RedHat 8.3 accepted the patch.
      4d4bf2a6
  3. 16 Feb, 2021 1 commit
  4. 03 Feb, 2021 1 commit
  5. 02 Feb, 2021 2 commits
  6. 22 Dec, 2020 1 commit
  7. 21 Dec, 2020 3 commits
  8. 31 Oct, 2020 2 commits
  9. 30 Oct, 2020 1 commit
  10. 29 Oct, 2020 2 commits
  11. 27 Oct, 2020 3 commits
  12. 23 Oct, 2020 3 commits
  13. 09 Oct, 2020 2 commits
  14. 07 Oct, 2020 4 commits
  15. 28 Sep, 2020 1 commit
  16. 22 Sep, 2020 4 commits
  17. 15 Sep, 2020 1 commit
    • Julien's avatar
      libxdma: fix next adjacent descriptors · f1e834be
      Julien authored
      Fix the setting of the next adjacent fields in descriptors.
      
      Following commit 5faf23ec the next_adj field of all descriptors is set
      according to the index of the descriptor rather than its address which
      causes issues when dma_alloc_coherent doesn't return an address which is
      page aligned (which happens).
      Moreover, in the case of a transfer which number of descriptors is
      bigger than a full page, the next_adj field is set to the maximum (63)
      for all descriptors untill the last page of descriptors where it starts
      decreasing.
      Last, even before this commit, the next_adj field inside a block of
      adjacent descriptors is not decreasing untill coming near page end,
      which is not compliant with what the documentation says :
      
      "Every descriptor in the descriptor list must accurately describe the descriptor
      or block ofdescriptors that follows. In a block of adjacent descriptors, the
      Nxt_adj value decrements from the first descriptor to the second to last
      descriptor which has a value of zero. Likewise, eachdescriptor in the block
      points to the next descriptor in the block, except for the last descriptor
      which might point to a new block or might terminate the list."
      
      This commit aligns the blocks of adjacent descriptors to
      XDMA_MAX_ADJ_BLOCK_SIZE and makes the next_adj field decrease inside
      each block untill the second to last descriptor in the block or in the
      full transfer. The size of the page being a multiple of the size of the
      block (4096 = sizeof(xdma_desc) * 128 =
      sizeof(xdma_desc) * 2 * XDMA_MAX_ADJ_BLOCK_SIZE
      f1e834be
  18. 08 Sep, 2020 1 commit
  19. 01 Sep, 2020 2 commits
  20. 25 Aug, 2020 4 commits