From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olivier Matz Subject: Re: [PATCH v3 13/35] mempool: store physical address in objects Date: Wed, 25 May 2016 21:41:09 +0200 Message-ID: <5745FFD5.9000703@6wind.com> References: <1460629199-32489-1-git-send-email-olivier.matz@6wind.com> <1463569496-31086-1-git-send-email-olivier.matz@6wind.com> <1463569496-31086-14-git-send-email-olivier.matz@6wind.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Cc: "Richardson, Bruce" , "stephen@networkplumber.org" , "Wiles, Keith" , "Griffin, John" , "Kusztal, ArkadiuszX" , "Trahe, Fiona" , "Mcnamara, John" To: "Jain, Deepak K" , "dev@dpdk.org" Return-path: Received: from mail.droids-corp.org (zoll.droids-corp.org [94.23.50.67]) by dpdk.org (Postfix) with ESMTP id 7BB1456A9 for ; Wed, 25 May 2016 21:41:17 +0200 (CEST) In-Reply-To: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi Deepak, On 05/25/2016 07:51 PM, Jain, Deepak K wrote: > Hi, > > While running the QAT PMD tests, a system hang is observed when this commit is used. > > rte_mempool_virt2phy is used in qat_crypto.c. >>From what I see in the code, the second argument of the function rte_mempool_virt2phy(mp, elt) is not a pointer to a element of the mempool. This should be the case according to the API (even before my patchset): * @param elt * A pointer (virtual address) to the element of the pool. Could you try to replace: s->cd_paddr = rte_mempool_virt2phy(mp, &s->cd) By something like: s->cd_paddr = rte_mempool_virt2phy(mp, s) + offsetof(struct qat_session, cd) Regards, Olivier