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 AD96FA0524; Wed, 5 May 2021 14:27:19 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 978D640040; Wed, 5 May 2021 14:27:19 +0200 (CEST) Received: from mail-io1-f41.google.com (mail-io1-f41.google.com [209.85.166.41]) by mails.dpdk.org (Postfix) with ESMTP id 436144003C for ; Wed, 5 May 2021 14:27:18 +0200 (CEST) Received: by mail-io1-f41.google.com with SMTP id t3so1461675iol.5 for ; Wed, 05 May 2021 05:27:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=unVLT+H0Tmxi5XAMm4mYwc4/BNs06p+WPuc70BMBApM=; b=NqJ9LfcRU5tbUO3efH3K5P3LbXUrghGy5TiC9BAAmEmF05PpQoofSfHPKmM+UHTuaM 70eDYeZloTAnH52HJPWLOvbmwPguyv4PfYJ7xCEhMA06VnVCpbZoiKjtI0srL0abSDd2 T5vmMc7fuukEiUqbHG63uDSEfx5m5fvSwvBMEjFXmaaqW78vvE1O36nZhv6UdzuWI1ky 6/dwbRnq9VYy+zo9LvN9M0ehX5ALuHUYLC1BMMSEmzmKl9FIkhrBJiy7Wv0fahUDBR8b OeeY4P5F8R8sMeQo8nfkf7XWl2yTONYo4+nvpw+prUkMt52utfjxzg5qw8hPrk2dRqej eIcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=unVLT+H0Tmxi5XAMm4mYwc4/BNs06p+WPuc70BMBApM=; b=D1QSeq11JWP+V8ljaxl7Rp/5kSFNorQ9oHmX3Sh87Zk9sdo2n1j2qn1PJOew7OXmWh Utt4K6vc1iyNMATshy2ZDQ23AczhiouRaTmGN23Hy24oZbTR6KzPYmIGJabubm1jkkIh xh8njbFiYN7wc/88xBFfuy0RMstn2RxLyJ7JgycGjBVYHSL+VLypruTUH3B0bTwe9F2S 7e7SnlIgmstAAIkVrNNvx1gGSU68P1zWE+BQXx0udZvtIcWdWEjBAZEfhezTMj0UFVjd Dqm9SmHGIroDZu11BhQgLr7bmMb4Y5cmBEUUJ848tFVQ1nSOFGCoTCYJdArt0imbSIih ahQg== X-Gm-Message-State: AOAM533qznlt1YDC868fPx3GPIbSaT5uRX2pWxIfQpS6yF5YdG4XrzoV Az7UKmKLhsRn1n+V6JIzlRtzhQ+JC3BGNvecU38= X-Google-Smtp-Source: ABdhPJz3/Uf8lqZ3y52ooHn1nxDS5LeKrBSKCJNAUDnrGmd5N+dwYEpDgphTb1ujrnj0u2WLoE5jrt4/mLHtsAwPSjs= X-Received: by 2002:a05:6638:3c8:: with SMTP id r8mr27949413jaq.112.1620217637531; Wed, 05 May 2021 05:27:17 -0700 (PDT) MIME-Version: 1.0 References: <20210505121423.850-1-pbhagavatula@marvell.com> In-Reply-To: <20210505121423.850-1-pbhagavatula@marvell.com> From: Jerin Jacob Date: Wed, 5 May 2021 17:57:01 +0530 Message-ID: To: Pavan Nikhilesh Cc: Jerin Jacob , =?UTF-8?Q?Juraj_Linke=C5=A1?= , Jan Viktorin , Ruifeng Wang , Bruce Richardson , dpdk-dev Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH] config/arm: add ability to express arch extensions 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" On Wed, May 5, 2021 at 5:44 PM wrote: > > From: Pavan Nikhilesh > > The ARM architecture allows SoCs to have extensions in addition > to base profiles such as Large System Extension (LSE), CRC etc. > > Add ability to declare SoC specific extensions. > > Signed-off-by: Pavan Nikhilesh Acked-by: Jerin Jacob > --- > > More details about ARM extensions > https://developer.arm.com/documentation/102378/0200 > > config/arm/meson.build | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/config/arm/meson.build b/config/arm/meson.build > index 22cd81319..8aa961e5b 100644 > --- a/config/arm/meson.build > +++ b/config/arm/meson.build > @@ -230,6 +230,7 @@ soc_cn10k = { > ['RTE_MAX_LCORE', 24], > ['RTE_MAX_NUMA_NODES', 1] > ], > + 'extensions' : ['lse', 'crc'], > 'part_number': '0xd49', > 'numa': false > } > @@ -387,6 +388,7 @@ else > endif > > soc_flags = [] > + soc_extensions = [] > if soc_config.has_key('not_supported') > error('SoC @0@ not supported.'.format(soc)) > elif soc_config != {} > @@ -394,6 +396,7 @@ else > implementer_config = implementers[implementer_id] > part_number = soc_config['part_number'] > soc_flags = soc_config.get('flags', []) > + soc_extensions = soc_config.get('extensions', []) > if not soc_config.get('numa', true) > has_libnuma = 0 > endif > @@ -431,6 +434,11 @@ else > # apply supported machine args > machine_args = [] # Clear previous machine args > foreach flag: part_number_config['machine_args'] > + if flag.startswith('-march') and soc_extensions.length() != 0 > + foreach ex: soc_extensions > + flag += '+' + ex > + endforeach > + endif > if cc.has_argument(flag) > machine_args += flag > endif > -- > 2.17.1 >