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 60832A0C52; Mon, 1 Nov 2021 08:37:22 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D717240E28; Mon, 1 Nov 2021 08:37:21 +0100 (CET) Received: from AZHDRRW-EX01.nvidia.com (azhdrrw-ex01.nvidia.com [20.51.104.162]) by mails.dpdk.org (Postfix) with ESMTP id E27F240DF6 for ; Mon, 1 Nov 2021 08:37:19 +0100 (CET) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.168) by mxs.oss.nvidia.com (10.13.234.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.858.15; Mon, 1 Nov 2021 00:37:18 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HFcUUoWuEjCn/6OMXYmGqtT6KPKb2ZUUf6i+uqLnXdFoBv6mq/kX8jGeWDsKlvLIzuJgLDkgdqwZQi8HAqgS27eEAggJI/S7tW7mUzl3876FxNIMZFyfpIfXH6YqO4fy/14c5s6ikuBMCgUHESYUCFVhWtg5j5c+fnnM+tMSp1GW2BhxfXi4L5OIr3bhlghZHSepHivOI32aZ2DCIMuo39ErE+0TiHlAH0JACcdZfbQGkaGpw++hU+VnX/iKTo0+BuI+wxTwkLb0OAhPvsJOL9VB8V8wghVJpY9kPqAXmdrXudomI3cG8QahVrFkYBcjnNYVguD0NRNzmISalp8v5w== 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=pDn9IOCemiY05URgPxMEOGC8SdZ0LIvTrV4rcdsFpD4=; b=ag0O2QlBkcwoSPa0CTUSAoUX7BhHWDdrz/nNJLa6xiFaRLRV/YxbuHkVT6Z9jZHtYlg1/vtxEUb6IgCRgmQGKVSQ94PSp5KIPNm6qmO0hAWMO8GJ0bmLnSB1me+dEhlSLmPI/2PGm2x4B0hL0GZZBx1K+v1tVtNrjpQpbQImfGxlkj7JdHv5Oa6APO49y6b/aHyp7pYuyvuTCLlyUIIqaR1G6kmDUWBcdinl7lb5JwQmewh3J7WJiTczIDtXolGAw3qIirBxZ3gk/zhmp5fH9mscd7QxkFbduD8SDQvuAI3ZNH8YS1Ykz6m723xDUGJWz+ZsMSVPDiM3xkLfWx5YKw== 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=pDn9IOCemiY05URgPxMEOGC8SdZ0LIvTrV4rcdsFpD4=; b=pmrGFyfy60Nre7Tkrc54QCucQkZnCn7C/MgafohYg1uJgzsmD4jI5lkjNbVpEzcQyN9Sg7CFzWnhJL12qjQAJpb/ZGTnYqu+N3IUt2sDKqmGSY4lWIcM226oE3WgqDEAAmqwEvgnnwn1ePIlPasGuuJ7l5feBBeAimPPtMNqMcuEAl8szoV1zS+1DRUw6Rd8sKFBYsWS5BYPJCioe9xSce5yFF+IdKqLXMKgus2jH9MMh1IH0LNvQS3UrMpM/XzgmCK5wbTBGAOkEDNs8xDJaNThayb8bzyyqwhCrkAE/kCGaa2cZ9i8sUJdygjyX30p1mRP0qlbWYHQNY8WVssePQ== Received: from MWHPR01CA0044.prod.exchangelabs.com (2603:10b6:300:101::30) by MWHPR12MB1181.namprd12.prod.outlook.com (2603:10b6:300:e::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4649.19; Mon, 1 Nov 2021 07:37:17 +0000 Received: from CO1NAM11FT008.eop-nam11.prod.protection.outlook.com (2603:10b6:300:101:cafe::51) by MWHPR01CA0044.outlook.office365.com (2603:10b6:300:101::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4649.14 via Frontend Transport; Mon, 1 Nov 2021 07:37:17 +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 CO1NAM11FT008.mail.protection.outlook.com (10.13.175.191) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4649.14 via Frontend Transport; Mon, 1 Nov 2021 07:37:17 +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; Mon, 1 Nov 2021 07:37:15 +0000 From: Dmitry Kozlyuk To: CC: Anatoly Burakov , Olivier Matz , Yu Jiang Date: Mon, 1 Nov 2021 09:36:58 +0200 Message-ID: <20211101073701.825389-1-dkozlyuk@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211029084051.679233-1-dkozlyuk@nvidia.com> References: <20211029084051.679233-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: HQMAIL105.nvidia.com (172.20.187.12) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6b7d78ae-bbdf-456b-dd5b-08d99d0a6e38 X-MS-TrafficTypeDiagnostic: MWHPR12MB1181: 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: ST0HS0sNEpvvDGC+0NOjp7wzJPH5BubCr25FgLTRL1VwCvgPSL9o9eh6dwUE2kReQQ2j1gCfk5NGO/P0mEMOsnpOHmUPk434ng883031CbGDZ2yzVZ2l0kPkzgEAw5Y5zJjb8GPSgMPnglwT2z2nCOH5NGTd7mSlVqNEqxlzREqEug7fqrV3HiBWef7X1cy61PN9u/DOY9VnCKpLL+Fz+PveS6JhrsZ8B9ls93Zcv8m0DvqvCMkYKXIFjBchWb4W4JwxpLdMCOEFK2rXeV80oKWcMSyUkxQjHyGU2DQy6iTHiRU+YzNkbhQIwtfeouTlwk8LKUt2Ulvig+lTQVL0U2sc78Pm56G93BpzXw/XhzRBjsPDdZEq64TTdI8ag5zKwzS+H2dTIR7ZoydeS+BfdgQVGniykjuS4IFWS8I+HV6422aeC+u5iJQ6kTnRP30FNY90kimVuW2zDAl8TmQP0VFFcFbUJEu7QZF2uUoW6uKILG8XYUG/fnxJ8Yrnquwhs0B5CVUkqjxU/oZ9P7YtGuxZZmb8TI73LxAawF2w2jiQ9Q2yOOqqwsZC8jcKp72RkjqPr+CaHoNopLq8hgDf6rKinVqBuV8MrI1o7LnVqwYFMTK2Df2uJ3rrfqUSiJ1pVnlgwp4f5HkcXHJSlNJvGR3vGIDbfxuBOMNA6ZIOQuyccaqSewK2tP2imWLFTXV+dKV2g4nenNsMcr/SeH3jUA== 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)(7696005)(316002)(107886003)(36906005)(2906002)(70586007)(82310400003)(1076003)(4744005)(7636003)(54906003)(6916009)(47076005)(86362001)(356005)(6286002)(70206006)(55016002)(508600001)(336012)(4326008)(36860700001)(6666004)(8676002)(36756003)(5660300002)(426003)(8936002)(16526019)(83380400001)(186003)(2616005)(26005); DIR:OUT; SFP:1101; X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Nov 2021 07:37:17.2990 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6b7d78ae-bbdf-456b-dd5b-08d99d0a6e38 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: CO1NAM11FT008.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR12MB1181 Subject: [dpdk-dev] [PATCH v2 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. 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