[1/2] common/qat: increase IM buffer size for QAT GEN3

Message ID 20210428144142.85929-1-adamx.dybkowski@intel.com (mailing list archive)
State Accepted, archived
Delegated to: akhil goyal
Headers
Series [1/2] common/qat: increase IM buffer size for QAT GEN3 |

Checks

Context Check Description
ci/checkpatch warning coding style issues

Commit Message

Dybkowski, AdamX April 28, 2021, 2:41 p.m. UTC
  This patch increases the intermediate buffer size used for the
compression on QAT GEN3 to accommodate new hardware versions.

Fixes: a124830a6f00 ("compress/qat: enable dynamic huffman encoding")

Signed-off-by: Adam Dybkowski <adamx.dybkowski@intel.com>
---
 drivers/common/qat/qat_device.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Fan Zhang April 28, 2021, 3:08 p.m. UTC | #1
> -----Original Message-----
> From: Dybkowski, AdamX <adamx.dybkowski@intel.com>
> Sent: Wednesday, April 28, 2021 3:42 PM
> To: dev@dpdk.org; Zhang, Roy Fan <roy.fan.zhang@intel.com>; Kusztal,
> ArkadiuszX <arkadiuszx.kusztal@intel.com>; gakhil@marvell.com
> Cc: Dybkowski, AdamX <adamx.dybkowski@intel.com>
> Subject: [PATCH 1/2] common/qat: increase IM buffer size for QAT GEN3
> 
> This patch increases the intermediate buffer size used for the
> compression on QAT GEN3 to accommodate new hardware versions.
> 
> Fixes: a124830a6f00 ("compress/qat: enable dynamic huffman encoding")
> 
> Signed-off-by: Adam Dybkowski <adamx.dybkowski@intel.com>
> ---
>  drivers/common/qat/qat_device.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/common/qat/qat_device.h
> b/drivers/common/qat/qat_device.h
> index e6337c688d..9c6a3ca4e6 100644
> --- a/drivers/common/qat/qat_device.h
> +++ b/drivers/common/qat/qat_device.h
> @@ -29,7 +29,7 @@ struct qat_dev_cmd_param {
>  enum qat_comp_num_im_buffers {
>  	QAT_NUM_INTERM_BUFS_GEN1 = 12,
>  	QAT_NUM_INTERM_BUFS_GEN2 = 20,
> -	QAT_NUM_INTERM_BUFS_GEN3 = 20
> +	QAT_NUM_INTERM_BUFS_GEN3 = 64
>  };
> 
>  struct qat_device_info {
> --
> 2.25.1

Acked-by: Fan Zhang <roy.fan.zhang@intel.com>
  
Akhil Goyal May 5, 2021, 2:48 p.m. UTC | #2
> > Subject: [PATCH 1/2] common/qat: increase IM buffer size for QAT GEN3
> >
> > This patch increases the intermediate buffer size used for the
> > compression on QAT GEN3 to accommodate new hardware versions.
> >
> > Fixes: a124830a6f00 ("compress/qat: enable dynamic huffman encoding")
> >
> > Signed-off-by: Adam Dybkowski <adamx.dybkowski@intel.com>
> > ---
Series applied to dpdk-next-crypto

Cc: stable@dpdk.org for both patches.
  

Patch

diff --git a/drivers/common/qat/qat_device.h b/drivers/common/qat/qat_device.h
index e6337c688d..9c6a3ca4e6 100644
--- a/drivers/common/qat/qat_device.h
+++ b/drivers/common/qat/qat_device.h
@@ -29,7 +29,7 @@  struct qat_dev_cmd_param {
 enum qat_comp_num_im_buffers {
 	QAT_NUM_INTERM_BUFS_GEN1 = 12,
 	QAT_NUM_INTERM_BUFS_GEN2 = 20,
-	QAT_NUM_INTERM_BUFS_GEN3 = 20
+	QAT_NUM_INTERM_BUFS_GEN3 = 64
 };
 
 struct qat_device_info {