Spdk_mlx5_crypto_devs_get: *WARNING*: dev mlx5_0 uses wrapped import method (0x1) which is not supported by mlx5 accel module

mlx5 crypto device is only support plain text mode now.
How can I change wrapped mode to plain mode?

root@localhost:~# spdk_tgt --wait-for-rpc
SPDK_XLIO_PATH is not defined. XLIO socket implementation is disabled.
[2023-06-09 06:55:54.367452] Starting SPDK v23.01 / DPDK 22.11.1 initialization…
[2023-06-09 06:55:54.367826] [ DPDK EAL parameters: spdk_tgt --no-shconf -c 0x1 --huge-unlink --log-level=lib.eal:6 --log-level=lib.cryptodev:5 --log-level=user1:6 --base-virtaddr=0x200000000000 --match-allocations --file-prefix=spdk_pid12451 ]
EAL: Requested device 0000:03:00.0 cannot be used
auxiliary bus: Requested device mlx5_core.sf.1 cannot be used
EAL: Bus (auxiliary) probe failed.
TELEMETRY: No legacy callbacks, legacy socket not created
[2023-06-09 06:55:54.470552] app.c: 712:spdk_app_start: NOTICE: Total cores available: 1
[2023-06-09 06:55:54.632423] reactor.c: 926:reactor_run: NOTICE: Reactor started on core 0
[2023-06-09 06:57:01.538062] accel_rpc.c: 169:rpc_accel_assign_opc: NOTICE: Operation encrypt will be assigned to module dpdk_cryptodev
[2023-06-09 06:57:02.062057] accel_rpc.c: 169:rpc_accel_assign_opc: NOTICE: Operation decrypt will be assigned to module dpdk_cryptodev
[2023-06-09 06:57:28.152013] accel_sw.c: 681:sw_accel_module_init: NOTICE: Accel framework software module initialized.
[2023-06-09 06:57:28.183577] mlx5_crypto.c: 99:spdk_mlx5_crypto_devs_get: WARNING: dev mlx5_0 uses wrapped import method (0x1) which is not supported by mlx5 accel module
[2023-06-09 06:57:28.183677] mlx5_crypto.c: 104:spdk_mlx5_crypto_devs_get: NOTICE: Crypto dev mlx5_0
[2023-06-09 06:57:28.184235] accel_mlx5.c:1209:accel_mlx5_crypto_ctx_mempool_create: NOTICE: Total pool size 2048, cache size 1536
[2023-06-09 06:57:29.682703] accel_mlx5.c:1295:accel_mlx5_init: NOTICE: Accel framework mlx5 initialized, found 1 devices.
[2023-06-09 06:57:29.682867] accel.c:2225:spdk_accel_initialize: ERROR: Invalid module name of dpdk_cryptodev
[2023-06-09 06:57:29.682911] subsystem.c: 143:spdk_subsystem_init_next: ERROR: Init subsystem accel failed

