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 EDE65A0A02; Tue, 6 Apr 2021 05:41:33 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6BE5F140EEC; Tue, 6 Apr 2021 05:41:32 +0200 (CEST) Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70081.outbound.protection.outlook.com [40.107.7.81]) by mails.dpdk.org (Postfix) with ESMTP id 87E414068B; Tue, 6 Apr 2021 05:41:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6rbJWps8gmOWlEY1VmvHvDkfakQuP+jtAu4ctPJUmWY=; b=ibZxJT559PjPKmoy5BMgzcIzWaQz7QBCHWWXnRddjLVREB3Th0ClDlvWpuVQbc6ckwDf0qKfzaDfopdfFUng9wTwjrz2I+DpNlm+wXF6nxhBkGJ+woxsX99PpH1PbhOL2/ewjPijauAcGs4A9HLWz1NmX1yxe/rolesY+7VfHmA= Received: from AS8PR04CA0057.eurprd04.prod.outlook.com (2603:10a6:20b:312::32) by DBBPR08MB4329.eurprd08.prod.outlook.com (2603:10a6:10:c7::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3999.32; Tue, 6 Apr 2021 03:41:29 +0000 Received: from VE1EUR03FT030.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:312:cafe::c7) by AS8PR04CA0057.outlook.office365.com (2603:10a6:20b:312::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3999.28 via Frontend Transport; Tue, 6 Apr 2021 03:41:29 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dpdk.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dpdk.org; dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by VE1EUR03FT030.mail.protection.outlook.com (10.152.18.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3999.29 via Frontend Transport; Tue, 6 Apr 2021 03:41:28 +0000 Received: ("Tessian outbound 82c2d58b350b:v90"); Tue, 06 Apr 2021 03:41:28 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 2096ee3784c1411c X-CR-MTA-TID: 64aa7808 Received: from fe7a8f11303a.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id BD12221F-98B7-4C92-BF22-D58ACDD3D13A.1; Tue, 06 Apr 2021 03:41:22 +0000 Received: from EUR01-HE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id fe7a8f11303a.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 06 Apr 2021 03:41:22 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XobtSSzLQsxWTATEsVcuuUdcsTXXxwI/vM7bgkBJ/sVvUVV8mSZrZR92EEzRZbwtIHQkgRDxllvMxYg/zqeVZpXzIRaco+F/9WyUqiUX5hFUcTnw/NAJYVx7t/DZb0TPiPsYXP8+uKp+btgbleU9h1QY9lc4+Hu9lAuZSIxLZaqQNlX228Ari1w7y8mr7P36MfWRO43CV71O7+lf0TWelADJi8tm419F7pwOYaINxyes5ec+cM9Wn7gaPCc3fWFEFBsMGhwXREShbuOPgcRO3yYs1Q7el2wmLXWKwjHp4hhIm1NTsxc60aOEG2iiOfn5syhsXkfT7LEojOI2LwHwUw== 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=6rbJWps8gmOWlEY1VmvHvDkfakQuP+jtAu4ctPJUmWY=; b=PuQzLT0UfWo3mb/t/4sCDJHDFZqFV6Utns7/aT3lOyGxhZQq5G7dMlRo2iktMtHMfRiXiAbWBmgVmA1M5u+VPgdlYE6E9JvLB9qPieD15XNbL4JP2dKRj5Ux50R7dw1T2g9Vc0ArCEqUF2G5Uy72R1MA6Ke9PfuknzjK8HBFGRCXZ2YBtEXJOABWCTmeQMcJLGgJUf8UPws9IbhuJk5zm7JLkmjEBrkeR3wh1xXV1hVUNurLbGC8gzsoXpjjr2EXkOFDEOJAdOY9mvWChPSEbnIrq9V6/bZ1NqRPZoS2QWt2bSsiVWa92nv+waM5WBSrwlnBtfQTqKYX9B7BYCoatg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=dpdk.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6rbJWps8gmOWlEY1VmvHvDkfakQuP+jtAu4ctPJUmWY=; b=ibZxJT559PjPKmoy5BMgzcIzWaQz7QBCHWWXnRddjLVREB3Th0ClDlvWpuVQbc6ckwDf0qKfzaDfopdfFUng9wTwjrz2I+DpNlm+wXF6nxhBkGJ+woxsX99PpH1PbhOL2/ewjPijauAcGs4A9HLWz1NmX1yxe/rolesY+7VfHmA= Received: from AM6PR0502CA0056.eurprd05.prod.outlook.com (2603:10a6:20b:56::33) by VI1PR0801MB1934.eurprd08.prod.outlook.com (2603:10a6:800:8a::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3999.27; Tue, 6 Apr 2021 03:41:20 +0000 Received: from VE1EUR03FT014.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:56:cafe::cd) by AM6PR0502CA0056.outlook.office365.com (2603:10a6:20b:56::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3999.28 via Frontend Transport; Tue, 6 Apr 2021 03:41:20 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; Received: from nebula.arm.com (40.67.248.234) by VE1EUR03FT014.mail.protection.outlook.com (10.152.19.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.3999.29 via Frontend Transport; Tue, 6 Apr 2021 03:41:19 +0000 Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX04.Arm.com (10.251.24.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Tue, 6 Apr 2021 03:41:18 +0000 Received: from wls-arm-cavium06.shanghai.arm.com (10.169.206.120) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.2176.2 via Frontend Transport; Tue, 6 Apr 2021 03:41:16 +0000 From: Richael Zhuang To: CC: , , David Hunt Date: Tue, 6 Apr 2021 11:41:10 +0800 Message-ID: <20210406034110.55790-1-richael.zhuang@arm.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210406030459.10261-1-richael.zhuang@arm.com> References: <20210406030459.10261-1-richael.zhuang@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain X-EOPAttributedMessage: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6d85e6fb-2a7d-4793-6ce8-08d8f8addcab X-MS-TrafficTypeDiagnostic: VI1PR0801MB1934:|DBBPR08MB4329: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:635;OLM:8273; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: UuoYb3zP21oExx5gtqAYfcClKbQ9LpTD7L8aAiDMWdfDIYhPU/Q41WjDh7fNQiq2BX5qh2Ox/FHviCXflndD/pNBUbk9zleTOTI4oo6zqpufCwP57iS4ql+x9TGijiByrzELBDE3dTIG5C/PmkfSkXVrn2rCEspPSqrT9CD4n4gKxJBqSZzOBRwywk4dXgwEgPOXVzk3DWNxi7o/xXk1HBRz4TLqChlW8pgykfw8w7JHEr4919QRLj/Pp68DW2KEf/UTiC0WIEZ9xd86t50FgDtaXKDTRFizU1evQF3IsX4FJCuvy8IdIMQoNA/wwF8DICAhXrjR1cGwKRtHSfo08LOEBxk06GskJaEi6RTXpeab1iZ5BPBkRBFnCtPJcer4I8so9CbmjAQX6F1ONBygw+EonkP9oHnYw6znRbtCfgJFyN5hmE9g3+33n/5xXvrDprT6UOcW3OrW7BUnh5D8OjvSMeNv/ogEckh+6ebOhxzeHJMKcMCIRR004VGQS9PJb39lQ5hM3XivAByAckwMX9oaOECQOU8ad9aNeuLv2ghF3iR4VVD1BiyOm4j1jCsK7n2FkWMABOQqM8+7eKj29noqPGaabkIINYjNHp6eT8mnr9jnHLIub6KqZTNaW+h4DykDF8yhyIIfXQj9uK4b9s8wqbkwQHShZsgtDAzkFZqfGfXMm7CKdiBxq3UIPaDn X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:nebula.arm.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(4636009)(136003)(396003)(376002)(346002)(39860400002)(46966006)(36840700001)(4326008)(336012)(478600001)(5660300002)(70586007)(36860700001)(186003)(36756003)(2616005)(2906002)(7696005)(316002)(8936002)(54906003)(1076003)(6666004)(47076005)(356005)(83380400001)(82740400003)(6916009)(81166007)(70206006)(44832011)(426003)(82310400003)(86362001)(8676002)(26005)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0801MB1934 X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT030.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: b734e4d9-e7f3-4cae-5c37-08d8f8add75a X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: uWN4eHt5IIkIPgFjn9KYyB57QbDKRO6RLUMUAnZaUcvxM/jRDht+0weql1E/VX4PYFzAhI3zM86g12gjxOjAn0rcGs/DyyaKOcZA3mLiKLGNCNV9R543dtzcDlXtNd7UkHx4u86tS/5o/ZH0iNWWp6ZkdLEs1nwdsvDd6iC3b1XQqq/mFi0RzQxwYzgu6ilsatOWTjJEOZf+WLwu54nscxjhItj14DxjBMimj/vvnJpow1/0+NZP/bo5+NsT0ricD5kUcuibr1DvTZ1XSci200KU/ScPYoJVSetSpnCbpF6CdkvbuAveJkTI58ab8bWs+UPI2+y+p8smv0TbeHMmPSMnZ4jgIWRJIjlWton2TNIaU7375JhyZZ3fQsirZf3SjtmZI+/Tz/GqpxtKeSBJztR+eqGMQKD9yygjIpXtrf0rD3shCvl5RyXmnKwxz8UqQbPCgNHWlVO7/AtAQL/GeiaXO2z8A+WlRcPuQUuLvcNg3AKVSAoFhAfM+GCQWbaDdxnDiBbEOdE7FUmwBABGkCAaFMImbH22Gtyzm20GPvLrxPUuSLIZcqkQ0J9ErwJhe8O1/c4ULf5Xe1zD+KFRzNRrXqjTxT4mkYctT08b83loTzNjLUoStMKrZa31YQush8VLBLJlSA/YL4F7Yf7wkA== X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(4636009)(136003)(396003)(376002)(346002)(39860400002)(36840700001)(46966006)(336012)(54906003)(36756003)(7696005)(26005)(1076003)(478600001)(6666004)(426003)(6916009)(316002)(8676002)(47076005)(2906002)(70206006)(82310400003)(5660300002)(8936002)(44832011)(86362001)(450100002)(83380400001)(2616005)(107886003)(186003)(70586007)(36860700001)(4326008)(81166007)(82740400003); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Apr 2021 03:41:28.6388 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6d85e6fb-2a7d-4793-6ce8-08d8f8addcab X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: VE1EUR03FT030.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR08MB4329 Subject: [dpdk-dev] [PATCH v1 2/2] test/power: fix a bug in cpufreq autotest 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" For platforms that don't support turbo boost,rte_power_turbo_status() returns "-ENOTSUP" (like power_kvm_vm_turbo_status()). So don't allow check_power_turbo() to continue if rte_power_turbo_status(TEST_POWER_LCORE_= ID)!=3D1 Fixes: aeaeaf5f2d62 ("test/power: add cases for turbo feature") Cc: lukaszx.krakowiak@intel.com Cc: stable@dpdk.org Signed-off-by: Richael Zhuang --- app/test/test_power_cpufreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test/test_power_cpufreq.c b/app/test/test_power_cpufreq.c index c4f4541ac..7a93bc90a 100644 --- a/app/test/test_power_cpufreq.c +++ b/app/test/test_power_cpufreq.c @@ -389,7 +389,7 @@ check_power_turbo(void) { int ret; - if (rte_power_turbo_status(TEST_POWER_LCORE_ID) =3D=3D 0) { + if (rte_power_turbo_status(TEST_POWER_LCORE_ID) !=3D 1) { printf("Turbo not available on lcore %u, skipping test\n", TEST_POWER_LCORE_ID); return 0; -- 2.20.1 IMPORTANT NOTICE: The contents of this email and any attachments are confid= ential and may also be privileged. If you are not the intended recipient, p= lease notify the sender immediately and do not disclose the contents to any= other person, use it for any purpose, or store or copy the information in = any medium. Thank you.