From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <dev-bounces@dpdk.org> Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4B46443C5E; Wed, 6 Mar 2024 15:43:48 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 38B4B42E17; Wed, 6 Mar 2024 15:43:48 +0100 (CET) Received: from fhigh6-smtp.messagingengine.com (fhigh6-smtp.messagingengine.com [103.168.172.157]) by mails.dpdk.org (Postfix) with ESMTP id D1CC140276; Wed, 6 Mar 2024 15:43:46 +0100 (CET) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 3662C11400B1; Wed, 6 Mar 2024 09:43:46 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Wed, 06 Mar 2024 09:43:46 -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=fm1; t=1709736226; x=1709822626; bh=w95uyX0TEgf5AZgjwk/WiheezYje6SGpU0rqkrc7P3Q=; b= bdGF5dMG91vcApRgAUts7Lal3UHX6TKs1z+va3Cu9SCPMDwMipB3S6Zu+jH7jDFN oh8pEa5hdThpEotI8bC55ne7fTLpNiCXQR+hybnKbvNpxKNXM82+XcFRu+WaUwEL obEfZIGq36aSz7PqBZlzNbNlkm9EYFqmQy7zRVDDLU+YkwmfaFkb2Dm4F5MD/xoL ryhcVl/JKoCr2dTBJWIjlaIH9NssEsIpRdoBWv1YJZty3/JvKaTnl3UTjZenyLJY oVykYNmDVvxsoGzRPkjGJ8jya8aVK2PROTRVFCjyLEeK7b34G2KQ/QOD3rcn/UZE HLebhZq6JFP0V4PNcj2j2Q== 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-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1709736226; x= 1709822626; bh=w95uyX0TEgf5AZgjwk/WiheezYje6SGpU0rqkrc7P3Q=; b=i 9pHDGnkaDl93gvjE+1D8tWxutqHtZ0BZq/RpSde3OsruRDgFpCJWwH6hjwmlSEaf tMdGUjof9nDRC5JdKNwPlXUC7TJ/UWDz3Q2zeEMuit+/IpZJzwxu5kAJx46SyuTQ HPbtaDVvsEWoLxotR0K8GkNuE40Zyl5D2DLO71AbRL5E2GwnkXjBIITfFf4qnoJf 9QEyBne74ycyG7dm00M6IrJ7JVH/f+weOfUoAXLy/B/VW/UGHM1BW3roPzvbDzT7 5g3c7eOGBAbfF+wLJOiY6u9dixpORU0jo/R02aPafdryGxQNWGJz5zPI9E33S2gt /jurMv2gS1JBP8P28Zsbg== X-ME-Sender: <xms:IYHoZcZlU_mPpGlcAEuMwjOEwa3FCHpl1oXaJa7ekz_K3iWhDvjigw> <xme:IYHoZXZVcOS5SDPoZeL82HbIOtlNHPuRCbw3ny7YSFsZk1iMp70GDFlSdcMUdbztu 2KPD41UAd27M0ZzBw> X-ME-Received: <xmr:IYHoZW-_xES-sphGhQk5uRWg7lzZ-wkpc4yS5V2fdLf1wg4yeY0WURuImxYesCBOXWZv-YSvQf_aB5MTWFR2gEqr-Q> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledriedugdeigecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvfevufffkfgjfhgggfgtsehtufertddttddvnecuhfhrohhmpefvhhhomhgr shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecugg ftrfgrthhtvghrnheptdejieeifeehtdffgfdvleetueeffeehueejgfeuteeftddtieek gfekudehtdfgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepthhhohhmrghssehmohhnjhgrlhhonhdrnhgvth X-ME-Proxy: <xmx:IYHoZWqo-gwdfCoYxy4Y-2V6XXvY6lFlQHasJVkz8N87nv2trqEo7g> <xmx:IYHoZXq1BCQ02PeJdc_S5an0-QN2PhpyIxEzBVxf1tl2CAHIqJGw9g> <xmx:IYHoZUR9ayptcpUIlWgejYwXnNUrgZaLinY8erMOe7rDZ-qN1ivldw> <xmx:IoHoZQRpqx08Npk6yXYyjQby2q6gIJv5bNE0oxZ-zGMYCKPBJ7Ncmg> Feedback-ID: i47234305:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 6 Mar 2024 09:43:44 -0500 (EST) From: Thomas Monjalon <thomas@monjalon.net> To: Joyce Kong <Joyce.Kong@arm.com> Cc: Stephen Hemminger <stephen@networkplumber.org>, stable@dpdk.org, Ruifeng Wang <Ruifeng.Wang@arm.com>, "bruce.richardson@intel.com" <bruce.richardson@intel.com>, "dev@dpdk.org" <dev@dpdk.org>, nd <nd@arm.com>, "stable@dpdk.org" <stable@dpdk.org>, Jerin Jacob <jerinj@marvell.com>, Pavan Nikhilesh Bhagavatula <pbhagavatula@marvell.com>, paul.szczepanek@arm.com Subject: Re: [PATCH v4 1/2] config: correct cpu instruction set for cross build Date: Wed, 06 Mar 2024 15:43:43 +0100 Message-ID: <1915782.GKX7oQKdZx@thomas> In-Reply-To: <PH0PR18MB4086682502BC2DDFF4F59166DE702@PH0PR18MB4086.namprd18.prod.outlook.com> References: <20230822074743.3243015-1-joyce.kong@arm.com> <AS4PR08MB77123A5D8B525509E18EFDFB928AA@AS4PR08MB7712.eurprd08.prod.outlook.com> <PH0PR18MB4086682502BC2DDFF4F59166DE702@PH0PR18MB4086.namprd18.prod.outlook.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 <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org > > > > The platform value would be 'native' only when not cross build. > > > > Move the operation about modifying cpu_instruction_set while platform > > > > equals 'native' to the not cross build branch. > > > > > > > > Fixes: bf66003b51ec ("build: use platform for generic and native > > > > builds") > > > > Cc: stable@dpdk.org > > > > > > > > Signed-off-by: Joyce Kong <joyce.kong@arm.com> > > > > Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com> > > > > > > Looks right, what is the impact on existing users doing current cross builds? > > > > The original operation changes cpu_instruction_set to 'native' when both > > 'platform == native' and 'cpu_instruction_set == auto'. > > There was no impact on the existing users for current cross build, as the cross > > files set cpu field to a specific arch, such as 'armv8-a', and this didn't trigger > > the modification for cpu_instruction_set. > > However, if we want to use a common arch in cross files like 'auto', the > > modification operation would override 'native' value to cpu_instruction_set > > and b7676fcccab4 ("config: verify machine arch flag") would break the build > > as it tries to test -march=native. > > > > > > > > Acked-by: Stephen Hemminger <stephen@networkplumber.org> > > Tested-by: Pavan Nikhilesh <pbhagavatula@marvell.com> Applied without the second patch of the series, thanks.