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 70748A0C47; Wed, 3 Nov 2021 19:36:01 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C3DEC4113B; Wed, 3 Nov 2021 19:35:45 +0100 (CET) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2049.outbound.protection.outlook.com [40.107.237.49]) by mails.dpdk.org (Postfix) with ESMTP id 5C6154112E; Wed, 3 Nov 2021 19:35:44 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kJlzPLkkAp7GgD37DmLQbRkML8Kc11Fj0SlAX1CozVKnHSTe+8AqblpqbEk3SHm3Xqqn39+wQnSWFoSfWUZeRcJOGpFSFcRtL4qx0OCL1PEhCQawP5nedGoQanGlYag9rsBuN54/CrsRLDz5G+N556LFjsRMMQtWlWE/SsqCh8chEr3yK0rYhW+LlW+F/K1Dlcjjw9Ng2vuHziWGEFEiceEqDeI6/CmNM6WKKpu4ZvkO3TZE7GPNoATzf6HkWQ4GiLQEufmRtiLVzvGXrhCx/uPn4yggsick30CGcI9Sld0FFT67E1pwwKIzFOICn5eaRmyGMRNbT/gw0HqbHV8RQw== 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=8bDxz1EvATIWNARBvDW9pYdip1OeYAJSkLPa2DZZwZY=; b=YVoDHzko8GP2yR5PmAZW+WeXKvsO2OChT5S7dtqPQLRu6+IBd7rppfj81c5D5oGZkb4FfEMqcb7NiP8F8ypIANRxx7Z/zoZJMloI6NvKERHCmYkf9c6qux5EXIdLp2ex9L9zS24i7W5+MF/VE2u2AXjAopdKcr0wA0YTR/caIvzVIRTbCvvVvy9evt2rwp+f4FpArcyXCbMwpc7DglewV5HMNFWmKIjb5NaqgK4DPLDPj6LCeEMJBb9qqZFhrYDf2Z9FP2Dm4WTzfW20FjHCbwd4xIHfb3O08EiYBh3riLOKF77FlVOZzBGCNTv1G/cftiX2k/L/Gzwb4NyT8JE6Pg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=dpdk.org 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=8bDxz1EvATIWNARBvDW9pYdip1OeYAJSkLPa2DZZwZY=; b=XuJpM11iuFl21Ekkxp+oGLYwUGKYFfCwaR9LcW9NhRD+5Yc87Fdl9X14+5WerK5S2UMNHxnYnzbuXJbHS6Rz3JLvsP5tSla/HV18T+AFdZwivafl4hTwD6qmdmvd0oqDm/cM2iu0JN7FUXfOVyJEQJr9vnkoxz9Zb1sk6CIP37XX+UlYRSB1Ku6+QEp8n2YMR0w1qHqIS7Abfu2Ajk6O0ZoHqDe6rDFrRQ+SfNbtI78RJgxuFggYtU28ytUCcdTj4O8gf5vgARrpw42OTuKmfMr+npn3+dRcuO2LTOamAKY5KdKAs1CA4TBu894RbvaQieyU5ksnFD8oFakm72GLBA== Received: from DM6PR13CA0041.namprd13.prod.outlook.com (2603:10b6:5:134::18) by SJ0PR12MB5423.namprd12.prod.outlook.com (2603:10b6:a03:301::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4649.14; Wed, 3 Nov 2021 18:35:42 +0000 Received: from DM6NAM11FT016.eop-nam11.prod.protection.outlook.com (2603:10b6:5:134:cafe::cd) by DM6PR13CA0041.outlook.office365.com (2603:10b6:5:134::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.5 via Frontend Transport; Wed, 3 Nov 2021 18:35:42 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; 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 DM6NAM11FT016.mail.protection.outlook.com (10.13.173.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4669.10 via Frontend Transport; Wed, 3 Nov 2021 18:35:42 +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; Wed, 3 Nov 2021 18:35:40 +0000 From: To: CC: Matan Azrad , Thomas Monjalon , Michael Baum , , "Viacheslav Ovsiienko" Date: Wed, 3 Nov 2021 20:35:10 +0200 Message-ID: <20211103183513.104503-4-michaelba@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211103183513.104503-1-michaelba@nvidia.com> References: <20211103183513.104503-1-michaelba@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.187.5] X-ClientProxiedBy: HQMAIL101.nvidia.com (172.20.187.10) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: dd14dc95-8bef-452f-c13c-08d99ef8bde8 X-MS-TrafficTypeDiagnostic: SJ0PR12MB5423: X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4303; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 13zu657PQcwDKFBWMtd4lkLD+j5lSQG7bY2M8tUfoK+Kq/hbT2faVYsBmg92EiKRawXRzM+7tmqGjEyJxFW32L0uNhqbduV/jDRBbfw4Ktv6XOBb5+/El+LGk5Nw8IFTrK+Gl4jwQJzXCFhw5hAknclVKPXbcL8z80hQEiy5CIFlTaGec/3fxJPhjDKqNRbSlMw4WGdBjJtRdezY7Zm6GKQ2IPtIYPlp4DUdw3K67/hPKIHxiLIQ+hrivE8PlwQrEZpMbbYlgHd+Kpbk4NiHCosx1QLpsO0ctlppTw6K9ng6mX4tzAhYbRSm3OocmwlRSvDYRXlEEZwgco1ovERke7FsTa/M+2YJjK4LmbpxLv6Y6mGLTqL44MAjwOxncGOqWxae93EVcpJUniNoZzU5USO36PIjC29O6ab3ZP4q7y2FzK8K4Vs5dyUgA0O/ziU1zDkH8sIpJ1GLrEJx3pRAo6GKaQi21WQaLTjJq7++i3iCehez+q+TzmIo0v6Y2TqT6c9IOvVh0ChiKWYmQWRbXT49ZveK6oITfdfDXV2WVS3gc+N5VUjWsF7LQ9xWbCAhrWnx90eVu/RmGxpdZZ6c+Oop5xPclovK8sRIoBvUnacVbUA873ZUe0vgb6hbEBL1r+S/CCopCZD+XePqvNF8O1QrdR9pz2q6gCDGL5I/9R/LUVzuDsBUZ/D2Y0aH/L0ipX0fCJuk1h0nd6qax/p6fw== 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)(36840700001)(46966006)(83380400001)(26005)(508600001)(70206006)(70586007)(82310400003)(2616005)(7636003)(2876002)(1076003)(2906002)(316002)(36906005)(8936002)(186003)(36756003)(426003)(86362001)(336012)(16526019)(4326008)(8676002)(6916009)(6286002)(5660300002)(55016002)(54906003)(7696005)(15650500001)(107886003)(356005)(6666004)(47076005)(36860700001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Nov 2021 18:35:42.3402 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: dd14dc95-8bef-452f-c13c-08d99ef8bde8 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: DM6NAM11FT016.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR12MB5423 Subject: [dpdk-dev] [PATCH 3/6] common/mlx5: fix UAR allocation diagnostics messages 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" From: Michael Baum Depending on kernel capabilities and rdma-core version the mapping of UAR (User Access Region) of desired memory caching type (non-cached or write combining) might fail. The PMD implements the flexible strategy of UAR mapping, alternating the type of caching to succeed. During this process the failure diagnostics messages are emitted. These messages are merely diagnostics ones and the logging level should be adjusted to DEBUG. Fixes: 9cc0e99c81ab0 ("common/mlx5: share UAR allocation routine") Cc: stable@dpdk.org Signed-off-by: Michael Baum Reviewed-by: Viacheslav Ovsiienko Acked-by: Matan Azrad --- drivers/common/mlx5/mlx5_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/common/mlx5/mlx5_common.c b/drivers/common/mlx5/mlx5_common.c index a0076510ac..7f92e3b2cc 100644 --- a/drivers/common/mlx5/mlx5_common.c +++ b/drivers/common/mlx5/mlx5_common.c @@ -983,7 +983,7 @@ mlx5_devx_alloc_uar(void *ctx, int mapping) * If Verbs/kernel does not support "Non-Cached" * try the "Write-Combining". */ - DRV_LOG(WARNING, "Failed to allocate DevX UAR (NC)"); + DRV_LOG(DEBUG, "Failed to allocate DevX UAR (NC)"); uar_mapping = MLX5DV_UAR_ALLOC_TYPE_BF; uar = mlx5_glue->devx_alloc_uar(ctx, uar_mapping); } @@ -1001,7 +1001,7 @@ mlx5_devx_alloc_uar(void *ctx, int mapping) * IB device context, on context closure all UARs * will be freed, should be no memory/object leakage. */ - DRV_LOG(WARNING, "Retrying to allocate DevX UAR"); + DRV_LOG(DEBUG, "Retrying to allocate DevX UAR"); uar = NULL; } /* Check whether we finally succeeded with valid UAR allocation. */ -- 2.25.1