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 868DCA0547; Tue, 26 Oct 2021 17:57:18 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 74C60410D5; Tue, 26 Oct 2021 17:57:18 +0200 (CEST) Received: from mail-pg1-f180.google.com (mail-pg1-f180.google.com [209.85.215.180]) by mails.dpdk.org (Postfix) with ESMTP id CA630407FF for ; Tue, 26 Oct 2021 17:57:16 +0200 (CEST) Received: by mail-pg1-f180.google.com with SMTP id r28so10247539pga.0 for ; Tue, 26 Oct 2021 08:57:16 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=ShNv+jJvS1kJxCxWh9r1XwjX8GwEARHC5VRHRTfkqpg=; b=vzZa9dOVreN4ZZSbYDfFUEvc08BSbpM/TAIyC5bn8pbigvn+y0waL8VrYnlfK4+dLQ 1chRi2m7z65X1LGhyWWC2GYi3k3KxWOoBG+qNOq9SmPAqYdrc0TD7VdW3eMsyAqd3xTO ah0BrG34jsBLBd3ACCjGFtWrLpDk9MlFyoyCRxUUhIDrSVcKGERAH+2xYVhPHaauPO6D lYANNeRIRrp1gj488s51Tt/o5BLAqUejlUODCvYB/Xn0FoLEGipk9gsYTcqYsgtNPAAL TiXWP9vchBK4xRcFwJgv98mpbHXPJ00VfkmqsBNdBNIB2Lm2xFPz5StxUnL1wC0yJxK2 oRKQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=ShNv+jJvS1kJxCxWh9r1XwjX8GwEARHC5VRHRTfkqpg=; b=QSbdlWGd8g9Q7ypTc89pdIQcSEoIirDkhJ4a++/Y57xnl02o8UsPhZ8GWwcuk5ea2I 6m5PJTMVf0kwu1cdmB9BA6cCYlBKQKWxGGVH3I6+aWaET7mkDGVBcQaRGMZgTfBMt3D2 AF7PK6ZKnkm6Dy9LQPA5pNXyog6TqfzR+zzvkr15DAqsuu0G7dh3pz0STmBj6klZzRYF DxtZefMVYdurFWDwHFg+p7NDTm4v8FzYdDpVylOJPfgPkn/apuUAKH/uCEju1wZwwQia xQ2pixCcLhQhWaKtw6FWE8q6kGg/wIlyNDKVJSY9BXzY05roWduluzF540R+hko0hAwg AjAg== X-Gm-Message-State: AOAM531aZ9aF0vmWAYFJAaF8jT1+YRGig78otsyeo1qo+OhvcSwpuI2a mbI1grsx05MrzZ0Sdn+dDUMEudBsmpz8ldf9 X-Google-Smtp-Source: ABdhPJy/hWsuFrsP03OuOOseY+He5ITNWGTrLmTbDHbCbSpldibLoJv5K7Oo647ozI0g9GBrc7RDnQ== X-Received: by 2002:a65:448a:: with SMTP id l10mr19502148pgq.313.1635263835765; Tue, 26 Oct 2021 08:57:15 -0700 (PDT) Received: from 470--5GDC--BLR.blore.vvdntech.com ([106.51.39.131]) by smtp.gmail.com with ESMTPSA id b8sm24649824pfv.56.2021.10.26.08.57.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Oct 2021 08:57:15 -0700 (PDT) From: Aman Kumar To: dev@dpdk.org Cc: thomas@monjalon.net, viacheslavo@nvidia.com, anatoly.burakov@intel.com, keesang.song@amd.com, aman.kumar@vvdntech.in, jerinjacobk@gmail.com, konstantin.ananyev@intel.com, bruce.richardson@intel.com Date: Tue, 26 Oct 2021 21:26:43 +0530 Message-Id: <20211026155645.246783-1-aman.kumar@vvdntech.in> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211019104724.19416-1-aman.kumar@vvdntech.in> References: <20211019104724.19416-1-aman.kumar@vvdntech.in> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [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" -Dcpu_instruction_set=znverX meson option can be used to build dpdk for AMD platform. Supported options are znver1, znver2 and znver3. Signed-off-by: Aman Kumar --- config/x86/meson.build | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/config/x86/meson.build b/config/x86/meson.build index 29f3dea181..abb1bafb6e 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') == '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 -- 2.25.1