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 88DC1A0C4E; Tue, 2 Nov 2021 15:53:17 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 75E034114A; Tue, 2 Nov 2021 15:53:17 +0100 (CET) Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.170]) by mails.dpdk.org (Postfix) with ESMTP id 9AC104068F for ; Tue, 2 Nov 2021 15:53:15 +0100 (CET) Received: by mail-pf1-f170.google.com with SMTP id x64so1360108pfd.6 for ; Tue, 02 Nov 2021 07:53:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vvdntech-in.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=6D01Namkt6pFrgirJWW9itc/dKeHte0O8mwwRjLq5JU=; b=101vuohLCjBioUSjT0F1oTLtl3V3yh1sZ8742is7QXk0O9jOO4D3O1xMO8VliXun1c mPHpDEa9ZaWMhyNhVkMQSajYEyh085Vd+2IVzOk1GOPtLNCh3Ax50Ltc+ouEDD2gNsij 4JuLYtk+DuYYGHXuqO17EPRqUfbDBHoqh47+dLjpNYhoBObQ03xya1GGuIFr8kWWcE0n I3s5Ytj49FMa/tXBj82KfffEH/CE7fkox0oTydhhsMl2AEe1KDTF3M7I6CmYLwAaggig 63+dDgUUNXi2sHkPokw2V9ExKIsj2d2KlnU6lhyg9jtNMqgNrjySa24pJxu1NAQQYHU9 uCbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=6D01Namkt6pFrgirJWW9itc/dKeHte0O8mwwRjLq5JU=; b=ouMq5s8LBse5W+GRZzjpTONn1O4SnUSStbXExCZGZUzQN10Ha5Ya4lC6TVWwaesZ8H aS+T4rXJkBypbJVZ8e9cSqdd8BDETJX7CdgJxh5N6rQc/zLsXv7SNVAZ4vh/WrVjlVH3 l9SP2qU2YFXH30sysQiUr1WKw6j84XhjoBqN8SqrdrFt+UPsgQqUrTU1aQWjtrL9lbWG 3zV09apdFwqlKJ3/atP43TFTYbvE1GULDZZ+gFwau+1zhFOtXcwAL7VAqEWMbxK0zPaa GVgi6N29FP3smbgC+VkB7bYObLfhQt2qc7ay+oSe0bJXKxc9QKS+TDPqCMYacKyyOK14 ed8Q== X-Gm-Message-State: AOAM533+B8m2nz/ucnFoirbj87DcKH0QYcAt8Tu5yeGudec94BwdElOA PaFv8yFqXpV+q59GcZfhJjpPUGPwJbSFFcRW X-Google-Smtp-Source: ABdhPJw2lvH+whoCHb7qEAOx4WzT3vx3B9+JEWrDr8qCh2praxaBSrNBgMxx55+XF6J2BtZbAY8AXQ== X-Received: by 2002:a05:6a00:1712:b0:481:1f0e:177 with SMTP id h18-20020a056a00171200b004811f0e0177mr8451388pfc.69.1635864794521; Tue, 02 Nov 2021 07:53:14 -0700 (PDT) Received: from 470--5GDC--BLR.blore.vvdntech.com ([123.63.13.121]) by smtp.gmail.com with ESMTPSA id q13sm21277895pfj.26.2021.11.02.07.53.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Nov 2021 07:53:14 -0700 (PDT) From: Aman Kumar To: dev@dpdk.org Cc: thomas@monjalon.net, keesang.song@amd.com, aman.kumar@vvdntech.in Date: Tue, 2 Nov 2021 20:22:53 +0530 Message-Id: <20211102145253.413467-1-aman.kumar@vvdntech.in> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH] 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" -Dcpu_instruction_set=znverX meson option can be used to build dpdk for AMD platforms. Supported options are znver1, znver2 and znver3. Signed-off-by: Aman Kumar --- config/x86/meson.build | 9 +++++++++ doc/guides/linux_gsg/build_dpdk.rst | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/config/x86/meson.build b/config/x86/meson.build index 29f3dea181..21cda6fd33 100644 --- a/config/x86/meson.build +++ b/config/x86/meson.build @@ -72,3 +72,12 @@ endif dpdk_conf.set('RTE_CACHE_LINE_SIZE', 64) dpdk_conf.set('RTE_MAX_LCORE', 128) dpdk_conf.set('RTE_MAX_NUMA_NODES', 32) + +# AMD platform support +if get_option('cpu_instruction_set') == 'znver1' + dpdk_conf.set('RTE_MAX_LCORE', 256) +elif get_option('cpu_instruction_set') == 'znver2' + dpdk_conf.set('RTE_MAX_LCORE', 512) +elif get_option('cpu_instruction_set') == 'znver3' + dpdk_conf.set('RTE_MAX_LCORE', 512) +endif diff --git a/doc/guides/linux_gsg/build_dpdk.rst b/doc/guides/linux_gsg/build_dpdk.rst index 0b08492ca2..e224a06cbd 100644 --- a/doc/guides/linux_gsg/build_dpdk.rst +++ b/doc/guides/linux_gsg/build_dpdk.rst @@ -111,7 +111,7 @@ The instruction set will be set automatically by default according to these rule a common minimal baseline needed for DPDK. To override what instruction set will be used, set the ``cpu_instruction_set`` -parameter to the instruction set of your choice (such as ``corei7``, ``power8``, etc.). +parameter to the instruction set of your choice (such as ``corei7``, ``power8``, ``znver3``, etc.). ``cpu_instruction_set`` is not used in Arm builds, as setting the instruction set without other parameters leads to inferior builds. The way to tailor Arm builds -- 2.25.1