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 C61D542E38 for ; Mon, 10 Jul 2023 09:37:13 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 45175410F1; Mon, 10 Jul 2023 09:37:13 +0200 (CEST) Received: from agw.arknetworks.am (agw.arknetworks.am [79.141.165.80]) by mails.dpdk.org (Postfix) with ESMTP id 85B2E410EF for ; Mon, 10 Jul 2023 09:37:11 +0200 (CEST) Received: from [192.168.2.179] (unknown [141.136.91.242]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by agw.arknetworks.am (Postfix) with ESMTPSA id 27B55E1235 for ; Mon, 10 Jul 2023 11:37:11 +0400 (+04) Message-ID: Date: Mon, 10 Jul 2023 11:36:42 +0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Content-Language: en-US From: Artemii Morozov Subject: mlx5_crypto: failed to switch to crypto operational mode To: users@dpdk.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Hi, I have ConnectX-6 (MCX653106A-HDAT) NIC and try to use DPDK mlx5_crypto driver for crypto offload. I've followed the instructions provided in the documentation (https://doc.dpdk.org/guides/cryptodevs/mlx5.html), but unfortunately, I've encountered some problems along the way. The main issue I am experiencing is the inability to switch the NIC to crypto operational mode. I am facing a failure in the first step: ``` mlxreg -d /dev/mst/mt4123_pciconf0 --reg_name CRYPTO_OPERATIONAL --get Sending access register... -E- Failed to send access register: ME_ICMD_OPERATIONAL_ERROR ``` I use: - MLX_OFED 5.8-2.0.3.0 - fw 20.35.2000 - I set the CRYPTO_POLICY configuration value to 2 (it also does not work with 1 value) lsmod | grep mlx output: ``` mlx5_ib               450560  0 mlx5_core            2039808  1 mlx5_ib mlxdevm               176128  1 mlx5_core ib_uverbs             143360  2 rdma_ucm,mlx5_ib psample                20480  1 mlx5_core mlxfw                  32768  1 mlx5_core tls                   114688  1 mlx5_core pci_hyperv_intf        16384  1 mlx5_core ib_core               434176  8 rdma_cm,ib_ipoib,iw_cm,ib_umad,rdma_ucm,ib_uverbs,mlx5_ib,ib_cm mlx_compat             69632  11 rdma_cm,ib_ipoib,mlxdevm,iw_cm,ib_umad,ib_core,rdma_ucm,ib_uverbs,mlx5_ib,ib_cm,mlx5_core ``` Could you please advise me how to solve the problem and what steps to take to successfully use this driver? Thank you.