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 D8909A0577; Sun, 5 Apr 2020 18:54:42 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D64091BECF; Sun, 5 Apr 2020 18:54:41 +0200 (CEST) Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2081.outbound.protection.outlook.com [40.107.22.81]) by dpdk.org (Postfix) with ESMTP id 4466A2BC7; Sun, 5 Apr 2020 18:54:41 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RdX6QqQBxLfGzDk2NKB9pmC3NDbdgWZwUZ7f3JXeVPCll8hZEolmebCv/tdQZo1UgNjbgcUf0DKTWTg3zOy+sOa1v+uF6UVZ/TVVZsvwR785743efU03oDMOXxQc0QvRy0GFHpOhm5nBFjB8ECsItF6GLTBLNwq2dYhjIt0q0oYUP5B7zROkPI38bvPu+7/luf9cu3rzcMmpkYcpISvIPKnKBf2R8iJDjizlVvXTmk+TEYQ4f4BB020UF0h9F94C6Pfb2mVXWTEEWIGsjab80Hgx70CwxhhAWqMMPWIPcBAy3n8YzqE/KiH0vAGxDkTxNdIjPAnOiSVLzYQWf35KYQ== 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=oF7g6l1L9g49F4o0F7CqaDafM7mxBcHrHHDzLuX5CPs=; b=czH7zBl+3bgBmOYy44f1sPfUTeQTWcXlgCUfk0ZNMSLjK8OXu4cT49bqnEZe30XM5pwiyG38BHlQLuGZ7d9jgoLvusvfJjbPXI4uXUDyUkFsxmYM9kjlyo0QHAXQkeztL8AJPErS0XdASBb2pPuaEvsgd0TNsLbKEp8sJ8VTdWDwZM8d4Mha4yKceqcKVrmgxV/nOxBK3L2UM2tYa8Ds7p673bPG7gvQ8+qxkBM6ijW2BzeSz0HKb5nV7yYo7eH8K2NbkekSRd6eWmLe7uNc0yVd00bmuEpPzv0MgIR9/BTk53+sXdkem8g2Yo9lsalFEbheiNiuPPAPBJ1nJAKkiQ== 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=oF7g6l1L9g49F4o0F7CqaDafM7mxBcHrHHDzLuX5CPs=; b=q6N+pf0WBX6Y8ARnA24Eug8p8ibd6NGMQSfe+oIQ3QXtmVgqe45arSKMi9wtM1ikr7Yo301SNI2jfnZBu28t08fBWzREnfNjrARj6/IRwVdIvnPLznT+li4akp57F1N0JoFwAXwfwrt1lupTAYtFsHa/+rvq2CcaZ9mYRcrLb5M= Received: from VE1PR04MB6639.eurprd04.prod.outlook.com (2603:10a6:803:129::11) by VE1PR04MB6544.eurprd04.prod.outlook.com (2603:10a6:803:124::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2878.15; Sun, 5 Apr 2020 16:54:40 +0000 Received: from VE1PR04MB6639.eurprd04.prod.outlook.com ([fe80::8060:a35c:4858:c490]) by VE1PR04MB6639.eurprd04.prod.outlook.com ([fe80::8060:a35c:4858:c490%7]) with mapi id 15.20.2878.018; Sun, 5 Apr 2020 16:54:40 +0000 From: Akhil Goyal To: Nagadheeraj Rottela CC: "dev@dpdk.org" , "thomas@monjalon.net" , "jsrikanth@marvell.com" , "stable@dpdk.org" Thread-Topic: [PATCH v3 1/2] crypto/nitrox: fix invalid CSR register address generation Thread-Index: AQHWBD2ebmnSuVr/DEKwEczrMYNK66hqzQvg Date: Sun, 5 Apr 2020 16:54:39 +0000 Message-ID: References: <20200327134239.23358-1-rnagadheeraj@marvell.com> In-Reply-To: <20200327134239.23358-1-rnagadheeraj@marvell.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.70] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: e23dc7e8-baef-420e-bce2-08d7d9820838 x-ms-traffictypediagnostic: VE1PR04MB6544: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6790; x-forefront-prvs: 03648EFF89 x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VE1PR04MB6639.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(10009020)(4636009)(366004)(136003)(376002)(396003)(39860400002)(346002)(7696005)(6506007)(186003)(33656002)(54906003)(2906002)(52536014)(478600001)(26005)(71200400001)(316002)(4326008)(81156014)(81166006)(8936002)(66446008)(9686003)(64756008)(66946007)(76116006)(5660300002)(44832011)(66556008)(4744005)(6916009)(86362001)(8676002)(55016002)(66476007); 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: 9n/jATXM8Jv6qATHBmeIgOBdl3P8fVqPiwXWtmj7L7vndwK/StbBJAAGPfsdwocl72XiCfFfjXE6mAm0rGGhh8+qAFxlCjzAsb9/Abf4Vgnp++h3dHTGSxXXTsbJtj85HCfzwS5NRMMV2J04vWswiyi8m95uUWivzR1bKmqrOyVSYSFfdbRxEa/uzfSQkK3+6Uuthm4HPfyTxn9lCEd5N6avYN9v3CF/vG/ptAiATH6Nih2LTT/J/yc0+faD5UXEtsm9KPhdAvAoeLA28kOcGWSatoucmiQLbfue3rLleZtI4kPey/UeDP2wGGxSUSfPqj+VFBCaWmq9OW0hni0gWr4+yYkrrUuUmRKFK0LF5L6pjjDwbPtMieV2CgBuXhg/bNeTKQkukmrcNDIakKybJc+5mGAZTsO5ZhvwS/NV9LGoVj+Uacg42nys9EvDRaIQ x-ms-exchange-antispam-messagedata: 1L0FAJUtU5hQo8BE7A52/Y8CiFfi3ODfDElWzva+UBDea6dxYhqRI2qzaU9v8OA59tnc69ZGdvDuw3YcqizS49w74M92psHhf9luASotZHJSAzftIYyFFq9YvXmul2EG6Os1fa42fA8o80N8MRAFcQ== 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: e23dc7e8-baef-420e-bce2-08d7d9820838 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Apr 2020 16:54:40.1767 (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: nlBFPY9jBnd5WxHvw80X0UUXn1IstvCNcV3Eb8l0rjCMM27v9t/frvemeALIl9BJKFFNja8YI0d00BXbYCpOFQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB6544 Subject: Re: [dpdk-dev] [PATCH v3 1/2] crypto/nitrox: fix invalid CSR register address generation 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" >=20 > If the NPS_PKT ring/port is greater than 8191 the NPS_PKT*() macros will > evaluate to incorrect values due to unintended sign extension from int > to unsigned long. To fix this, add UL suffix to the constants in these > macros. The same problem is with AQMQ_QSZX() macro also. >=20 > Coverity issue: 349899, 349905, 349911, 349921, 349923 >=20 > Fixes: 32e4930d5a3b ("crypto/nitrox: add hardware queue management") > Fixes: 0a8fc2423bff ("crypto/nitrox: introduce Nitrox driver") >=20 > Signed-off-by: Nagadheeraj Rottela > --- Cc:stable@dpdk.org Applied to dpdk-next-crypto Thanks.