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 F383045DCB; Fri, 29 Nov 2024 11:34:27 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DCF44402AE; Fri, 29 Nov 2024 11:34:27 +0100 (CET) Received: from fout-b7-smtp.messagingengine.com (fout-b7-smtp.messagingengine.com [202.12.124.150]) by mails.dpdk.org (Postfix) with ESMTP id 026334014F for ; Fri, 29 Nov 2024 11:34:26 +0100 (CET) Received: from phl-compute-09.internal (phl-compute-09.phl.internal [10.202.2.49]) by mailfout.stl.internal (Postfix) with ESMTP id 0408911401AA; Fri, 29 Nov 2024 05:34:25 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-09.internal (MEProxy); Fri, 29 Nov 2024 05:34:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1732876465; x=1732962865; bh=k98aE2xv4xMoCGNuLl3LGVk4sFya89i85go9nG23jSk=; b= f2X419ivPLVLdbSDunk5AkcdFmc7RTSpvplWhRsF8PjyKSTGiHnKTfoA3jjtYP26 y3b29F0luvwxwNV+DPiCri0IrLkwcFyjhkvFRfiL7PS5agupqmHCQUNiTfr5pqh7 pdVYYNyenykL1hSZCm+r4LZoDl8rq/tsY8syVki6+gwyAEWV7UfE3B8UtNPxshN3 b72jgHb6pw80C9VUCTrdz1c99sTPC4440NuCXNN4YiXM/lXbDZUcKta4tnFTque5 fVybQVTys1soy0y8+MZeWTeFYfePpDShTM15OdJ7z7HiA24cysxnrI3M0rJQRIUZ XTaDCELVstEGDWnKqO12AA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1732876465; x= 1732962865; bh=k98aE2xv4xMoCGNuLl3LGVk4sFya89i85go9nG23jSk=; b=q Gn8MfF8vBltwhlZCNU9iW/st0ZgZpHkdDBtuBH0gCQetxAo3Gj8xF0Ljy8G9SG79 /jrTXd9SErk4YKy3FfxwB/23nlfOL5tKpJ68ek7Ai0xQtxyFnxq3B13k5d545I41 6k6B0sVmRAv6EILFRj9pIPTnRM7ASd981SFtAPLigT9JTloSziifNVbxkBYrYsWA hCDpdRrqttMNTqvlQ8ABry3S0fwI4jjibyHw0w1Efk58WyCdHWer7l4Vw6lhCPqm v6Jn89q/O8iCgLUikxL3TRupxD8iqgdsvUAPHT08tLwwMIwUkdNfnp2vo0XXzUNz KPvBC2zlRjaCGVVy2ZarA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrheefgddujecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnth hsucdlqddutddtmdenucfjughrpefhvfevufffkfgjfhgggfgtsehtqhertddttdejnecu hfhrohhmpefvhhhomhgrshcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlh honhdrnhgvtheqnecuggftrfgrthhtvghrnhepteeijedvgedvhfekgeejvefggfeljeel vedvudffledvgfdvuefgfeehjeejieeknecuffhomhgrihhnpehgihhthhhusgdrtghomh enucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhho mhgrshesmhhonhhjrghlohhnrdhnvghtpdhnsggprhgtphhtthhopedutddpmhhouggvpe hsmhhtphhouhhtpdhrtghpthhtohepfhgvrhhruhhhrdihihhgihhtsegrmhgurdgtohhm pdhrtghpthhtohepshhivhgrphhrrghsrggurdhtuhhmmhgrlhgrsegrmhgurdgtohhmpd hrtghpthhtohepuggrvhhiugdrhhhunhhtsehinhhtvghlrdgtohhmpdhrtghpthhtohep rghnrghtohhlhidrsghurhgrkhhovhesihhnthgvlhdrtghomhdprhgtphhtthhopehjvg hrihhnjhesmhgrrhhvvghllhdrtghomhdprhgtphhtthhopehrrgguuhdrnhhitgholhgr uhesihhnthgvlhdrtghomhdprhgtphhtthhopehgrghkhhhilhesmhgrrhhvvghllhdrtg homhdprhgtphhtthhopegtrhhishhtihgrnhdrughumhhithhrvghstghusehinhhtvghl rdgtohhmpdhrtghpthhtohepkhhonhhsthgrnhhtihhnrdgrnhgrnhihvghvsehhuhgrfi gvihdrtghomh X-ME-Proxy: Feedback-ID: i47234305:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 29 Nov 2024 05:34:24 -0500 (EST) From: Thomas Monjalon To: ferruh.yigit@amd.com, Sivaprasad Tummala Cc: david.hunt@intel.com, anatoly.burakov@intel.com, jerinj@marvell.com, radu.nicolau@intel.com, gakhil@marvell.com, cristian.dumitrescu@intel.com, konstantin.ananyev@huawei.com, dev@dpdk.org Subject: Re: [PATCH] power/amd_uncore: add e-smi installation instructions Date: Fri, 29 Nov 2024 11:34:22 +0100 Message-ID: <8457069.T7Z3S40VBb@thomas> In-Reply-To: <20241129043207.999912-1-sivaprasad.tummala@amd.com> References: <20231219032826.4814-1-sivaprasad.tummala@amd.com> <20241129043207.999912-1-sivaprasad.tummala@amd.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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 29/11/2024 05:32, Sivaprasad Tummala: > Added section for installing and building the E-SMI library > for AMD EPYC Uncore support and version requirements. >=20 > Signed-off-by: Sivaprasad Tummala > --- > doc/guides/prog_guide/power_man.rst | 32 +++++++++++++++++++++++++++++ > 1 file changed, 32 insertions(+) >=20 > diff --git a/doc/guides/prog_guide/power_man.rst b/doc/guides/prog_guide/= power_man.rst > index 74039e5786..d367a81596 100644 > --- a/doc/guides/prog_guide/power_man.rst > +++ b/doc/guides/prog_guide/power_man.rst > @@ -249,6 +249,38 @@ Additionally, the EPYC System Management Interface I= n-band Library for Linux > offers essential API, enabling user-space software > to effectively manage system functions. > =20 > +E-SMI Installation > +------------------ > + > +To build DPDK with AMD EPYC Uncore the user is required to download the = e-smi > +library from `here `_ > +and compile it on their user system before building DPDK. > + > +.. code-block:: console > + > + cd esmi_ib_library > + cmake . > + sudo make install > + cp /opt/e-sms/e_smi/lib/* /usr/local/lib/* > + cp /opt/e-sms/e_smi/include/* /usr/local/include/* Why copying the files? You can specify the directories in an environment variable. There is no pkg-config file? > + > +Library file, header and tool are installed at /opt/e-sms. > + > +Note: Library is dependent on amd_hsmp.h header and without this, compil= ation will break. Yes, it does not compile on my machine (with Linux 6.12): e_smi.c:566:27: error: =E2=80=98HSMP_GET_RAPL_UNITS=E2=80=99 undeclared What should I do? > + > +The library requires CMake (v3.5.0) to be built. > + > +As a reference, the following table shows a mapping between the DPDK ver= sions > +and the E-SMI library and kernel version supported by them: > + > +.. table:: DPDK and E-SMI library and kernel version compatibility > + > + =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D > + DPDK version E-SMI version Linux Kernel version > + =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D > + 24.11+ 4.0.0 6.7+ > + =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D