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 26E62A0C4E; Tue, 2 Nov 2021 11:08:37 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0B623410E6; Tue, 2 Nov 2021 11:08:37 +0100 (CET) Received: from AZHDRRW-EX02.NVIDIA.COM (azhdrrw-ex02.nvidia.com [20.64.145.131]) by mails.dpdk.org (Postfix) with ESMTP id 07F6A40689 for ; Tue, 2 Nov 2021 11:08:35 +0100 (CET) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.173) by mxs.oss.nvidia.com (10.13.234.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.858.15; Tue, 2 Nov 2021 03:08:33 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=S0FtgJV71lfsyfwcfVlTGp6e3DElCTwtlTKHJvx58T1uQj9CutR8H+ysy4Yh8SJvD/lOqNyFBgoiRQ7fuVrLodd8T2IXc+pmjzPegNK1v2R0dzZormE8fyc7a4+r+NkWAy+hG3XiSi8xQ0dy0k1fBgTEP1S/bz3BmdPNQDYk2fUwaGepZUmM+JrZQBcGYKt+PEAezKFedwtOL3oj0H+TS9foPXj1D2pTGM2xXtV+YVFzf5v7Ah99uRRYs2Vq2ZrkOWoR8M2WKWc7ikcUQCx7TfBlgXQfvShipH0+1im4TKqZDk1WQLFsYt7bqCgOcuwDAEirR8YrenNvcJVClRiosQ== 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=CCQW6kW4cOmteu7OMTYuk9TM6gjnKDtkfGf98RbIfW0=; b=FAPqmJZ9Aph4WwgVzraFCa6tMAqcvBuFGFI2vHayszJqO771PBuAHTQ2+h5OrD23kijhzAj/mPQaXn5e8/Fl++DQwzOT6y663zNo3mXEZDrmBLEs5e7NtFD+EVYx7NJ2tOkdNQGTQ2bcwT1z8LGPQz0eIT1O4LhryemMn1tTg8FC/VjFHgljXcEH8ZFrK4pw70wl1UOxgOIfdxS9yV11zH7FSSt13grlDW2fs0SYGRA1Ge1CCj87xU31aMJ9IJ9/xcODn8VH6beMPmRTU8XyJWruZY4XqEu1vR0z3Nmc/XBHBoL9rb+9GlsyiJnEv+xx6pg5d9td9xW9vS9lx/UmxA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=6wind.com smtp.mailfrom=nvidia.com; dmarc=pass (p=quarantine sp=quarantine 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=CCQW6kW4cOmteu7OMTYuk9TM6gjnKDtkfGf98RbIfW0=; b=hn9HP7Igjw7PcDcMTHGqqunjaQGsgWwV+TTivoc4E59kRnD3I0FCKCNzNPa9vBb52AGMhqNlrJtQvCSgp3kJJldgUiLTDB0QHDOQcUe5VKGIeJATHBO3h2b9X3CjrfQS/1IuWAd1VuKbLeh3RqUOcM5GEwc4QuFQK96mnmIa0KksU1+FlQQ4X/ZsCFrCH9DAubo1zTEzvYCbQAJ0YcTdjaVnKJCqMiSGWbzZaPr7PckPSKuNATHUGoCxOoLuXnDRZTVxJwbiwzbaW6Pt2nCOaeBA4WvTNL6SrJ2XJ+wXqsm5FPK8M1zzLQANklXnqnyq253TvrYppP7mibfezcATFA== Received: from BN0PR04CA0117.namprd04.prod.outlook.com (2603:10b6:408:ec::32) by MN2PR12MB2926.namprd12.prod.outlook.com (2603:10b6:208:10a::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4649.15; Tue, 2 Nov 2021 10:08:32 +0000 Received: from BN8NAM11FT014.eop-nam11.prod.protection.outlook.com (2603:10b6:408:ec:cafe::bc) by BN0PR04CA0117.outlook.office365.com (2603:10b6:408:ec::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4649.15 via Frontend Transport; Tue, 2 Nov 2021 10:08:32 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; 6wind.com; dkim=none (message not signed) header.d=none;6wind.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 BN8NAM11FT014.mail.protection.outlook.com (10.13.177.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4649.14 via Frontend Transport; Tue, 2 Nov 2021 10:08:31 +0000 Received: from nvidia.com (172.20.187.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Tue, 2 Nov 2021 10:08:30 +0000 From: Dmitry Kozlyuk To: CC: Anatoly Burakov , Olivier Matz , Yu Jiang Date: Tue, 2 Nov 2021 12:08:14 +0200 Message-ID: <20211102100817.916303-1-dkozlyuk@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211101073701.825389-1-dkozlyuk@nvidia.com> References: <20211101073701.825389-1-dkozlyuk@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.187.5] 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: a8775fba-97aa-46f8-36a0-08d99de8b974 X-MS-TrafficTypeDiagnostic: MN2PR12MB2926: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8273; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: T/6hQQEf/ORU82DXAOUlE0RVNMYo/Glc6aJSisnkq0L4GZmy42Cm2pYQ0ImIdyZf8dyD7zY3AclIJXcdi6tLwReWJ7vudMMYNbKGDcQrgzgSWpKY+cVOKtOhYb+lqVJ7RgWKLoXFKajI/UUKeX5TtOOfddXcKa5/D26M9loENsP7C4b1E2/qNhzCyjCP/SnuFzUWpvZaTQYsG4813gMNKO5Q5Z0ULQkdjBu66KOWsc3ALke1o1CFN3J7NhU5NdvOoi3yz6D1EkzrAd4oCC80k4KA//MNtTO7PfpJfXcyQ0hJkTqqzd9z6SsXnUb7HbHR9Cx0BAGUppUzWyqtHNdd5lYk7ZwzyhoM4MOtMUoKO2gooDaT/bdcqJQCBzebK2Ic2Cw2RietmamGdn3xAB9+nzycbeBUAg98R70GFMbEXLW/Imu+Z2MxpyL8npN29ulzlNPrJPGd0t6Z5mCgMIo4+txfSsSsfPeM4MMon9HODOFxYAneU4+jpQJt2jPaBzKsEHmzDSUyfjCN/04M+L4mu7niHF6wiD2Pjtdm3t5w+r6zJWER8QBiHX1sB+UzN+vuxF04eJhVetbeyGsX6syWl2WRGXFP0quksFjeG3kkLUDlv9C1z9MmemNEDgXz5V/Ta0bpnJt+Gk8w5zFBRQonvdrphzX9sizQFgzv1PB4AN83KJU2SXNSt7lNBEFTlvypJrlkpE7XnTw+/+emOmDvXg== 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)(46966006)(36840700001)(86362001)(336012)(508600001)(7696005)(70206006)(70586007)(2616005)(55016002)(47076005)(5660300002)(426003)(82310400003)(1076003)(6666004)(4744005)(2906002)(4326008)(8936002)(6916009)(186003)(83380400001)(356005)(36860700001)(107886003)(6286002)(316002)(36756003)(8676002)(16526019)(26005)(54906003)(7636003); DIR:OUT; SFP:1101; X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Nov 2021 10:08:31.5492 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a8775fba-97aa-46f8-36a0-08d99de8b974 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: BN8NAM11FT014.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB2926 Subject: [dpdk-dev] [PATCH v3 0/3] Mempool fixes for FreeBSD 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 Sender: "dev" mempool_autotest was failing on FreeBSD, because rte_virt2iova() is not implemented. After the test started using memzones, it appeared that in --no-huge memzones have iova=RTE_BAD_IOVA, which is unexpected and contradicts with selected IOVA-as-PA. Intead of working around this in the unit test, fix FreeBSD EAL to select IOVA-as-VA in --no-huge mode. v3: * Fix IOVA mode logging (Bruce). v2: * Add the EAL changes. * Fix a failure with --no-huge (Olivier). Dmitry Kozlyuk (3): eal/freebsd: fix IOVA mode selection app/test: fix mempool test on FreeBSD app/test: fix mempool test in no-huge mode app/test/test_mempool.c | 62 ++++++++++++++++++++++------------------- lib/eal/freebsd/eal.c | 37 ++++++++++++++++-------- 2 files changed, 58 insertions(+), 41 deletions(-) -- 2.25.1