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 4EEC9A0547; Wed, 27 Oct 2021 08:26:58 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D00E8407FF; Wed, 27 Oct 2021 08:26:57 +0200 (CEST) Received: from mail-ed1-f44.google.com (mail-ed1-f44.google.com [209.85.208.44]) by mails.dpdk.org (Postfix) with ESMTP id 0DD1D4003F for ; Wed, 27 Oct 2021 08:26:57 +0200 (CEST) Received: by mail-ed1-f44.google.com with SMTP id y12so6225888eda.4 for ; Tue, 26 Oct 2021 23:26:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vvdntech-in.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=FPxnhXe81diOwDjp3q5944VDS75aRaPOlH7qcJcHkS0=; b=kaIDKLasDEqpAs7jlGcZKOuYnLozNKzQfhsNDOp/JLKrnf58Wvw44HQWcQS7oQcvTF ESXI1oOpXtjvCauIZkTSgr72xVtL10+n+3DDAVS7lNkTvDDMV/Xsejw/o05AfLvw9+4s e1ZWvOEp/tIzzZG6L5iHgWH9q+Hv75+Q2f9bzRg0jQRwcMP+egQy+WFHMbnJnSQroEDQ Nk9LqqXWmsXDovhMl95LZOkNsbi952J6Wgf8iTwW7lTxHXNQvMWTI4eOdUn6lKwPzDy9 qwjzSPFMsci2xw4m12te14Bvd8ZEmupWngApO8j5hfslq3XrWt88tk4ytT/grLFI5yfH rHVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FPxnhXe81diOwDjp3q5944VDS75aRaPOlH7qcJcHkS0=; b=Mfxfpe5x7AZVfCS3x9o4TKuyNEJmQFHabUfSYNRo62efzHh9I1JHTn2tTPufl5Y+IA kHGwQMVKKLanpect39YQdogEojkMrrY7m48tEY5dvRrLpUqmfs0+40KIM56RZHzPHPXq figxRVL0IrZHCY/KpFyOAwzMFFakMop160th29rjfKhFpj8zM+lVMjiDfHcuUAWev8M0 zQCzb3DT/7GNAc0uoAt24Au97r9eOSyrBMDgNl3WxWg+7nP3IfEPiIp5c7Xa1Jp8j04V SQmQytE5QYHmORMEfU6QouC7+4isfAixr6v7aISKt8Co2u2p+8VJetegKzDxHrZCUy0Y xZbg== X-Gm-Message-State: AOAM530Rx+vEHNT2bT9dMdHbMFopqHdq2VJAleIIKHmchdHpV3QZZsnR wd0awTiTWaI0LCg5HII9s6hghbvlWWaZ5p4H5TQAyQ== X-Google-Smtp-Source: ABdhPJwKsTREDP2tkJYb2TNYlcpEXP09OAFZT/PQp9c2ROgyMXPgahOC1obeNvrsxVUHPfBMQvPml6oeBwBa1oIYFeQ= X-Received: by 2002:a17:906:40c6:: with SMTP id a6mr13058776ejk.484.1635316016714; Tue, 26 Oct 2021 23:26:56 -0700 (PDT) MIME-Version: 1.0 References: <20211019104724.19416-1-aman.kumar@vvdntech.in> <20211026155645.246783-1-aman.kumar@vvdntech.in> <2741216.lpzi2hOlY4@thomas> In-Reply-To: <2741216.lpzi2hOlY4@thomas> From: Aman Kumar Date: Wed, 27 Oct 2021 11:56:45 +0530 Message-ID: To: Thomas Monjalon Cc: dpdk-dev , Slava Ovsiienko , Anatoly Burakov , "Song, Keesang" , Jerin Jacob , konstantin.ananyev@intel.com, bruce.richardson@intel.com Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: Re: [dpdk-dev] [PATCH v3 1/3] config/x86: add support for AMD platform 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 Tue, Oct 26, 2021 at 9:31 PM Thomas Monjalon wrote: > 26/10/2021 17:56, Aman Kumar: > > -Dcpu_instruction_set=znverX meson option can be used > > to build dpdk for AMD platform. Supported options are > > znver1, znver2 and znver3. > > OK that approach looks good. > > > +# AMD platform support > > +if get_option('cpu_instruction_set') == 'znver3' > > + dpdk_conf.set('RTE_MAX_LCORE', 512) > > +elif get_option('cpu_instruction_set') == 'znver2' > > + dpdk_conf.set('RTE_MAX_LCORE', 512) > > +elif get_option('cpu_instruction_set') == 'znver1' > > + dpdk_conf.set('RTE_MAX_LCORE', 256) > > +endif > > Maybe sort it in the reverse order, starting with 1? > > OK. Will update this.