test suite reviews and discussions
 help / color / mirror / Atom feed
From: Chen Lingli <linglix.chen@intel.com>
To: dts@dpdk.org
Cc: Chen Lingli <linglix.chen@intel.com>
Subject: [dts] [PATCH V2] tests/external_memory:VFIO module parameter increase the allowed limit
Date: Fri, 12 Mar 2021 17:37:16 +0000	[thread overview]
Message-ID: <20210312173716.3853-1-linglix.chen@intel.com> (raw)

According to commit 016763c21958 ("vfio: do not merge contiguous areas").
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 .

Signed-off-by: Chen Lingli <linglix.chen@intel.com>
---
V2:modifie comment use git commit description style 
V1:modifie dts

 tests/TestSuite_external_memory.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/TestSuite_external_memory.py b/tests/TestSuite_external_memory.py
index 0224a319..e31b2787 100644
--- a/tests/TestSuite_external_memory.py
+++ b/tests/TestSuite_external_memory.py
@@ -111,6 +111,7 @@ class TestExternalMemory(TestCase):
         Verifier VFIO_PCI and anonymous memory allocation
         """
         self.insmod_modprobe(modename="vfio-pci")
+        self.dut.send_expect("echo 655359 > /sys/module/vfio_iommu_type1/parameters/dma_entry_limit", "#", 10)
 
         self.eal_para = self.dut.create_eal_parameters(cores="1S/4C/1T")
         self.dut.send_expect(r'./%s %s -- --mp-alloc=xmem -i'
-- 
2.17.1


             reply	other threads:[~2021-03-12  9:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-12 17:37 Chen Lingli [this message]
2021-03-12  9:17 ` Chen, LingliX
2021-03-15  7:27 ` Tu, Lijuan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210312173716.3853-1-linglix.chen@intel.com \
    --to=linglix.chen@intel.com \
    --cc=dts@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).