From mboxrd@z Thu Jan 1 00:00:00 1970 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) Received: from was59-1-82-226-113-214.fbx.proxad.net ([82.226.113.214] helo=[192.168.0.10]) by mail.droids-corp.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1b5eiE-0000IM-GF; Wed, 25 May 2016 21:43:26 +0200 To: "Jain, Deepak K" , "dev@dpdk.org" 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> Cc: "Richardson, Bruce" , "stephen@networkplumber.org" , "Wiles, Keith" , "Griffin, John" , "Kusztal, ArkadiuszX" , "Trahe, Fiona" , "Mcnamara, John" From: Olivier Matz Message-ID: <5745FFD5.9000703@6wind.com> Date: Wed, 25 May 2016 21:41:09 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v3 13/35] mempool: store physical address in objects X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 May 2016 19:41:17 -0000 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