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 43B06A0C3F for ; Sat, 12 Jun 2021 01:19:29 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3D78A4003F; Sat, 12 Jun 2021 01:19:29 +0200 (CEST) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2063.outbound.protection.outlook.com [40.107.93.63]) by mails.dpdk.org (Postfix) with ESMTP id D6F1B4003F for ; Sat, 12 Jun 2021 01:19:27 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cp5l5+zq+xePTX/K96nMOSADfjJyp612SSug9LJQuP5CKxh5XbSbDlSI1aPozKslYkmmXWXPzZfg6RKdI562dzKOZBh3Zfjiv6OfaQvkjEmqjoXnT/NsJ90Os7umBqKBF0G5HyZxBpEeoH3MnREeo/ux3G7iEFVx6IBQyi6W4YgavVyS0h5tGFB/GOyIAWTD+lvwwgTxiFk9pCw0M6iDugdM+3QsIU4Ourewk2NmdLxVCChrHE0ZRGu+Znvgz/0I6FCOUPwYWVjflFZIIf8cZ5CoUXLnpRTjakznVoAJG4n2DFrUFhr/7U6kgjwNWjy6wkNrzH8ABvdq28Fxb6J4Lg== 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=EWXoXuhZShwSBNruJKeamsKVeys2iWb65KVoXtaUQg8=; b=M8z5Q0UgF4pSIwkyUGTyTHhf13K8oFoyteiflwxqKYOLifWeI+7M38FxRRVIJp7zZPa8N1xFSFOzp2oY6XT55lVWh5PhVnqFdWhyasXGZQ+0RlYDUiwQwOzHvg0YXDeoMnDY7Zi+9r5u21NADR9GC9MIs+6j9JI8LTvB1pVCMVmgrgiP29E2YVmcRHKKFebR7kbKkP+ddDmZSvBMFBgJH1gZq/Yp8WEixuDrgDjlvNatfGM0X0r+srJiXuTR9X28w4w3BFAPxwMMFgDVqsZlli4gNgRv3Yis4g2gT/VpHVrNR4Fz6NZ3C3QWws96bXqIHx1kVp7z6BDvlk2GmI7Djw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=EWXoXuhZShwSBNruJKeamsKVeys2iWb65KVoXtaUQg8=; b=ZkTsnaP8/G3r1Yk9/vX9v+pYtSSEtbjPoAAaS+cplb4DCPfjjPCO8OsDcqLYFzxNlXDeus304r4UeTCOW0dhDqCDALdBh0GVt/EZEpCgftya+KRHJxQWDMusbiP3MVAWjQWW/N+B8HUIJOY1If47Ta5LYYOvccPruhEq1bRizvnB7r4Rz5urQzVif6SMyvWzfGkTn3LYFMNA7T0s1dDY58K/0f810DmaLdbR0TTsefj7K6B8/fxBbsFyhQQ1sOab9Zoq5F5CS8F4Kbou4N46tOX++eSwSOBIaMwEWBxVCUzWzZAgYL1B34xChNh7afptcBIsKWYFrLDT/ow4Km5mwQ== Received: from DM5PR22CA0009.namprd22.prod.outlook.com (2603:10b6:3:101::19) by MWHPR12MB1439.namprd12.prod.outlook.com (2603:10b6:300:12::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.21; Fri, 11 Jun 2021 23:19:25 +0000 Received: from DM6NAM11FT050.eop-nam11.prod.protection.outlook.com (2603:10b6:3:101:cafe::2d) by DM5PR22CA0009.outlook.office365.com (2603:10b6:3:101::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.21 via Frontend Transport; Fri, 11 Jun 2021 23:19:25 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by DM6NAM11FT050.mail.protection.outlook.com (10.13.173.111) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4219.21 via Frontend Transport; Fri, 11 Jun 2021 23:19:25 +0000 Received: from nvidia.com (172.20.187.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 11 Jun 2021 23:19:24 +0000 From: Xueming Li To: David Hunt CC: Luca Boccassi , dpdk stable Date: Sat, 12 Jun 2021 07:04:09 +0800 Message-ID: <20210611230433.8208-155-xuemingl@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210611230433.8208-1-xuemingl@nvidia.com> References: <20210510160258.30982-229-xuemingl@nvidia.com> <20210611230433.8208-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.187.5] X-ClientProxiedBy: HQMAIL105.nvidia.com (172.20.187.12) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 73b02022-66a6-4982-b1cb-08d92d2f5a94 X-MS-TrafficTypeDiagnostic: MWHPR12MB1439: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:386; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Kbu0qm7zTez4qrriiu+5WmT9zbjyU1xlaBhXH/M36JV8UuX7DEU4nFhLJXVxUMb8pbfzCaTQRub55nqRitsAjG6KXETBSQ/r3PnOYaPCKcn196lzrpyPc2lWoPhryC6ursQreUBQDs3Kn1EUVNiePWu2r2cc0s0B5NZFsHUYaZieKWytXVYZVkdDVpb9ajbIxKCaL4dLGaJb0WePAn1CkmhLEYZVD/Be5bGERckCR/59VLCwSrADKj8c0cZ20Z6kMco9swcMjaQfEh+nV629pviGtDlvptLQmUHqCFCVZvIkNwddnqiEL3GfisgYZcPLFunuj3LKJXh9xagg3OiVhcbOyDwVhjDQv85/SunWwuDPUH3H9+NzNaUt4njZ6kqgGez6Ak5cffzKH8Q5zHpHMLTC068lWj2QujrjBTyB9aXliqp0zgbVKfB7bgQYEwH9mHKeNgWpvLS5PTeM/tIqgeJe8GAxuSEF/tAD0oWqDhPZFJRpJh18rVwrRUMTo/scva377SVj76vIypky/fvV1dogJVUX97K7mwcWrum+d+TX7vMGle7zTGHDcNdBlIWh70s5CGR3aKberuGBCEpyO21BOVZwPW6aCDpGrzJ+6cn23rOjbvbS4ACwpl81lllhfkeLclICCOpOprHCMnt3LsFGqwODTJGKlCq1JzYOxTS7SngcuLLVhLKOrKLGAx1+AlJYy3FpZf4pEOQxv3dAueQuOQZh53e58HYXtU9tOR6RABeATDHe9HtOvxDYV6aabfJ+StOHKBS/Typ9QYPTdEhk0xbjFErSnm3g6a5pLB/j1ZWrEb4McUqsFWM5x8cx X-Forefront-Antispam-Report: CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE; SFS:(4636009)(136003)(39860400002)(376002)(396003)(346002)(46966006)(36840700001)(82740400003)(966005)(82310400003)(36756003)(2906002)(26005)(7696005)(186003)(16526019)(478600001)(7636003)(356005)(83380400001)(6666004)(36906005)(6286002)(6916009)(5660300002)(2616005)(70206006)(4326008)(55016002)(8676002)(53546011)(1076003)(8936002)(47076005)(54906003)(426003)(316002)(36860700001)(86362001)(336012)(70586007); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jun 2021 23:19:25.4833 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 73b02022-66a6-4982-b1cb-08d92d2f5a94 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT050.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR12MB1439 Subject: [dpdk-stable] patch 'test/power: fix turbo test' has been queued to stable release 20.11.2 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" Hi, FYI, your patch has been queued to stable release 20.11.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 06/14/21. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/steevenlee/dpdk This queued commit can be viewed at: https://github.com/steevenlee/dpdk/commit/61238b46be3fd48e6addc9b02d7fa354041d2962 Thanks. Xueming Li --- >From 61238b46be3fd48e6addc9b02d7fa354041d2962 Mon Sep 17 00:00:00 2001 From: David Hunt Date: Wed, 12 May 2021 17:32:54 +0100 Subject: [PATCH] test/power: fix turbo test Cc: Luca Boccassi [ upstream commit 5bb0409b440bf43f38b90c196a66accd09a5bf8f ] when turbo is enabled or disabled, the frequency is set to a low non-turbo frequency, so we need to set to the frequency expected by the test before checking. Fixes: aeaeaf5f2d62 ("test/power: add cases for turbo feature") Signed-off-by: David Hunt --- app/test/test_power_cpufreq.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/app/test/test_power_cpufreq.c b/app/test/test_power_cpufreq.c index c24b706f4f..0c3adc5f33 100644 --- a/app/test/test_power_cpufreq.c +++ b/app/test/test_power_cpufreq.c @@ -436,6 +436,12 @@ check_power_turbo(void) TEST_POWER_LCORE_ID); return -1; } + ret = rte_power_freq_max(TEST_POWER_LCORE_ID); + if (ret < 0) { + printf("Fail to scale up the freq to max on lcore %u\n", + TEST_POWER_LCORE_ID); + return -1; + } /* Check the current frequency */ ret = check_cur_freq(TEST_POWER_LCORE_ID, 0, true); @@ -455,6 +461,12 @@ check_power_turbo(void) TEST_POWER_LCORE_ID); return -1; } + ret = rte_power_freq_max(TEST_POWER_LCORE_ID); + if (ret < 0) { + printf("Fail to scale up the freq to max on lcore %u\n", + TEST_POWER_LCORE_ID); + return -1; + } /* Check the current frequency */ ret = check_cur_freq(TEST_POWER_LCORE_ID, 1, false); -- 2.25.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2021-06-12 06:54:00.491027600 +0800 +++ 0155-test-power-fix-turbo-test.patch 2021-06-12 06:53:56.620000000 +0800 @@ -1 +1 @@ -From 5bb0409b440bf43f38b90c196a66accd09a5bf8f Mon Sep 17 00:00:00 2001 +From 61238b46be3fd48e6addc9b02d7fa354041d2962 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Luca Boccassi + +[ upstream commit 5bb0409b440bf43f38b90c196a66accd09a5bf8f ] @@ -11 +13,0 @@ -Cc: stable@dpdk.org