From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8424342DCC; Wed, 5 Jul 2023 12:53:20 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 12ADA4021F; Wed, 5 Jul 2023 12:53:20 +0200 (CEST) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2053.outbound.protection.outlook.com [40.107.244.53]) by mails.dpdk.org (Postfix) with ESMTP id 0466D40150 for ; Wed, 5 Jul 2023 12:53:17 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=c8LiYpVCmCcm2BhTmx1rTavP0MH02BvkaMeKFbrZ6U/wR+xhm6Lr80HhYXO47yQ0LEhBbhakwuHMY6KK8UJXXS8L4rscBCuoJ4W7vo1zk5llLdRX3Z0sixyklADO64cQtpYxSRaWg3n+Cq7BX30kayAnR4McI3aRYqWeZe+NvlmomAfNGd/k4VUWF9XayIMsS2SE/w30c08jf7b9Ci76fRQ9dMApl5VG2iKw2YLANdlkHg/Umn/lRNsKIIdJJdEE7ZmcOBnyssR6OqVV1fYcwNQkvqbQF4SpkyX4XTlAykrHr1QdDajehkZux9MrB82ja4jZDZNJhYZ7dxzTAOArSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=MG0ftqjRYax/XYQcMwTiytgpDPgXiDXDuBMoOYYIIQI=; b=M2TEozO2d9FQbSvB6BYHs+AiWNkKtoVgC6dbXbqXwiuuQtLQz9sN1ujfYI0x0Z551R3aBoergNoV1mJb90pIpA1rmG+6uzzaCZ09i7KNEHxG/x221YKX0BZf3zD6lmIr++pzbNjdWXcMF9OODJT5tB34LLkmAldKP5d063ioQXqYeOB5PDYX0V8GuF5x2VP3E+K6hx54yZ2cKwRxWCS8f913FjV++Z8yDnaatLiOFhNcTQc0PuAFUTXphuJLlBcXC8HMxMMi1xSfoXNd2Nsrhmj5Ya7JxSztEvCflAXvDHvlQQ48x3OqpLFHZBzv5+JyNm3zZiwAZN4yUBitK99gBg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=dpdk.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=MG0ftqjRYax/XYQcMwTiytgpDPgXiDXDuBMoOYYIIQI=; b=cyg62GvIxTHyREPMPoVKGE34i1r8q6e9F4q4qOgzJr7NINgeQUesb4pJxg6thB20FQ6ILIyXHUefdev1o9EB1sHVlwUVPw5A/xFkWW7qIK55E2G+pMhYT1HWVHPHgy+yfr6HwJK3ToN2aCU20HwpmG2DmQhNg5YCVmhN9LkuAGc= Received: from MW4PR03CA0212.namprd03.prod.outlook.com (2603:10b6:303:b9::7) by PH8PR12MB7302.namprd12.prod.outlook.com (2603:10b6:510:221::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.17; Wed, 5 Jul 2023 10:53:12 +0000 Received: from CO1NAM11FT111.eop-nam11.prod.protection.outlook.com (2603:10b6:303:b9:cafe::75) by MW4PR03CA0212.outlook.office365.com (2603:10b6:303:b9::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.18 via Frontend Transport; Wed, 5 Jul 2023 10:53:12 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB03.amd.com; pr=C Received: from SATLEXMB03.amd.com (165.204.84.17) by CO1NAM11FT111.mail.protection.outlook.com (10.13.174.61) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6500.47 via Frontend Transport; Wed, 5 Jul 2023 10:53:12 +0000 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Wed, 5 Jul 2023 05:53:11 -0500 Received: from xhdipdslab41.xilinx.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server id 15.1.2507.23 via Frontend Transport; Wed, 5 Jul 2023 05:53:09 -0500 From: Nipun Gupta To: CC: , , , , , , , Nipun Gupta Subject: [PATCH] doc: add information to update dma entry limit Date: Wed, 5 Jul 2023 16:23:07 +0530 Message-ID: <20230705105307.5495-1-nipun.gupta@amd.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT111:EE_|PH8PR12MB7302:EE_ X-MS-Office365-Filtering-Correlation-Id: c3798ffd-1391-4610-c4df-08db7d460753 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: yTldHePRE+sv7yGeVN4krMCU9UH97jc9IZiRUkM1y8sWJAracnPDZ55ooZse6w6BL1xIxbNIIKiCPiJhtXRwNYMSHLAyVqRLwG9Ou2eRKSdmKBWsl77brHKMvjs0K3u/HxtUfLgt9rBfbNNbpODYC8lfp0gJJ2yEz1jSqRAR4s5vegMTivgb/ICJqv8nbLjnDwWx1oVJ6vmyAUR+6OWF6KsSqWEci+3MgMLM1D3XCZbnSvd+G4zwVOuUiOUsM56SRaogUZRTfHKV/9YTcxyc99dFkS1YKpUJJZYbXR3zh7IpTbhn8ZDAeY0wPfkrHNlt6V4d4nI5jj7kyyIm1ZyP+ZaLLS0CMEZUmrlzk50JbIWUIybDN7fiHM8QgzqQ0WprW+cf07fTqECE0kcRWW9lJBYKwwK+aCPj4xMSOF+OwtncWa6Wov2W/cxNftWsPRETZ5RBLkaJCQjXvyXVOzCLul7AttRcGz87SiZtVxURwGi9O01pKHDcJjklqEuaWvbOQSRuo76o3dG4o2AZsxLveu5Iwm5F1Q/NudNwMA9zr05OzaiqPUBMMn2ZsxBz0g5sJfwRMj9TtQmg0zSFCtltvH22QUtJTR28Tj1PDplcWr6ii9ERckC9K9cbQ1TD2SpgnCe5GJkm1fXN/KukaB0lVQBK206yKFNHzeEVFMpYi5t3pozRYMSL1iqmsPsuH6545MDQNjjk+AXvsajCThLBcScAzEpZxnJf+7+v507VkyAdIoqtjn16pVLWG7wlbGiWzF2z8pBKBiWPl56KDu3KRg== X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB03.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230028)(4636009)(136003)(376002)(346002)(396003)(39860400002)(451199021)(46966006)(40470700004)(36840700001)(40480700001)(40460700003)(54906003)(356005)(82740400003)(81166007)(478600001)(41300700001)(8936002)(8676002)(4326008)(70586007)(70206006)(6916009)(316002)(2616005)(426003)(336012)(186003)(36860700001)(83380400001)(47076005)(1076003)(26005)(82310400005)(86362001)(44832011)(5660300002)(2906002)(15650500001)(36756003)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jul 2023 10:53:12.5607 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c3798ffd-1391-4610-c4df-08db7d460753 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXMB03.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT111.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH8PR12MB7302 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org 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 --- doc/guides/linux_gsg/linux_drivers.rst | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/doc/guides/linux_gsg/linux_drivers.rst b/doc/guides/linux_gsg/linux_drivers.rst index 2cec1ebede..b729bb38a8 100644 --- a/doc/guides/linux_gsg/linux_drivers.rst +++ b/doc/guides/linux_gsg/linux_drivers.rst @@ -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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- 2.17.1