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 10F0745CE9; Mon, 11 Nov 2024 15:12:47 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F0FFF400D6; Mon, 11 Nov 2024 15:12:46 +0100 (CET) Received: from fhigh-a6-smtp.messagingengine.com (fhigh-a6-smtp.messagingengine.com [103.168.172.157]) by mails.dpdk.org (Postfix) with ESMTP id 8CC0940041 for ; Mon, 11 Nov 2024 15:12:45 +0100 (CET) Received: from phl-compute-10.internal (phl-compute-10.phl.internal [10.202.2.50]) by mailfhigh.phl.internal (Postfix) with ESMTP id 15E7A1140136; Mon, 11 Nov 2024 09:12:45 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-10.internal (MEProxy); Mon, 11 Nov 2024 09:12:45 -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:subject:subject:to:to; s=fm3; t=1731334365; x=1731420765; bh=y2aSQW3n0JWPHk4isWy7FLOeyKGm0vHZeOkEJhKZpiw=; b= YoukhiNnHMzDp6VSFTknYwxpP3suWE0HCpcgWntTEIzQQ0rsramliAX1XWZEloJI pnkv8jHA0CAZwKUWzH/TW0MxTiqF9XKSUQWJHS01mfO/WJgWfpRsAcHH/FRHkTeg bK3vvGBIX8a8zqoYxOm6XzCgybCZrQUbCIm0VLBncom2IdkIu3enAvWjIF+all5G Ku1ttlKfDJaF6DUFA+XV40ZvAf5u96lXe7xdOOxHE49avAIXsMa77RxPyzSmzt2A gM1RWyvymD1lFXPYf56KBd4OelIoCqfxCfGkaGU9BWnH63oYCT542Kl+wzX6QRyX iZhLm404Cy+zWzhTjMr9XA== 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:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1731334365; x= 1731420765; bh=y2aSQW3n0JWPHk4isWy7FLOeyKGm0vHZeOkEJhKZpiw=; b=g FVEaGxQNHypX+jgJ4kf57C7aeqI4B+QivUMxqC8HQEq0ksPCbQWEN6sVQcEO52p3 TciWKiuycnhPHknW989jVudQPdtrSnWoJChHVpfrV6EyNLX4exm1xrCsCCN89ukQ 2mKyPl/yfLXoNDpN/MHA5O9wUdCY/lGdRmUNv3138KbJxOv5e6jd7Pjbz+vpm1VX hEM4prmDXZeCoWjoQNhEh+coy7t+0jvHMZ/3NoY7UgWZSlzZvRrGxYGBzmlIywSU bamxHau0BseA40G+2X8yTK0zNPrEn35LomIIDLZAh7cC8khuSdiILoeOCujXt7FS WWrGkqYK1WB/CSHQBSkeQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddruddvgdeiudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnth hsucdlqddutddtmdenucfjughrpefhvfevufffkfgjfhgggfgtsehtufertddttdejnecu hfhrohhmpefvhhhomhgrshcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlh honhdrnhgvtheqnecuggftrfgrthhtvghrnhepjeduveehieevuddutdevfffgtdegkeeu veejffejgedtgeegkefgvdeugfefkeejnecuvehluhhsthgvrhfuihiivgeptdenucfrrg hrrghmpehmrghilhhfrhhomhepthhhohhmrghssehmohhnjhgrlhhonhdrnhgvthdpnhgs pghrtghpthhtohepiedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepfigrthhhsh grlhgrrdhvihhthhgrnhgrghgvsegrrhhmrdgtohhmpdhrtghpthhtohepsghruhgtvgdr rhhitghhrghrughsohhnsehinhhtvghlrdgtohhmpdhrtghpthhtohepuggvvhesughpug hkrdhorhhgpdhrtghpthhtohepnhgusegrrhhmrdgtohhmpdhrtghpthhtohephhhonhhn rghpphgrrdhnrghgrghrrghhrghllhhisegrrhhmrdgtohhmpdhrtghpthhtohepughhrh huvhdrthhrihhprghthhhisegrrhhmrdgtohhm X-ME-Proxy: Feedback-ID: i47234305:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 11 Nov 2024 09:12:43 -0500 (EST) From: Thomas Monjalon To: Wathsala Vithanage Cc: Bruce Richardson , dev@dpdk.org, nd@arm.com, honnappa.nagarahalli@arm.com, Dhruv Tripathi Subject: Re: [PATCH v2 1/2] config/arm: strict use of -mcpu for supported CPUs Date: Mon, 11 Nov 2024 15:12:42 +0100 Message-ID: <5073448.vCJZsxu672@thomas> In-Reply-To: <20241029015946.998124-1-wathsala.vithanage@arm.com> References: <20241028233139.922029-1-wathsala.vithanage@arm.com> <20241029015946.998124-1-wathsala.vithanage@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8" 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 Please check the CI results, there are some failures. 29/10/2024 02:59, Wathsala Vithanage: > Arm recommends using -mcpu over -march and march-extensions when the > compiler supports the target CPU (neoverse-n1 etc.). Arm build so far > has been an amalgam of -mcpu and -march. When march is in use, it has > been the case so far to silently fall back to a downgraded march when > the compiler does not support the requested march. This is unnecessary > and confusing to an end user who could be building DPDK with a > particular ISA version and performance expectations in mind. > > This patch aims to rectify both the above issues. For part numbers that > has a corresponding -mcpu, this patch removes all references to march > and march_features from meson.build. For those SOCs that do not have a > corresponding -mcpu, a pseudo cpu name in the format mcpu_ is > introduced and referenced in the mcpu field in the part number > dictionary of the part_number_config dictionary. The definition of the > mcpu_ must be provided in the mcpu_defs dictionary. > Each mcpu_ dictionary in the mcpu_defs have a march field and > a march_extensions field to construct the optimal compiler setting for > an SOC that has no corresponding -mcpu value. This patch alters the > behavior of the build system such that it will no longer silently fall > back to an older ISA version, it will only perform what's specified in > the build dictionaries, if the compiler does not support the specified > configuration it will fail with an error message. > > How to add a new SOC to the build system with these changes? > If compiler supports mcpu follow the usual practice but without march > and march_features fields in the part number dictionary. If mcpu is not > available or buggy (misses certain features) for some reason follow the > same process but set mcpu field to a string in the form 'mcpu_foo' > (pseudo mcpu mentioned earlier). Then in the mcpu_defs dictionary add > mcpu_foo dictionary as shown. > > 'mcpu_foo': { > 'march': 'armv8.2-a', > 'march_extensions': [rcpc] > } > > march_extensions is a comma separated list of march extensions supported > by the compiler such as sve, crypto etc. Empty match_extensions allowed > as use of such extensions are optional. > > Signed-off-by: Wathsala Vithanage > Reviewed-by: Dhruv Tripathi