Uploaded image for project: 'CIFX Driver for Linux'
  1. CIFX Driver for Linux
  2. NXDRVLINUX-154

DMA: Buffers may not be updated or show wrong data (kernel/machine dependent)

    Details

    • Type: Bug
    • Status: New
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: V3.0.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Account:
      SDO Driver (SDODRIVER)

      Description

      Newer machines/kernels are making excessive use of IOMMUs which cause trouble when trying to map DMA buffers from uio to userspace.

      Mapping coherent DMA buffers is also being discouraged (See https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/drivers/uio/uio.c?h=v6.10.11&id=576882ef5e7fce030b65c92b508a0f84ea5a81c2)

      + dev_warn(mem->dma_device,
      + "use of UIO_MEM_DMA_COHERENT is highly discouraged");
      +
       
      Possible workarounds (may not work, but have shown to work on some platforms):
      • Add "iommu.passthrough=1" to kernel command line
       

        Attachments

          Expenses

            Activity

              Status Description

                People

                • Reporter:
                  MTrensch Michael Trensch
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated: