From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shreyansh Jain Subject: Re: [PATCH] crypto/dpaa2_sec: remove iova conversion for fle address Date: Wed, 9 May 2018 17:59:14 +0530 Message-ID: <90cd576c-93f6-6398-95bd-e51e02ad0f40@nxp.com> References: <20180509092642.9092-1-shreyansh.jain@nxp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Akhil Goyal , "dev@dpdk.org" , Hemant Agrawal To: "De Lara Guarch, Pablo" Return-path: Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0050.outbound.protection.outlook.com [104.47.0.50]) by dpdk.org (Postfix) with ESMTP id 484381B16B for ; Wed, 9 May 2018 14:12:41 +0200 (CEST) In-Reply-To: Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Wednesday 09 May 2018 05:00 PM, De Lara Guarch, Pablo wrote: > Hi, > >> -----Original Message----- >> From: Shreyansh Jain [mailto:shreyansh.jain@nxp.com] >> Sent: Wednesday, May 9, 2018 12:40 PM >> To: De Lara Guarch, Pablo >> Cc: Akhil Goyal ; dev@dpdk.org; Hemant Agrawal >> >> Subject: Re: [dpdk-dev] [PATCH] crypto/dpaa2_sec: remove iova conversion for >> fle address >> >> On Wednesday 09 May 2018 03:54 PM, De Lara Guarch, Pablo wrote: >>> >>> >>>> -----Original Message----- >>>> From: Akhil Goyal [mailto:akhil.goyal@nxp.com] >>>> Sent: Wednesday, May 9, 2018 10:14 AM >>>> To: Shreyansh Jain ; De Lara Guarch, Pablo >>>> >>>> Cc: akhil.goyal@nxp.com; dev@dpdk.org; Hemant Agrawal >>>> >>>> Subject: Re: [dpdk-dev] [PATCH] crypto/dpaa2_sec: remove iova >>>> conversion for fle address >>>> >>>> On 5/9/2018 2:56 PM, Shreyansh Jain wrote: >>>>> From: Hemant Agrawal >>>>> >>>>> fle is already in virtual addressing mode - no need to perform >>>>> address conversion for it. >>>>> >>>>> Fixes: 8d1f3a5d751b ("crypto/dpaa2_sec: support crypto operation") >>>>> Cc: akhil.goyal@nxp.com >>>>> >>>>> Signed-off-by: Hemant Agrawal >>> >>> ... >>> >>>>> >>>> Acked-by: Akhil Goyal >>> >>> Added Cc: stable@dpdk.org (try remembering this for next time, please). >> >> Thanks for doing it this time. I'll take care of this next time. > > No worries. Actually, gcc 32 bits is broken: > > drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c:1264:7: > error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] > op = (struct rte_crypto_op *)DPAA2_GET_FLE_ADDR((fle - 1)); > > Is this PMD supposed to be compatible for 32-bit targets? Oh! This is bad. I will send you an update on this in a few minutes. Ideally, the code was written for 64bit in mind - though, it should still be able to work (at least compile) for 32 bit. > > Thanks, > Pablo > >> >>> >>> Applied to dpdk-next-crypto. >>> Thanks, >>> >>> Pablo >>> >