From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 753644C99 for ; Tue, 19 Jun 2018 17:08:06 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Jun 2018 08:08:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,243,1526367600"; d="scan'208";a="238772457" Received: from irsmsx151.ger.corp.intel.com ([163.33.192.59]) by fmsmga006.fm.intel.com with ESMTP; 19 Jun 2018 08:08:03 -0700 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.139]) by IRSMSX151.ger.corp.intel.com ([169.254.4.216]) with mapi id 14.03.0319.002; Tue, 19 Jun 2018 16:08:02 +0100 From: "De Lara Guarch, Pablo" To: Anoob Joseph , Akhil Goyal , Thomas Monjalon CC: Ankur Dwivedi , Jerin Jacob , Murthy NSSR , Narayana Prasad , "Nithin Dabilpuram" , Ragothaman Jayaraman , Srisivasubramanian Srinivasan , "dev@dpdk.org" Thread-Topic: [PATCH 04/16] crypto/cpt/base: add hardware enq/deq API for CPT Thread-Index: AQHT/0ia4M4OFJF1IESrkKdIpjkaiaRnvnVw Date: Tue, 19 Jun 2018 15:08:02 +0000 Message-ID: References: <1528476325-15585-1-git-send-email-anoob.joseph@caviumnetworks.com> <1528476325-15585-5-git-send-email-anoob.joseph@caviumnetworks.com> In-Reply-To: <1528476325-15585-5-git-send-email-anoob.joseph@caviumnetworks.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMTNmYWI0YWItZDU4MS00YmZiLWJmYmEtYjhhN2EyNGUyYzkwIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoidytpMjl2NzJnN1NFcGIyc3lFSFJVZ29ZalRCaHVcL3Z3WHl4eStQYzc0TUhySDhsclowY3pGaEt4TlhIa1wvWlROIn0= x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.200.100 dlp-reaction: no-action x-originating-ip: [163.33.239.181] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH 04/16] crypto/cpt/base: add hardware enq/deq API for CPT 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: , X-List-Received-Date: Tue, 19 Jun 2018 15:08:07 -0000 > -----Original Message----- > From: Anoob Joseph [mailto:anoob.joseph@caviumnetworks.com] > Sent: Friday, June 8, 2018 5:45 PM > To: Akhil Goyal ; De Lara Guarch, Pablo > ; Thomas Monjalon > Cc: Ankur Dwivedi ; Jerin Jacob > ; Murthy NSSR > ; Narayana Prasad > ; Nithin Dabilpuram > ; Ragothaman Jayaraman > ; Srisivasubramanian Srinivasan > ; dev@dpdk.org > Subject: [PATCH 04/16] crypto/cpt/base: add hardware enq/deq API for CPT >=20 > From: Ankur Dwivedi >=20 > Adds hardware enqueue/dequeue API of instructions to a queue pair for Cav= ium > CPT device. >=20 > Signed-off-by: Ankur Dwivedi > Signed-off-by: Murthy NSSR > Signed-off-by: Nithin Dabilpuram > Signed-off-by: Ragothaman Jayaraman > > Signed-off-by: Srisivasubramanian Srinivasan > ... > + > + /* Event based completion */ > + cpt_ist_p->s.tag =3D OCTTX_EVENT_TAG(event_flags); > + cpt_ist_p->s.grp =3D OCTTX_EVENT_GRP(event_flags); > + cpt_ist_p->s.tt =3D OCTTX_EVENT_TT(event_flags); > + cpt_ist_p->s.wq_ptr =3D (uint64_t)event; I am seeing an error when building with gcc 32 bits. drivers/crypto/cpt/base/cpt_request_mgr.c:268:26: error: cast from pointer to integer of different size [-Werror=3Dpointer-to-int-ca= st] cpt_ist_p->s.wq_ptr =3D (uint64_t)event; ^ drivers/crypto/cpt/base/cpt_request_mgr.c:281:17: error: cast from pointer to integer of different size [-Werror=3Dpointer-to-int-ca= st] rid_e->rid =3D (uint64_t)user_req; ^ drivers/crypto/cpt/base/cpt_request_mgr.c:313:5: error: cast from pointer to integer of different size [-Werror=3Dpointer-to-int-ca= st] (uint64_t)user_req; ^ drivers/crypto/cpt/base/cpt_request_mgr.c: In function 'cpt_dequeue_burst': drivers/crypto/cpt/base/cpt_request_mgr.c:375:14: error: cast to pointer from integer of different size [-Werror=3Dint-to-poi= nter-cast] user_req =3D (cpt_request_info_t *)(rid_e->rid); ^ drivers/crypto/cpt/base/cpt_request_mgr.c:378:30: error: cast to pointer from integer of different size [-Werror=3Dint-to-pointer-ca= st] rte_prefetch_non_temporal((void *)rid_e[1].rid); ^