From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5EE35A04B5; Wed, 16 Sep 2020 18:44:19 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0782E1C440; Wed, 16 Sep 2020 18:44:19 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 451F01C43A for ; Wed, 16 Sep 2020 18:44:17 +0200 (CEST) IronPort-SDR: hQS7kufFRJ2+IdvdlCRYSbGGaRxkeNdMMgWuVbrf2L/kPsf3/oqgjnlIMEleumWobtqJznzvDq /SvC3DlbKFrA== X-IronPort-AV: E=McAfee;i="6000,8403,9746"; a="223696842" X-IronPort-AV: E=Sophos;i="5.76,433,1592895600"; d="scan'208";a="223696842" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Sep 2020 09:44:15 -0700 IronPort-SDR: 6hxeYm+rNjKiAt3YBEtBOf4Rge/L9apPMXmU1Zl9vk0Zi7FhMfr4v7NO7hzNtCfSMcvVlxuNk6 B0f62LustsWQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,433,1592895600"; d="scan'208";a="507229515" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by fmsmga006.fm.intel.com with ESMTP; 16 Sep 2020 09:44:15 -0700 Received: from orsmsx607.amr.corp.intel.com (10.22.229.20) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Wed, 16 Sep 2020 09:44:14 -0700 Received: from orsmsx601.amr.corp.intel.com (10.22.229.14) by ORSMSX607.amr.corp.intel.com (10.22.229.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Wed, 16 Sep 2020 09:44:14 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5 via Frontend Transport; Wed, 16 Sep 2020 09:44:14 -0700 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.170) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.1713.5; Wed, 16 Sep 2020 09:44:13 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hW1YS8WfQaBLqD2+OYXkrjBoqbsUTM/M5OInK3YSJc3ljL3cKAMeEINbUpL/cCWrVaEVGhN06Oo//R1cuZygLQFu6RvHMnh/dmh7wxutrRkjLJYzXEVpaGDrUP+W0lz2dW57EZH/SadV6yXwhYy6INncdjhxf2bmu8zncTyAPjIQvqpLxs64Z0qqzZkng80nDsO+ZxPqTxeReHReFS8TtinyEaftGFqTQMHBOQBTVfKCDNGGVSYVBidKpGICdeBLxy7hcBkmV0zBU8UnRvegE2uPdoJf162BQruyos3J889KDXItLVlu10rfrue1DdqJuIiCuM/8J3xhDEBwHaM09A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=g3LI69jNDAnkWZXYjZ1JRoF+2KnhNFflFZEEA4AXSCQ=; b=TcC2U5j0LAu+uz9Yn+rx8M8tLXfLSjnMdL6aqdCw148C7or+fqbxL558EMwKh+KxOQLTJ2gyp0O7EyUsXT5zjXhtEGZ5981QfU32l1E/jsS/7jomny5X14cFHzAhq5pq4W7q0JfOkvLr1ikRKajr+bEHK5v4o5IlXVr+zxPUUdii07jbMWukYChLVi2Fwf97L1Wr7hS/4krAsrpb35KIOw3q1H+MJEm01AOTSWdFhC8Vm+qqt6ybgqlpLlZh1w96FP/gX1Sb+4KF1uo3JUwMLQfmyGZwnq0PB4BsM98k7i32cOWEXWxpVN4hHu657VRKFODueIuPv438hc4NcMQgfg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=g3LI69jNDAnkWZXYjZ1JRoF+2KnhNFflFZEEA4AXSCQ=; b=VjYtn+DsTrnN3+RpqpKUBo4uFvlHSy4PV8LSV+/IqCjYgCzZzSQgNbdiLCz4+7oHgP00NO9N3XaxGBzjOcOmW/tHe4MTa4Argnw5qnnQNbEoxSwTHCJcQnneXj+O4DowPB2KmHE86T0Qd8fy1H3VSFvL1YUHdDBQrZeHujuAmSI= Received: from BYAPR11MB3301.namprd11.prod.outlook.com (2603:10b6:a03:7f::26) by BYAPR11MB2599.namprd11.prod.outlook.com (2603:10b6:a02:c6::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3370.16; Wed, 16 Sep 2020 16:44:11 +0000 Received: from BYAPR11MB3301.namprd11.prod.outlook.com ([fe80::f43b:a137:dab8:8b0b]) by BYAPR11MB3301.namprd11.prod.outlook.com ([fe80::f43b:a137:dab8:8b0b%6]) with mapi id 15.20.3391.011; Wed, 16 Sep 2020 16:44:11 +0000 From: "Ananyev, Konstantin" To: "Ma, Liang J" CC: "dev@dpdk.org" , "Hunt, David" , "Burakov, Anatoly" Thread-Topic: [dpdk-dev] [PATCH v3 3/6] power: add simple power management API and callback Thread-Index: AQHWitpY4W1ywzYujEqwq5tG0RKxQqlrW/OQgAAeIICAAAFIgA== Date: Wed, 16 Sep 2020 16:44:11 +0000 Message-ID: References: <1597141666-20621-1-git-send-email-liang.j.ma@intel.com> <1599214740-3927-1-git-send-email-liang.j.ma@intel.com> <1599214740-3927-3-git-send-email-liang.j.ma@intel.com> <20200914210140.GE13240@sivswdev09.ir.intel.com> <20200916163905.GA5955@sivswdev09.ir.intel.com> In-Reply-To: <20200916163905.GA5955@sivswdev09.ir.intel.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.5.1.3 authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [46.7.39.127] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: b4e3f5c1-69f6-4a7a-3a8f-08d85a5fbd4d x-ms-traffictypediagnostic: BYAPR11MB2599: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5236; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: hsYKiTeXP8+E8j3knzesQ/WMjFM6sp6q79T9aPvtE6kx6WtTkupDKKtcqavxHdmVhi22qZl6uGfi+qLLvkN/CsPRYCR28fUX5+jHjiOlMffCSd4s4IzQ4JZwBlEE+TeRJj+xk8tR9dMhd6Ciw//99uy0beb+lW9AGXzw7VmglcijncxWePLn9PfcEJwtbeSoHl2ly7mSuAZDJFc2iwWWL4a6BFCZI+Cf3L4Hro363HEY3nMa3n6KBfcgwjZlNahYNNUF3K73EqRTya9uML6zfgxl7Op66HJoz6YKQWF/Fhjx2TYrsQMSG8UABE4rPNXIHZjzTWf0Qi7hcKYomSjiiQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR11MB3301.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(346002)(376002)(396003)(366004)(136003)(39860400002)(86362001)(4744005)(5660300002)(52536014)(54906003)(6636002)(71200400001)(316002)(66476007)(478600001)(66446008)(64756008)(76116006)(66946007)(66556008)(107886003)(33656002)(2906002)(83380400001)(55016002)(26005)(6506007)(8936002)(4326008)(186003)(9686003)(6862004)(7696005)(8676002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: C3jTDCz3Go9fofvcNvF+7puIZiLPjzZC067a1jk+n6z20m6zClG5UB+YQphrN9O7T6NYmz8LR9oBKtZh1DdRx4cMrMx+4EgroIDJDBdXRlTBQt5UNY46kbkdfuNtkqgk9pWCJJIWWjy7R9KupFgzCsFeZr91TAunoPlPTCDy7rDAsQPmiYTW5eR1+IskwN6+XXpfzTwkpM9Ra5tE9Ztbho+eDjm4dvVZkVkAOy1P8NikNhAnwYjfUMqFY2GB/ASicn+PPeOjLUuMgm74gq6fNRl2vZv2ls1dg1wjXXSF4oNdE+APkJO2s29VZa9zmv1aAwKQ3i7uDSuiLK6dhSsXvt/PZnhJUkLXtOyKBmoGHPyjG5ml3JYdnQxLXjDYXJr5noSon30gUOAgl/TOzVsSM9RWVXUsiBGYwGoercS6c7hLVaZae9rpRDjOV10JQXZ6bj9XmbisIE5jTHU/IZ/ew0d9dZ9WwZUd2RC3SPgdpJjSf00vOdNGbq0J9r5dehvwXbwuGt6JIlQPA6agebExHojjQVc64OR+VbVknpTuEYZ67jjMc9XnqWY8thskAYzx+wnW3L39s60vaf/0GoVjKmwMVAFpr3+7tFUkyYcKKOyZ/IDHc33xI9fpmbDPZVUqNoC6w8vpJh9rjSzXlW2Yig== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BYAPR11MB3301.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b4e3f5c1-69f6-4a7a-3a8f-08d85a5fbd4d X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Sep 2020 16:44:11.6193 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: oGQ5pqd3Vn7gQlc4i89PxKM9kqopqIjP9TDT5LjSz8/+BMut5AGHA4TerSVlJB2ACdewyQhNhAEZJ95P6gbfmSzdmbbMeOfsO6I4hNR40Ls= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR11MB2599 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v3 3/6] power: add simple power management API and callback 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > On 16 Sep 07:53, Ananyev, Konstantin wrote: > > Yes. we only has two gear. min or max. However, user still can customize > their system max with power mgmt python script on Intel platform. Ok, thanks for explanation. > > So rte_power_init(lcore) always raises lcore frequency to > > max possible value? > > > > > > > > > > > +rte_eth_remove_rx_callback(port_id, 0, > > > > > + dev->cur_pwr_cb); > > > > > +if (rte_power_exit(lcore_id)) > > > > > +return -EINVAL; > > > > > +break; > > > > > +} > > > > > + > > > > > +dev->pwr_mgmt_state =3D RTE_ETH_DEV_POWER_MGMT_DISABLED; > > > > > +dev->cur_pwr_cb =3D NULL; > > > > > +dev->cb_mode =3D 0; > > > > > + > > > > > +return 0; > > > > > +}