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 01D58A034F for ; Wed, 10 Nov 2021 07:59:18 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E3E4341120; Wed, 10 Nov 2021 07:59:17 +0100 (CET) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2050.outbound.protection.outlook.com [40.107.94.50]) by mails.dpdk.org (Postfix) with ESMTP id BCE524111A for ; Wed, 10 Nov 2021 07:59:16 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Wr9lntH/duSqWZjl88RnGGFD2wM9UNFVrPVKmxVAj1JRfjPquAynir9r+zoYDyIDOQQr0xjt1rsst/786lD2Bsn3cN+XT8uobLIU5eSuEQ1FsqIvFxtlnstbF0/2vMnqkgQS2qug/kVVW6ADuxbPwOYg4Pe49Yama7vGevSADEy9doAbMCe8NMjnP37QnzRVt0sehycXeS3XMgIpKJ0frFLUFKIhdyxU7QTUjAWqrxhfx7xG4cTjRUHRHMVMpTAIPeQ0xHmw/yCeO84ZOTb3H9ng2myD4hjvlSun7fF6f5bPtKCUeZtyz+inCF4CvRccd9FG6Z9Yy23dB/mgniHlEg== 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=rE6fwUYgnojwFZGKuCUDmG6zSaS43qxGysJbpZLdOfk=; b=fwa59bsygJXRiNk8nd2rR1kbR6I9skASA4aXyPl2fdGaAlTWQM266LvLY6Q0MsfbJMRwe13p6nqgfka9LM5E2iyq1mEtNWT+/ElpH9aSSomjFKcSHeItiKpjxRRIhzRTKOLnGBAv6xD6Lh9l67gVA6CeOhq5rmI4qEEmVytELk2WPVn4oF7zrdgzrNIPohiNlugMjQ4GNxYUtgglPK4nDciRl2hVG+dqZbc4pyPTJPoIUCB7R1e/1VovuUDjZjJIKzmvwJoRoh1QAA12j27+K1dbLAA8r69uIRJEcyxwKPvoWR0KDK3kbovI6kMM2VZEDrC6RDLE2WcZ12/IWzDi8A== 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=rE6fwUYgnojwFZGKuCUDmG6zSaS43qxGysJbpZLdOfk=; b=FbWI3MekNBghrUpcTQTayn4cnYxFQt3R/oz3ShVYBe3rxIgXVeY22JnuILcRIaFO1UJyVjw+0qvxNRWvKzO7VAn7MFp/pcLCC59keRgpEgE+AecSdnnIZYFr+I3M2a+0myVXq02p2IWtOUCmESAszabFqhgM2UFSZqiGAkwyWW5/ozJXEKDQCfkbhmtMpR0nzRuRtWsgqJ29Q9FElQEgDepPEVrgGtBOF1gBIZg7zYNRtEvxWbCTIW0rENfZ5RIa0MUhxmvcA3luhVFnkWcRixK3ES6MruJS1CoUC1vTD7qISV04a9US4Zw1m8IF9/Dk5UtLMQ/wC4I5BRoZWyKnXA== Received: from BN6PR13CA0003.namprd13.prod.outlook.com (2603:10b6:404:10a::13) by MWHPR12MB1421.namprd12.prod.outlook.com (2603:10b6:300:12::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.11; Wed, 10 Nov 2021 06:59:12 +0000 Received: from BN8NAM11FT042.eop-nam11.prod.protection.outlook.com (2603:10b6:404:10a:cafe::f1) by BN6PR13CA0003.outlook.office365.com (2603:10b6:404:10a::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4690.8 via Frontend Transport; Wed, 10 Nov 2021 06:59:12 +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 BN8NAM11FT042.mail.protection.outlook.com (10.13.177.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4690.15 via Frontend Transport; Wed, 10 Nov 2021 06:59:11 +0000 Received: from nvidia.com (172.20.187.6) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Wed, 10 Nov 2021 06:59:08 +0000 From: Xueming Li To: Michael Baum CC: Luca Boccassi , Viacheslav Ovsiienko , Matan Azrad , dpdk stable Date: Wed, 10 Nov 2021 14:32:07 +0800 Message-ID: <20211110063216.2744012-244-xuemingl@nvidia.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211110063216.2744012-1-xuemingl@nvidia.com> References: <20211110063216.2744012-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.187.6] 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: c730830b-f3c2-4c64-38ae-08d9a41799c9 X-MS-TrafficTypeDiagnostic: MWHPR12MB1421: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:10000; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: KSuUHAPZ31k5iEfKVxb9WAO0MDJuFtX/WJcBmGb/C3AIsaAJbQ0Jl12r4/ocnSS9wg/WWOY1O/tfK4Gm3LmwCZK/8PHUVVvXJkpVTkvtOCR15+et9/wU/32ZqASdaLOK5FYxoQc9BvAj+aeTyVLRQ6BIj/fVgJa/jHk+jCsf6OA8WTOsIijLNcPungRl5x3KTIcskndiGGPwGG3oZuJSlSFukKodpFTCDuI1sDqAdhQHwyQjMb7ca4onJ2yN1vvc7tjWxMqfdFf04bSHNAwWWUel8wHOALG6N3F1MAb4g1RSr0w4mcYb8DfJfsQSqflcZcGyceSDwAzIYPJWxCXhwmcnDIDsmLwdGXzgh/gKj9YiK5fe8XXj7fD1rY1xaIgtfs6SdP/BoKiCY4VKv5OS0y7txjHBjqcRW7OU8daH0PMe8WVe8DiKPOZXr6BgaNK2ecIrN5mNVTyTG9wNCYHJA3uFCijtWwvg+ETd1ah600I7QjWwOwIP58W8RWY9UkawI85GSM6iq173PuHgF8QhqvlK3wAoEi8+Z1PHoVkjD8Sooom3tRVg1sSwY4tFJ9eIBoZY/yVq4Yt/B5OV7tP7wNzkBA87/p6L7vSRtrlZIAYK4E3d7gY6FoHp/abzpKQFGrvvPRuA5/mflqHhsuBZr2sHuKK/iw0+RAwrQlpDq4tEbQHlHSgvVmBxSKhWbonW0/kGiLPaElkQN/xQNHF5v1NhrjNjv57HpyH106d2WRvqcq1r6D2W5kqYSJ/x2zvEAqd4BXSQCBB6QzIPaD79T3h2G9OC8bMSayBLb8JhipGB7No/C1kyqIzrATqRDDQ0YCnzzqyIHhhSmxQECcPWHA== 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)(8676002)(508600001)(47076005)(53546011)(16526019)(54906003)(966005)(8936002)(4326008)(70586007)(2616005)(7696005)(6636002)(26005)(1076003)(15650500001)(36860700001)(82310400003)(356005)(86362001)(37006003)(36756003)(6286002)(316002)(83380400001)(336012)(5660300002)(186003)(36906005)(426003)(6862004)(2906002)(7636003)(4001150100001)(55016002)(70206006); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Nov 2021 06:59:11.9341 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c730830b-f3c2-4c64-38ae-08d9a41799c9 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: BN8NAM11FT042.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR12MB1421 Subject: [dpdk-stable] patch 'common/mlx5: fix UAR allocation diagnostics messages' has been queued to stable release 20.11.4 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.4 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 11/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/b6d5c0004bb530eb2ae3ee0a79520045a82ef2c5 Thanks. Xueming Li --- >From b6d5c0004bb530eb2ae3ee0a79520045a82ef2c5 Mon Sep 17 00:00:00 2001 From: Michael Baum Date: Wed, 3 Nov 2021 20:35:10 +0200 Subject: [PATCH] common/mlx5: fix UAR allocation diagnostics messages Cc: Xueming Li [ upstream commit 3f0e54fe00de7aec060afd50bfb288a8a43d0689 ] 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") 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 0db9882c43..c348caaedf 100644 --- a/drivers/common/mlx5/mlx5_common.c +++ b/drivers/common/mlx5/mlx5_common.c @@ -289,7 +289,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); } @@ -307,7 +307,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.33.0 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2021-11-10 14:17:12.584538701 +0800 +++ 0243-common-mlx5-fix-UAR-allocation-diagnostics-messages.patch 2021-11-10 14:17:02.084077679 +0800 @@ -1 +1 @@ -From 3f0e54fe00de7aec060afd50bfb288a8a43d0689 Mon Sep 17 00:00:00 2001 +From b6d5c0004bb530eb2ae3ee0a79520045a82ef2c5 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 3f0e54fe00de7aec060afd50bfb288a8a43d0689 ] @@ -16 +18,0 @@ -Cc: stable@dpdk.org @@ -26 +28 @@ -index e8603c7ea9..e3497c40eb 100644 +index 0db9882c43..c348caaedf 100644 @@ -29 +31 @@ -@@ -977,7 +977,7 @@ mlx5_devx_alloc_uar(void *ctx, int mapping) +@@ -289,7 +289,7 @@ mlx5_devx_alloc_uar(void *ctx, int mapping) @@ -38 +40 @@ -@@ -995,7 +995,7 @@ mlx5_devx_alloc_uar(void *ctx, int mapping) +@@ -307,7 +307,7 @@ mlx5_devx_alloc_uar(void *ctx, int mapping)