From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 022A1A057B; Wed, 1 Apr 2020 16:20:24 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8343E375B; Wed, 1 Apr 2020 16:20:24 +0200 (CEST) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2089.outbound.protection.outlook.com [40.107.20.89]) by dpdk.org (Postfix) with ESMTP id 913003B5 for ; Wed, 1 Apr 2020 16:20:23 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=I05UX5Evg/jLnc4xez5ZlnTmbj/FtvW9251eP+NQJ8pRywuVP5NQF6dn+PgGc6SZA/71T0xf6eTkidmKYe0Mi3N7SXhgQ47z2pYSivkueCnV0sLWymSPO7fWop0Jr75H+hbxr7CBkt7nH8eRJqCGpNx1+zXYN4PvhfBBEevvrqMDkhZKqHCFAL9USD/JN2H5yUErVTX8TX6JTV7DFDnb1Y1eHgHIiKO8F6dBhFF6MnZjJ8GNqm8hVOhKUVCoODDeSj3R/b5l/6q2J6/xcfK0T7i19sqpotmd8VcXxabbNBEoIuF6q35xBRQToS2fHKI0B0OG5NzuNCusGdL8HLVTwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=G1ze8/qJnQU+8suXniOhKaRociXj55C8u9AnQWRkXFU=; b=E4PhjIIRpdQjzznv9kvtSbmRtvxJ/IlPNDefuzi04SRK/wXsmZf56f0BD58rfLukDQG0OUquP2o5YR+OSHDGsaPonJiPgYNWILJG/bd2pGNh+claZg37Tt3ycTh9qXtUG/uXXlbhuKJJUz74S8qty7ZgToclNrj8KD4eFLWipSp1cOC23KUiZwptsvKzXHmmVv9WGYKV+APRLEY3wkTgQ+DtFt0QKLnanB7DPqzrdOYbJHlxmZ2qBzrw/88RxKzKpEKejXYgZpj90HrEAqMU4dRCNKqRQpwKRCtfjA8CvmCOfufYJB4fInyDEoiw4DqxcQnNMLAJbNiH2+2jrZxh4A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=G1ze8/qJnQU+8suXniOhKaRociXj55C8u9AnQWRkXFU=; b=cHdD32faBqP1yGaOt0KCNuJtySkXwlLBolutkiqH7Qukhg1rUSNMHkYah1dRU5Hg6870NkBVQuKrQ6BdnkHJqe9QC3HyN/oThCfjftIVirZE8Jh+5Q8DHtdd6KWIzGIXkyB4Z6sqXvg5eHNc02u2D1QqeZ2Ahk9uvi7tg7cQC8c= Received: from DB8PR04MB6635.eurprd04.prod.outlook.com (20.179.251.20) by DB8PR04MB7178.eurprd04.prod.outlook.com (52.135.63.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2878.15; Wed, 1 Apr 2020 14:20:22 +0000 Received: from DB8PR04MB6635.eurprd04.prod.outlook.com ([fe80::18c:1d00:b49e:f733]) by DB8PR04MB6635.eurprd04.prod.outlook.com ([fe80::18c:1d00:b49e:f733%7]) with mapi id 15.20.2856.019; Wed, 1 Apr 2020 14:20:22 +0000 From: Akhil Goyal To: Adam Dybkowski , "dev@dpdk.org" , "fiona.trahe@intel.com" Thread-Topic: [PATCH 1/2] drivers/qat: im buffer too small - split op Thread-Index: AQHV/URsbvII+ciRqUmf4kt5Lgu35ahkZpxA Date: Wed, 1 Apr 2020 14:20:22 +0000 Message-ID: References: <20200318163349.1789-1-adamx.dybkowski@intel.com> In-Reply-To: <20200318163349.1789-1-adamx.dybkowski@intel.com> Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=akhil.goyal@nxp.com; x-originating-ip: [45.118.166.84] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 23e242ac-f258-43ba-4ba7-08d7d647d0ba x-ms-traffictypediagnostic: DB8PR04MB7178: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-forefront-prvs: 03607C04F0 x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB8PR04MB6635.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(10009020)(4636009)(39860400002)(396003)(346002)(366004)(376002)(136003)(316002)(52536014)(2906002)(26005)(7696005)(44832011)(33656002)(4744005)(6506007)(478600001)(76116006)(66946007)(66446008)(64756008)(66556008)(66476007)(81166006)(186003)(8936002)(81156014)(8676002)(86362001)(110136005)(5660300002)(9686003)(55016002)(71200400001)(160913001)(15963001); DIR:OUT; SFP:1101; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: X4Z8NvMSzryeBXGlOQATvkkWilbKxaLEqdWY1eYpktR0jWDmXgt4un6tFJz2TU6IkaWtnjDJQpluz2fXM3fXc4W2wu7R8Rq3DgR0Eh1Wo/Q6pvYQnUl2XtIY4s0zM5dta3q4Ol7vY+WWvq+3vsvIXbAURUedheF2ogfiSmymFJ2wMVLin5/6JdSbnBna8qWPrRXOjc940bLd6BcMOmcO05lBv7fIqvDhiFdu9lcNyFsfFAHUAk2qXEV5f1VB+D5UP9LSm9OKHmGUpiOISbZaXdseLeusk5SSP7KVB+JRjR9wBH68atuLkn0PrL1jy9cCpq1Dvbo4QVdmImTKlKlyUCjAmNb7BAb2A/B+dNDwb6iNBleIY8g9BGKnFRpq5yko2lY4baAGuKshckibEpn6EYuXzULvoLtJ/YtDr9IwQiQ0La/80NkbV03pKcK99sAvnlBJTs+48uqnVnLsaR6gYz1I19KcksBKbwEMSJ2lDUNIBrQZp+0hoXW2TbLRAoAlXb3FVMh9kLIUJmDMnWBJhQ== x-ms-exchange-antispam-messagedata: d6Ai4ofcnoiJCwdWka1bLxsZELyLyMIg3b0f0kOnn+COrJDKsy2tm+sKXaoDyRB6jm/h+GwP6+gZjRwgx1sXn3vc/nqSxKkO4uYC3XRzilLStl4fGAOWs1861O4m1bX9OC4PmpjxKPJUSVQf3umjhQ== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 23e242ac-f258-43ba-4ba7-08d7d647d0ba X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Apr 2020 14:20:22.7507 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 7SEAcJiYTOV73QcPj+YaOGpefk84HsQxn+MXSLMh5Z2yywC3LtDZxSsIHbT8Q67v5aG/Zr1vPMQqdhnkGuo9lQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR04MB7178 Subject: Re: [dpdk-dev] [PATCH 1/2] drivers/qat: im buffer too small - split op X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi Fiona, Could you please review this patchset. >=20 > This patch implements a special way of buffer handling when internal > QAT IM buffer is too small for Huffman dynamic compression operation. > Instead of falling back to fixed compression, the operation is now > split into multiple smaller dynamic compression requests (possible to > execute on QAT) and their results are then combined and copied into > the output buffer. This is not possible if any checksum calculation > was requested - in such case the code falls back to fixed compression > as before. >=20 > Signed-off-by: Adam Dybkowski > --- > drivers/common/qat/qat_qp.c | 231 ++++++++++++-- > drivers/common/qat/qat_qp.h | 7 + > drivers/compress/qat/qat_comp.c | 458 +++++++++++++++++++++++++--- > drivers/compress/qat/qat_comp.h | 22 +- > drivers/compress/qat/qat_comp_pmd.c | 24 +- > 5 files changed, 669 insertions(+), 73 deletions(-) >=20