root@localhost:~# lspci -s 03:00.0 -vv
03:00.0 Ethernet controller: Mellanox Technologies MT42822 BlueField-2 integrated ConnectX-6 Dx network controller (rev 01)
Subsystem: Mellanox Technologies MT42822 BlueField-2 integrated ConnectX-6 Dx network controller
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- SERR- <PERR- INTx-
Latency: 0
Interrupt: pin B routed to IRQ 74
Region 0: Memory at e200000000 (64-bit, prefetchable) [size=32M]
Region 2: Memory at e202000000 (64-bit, prefetchable) [size=8M]
Expansion ROM at e000000000 [disabled] [size=1M]
Capabilities: [60] Express (v2) Endpoint, MSI 00
DevCap: MaxPayload 512 bytes, PhantFunc 0, Latency L0s unlimited, L1 unlimited
ExtTag+ AttnBtn- AttnInd- PwrInd- RBE+ FLReset+ SlotPowerLimit 0.000W
DevCtl: CorrErr- NonFatalErr- FatalErr- UnsupReq-
RlxdOrd+ ExtTag+ PhantFunc- AuxPwr- NoSnoop+ FLReset-
MaxPayload 128 bytes, MaxReadReq 512 bytes
DevSta: CorrErr- NonFatalErr- FatalErr- UnsupReq- AuxPwr- TransPend-
LnkCap: Port #0, Speed 16GT/s, Width x16, ASPM not supported
ClockPM- Surprise- LLActRep- BwNot- ASPMOptComp+
LnkCtl: ASPM Disabled; RCB 64 bytes, Disabled- CommClk-
ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
LnkSta: Speed 16GT/s (ok), Width x16 (ok)
TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
DevCap2: Completion Timeout: Range ABC, TimeoutDis+ NROPrPrP- LTR-
10BitTagComp+ 10BitTagReq- OBFF Not Supported, ExtFmt- EETLPPrefix-
EmergencyPowerReduction Not Supported, EmergencyPowerReductionInit-
FRS- TPHComp- ExtTPHComp-
AtomicOpsCap: 32bit- 64bit- 128bitCAS-
DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis- LTR- OBFF Disabled,
AtomicOpsCtl: ReqEn-
LnkCap2: Supported Link Speeds: 2.5-16GT/s, Crosslink- Retimer+ 2Retimers+ DRS-
LnkCtl2: Target Link Speed: 16GT/s, EnterCompliance- SpeedDis-
Transmit Margin: Normal Operating Range, EnterModifiedCompliance- ComplianceSOS-
Compliance De-emphasis: -6dB
LnkSta2: Current De-emphasis Level: -6dB, EqualizationComplete+ EqualizationPhase1+
EqualizationPhase2+ EqualizationPhase3+ LinkEqualizationRequest-
Retimer- 2Retimers- CrosslinkRes: unsupported
Capabilities: [48] Vital Product Data
Product Name: BlueField-2 E-Series DPU, 200GbE/HDR single-port QSFP56, Secure Boot Enabled, Crypto Enabled, 16GB on-board DDR, 1GbE OOB management, HHHL
Read-only fields:
[PN] Part number: MBF2M345A-HECOT
[EC] Engineering changes: A6
[V2] Vendor specific: MBF2M345A-HECOT
[SN] Serial number: MT2206X03614
[V3] Vendor specific: 704a98ffd089ec1180001070fd2a949c
[VA] Vendor specific: MLX:MN=MLNX:CSKU=V2:UUID=V3:PCI=V0:MODL=BF2M345A
[V0] Vendor specific: PCIeGen4 x16
[VU] Vendor specific: MT2206X03614ECMLNXS0D0F0
[RV] Reserved: checksum good, 1 byte(s) reserved
End
Capabilities: [9c] MSI-X: Enable+ Count=64 Masked-
Vector table: BAR=0 offset=00002000
PBA: BAR=0 offset=00003000
Capabilities: [c0] Vendor Specific Information: Len=18 <?> Capabilities: [40] Power Management version 3 Flags: PMEClk- DSI- D1- D2- AuxCurrent=375mA PME(D0-,D1-,D2-,D3hot-,D3cold+) Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME- Capabilities: [100 v1] Advanced Error Reporting UESta: DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol- UEMsk: DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol- UESvrt: DLP+ SDES- TLP- FCP+ CmpltTO- CmpltAbrt- UnxCmplt- RxOF+ MalfTLP+ ECRC- UnsupReq- ACSViol- CESta: RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr- CEMsk: RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr+ AERCap: First Error Pointer: 08, ECRCGenCap+ ECRCGenEn- ECRCChkCap+ ECRCChkEn- MultHdrRecCap- MultHdrRecEn- TLPPfxPres- HdrLogCap- HeaderLog: 00000000 00000000 00000000 00000000 Capabilities: [150 v1] Alternative Routing-ID Interpretation (ARI) ARICap: MFVC- ACS-, Next Function: 1 ARICtl: MFVC- ACS-, Function Group: 0 Capabilities: [1c0 v1] Secondary PCI Express LnkCtl3: LnkEquIntrruptEn- PerformEqu- LaneErrStat: 0 Capabilities: [320 v1] Lane Margining at the Receiver <?>
Capabilities: [370 v1] Physical Layer 16.0 GT/s <?> Capabilities: [420 v1] Data Link Feature <?>
Kernel driver in use: mlx5_core
Kernel modules: mlx5_core

root@localhost:~# flint -d /dev/mst/mt41686_pciconf0 q
Image type: FS4
FW Version: 24.37.1300
FW Release Date: 11.5.2023
Product Version: 24.37.1300
Rom Info: type=UEFI Virtio net version=21.4.10 cpu=AMD64,AARCH64
type=UEFI Virtio blk version=22.4.10 cpu=AMD64,AARCH64
type=UEFI version=14.30.13 cpu=AMD64,AARCH64
type=PXE version=3.7.102 cpu=AMD64
Description: UID GuidsNumber
Base GUID: 1070fd03002a949c 8
Base MAC: 1070fd2a949c 8
Image VSD: N/A
Device VSD: N/A
PSID: MT_0000000716
Security Attributes: secure-fw

root@localhost:~# sudo flint -d /dev/mst/mt41686_pciconf0 v

