From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7DE42A0C41; Wed, 20 Oct 2021 00:01:18 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2137A40687; Wed, 20 Oct 2021 00:01:18 +0200 (CEST) Received: from mail-lj1-f180.google.com (mail-lj1-f180.google.com [209.85.208.180]) by mails.dpdk.org (Postfix) with ESMTP id DD42F40142 for ; Wed, 20 Oct 2021 00:01:16 +0200 (CEST) Received: by mail-lj1-f180.google.com with SMTP id g8so8806513ljn.4 for ; Tue, 19 Oct 2021 15:01:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=WVJi8eClRUeskkRT4MYZAWqsSi/S6gXlRde8NPseYQk=; b=YnGjZMwcZQSA2ajqAzRStR9J5TSexAcWw8xNQMkG685Pu7fgwjhoPYL2zVsRM4FL3u zLocvkPJyj4tcyN15TD7rVc0gaaC+KtpEGbA4lenocVLTpsHU0hzt27D908x6gJMScxW PXa/6qUTRET4l41e+phT89/i0xXK/zE5v/d8sDLoy+B3TjhhoyYM+CXKTmDGefFxnipi LslYOKYE8dg9bZwphCFleoAheJvB1v4+W/nDaR3mtA6r6puKf0aknfL2omlfIrVq8or2 UmKOx5JiHCb4odmMgj8OFayFoHtrWwmmCCh8wNzXA7BzdopEt3fwhRyMHO+I5L1f48C+ l6cQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=WVJi8eClRUeskkRT4MYZAWqsSi/S6gXlRde8NPseYQk=; b=1plEVby7MbbffVZ+s5a5XO9IRD8VnsKM43XF76wJKUqdCBF/Scr5P+8WR3pi3yuZK0 F4xkq+kNplDKkqBs4FK3gzRSi2jO5pvrzwZl+VPwO+TPfYnfVj5dcOGVsIcyaHvxIsPd 7YcTCJdm3L/INIIRqmVEoaGa5tnB2sKxScYrwMHykBV9+zWOBecPEFhfDtDtFJKd4PXT byv8UfqzSp8Fq8IMSHQ3fygGWCCyOO91KKiAK/5xFYo+vI3dw6qrJInfqhekC26ggvTs LZeciDEHVe/7w/ra9Km7cbpr6PNcFNs7qCMEYYGTxgthNXR2Yl8RDdKtp3F1anYCF9Tk CMoQ== X-Gm-Message-State: AOAM531LSRxFsvB3tgMRugRAKKYOa2x703En+Ya2WWc7bDQpjpk/Shlk QDK9d3dtDp34vx96LZOmgTA= X-Google-Smtp-Source: ABdhPJxLUBtxum1OHzTT0T/Kr6ASvlMXHWDHt8TiHmdpmUpOTzkppxXyAOqZXx35IOUpgNp3ApiLcw== X-Received: by 2002:a05:651c:339:: with SMTP id b25mr9484234ljp.15.1634680876444; Tue, 19 Oct 2021 15:01:16 -0700 (PDT) Received: from sovereign (broadband-37-110-65-23.ip.moscow.rt.ru. [37.110.65.23]) by smtp.gmail.com with ESMTPSA id l24sm26475lji.25.2021.10.19.15.01.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Oct 2021 15:01:16 -0700 (PDT) Date: Wed, 20 Oct 2021 01:01:15 +0300 From: Dmitry Kozlyuk To: Harman Kalra Cc: , Anatoly Burakov , , , Message-ID: <20211020010115.236b9640@sovereign> In-Reply-To: <20211019183543.132084-2-hkalra@marvell.com> References: <20210826145726.102081-1-hkalra@marvell.com> <20211019183543.132084-1-hkalra@marvell.com> <20211019183543.132084-2-hkalra@marvell.com> X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v4 1/7] malloc: introduce malloc is ready API X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" 2021-10-20 00:05 (UTC+0530), Harman Kalra: [...] > static unsigned > check_hugepage_sz(unsigned flags, uint64_t hugepage_sz) > { > @@ -1328,6 +1330,7 @@ rte_eal_malloc_heap_init(void) > { > struct rte_mem_config *mcfg = rte_eal_get_configuration()->mem_config; > unsigned int i; > + int ret; > const struct internal_config *internal_conf = > eal_get_internal_configuration(); > > @@ -1369,5 +1372,16 @@ rte_eal_malloc_heap_init(void) > return 0; A secondary process exits here... > /* add all IOVA-contiguous areas to the heap */ > - return rte_memseg_contig_walk(malloc_add_seg, NULL); > + ret = rte_memseg_contig_walk(malloc_add_seg, NULL); > + > + if (ret == 0) > + malloc_ready = true; ...and never knows that malloc is ready. But malloc is always ready for a secondary process.