summaryrefslogtreecommitdiff
path: root/drivers/compress
diff options
context:
space:
mode:
authorFiona Trahe <fiona.trahe@intel.com>2018-10-31 21:46:57 +0000
committerAkhil Goyal <akhil.goyal@nxp.com>2018-11-02 12:26:06 +0100
commit4e8f2d6a6aaebe3f89f3edd09d479434f374a763 (patch)
treea614864668f339a84f05ead68f4c12f96f37e537 /drivers/compress
parent466a2c4bb5f4b9495380b1661d51047649d7fa76 (diff)
downloaddpdk-next-eventdev-4e8f2d6a6aaebe3f89f3edd09d479434f374a763.zip
dpdk-next-eventdev-4e8f2d6a6aaebe3f89f3edd09d479434f374a763.tar.gz
dpdk-next-eventdev-4e8f2d6a6aaebe3f89f3edd09d479434f374a763.tar.xz
compress/qat: add log for IM buffer too small
Display trace if error returned from firmware is likely due to intermediate buffers being too small for the compressed output. Update documentation to explain this error case and to clarify intermediate buffer memory usage. Signed-off-by: Fiona Trahe <fiona.trahe@intel.com> Acked-by: Tomasz Jozwiak <tomaszx.jozwiak@intel.com>
Diffstat (limited to 'drivers/compress')
-rw-r--r--drivers/compress/qat/qat_comp.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/compress/qat/qat_comp.c b/drivers/compress/qat/qat_comp.c
index d70c594..2754742 100644
--- a/drivers/compress/qat/qat_comp.c
+++ b/drivers/compress/qat/qat_comp.c
@@ -141,6 +141,14 @@ qat_comp_process_response(void **op, uint8_t *resp)
resp_msg->comn_resp.comn_status)) !=
ICP_QAT_FW_COMN_STATUS_FLAG_OK) {
+ if (unlikely((ICP_QAT_FW_COMN_RESP_XLAT_STAT_GET(
+ resp_msg->comn_resp.comn_status) !=
+ ICP_QAT_FW_COMN_STATUS_FLAG_OK) &&
+ (qat_xform->qat_comp_request_type
+ == QAT_COMP_REQUEST_DYNAMIC_COMP_STATELESS)))
+ QAT_DP_LOG(ERR, "QAT intermediate buffer may be too "
+ "small for output, try configuring a larger size");
+
rx_op->status = RTE_COMP_OP_STATUS_ERROR;
rx_op->debug_status =
*((uint16_t *)(&resp_msg->comn_resp.comn_error));