Skip to content

Commit

Permalink
doc: add information to update dma entry limit
Browse files Browse the repository at this point in the history
VFIO module provides configurable dma_entry_limit
parameter to store the DMA entries. By default this
is 64K and if we are using --no-huge, we shall need
to increase the value of dma_entry_limit. Add
commands in linux_gsg document to change the
dma_entry_limit.

Signed-off-by: Nipun Gupta <nipun.gupta@amd.com>
Signed-off-by: 0-day Robot <robot@bytheb.org>
  • Loading branch information
nipung87 authored and ovsrobot committed Jul 5, 2023
1 parent a64a456 commit 827bea4
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions doc/guides/linux_gsg/linux_drivers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,21 @@ VFIO module parameter ``dma_entry_limit`` with a default value of 64K.
When application is out of DMA entries, these limits need to be adjusted to
increase the allowed limit.

When ``--no-huge`` parameter is used, the page size used is of smaller size of
``4K`` or ``64K`` and we shall need to increase ``dma_entry_limit``.
To update the ``dma_entry_limit``, ``vfio_iommu_type1`` has to be loaded with
additional module parameter:

.. code-block:: console
modprobe vfio_iommu_type1 dma_entry_limit=512000
Alternatively, one can also change this value in an already loaded kernel module:

.. code-block:: console
echo 512000 > /sys/module/vfio_iommu_type1/parameters/dma_entry_limit
Creating Virtual Functions using vfio-pci
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down

0 comments on commit 827bea4

Please sign in to comment.