From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) by dpdk.org (Postfix) with ESMTP id E52DF1B5CE for ; Wed, 19 Dec 2018 04:19:01 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id C1FB913A2; Tue, 18 Dec 2018 22:19:00 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Tue, 18 Dec 2018 22:19:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=mesmtp; bh=FkEmDPoRUyS2nxoh786UomwDe0veU36oDokEQbpiQDQ=; b=lPeHD5axgXWX KGc11/3v6fBkVAC8gmXyodV7UovO4F+cakTgVxLYH9IgB9aEz0x80FrAGQ9ENwGT WI/8GdhY/YZQXfqpaLnxSUdyc/fZ7B2H/rkdGQ3gYfRETu63xSRj9CbmZvKKarM2 Y9zy38EyLVSQO7ZmUT0WCQyZUo7EguQ= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=FkEmDPoRUyS2nxoh786UomwDe0veU36oDokEQbpiQ DQ=; b=ezTJhA2J4RjDJSOyzNjFKavIoH62SOp4cVhBy2x6M8Qnsc32NAM0VTBcc QQvtinj40sCTx5pwz5Ysh1Ac6y/lbhRCWU++T2w/VF45jxd/HoBGKt5fkBCs9tBg Q6q4Xr4BiGp1pUuMdgZP9BNTeMrlu2IZgM9f6tgwb/xAsRAbS7mBKiBiDRI2gKeS mfSNiQI/VT0ydaSkvmRkk0CJkiUOqDBMquQtFTXBBH1GbCYFLCE8yxl0+2dBGiG2 AnW+RQwiN2fs+uR+9geEACNjNtq/zoYk8uPgspaWVuN3LlDjDk5OQGaDCW5b4oiS K8hkFSZAo5CKyz6vuDjAwADhFz3/A== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedtkedrudeiledgvdelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfquhhtnecuuegrihhlohhuthemucef tddtnecunecujfgurhephffvufffkfgjfhgggfgtsehtqhertddttdejnecuhfhrohhmpe fvhhhomhgrshcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgv theqnecukfhppeejjedrudefgedrvddtfedrudekgeenucfrrghrrghmpehmrghilhhfrh homhepthhhohhmrghssehmohhnjhgrlhhonhdrnhgvthenucevlhhushhtvghrufhiiigv pedt X-ME-Proxy: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 3544BE4366; Tue, 18 Dec 2018 22:18:59 -0500 (EST) From: Thomas Monjalon To: Liang Ma , david.hunt@intel.com Cc: dev@dpdk.org, anatoly.burakov@intel.com Date: Wed, 19 Dec 2018 04:18:58 +0100 Message-ID: <2602247.RKfj1taVKr@xps> In-Reply-To: <1544793093-9971-1-git-send-email-liang.j.ma@intel.com> References: <1544786028-10138-1-git-send-email-liang.j.ma@intel.com> <1544793093-9971-1-git-send-email-liang.j.ma@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH v3] libs/power: add p-state driver compatibility X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Dec 2018 03:19:02 -0000 14/12/2018 14:11, Liang Ma: > Previously, in order to use the power library, it was necessary > for the user to disable the intel_pstate driver by adding > =E2=80=9Cintel_pstate=3Ddisable=E2=80=9D to the kernel command line for t= he system, > which causes the acpi_cpufreq driver to be loaded in its place. >=20 > This patch adds the ability for the power library use the intel-pstate > driver. >=20 > It adds a new suite of functions behind the current power library API, > and will seamlessly set up the user facing API function pointers to > the relevant functions depending on whether the system is running with > acpi_cpufreq kernel driver, intel_pstate kernel driver or in a guest, > using kvm. The library API and ABI is unchanged. >=20 > Signed-off-by: Liang Ma >=20 > Reviewed-by: Anatoly Burakov > --- Please write a changelog when sending a new version. Dave, any comment on this patch? > --- /dev/null > +++ b/lib/librte_power/power_pstate_cpufreq.c > @@ -0,0 +1,770 @@ > +/* SPDX-License-Identifier: BSD-3-Clause > + * Copyright(c) 2018-2018 Intel Corporation Something wrong here :)