FS4 failsafe image

 /0x00000018-0x0000001f (0x000008)/ (HW_POINTERS) - OK
 /0x00000020-0x00000027 (0x000008)/ (HW_POINTERS) - OK
 /0x00000028-0x0000002f (0x000008)/ (HW_POINTERS) - OK
 /0x00000030-0x00000037 (0x000008)/ (HW_POINTERS) - OK
 /0x00000038-0x0000003f (0x000008)/ (HW_POINTERS) - OK
 /0x00000040-0x00000047 (0x000008)/ (HW_POINTERS) - OK
 /0x00000048-0x0000004f (0x000008)/ (HW_POINTERS) - OK
 /0x00000050-0x00000057 (0x000008)/ (HW_POINTERS) - OK
 /0x00000058-0x0000005f (0x000008)/ (HW_POINTERS) - OK
 /0x00000060-0x00000067 (0x000008)/ (HW_POINTERS) - OK
 /0x00000068-0x0000006f (0x000008)/ (HW_POINTERS) - OK
 /0x00000070-0x00000077 (0x000008)/ (HW_POINTERS) - OK
 /0x00000078-0x0000007f (0x000008)/ (HW_POINTERS) - OK
 /0x00000080-0x00000087 (0x000008)/ (HW_POINTERS) - OK
 /0x00000088-0x0000008f (0x000008)/ (HW_POINTERS) - OK
 /0x00000090-0x00000097 (0x000008)/ (HW_POINTERS) - OK
 /0x00000500-0x0000053f (0x000040)/ (TOOLS_AREA) - OK
 /0x00001000-0x00004937 (0x003938)/ (BOOT2) - OK
 /0x00005000-0x0000501f (0x000020)/ (ITOC_HEADER) - OK
 /0x00007000-0x000266db (0x01f6dc)/ (IRON_PREP_CODE) - OK
 /0x00026700-0x000267ff (0x000100)/ (RESET_INFO) - OK
 /0x00026c80-0x00560d9f (0x53a120)/ (MAIN_CODE) - OK
 /0x00560e00-0x00577913 (0x016b14)/ (PCIE_LINK_CODE) - OK
 /0x00577980-0x0057848f (0x000b10)/ (POST_IRON_BOOT_CODE) - OK
 /0x00578500-0x005b2bff (0x03a700)/ (PCI_CODE) - OK
 /0x005b2c00-0x005b524b (0x00264c)/ (UPGRADE_CODE) - OK
 /0x005b5280-0x005d977f (0x024500)/ (ACE_CODE) - OK
 /0x005d9780-0x005f220f (0x018a90)/ (PHY_UC_CODE) - OK
 /0x005f2280-0x006054df (0x013260)/ (PCIE_PHY_UC_CODE) - OK
 /0x00605500-0x00607ab3 (0x0025b4)/ (CCIR_INFRA_CODE) - OK
 /0x00607b00-0x0060a117 (0x002618)/ (CCIR_ALGO_CODE) - OK
 /0x0060a180-0x0060a57f (0x000400)/ (IMAGE_INFO) - OK
 /0x0060a580-0x0060b07f (0x000b00)/ (FW_MAIN_CFG) - OK
 /0x0060b080-0x0060b57f (0x000500)/ (FW_BOOT_CFG) - OK
 /0x0060b580-0x0060c77f (0x001200)/ (HW_MAIN_CFG) - OK
 /0x0060c780-0x0060cd7f (0x000600)/ (HW_BOOT_CFG) - OK
 /0x0060cd80-0x0060d27f (0x000500)/ (PHY_UC_CONSTS) - OK
 /0x0060d280-0x0060d3bf (0x000140)/ (IMAGE_SIGNATURE_256) - CRC IGNORED
 /0x0060d400-0x0060dcff (0x000900)/ (PUBLIC_KEYS_2048) - OK
 /0x0060dd00-0x0060dd8f (0x000090)/ (FORBIDDEN_VERSIONS) - OK
 /0x0060de00-0x0060e03f (0x000240)/ (IMAGE_SIGNATURE_512) - CRC IGNORED
 /0x0060e080-0x0060f17f (0x001100)/ (PUBLIC_KEYS_4096) - OK
 /0x0060f180-0x0061027f (0x001100)/ (RSA_PUBLIC_KEY) - OK
 /0x00610280-0x0061087f (0x000600)/ (RSA_4096_SIGNATURES) - CRC IGNORED
 /0x00610880-0x006ec8e3 (0x0dc064)/ (ROM_CODE) - OK
 /0x006ec900-0x006ed40b (0x000b0c)/ (DBG_FW_INI) - OK
 /0x006ed480-0x006ed487 (0x000008)/ (DBG_FW_PARAMS) - OK
 /0x006ed500-0x00709c7f (0x01c780)/ (CRDUMP_MASK_DATA) - OK

-I- FW image verification succeeded. Image is bootable.

root@localhost:~# sudo mlxreg -d /dev/mst/mt41686_pciconf0 --get --reg_name CRYPTO_OPERATIONAL
Sending access register…

Field Name | Data

kek_size | 0x00000000
wrapped_crypto_going_to_commissioning | 0x00000000
wrapped_crypto_operational | 0x00000001
credential[0] | 0x00000000
credential[1] | 0x00000000
credential[2] | 0x00000000
credential[3] | 0x00000000
credential[4] | 0x00000000
credential[5] | 0x00000000
credential[6] | 0x00000000
credential[7] | 0x00000000
credential[8] | 0x00000000
credential[9] | 0x00000000
kek[0] | 0x00000000
kek[1] | 0x00000000
kek[2] | 0x00000000
kek[3] | 0x00000000
kek[4] | 0x00000000
kek[5] | 0x00000000
kek[6] | 0x00000000
kek[7] | 0x00000000

Hi Jackylu33,

Thank you for posting your query on NVIDIA community.

Based on internal, in order to check if/how to change wrapped mode to plain mode, a support ticket will be needed. The support ticket can be opened by emailing " Enterprise-support@nvidia.com "

Please note that an active support contract would be required for the same. For contracts information, please feel free to reach out to our contracts team at " Networking-Contracts@nvidia.com "

Thanks,
Namrata.