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 AF997432B0; Mon, 6 Nov 2023 14:55:23 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9E11F402B6; Mon, 6 Nov 2023 14:55:23 +0100 (CET) Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by mails.dpdk.org (Postfix) with ESMTP id 3CE214025D for ; Mon, 6 Nov 2023 14:55:22 +0100 (CET) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id D09CC5C025F; Mon, 6 Nov 2023 08:55:21 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Mon, 06 Nov 2023 08:55:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm3; t= 1699278921; x=1699365321; bh=PRcJEbOB3MrMFPQRt81IqtwVGwZp7smSZth 2Y4fMWOc=; b=DBuAVU1o8CdvBNZ7A6baWWJsFZXOoNul013BtQyGzi0Cb/DM1To QcT8yB+Gm9OLDuyShSpnpjbxjYi7aqvhLoMtoBtRqAAyJ8QyDD8Oreni6eWGuXbG sxdD/l5Rr90IsSGL14T/v87t4uU2cT5HA8ILYES+E4L07JrIwFGYYuc23XLzCVq2 qpY+0lOB2m4rGihOlOhcYV4XFVYFx7CnPFZTVU4GX/xiWnuvCuBpO9Yv8+kBr23f jsyiTg8AW5L/bmOapcLyTp5ubCOzgcW0345iFrUkKsLcFzAiBGII1/BRh28Ze6Jv MRmJz9I1TKK1/F+d/TIjg+LEGUc3lioy1/Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1699278921; x=1699365321; bh=PRcJEbOB3MrMFPQRt81IqtwVGwZp7smSZth 2Y4fMWOc=; b=VES8+NeWWXxXBNvTmhvL/AZvJYlMaIdtgZfkWCQTP4vTFqtJOFm kW1FPKMyP2WWlnmbVceychrBb15xN6GV3fIC+KxQzvpVwkPOrrs06IQBTO9SD8q0 iBmHk32nsl22Jk3faXN6N7lzGRVi09pBxjFayGLqkW+K0OQovaAQ6tH3IX9kRFol MvyDO2Hkq+zISw+28s4f5+bMSC57Y1N6yLVXcGVJrTyF7GRxX1yeuVvdn+pEzqFL FW1bF2penEUpOYGb3LdxW99PglrkzGvvPz/MjCGQG9T2UvPQKz1/Y9zinMN50ZSR pVcH09G1iEAe75e56Lyrp1Vr5YB92En/l5g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedruddugedgheeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkjghfggfgtgesthfuredttddtvdenucfhrhhomhepvfhhohhm rghsucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenuc ggtffrrghtthgvrhhnpedtjeeiieefhedtfffgvdelteeufeefheeujefgueetfedttdei kefgkeduhedtgfenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvght X-ME-Proxy: Feedback-ID: i47234305:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 6 Nov 2023 08:55:19 -0500 (EST) From: Thomas Monjalon To: David Christensen Cc: Ruifeng Wang , Min Zhou , David Christensen , Stanislaw Kardach , Bruce Richardson , Konstantin Ananyev , dev@dpdk.org Subject: Re: [PATCH v3] eal/linux: verify mmu type for DPDK support (ppc64le) Date: Mon, 06 Nov 2023 14:55:18 +0100 Message-ID: <16661175.geO5KgaWL5@thomas> In-Reply-To: <20231024174315.318408-1-drc@linux.vnet.ibm.com> References: <20231023231939.188417-1-drc@linux.vnet.ibm.com> <20231024174315.318408-1-drc@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" 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 24/10/2023 19:43, David Christensen: > IBM POWER systems support more than one type of memory management unit > (MMU). The Power ISA 3.0 specification, which applies to P9 and later > CPUs, defined a new Radix MMU which, among other things, allows an > anonymous memory page mapping to be converted into a hugepage mapping > at a specific address. This is a required feature in DPDK so we need > to test the MMU type when POWER systems are used and provide a more > useful error message for the user when running on an unsupported > system. > > Bugzilla ID: 1221 > > Suggested-by: Thomas Monjalon > Signed-off-by: David Christensen > --- > --- a/lib/eal/linux/eal.c > +++ b/lib/eal/linux/eal.c > + /* verify if DPDK supported on architecture MMU */ > + if (!eal_mmu_supported_linux_arch()) { > + rte_eal_init_alert("unsupported MMU type."); > + rte_errno = ENOTSUP; > + return -1; > + } I don't think we should restrict the MMU check to Linux.