Bluefield 3 uses doca decompression example error

Hi, when using the decompression example provided by doca, the following error is reported:

root@omc:/tmp/build# ./doca_decompress_deflate -p 1f:00.0 -f /mnt/nvme2n1/2M.gz -o /mnt/nvme2n1/2M
[00:59:11:444505][317014][DOCA][INF][decompress_deflate_main.c:79][main] Starting the sample
[00:59:11:862203][317014][DOCA][INF][compress_common.c:645][compress_state_changed_callback] Compress context is running
[00:59:11:862243][317014][DOCA][WRN][doca_mmap.cpp:1926][doca_mmap_set_memrange] Mmap 0x562a43c33640: Memory range isn't aligned to 64B - addr=0x7fdbc207e010. For best performance using CPU memory, align address to 64B (cache-line size). For best performance using GPU memory, align address to 64KB (page size)
[00:59:11:864454][317014][DOCA][WRN][doca_mmap.cpp:1926][doca_mmap_set_memrange] Mmap 0x562a43c33480: Memory range isn't aligned to 64B - addr=0x7fdbc240d010. For best performance using CPU memory, align address to 64B (cache-line size). For best performance using GPU memory, align address to 64KB (page size)
[00:59:11:868319][317014][DOCA][ERR][doca_compress.cpp:1701][cqe_received_umr_cb] Compress 0x562a43c32e30-task 0x562a43c33e40: Task processing in QP[0] failed with the CQE: status=LOCAL_QP_OPERATION_ERROR (0x2), vendor_error=0x9d
[00:59:11:868348][317014][DOCA][ERR][compress_common.c:1123][decompress_deflate_error_callback] Decompress task failed: Input/Output Operation Failed
[00:59:11:868357][317014][DOCA][INF][compress_common.c:655][compress_state_changed_callback] Compress context entered into stopping state. Any inflight tasks will be flushed
[00:59:12:056434][317014][DOCA][INF][compress_common.c:634][compress_state_changed_callback] Compress context has been stopped
[00:59:12:056494][317014][DOCA][ERR][decompress_deflate_sample.c:197][decompress_deflate] Decompress task failed: Input/Output Operation Failed
[00:59:12:060324][317014][DOCA][ERR][decompress_deflate_main.c:113][main] decompress_deflate() encountered an error: Input/Output Operation Failed
[00:59:12:060632][317014][DOCA][INF][decompress_deflate_main.c:128][main] Sample finished with errors

doca version: 2.7.0
Machine: Bluefield-3

2 Likes

I have encountered the same problem, and I solve it by change the flag
compress_cfg.is_with_frame as true(in decompress_deflate_sample.c), which is false originally. This flag is used to express the compatibility of zlib.
you can only decompress the data compressed by zlib, when you open the flag.
I use outdata = zlib.compress(data) in python to compress the test data, and then the outdata can be decompressed by DOCA compress lib.