From patchwork Fri Apr 14 12:41:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akihiko Odaki X-Patchwork-Id: 126083 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3161442941; Fri, 14 Apr 2023 14:42:11 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 08F34427E9; Fri, 14 Apr 2023 14:42:07 +0200 (CEST) Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) by mails.dpdk.org (Postfix) with ESMTP id 70317400D5 for ; Fri, 14 Apr 2023 14:42:05 +0200 (CEST) Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-1a67bcde3a7so6938445ad.3 for ; Fri, 14 Apr 2023 05:42:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daynix-com.20221208.gappssmtp.com; s=20221208; t=1681476124; x=1684068124; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=9yKSVtUmL7fISSvwiIUd6nZfAbcLhfSWqHvgiqYFbGI=; b=Nka0/j5M9p98kMBUsoe1uc29GMT1N/0c1jNYgjIwpkn4SS9TA0p4lL16UkjNgwk5Sf TD03/GtfhXYzDsaq20Gtyi5CzgNf4Tvl+5pKncq9rxqgFr6ovBzfvitLpcIl6mKFb+y3 Jn7N+BRTV4gC5XLoHMbDVSMeZ/HPE48rvWTZuUpfX/P86v/EPDUC4InWvEMgL+ci4ahw A5IAOcrTd+BnF9arW7rohQJI3gmg+1sMqmCrLSeJPT2uSp6yuPlvEGBHPzZXARtnBuO/ 651vS052uHxZF8CgTstpJEMcJ4eG07X20L6d7Pw8msH9ILvAByKX7KYdS4QrYeRkhukK ASvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681476124; x=1684068124; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9yKSVtUmL7fISSvwiIUd6nZfAbcLhfSWqHvgiqYFbGI=; b=QQ6rxBTyfVp9g+Cbg7NjSRAyeO/87M7uujDmNJYxx1tUVJ3WS6enueC6+LHKYACWMc NbcNgAVvUJlB+3D8I2JCGUiMZZmTZ43I/c7ipm1js3HLmFtOanHNBbCINknXp0TYKJL3 jtZouHxu7SQ434nXpZjZuZWw0AN8V0YfPx17sQqGOY8M7HL1nejZ4gScXNXukZlRDyXh uk891n+E1J0Adfhi4/8kzFObEwSi2vd/AZ4QLQzpdpGHfwmbVTzhmKhFdaA2wDLz8q+R SjpZL8f79GZB+czNS8pJhfgkpn+CJSKWK+rNLLxSHgdEvJmP2k5syeKrnmge+OFiAzR7 v+PA== X-Gm-Message-State: AAQBX9d8v0RgSvn0vrtPa0efbqcmeKOceiJB6AXv0ITBvgTzcgWXKqNT T3cZlPvtuGqeL1GSqDOClxJUTQ== X-Google-Smtp-Source: AKy350bf4oiMEsg16f+MKlmYNEt0LWfTwgHzib7tt+DwxRHAZiKiw9vQz4FE23U+dUj00/szMISNVQ== X-Received: by 2002:a05:6a00:2485:b0:62a:d752:acc5 with SMTP id c5-20020a056a00248500b0062ad752acc5mr8728685pfv.32.1681476124631; Fri, 14 Apr 2023 05:42:04 -0700 (PDT) Received: from alarm.flets-east.jp ([2400:4050:a840:1e00:4457:c267:5e09:481b]) by smtp.gmail.com with ESMTPSA id y6-20020aa78046000000b00634a96493f7sm2958137pfm.128.2023.04.14.05.42.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Apr 2023 05:42:04 -0700 (PDT) From: Akihiko Odaki To: Ruifeng Wang , Bruce Richardson Cc: dev@dpdk.org, Akihiko Odaki Subject: [PATCH 1/2] config/arm: Do not require processor information Date: Fri, 14 Apr 2023 21:41:38 +0900 Message-Id: <20230414124139.66443-2-akihiko.odaki@daynix.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230414124139.66443-1-akihiko.odaki@daynix.com> References: <20230414124139.66443-1-akihiko.odaki@daynix.com> MIME-Version: 1.0 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 DPDK can be built even without exact processor information for x86 and ppc so allow to build for Arm even if we don't know the targeted processor is unknown. Signed-off-by: Akihiko Odaki --- config/arm/meson.build | 36 +++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/config/arm/meson.build b/config/arm/meson.build index 6442ec9596..724c00ad7e 100644 --- a/config/arm/meson.build +++ b/config/arm/meson.build @@ -582,29 +582,31 @@ if update_flags enable_drivers += ',' + soc_config.get('enable_drivers', '') endif - if implementers.has_key(implementer_id) + if not implementers.has_key(implementer_id) + implementer_id = 'generic' + endif + + implementer_config = implementers[implementer_id] + part_number_config = implementer_config['part_number_config'] + + if not part_number_config.has_key(part_number) + implementer_id = 'generic' + + if dpdk_conf.get('RTE_ARCH_32') + part_number = 'generic_aarch32' + else + part_number = 'generic' + endif + implementer_config = implementers[implementer_id] - else - error('Unsupported Arm implementer: @0@. '.format(implementer_id) + - 'Please add support for it or use the generic ' + - '(-Dplatform=generic) build.') + part_number_config = implementer_config['part_number_config'] endif + part_number_config = part_number_config[part_number] + message('Arm implementer: ' + implementer_config['description']) message('Arm part number: ' + part_number) - part_number_config = implementer_config['part_number_config'] - if part_number_config.has_key(part_number) - # use the specified part_number machine args if found - part_number_config = part_number_config[part_number] - else - # unknown part number - error('Unsupported part number @0@ of implementer @1@. ' - .format(part_number, implementer_id) + - 'Please add support for it or use the generic ' + - '(-Dplatform=generic) build.') - endif - # add/overwrite flags in the proper order dpdk_flags = flags_common + implementer_config['flags'] + part_number_config.get('flags', []) + soc_flags From patchwork Fri Apr 14 12:41:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akihiko Odaki X-Patchwork-Id: 126084 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id CA8A742941; Fri, 14 Apr 2023 14:42:16 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 279F342C24; Fri, 14 Apr 2023 14:42:09 +0200 (CEST) Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) by mails.dpdk.org (Postfix) with ESMTP id 22D8642B8E for ; Fri, 14 Apr 2023 14:42:07 +0200 (CEST) Received: by mail-pl1-f179.google.com with SMTP id d9443c01a7336-1a6715ee82fso7812545ad.1 for ; Fri, 14 Apr 2023 05:42:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daynix-com.20221208.gappssmtp.com; s=20221208; t=1681476126; x=1684068126; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=oS9GN4byybpfU2zct8pDDsZ9c5G3yrbIm0s+pC71SGk=; b=29gS062KVWlURf6S/kjHbWGEaB8FFxhsdod69bVhqNVBnP0AqcU+PabuBQXxVdVjzY lvr45wZ60CS+K/7ikgWROGaXcQB/faJQjZ151WizzzeQfDfFMNTy9qZiPGZIUGQX7kxm WBmTyqY0N4B0EEP8iCXDQ+u6RGVRbpFMAw0xOQxyWUErK+mm78fIBNqFrlm4C9PZGwQG I4vou330iXopZ8YUZWWQiJdePpMRrwkoblfu2NCp9GzrV/ajxTy7Kt/l9x+7Y56devax x6OHc2LFc9cyuuCtSi49rrOcN00M0xWP83IACCpccWZ2Rs8rA/42eVkEqXX2MtPXs2j8 BN1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681476126; x=1684068126; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=oS9GN4byybpfU2zct8pDDsZ9c5G3yrbIm0s+pC71SGk=; b=bODT1pSixqDS+YIXs4C3gxMD9Oo2cGsd4LA8VlULLWemWc8mBnuT3awROnTwzmSljJ lg/afUBza09UcjOELO9jAkkaJswOtQ3Kz0CdICsk01+pRks8b4NFv8/UmO88LLlCr4c2 o1tP/BjJMbayA8tWgBcNWC9svYne0t8BJiyIuuJBd2OV8IK1c9kwjZEXrfO+mYdMGTaw YV3fnrixMng4Rpf3a2MSIFLSiryYFnn/59TtXGlcSAPKowcpQ9nqW2YzZ5iln58IXUCQ iqEMQjSRYibZofRJlxu627yklpedO/PK+RVi81qSskDcFSv4/wb60Kl98WhsoNWImO7j UYsw== X-Gm-Message-State: AAQBX9dtxZBRm6HtvFqWcbEHbz+YHqBE46ymJRz+Ov6TpquaWsW0TvkK i7C1iGVNWWc8eOOLfhglvbqXzg== X-Google-Smtp-Source: AKy350a9/+xb+BbSXz2M27VpeAygyWWH3Ht04J9UGiUanjSHegjlxMeDEROPhRS1/gEU2Dq4UJHTdA== X-Received: by 2002:a05:6a00:a25:b0:62a:c1fa:b253 with SMTP id p37-20020a056a000a2500b0062ac1fab253mr8792842pfh.31.1681476126346; Fri, 14 Apr 2023 05:42:06 -0700 (PDT) Received: from alarm.flets-east.jp ([2400:4050:a840:1e00:4457:c267:5e09:481b]) by smtp.gmail.com with ESMTPSA id y6-20020aa78046000000b00634a96493f7sm2958137pfm.128.2023.04.14.05.42.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Apr 2023 05:42:06 -0700 (PDT) From: Akihiko Odaki To: Ruifeng Wang , Bruce Richardson Cc: dev@dpdk.org, Akihiko Odaki Subject: [PATCH 2/2] config/arm: Enable NUMA for generic Arm build Date: Fri, 14 Apr 2023 21:41:39 +0900 Message-Id: <20230414124139.66443-3-akihiko.odaki@daynix.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230414124139.66443-1-akihiko.odaki@daynix.com> References: <20230414124139.66443-1-akihiko.odaki@daynix.com> MIME-Version: 1.0 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 We enable NUMA even if the presence of NUMA is unknown for the other architectures. Enable NUMA for generic Arm build too. Signed-off-by: Akihiko Odaki --- config/arm/meson.build | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/config/arm/meson.build b/config/arm/meson.build index 724c00ad7e..f8ee7cdafb 100644 --- a/config/arm/meson.build +++ b/config/arm/meson.build @@ -271,13 +271,15 @@ implementers = { soc_generic = { 'description': 'Generic un-optimized build for armv8 aarch64 exec mode', 'implementer': 'generic', - 'part_number': 'generic' + 'part_number': 'generic', + 'numa': true } soc_generic_aarch32 = { 'description': 'Generic un-optimized build for armv8 aarch32 exec mode', 'implementer': 'generic', - 'part_number': 'generic_aarch32' + 'part_number': 'generic_aarch32', + 'numa': true } soc_armada = {