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 5B984A0A0E for ; Mon, 10 May 2021 18:03:35 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5198340147; Mon, 10 May 2021 18:03:35 +0200 (CEST) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2073.outbound.protection.outlook.com [40.107.236.73]) by mails.dpdk.org (Postfix) with ESMTP id 0055640147 for ; Mon, 10 May 2021 18:03:33 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LoICdEZIk+ltIhmTz0oHE97HAPg6Ecz0HtFzpLoY3yJn+R6HdFSM4Vtp4xIcdY9XffaF4wesXNes6RXI2KV1golYyEJ2hQ2k7oj8bmtlyEWP94X6HNBlH+PjqRQdHBIq/t6LXHBA5pY+gjqsT8O4s31g/XnTfUe5Y835JKWe8vpXDUxzQagHMOIOvA1Qutqirw4s9VUoYQM8LOVRedFtFCfOKUZcpZRNbE3cwRYxRXhAPyiUQpCdQzSAfqeBmYq4Q4NLIYyoW0Og1iVfrUSBKoErcRrV+qqBpM/KRzMuYrF8j9VLQ7m9tURIG4VSAlr6ztdkM4wGL1JjGvnmTOZ3nw== 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-SenderADCheck; bh=qHkKiT6aQ3XZbHAYdnTRRq53w5ycv3IqgLB95OVvnco=; b=OPlp8x0KPH1eSeL+jNpmQ2fSSDqCTC1VwBr8CaQhkWw1e12lMyoSAC8S/p6s0Q77dbZ1n263cjokn3W1870M4yNHu70lr3vAUjDgFAsa2g0y0NBajDUVNMEKZiZWCXwizAUk4rvIM+qpyy1YpelAja73We8UEIknIKAbXXftOwFiyCP7a/DopHT+GcKD1coJCzYoonNIxl6KfDIwQx7dImupwju4mPbLS5lFffrzXiLq6qOlMWWtg+pnXgub55k4J1VYbLsXjzrkEOsPhoBtHRdWWmBkrlI4P6GKshPavyjZ4hlsGjIqGRAvlOximQibOpKhqD2DbXQGKdsKzezaFQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=intel.com smtp.mailfrom=nvidia.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qHkKiT6aQ3XZbHAYdnTRRq53w5ycv3IqgLB95OVvnco=; b=TrlKgTu8Rn84AFaykufPxKfhASj8EBJp19ezBIRZnWsMLpkro0n001EeAZUJu8ZQhNJmK5TwLZVqCJ+BOVHInkRhv/lPSTEEIJYDAJkJPoIMDU7/VIzzSFeEm3sir+Ove/jncsefdcyDcVTdVos2dTfCXB0kRA0gfGNvNfhPNxFVUMmJRKTxsgaFGlgB+ezEMZPQFniLYzkZ5F3jZGSM9QSCWcWlUjfQi04gBFRQWOPRMuD1bULBGQBRlj2PeVtNN5s9vgzV2sHTEZp+RdAPsOycWMx1x4UxMJfxWOKzgf1acjJMNCGwHXpZVLiPxWLZefTrnkGSLxEDVT+LfHVnUQ== Received: from BN8PR03CA0011.namprd03.prod.outlook.com (2603:10b6:408:94::24) by CY4PR12MB1271.namprd12.prod.outlook.com (2603:10b6:903:3d::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.31; Mon, 10 May 2021 16:03:32 +0000 Received: from BN8NAM11FT067.eop-nam11.prod.protection.outlook.com (2603:10b6:408:94:cafe::26) by BN8PR03CA0011.outlook.office365.com (2603:10b6:408:94::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.24 via Frontend Transport; Mon, 10 May 2021 16:03:32 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by BN8NAM11FT067.mail.protection.outlook.com (10.13.177.159) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4108.25 via Frontend Transport; Mon, 10 May 2021 16:03:32 +0000 Received: from nvidia.com (172.20.145.6) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 10 May 2021 16:03:29 +0000 From: Xueming Li To: Nithin Dabilpuram CC: Luca Boccassi , Anatoly Burakov , dpdk stable Date: Mon, 10 May 2021 23:59:11 +0800 Message-ID: <20210510160258.30982-2-xuemingl@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210510160258.30982-1-xuemingl@nvidia.com> References: <20210510160258.30982-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.145.6] X-ClientProxiedBy: HQMAIL111.nvidia.com (172.20.187.18) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a6a39478-9a81-4222-0cc8-08d913cd28ff X-MS-TrafficTypeDiagnostic: CY4PR12MB1271: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:10000; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ym0yG9Q2KigBbKivCXGVW0WJEI13GR0nsWF5J79S47NLaf22sIwBzjRKemFzqPi/mAk+M+HJGJH69el6VH6PLPgvRYNL/nK8bX0/uPwe00L8st9Fu/5HdoNVJ7CS8ldkOSY8sKwfAQxPJViUZQUB00wzgm7yYQ1tM8RB1pQcn7bol/zWgwGVRHhmpsnhW6ohdX+aL2swp6hQboHLwurR6UDXoT/zM4dPgzMXI+lnuKtrP11CtaytTCSs70herHi0xV6azUV74h234IEaaZdIABrJ/0R4w4EkEWrqKKOepdqmo4ulyCrE5JaidZcrsSd9vysxgN/9rBpyI1ZVu5WVVAaQz5/MRshb3+14Rk+Ki+hV6q5VavkBglYPVb7lHmBLNlnQyYo1ehWJlRZzDvGRp3FKrMUiro41lE0dfFvi5tU6UcSlV0qip1oo83Q6i465bl7tyhZRoq6CKivD8hp6KalF8ZuPyFZm3AUQPIFQ/DWnumwZFdoFoZ/awVjmwzNidfcUv3kpLIS+JZsqBRRjy2nP8ekCCu7lZUFmizZCVhrkv19vp5FAiFphAbpRPnNjJ+ShhSk1nqAAcdiPn4WCqlVON1mwKqs+UzU4Xm2EysJVzoHZLQeZtJidoZyI/SbN0PemEryKgxsH1JFXXbLcd2TrYceqBEcZJDnttqaoS7zlOTPcCDWEBXgGidsBbSmY0JKf0A/0xp6XcRvnGr2pTULC2eS8gizAF0jg/FOFj6OOWdXf/zZxCJzseI6bsWqQ4Cp6fSjud2ruv9j1n8Ly/Q== X-Forefront-Antispam-Report: CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE; SFS:(4636009)(39860400002)(346002)(376002)(136003)(396003)(46966006)(36840700001)(6666004)(6286002)(82310400003)(7636003)(86362001)(8676002)(4326008)(2616005)(26005)(426003)(336012)(6916009)(7696005)(36860700001)(83380400001)(186003)(966005)(36906005)(70586007)(316002)(70206006)(36756003)(82740400003)(1076003)(2906002)(478600001)(8936002)(356005)(47076005)(55016002)(16526019)(53546011)(5660300002)(54906003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 May 2021 16:03:32.4883 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a6a39478-9a81-4222-0cc8-08d913cd28ff X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT067.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR12MB1271 Subject: [dpdk-stable] patch 'test/mem: fix page size for external memory' has been queued to stable release 20.11.2 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" Hi, FYI, your patch has been queued to stable release 20.11.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 05/12/21. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/steevenlee/dpdk This queued commit can be viewed at: https://github.com/steevenlee/dpdk/commit/e41a908c66b456ca1b97af64ea78a9f5a79fc878 Thanks. Xueming Li --- >From e41a908c66b456ca1b97af64ea78a9f5a79fc878 Mon Sep 17 00:00:00 2001 From: Nithin Dabilpuram Date: Fri, 15 Jan 2021 13:02:43 +0530 Subject: [PATCH] test/mem: fix page size for external memory Cc: Luca Boccassi [ upstream commit 52db57db0536bf20cbb50464ca4c18b0c9fde4e4 ] Currently external memory test uses 4K page size. VFIO DMA mapping works only with system page granularity. Earlier it was working because all the contiguous mappings were coalesced and mapped in one-go which ended up becoming a lot bigger page. Now that VFIO DMA mappings both in IOVA as VA and IOVA as PA mode, are being done at memseg list granularity, we need to use system page size. Fixes: b270daa43b3d ("test: support external memory") Signed-off-by: Nithin Dabilpuram Acked-by: Anatoly Burakov --- app/test/test_external_mem.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/test/test_external_mem.c b/app/test/test_external_mem.c index 7eb81f6448..5edf88b9f6 100644 --- a/app/test/test_external_mem.c +++ b/app/test/test_external_mem.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #include #include @@ -532,8 +533,8 @@ fail: static int test_external_mem(void) { + size_t pgsz = rte_mem_page_size(); size_t len = EXTERNAL_MEM_SZ; - size_t pgsz = RTE_PGSIZE_4K; rte_iova_t iova[len / pgsz]; void *addr; int ret, n_pages; -- 2.25.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2021-05-10 23:59:26.801750300 +0800 +++ 0003-test-mem-fix-page-size-for-external-memory.patch 2021-05-10 23:59:26.310000000 +0800 @@ -1 +1 @@ -From 52db57db0536bf20cbb50464ca4c18b0c9fde4e4 Mon Sep 17 00:00:00 2001 +From e41a908c66b456ca1b97af64ea78a9f5a79fc878 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Luca Boccassi + +[ upstream commit 52db57db0536bf20cbb50464ca4c18b0c9fde4e4 ] @@ -16 +18,0 @@ -Cc: stable@dpdk.org