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 BAE67A0547; Thu, 28 Oct 2021 15:59:29 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7A33E426D8; Thu, 28 Oct 2021 15:59:21 +0200 (CEST) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2088.outbound.protection.outlook.com [40.107.243.88]) by mails.dpdk.org (Postfix) with ESMTP id A65A04120A for ; Thu, 28 Oct 2021 15:59:18 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ilCHfJTidpaM0lvbEF7C5j9VXsY5sWonxqXguKB+paC9gF35iWh8GSJaRLHTmmd8RGw7HxeUMAHHw9JOadXfaiBVkYwRNrk4+QUbV6WEm80pLv9jYkCx36VNqMaP8VXrEblyv/jx2CBjuD/Ioq5/NGVrwsW6r/3vSNgQDz7UBKrTTVR0qPIFAGVv6Tm/pRHooLcfosuLNrn4sdaBQENxuRUD1o8ZuI3jPH7k4Zuh/kaRhEQksmZr1lZcdBbHYi/Ybm6nH2S8Bt+VmXjpwCCDylJ7sGdyL5QggCpqZ8ch73BtbvnhKqUHXdlH5XgYlafU+0Oo6ulFkDzo+NXelqHe+w== 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=PWzU8CnVs0Rcw0fqoWSESy4Z3xJ7EjZ7VVLZDQs5mD8=; b=RJf92eW6dn00e0d5Dd5H9jxi5JO+vhKQUQwTQM/2P5MmrMWNC2h4PTwcaAUDHDDicynKu0IOZu8NPZbwcBA1L7VyblerGXfUfFL0TIQelRH471yzi15Uw8nKiBpXc09GUlVIW5PLq6LNI+TyUOaj2YNRFBL+Q24JuX1NsfN5RJDQj8okBf5W3l56cvD1oZTJMM9523fpPiY2/c/640DUNZ0/ApD9MaXlyKXxJINX29dxXnEJv1a3RQDgbKwVn8O9GnkWph3pBe3Id6uY/mryIJAZexURlscUvDayPAYI1N9EnpjSKqHrLhFNcnhToUftA7fC24tgj0XpKZtscocIlg== 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=PWzU8CnVs0Rcw0fqoWSESy4Z3xJ7EjZ7VVLZDQs5mD8=; b=o95xuCyOltUZHB0hqYquQA9/wWt+EfDsAsrVo2vLMwMcvs06QV/vJc1jAs+nsoBW5w0vKu4Kj7pVlkSBZg1pnnmLMefRtMdyRQBNtGHp87TpfwZWCPM+9rc3rC1y83xCD757ZIW89vrkJXlIcV/7U1VgV9KLV1tpo57WUktQFPoT91cqSlZVx2hu2BH1GOom31thxmS8zv5JYRyprc9il/uyMMtxu0pD/STO2PlMLVlqaLJMK18MyrQGJl9ULoIGvdXlpVqDp0GcteMtng5/KB8B6HjavL1XuTJOBFOcOU9Av4mCK2EMmcpmA/sIGjzb47ogQlOl5U+HiZwdlJo5+g== Received: from DS7PR03CA0293.namprd03.prod.outlook.com (2603:10b6:5:3ad::28) by MN2PR12MB3423.namprd12.prod.outlook.com (2603:10b6:208:cb::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4628.18; Thu, 28 Oct 2021 13:59:17 +0000 Received: from DM6NAM11FT016.eop-nam11.prod.protection.outlook.com (2603:10b6:5:3ad:cafe::b2) by DS7PR03CA0293.outlook.office365.com (2603:10b6:5:3ad::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4649.15 via Frontend Transport; Thu, 28 Oct 2021 13:59:16 +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.4649.14 via Frontend Transport; Thu, 28 Oct 2021 13:59:16 +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; Thu, 28 Oct 2021 13:59:14 +0000 From: Raja Zidane To: CC: Matan Azrad Date: Thu, 28 Oct 2021 13:58:50 +0000 Message-ID: <20211028135850.6633-3-rzidane@nvidia.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211028135850.6633-1-rzidane@nvidia.com> References: <20211028135850.6633-1-rzidane@nvidia.com> MIME-Version: 1.0 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: e6ab129e-4c4b-43e2-61fa-08d99a1b2176 X-MS-TrafficTypeDiagnostic: MN2PR12MB3423: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:5516; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: dMNuhFUlYRGQ7tCHdyjTixwlWGojk2nHmJH2ONSE8tw3EI5M465vSTKGTxrAKecLvNlOADhbjMMqSnCtrvCmVbT+/1vLQ+D+R5cKgNlfTbvWA5E6K5o6UvNECBxH/Cmp01WhOQCJ9A0iDSskK0l0STm8/2lNuuWAm5nkLuywZ0YoWJSVr3veZ7rrGgCJsuvi96UCnePk5IQK+OKWp/w5YIlVqCPWxvVcZwHvRn3+o5YI0RYNdRwwTOuh+FBIpupZE3kKj2qEw0lMKKw9TpTeqFqDjNUo5kAMEeO9eQQ6rhibESubC3/cqU78eO986dU94ToeC0SvjNcvnlBnFbio8ikHEKniPO1ePmdhISNlJbBns75QOC2+136gAWGj6A/XmwSuON8IV1zu8h71HFZHizLmfjBGYKvuXjdUFREoKDzxguV/2OIJ0mueDykDKf4aaItOR4PlDeOa1mQWaBkOcSA9y660i5nAaTa8GtSE5Q+g4MW2JsA61o3Nu2136dDW2jumCOi8KezFxmgIhmOFwcvo/5FDDEoBeXPG6J6SS6S89rbjywtxaiL+4x7k2m51FCBlRQ5dp3oPNTud8kx44NsLl5m9sGSZQEPUWGzEXDZRIS4qhVgWWo4Yy80c51tdN403ShdzCvqyVAGRO2qm5LCoH6N+f+M5HXC1f+T12KhszhhHj8kXMBE/Xd3CwUkAlGkH4lYYXNRTE8ftUzH9ZQ== 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)(55016002)(4744005)(47076005)(36860700001)(82310400003)(16526019)(26005)(426003)(36756003)(107886003)(86362001)(70206006)(6916009)(8936002)(4326008)(186003)(508600001)(316002)(356005)(8676002)(6286002)(5660300002)(70586007)(6666004)(2906002)(7696005)(7636003)(1076003)(336012)(2616005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Oct 2021 13:59:16.4707 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e6ab129e-4c4b-43e2-61fa-08d99a1b2176 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: MN2PR12MB3423 Subject: [dpdk-dev] [PATCH 2/2] common/mlx5: fix MMO configuration in QP 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" The QP extension valid bit was not set in the QP creation for MMO configuration. That caused the QP not to be connected to the GGA MMO engines, and any MMO WQE job got CQE with an error. Set the QP ext bit when MMO is configured. Fixes: ddda0006188a ("common/mlx5: add MMO configuration for DevX queue pair") Signed-off-by: Raja Zidane --- drivers/common/mlx5/mlx5_devx_cmds.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/common/mlx5/mlx5_devx_cmds.c b/drivers/common/mlx5/mlx5_devx_cmds.c index fb7c8e986f..4f6a73510d 100644 --- a/drivers/common/mlx5/mlx5_devx_cmds.c +++ b/drivers/common/mlx5/mlx5_devx_cmds.c @@ -2055,6 +2055,8 @@ mlx5_devx_cmd_create_qp(void *ctx, in, qpc_extension_and_pas_list); void *qpc_ext = MLX5_ADDR_OF(qpc_extension_and_pas_list, qpc_ext_and_pas_list, qpc_data_extension); + + MLX5_SET(create_qp_in, in, qpc_ext, 1); MLX5_SET(qpc_extension, qpc_ext, mmo, 1); } MLX5_SET(qpc, qpc, pm_state, MLX5_QP_PM_MIGRATED); -- 2.17.1