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 82878A0A02 for ; Tue, 6 Apr 2021 05:05:27 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5C74E4068B; Tue, 6 Apr 2021 05:05:27 +0200 (CEST) Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2067.outbound.protection.outlook.com [40.107.21.67]) by mails.dpdk.org (Postfix) with ESMTP id C56564068B; Tue, 6 Apr 2021 05:05:25 +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=BZNcWtmJ1hNOvRJUAmZZoefogSJwX0RVsSK6Wx7bf0A=; b=MywotnDIRow5UADPdvrJ4Swjs77LnpIiuHaC49Qh8+mWImbAVmbfuUKzx96385jCjsHBEfyk/ctOO8DGBdElKp1XEbQSanUMA34QkOIeetTCLv3pjc79OUOjrwwBqpHtr/wkejEcB2Bf+mESvgteCDmY+tj/wLxQQkrHLJZuOtM= Received: from DB8PR06CA0058.eurprd06.prod.outlook.com (2603:10a6:10:120::32) by AM6PR08MB4072.eurprd08.prod.outlook.com (2603:10a6:20b:a8::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3999.28; Tue, 6 Apr 2021 03:05:24 +0000 Received: from DB5EUR03FT022.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:120:cafe::c) by DB8PR06CA0058.outlook.office365.com (2603:10a6:10:120::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3999.27 via Frontend Transport; Tue, 6 Apr 2021 03:05:24 +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 DB5EUR03FT022.mail.protection.outlook.com (10.152.20.171) 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:05:24 +0000 Received: ("Tessian outbound 81a4524e9a48:v90"); Tue, 06 Apr 2021 03:05:24 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: ddffe0eb38786abc X-CR-MTA-TID: 64aa7808 Received: from e3d901fc7223.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 9C7F61D3-98EB-448A-9F3F-3E0B66021A9C.1; Tue, 06 Apr 2021 03:05:17 +0000 Received: from EUR01-DB5-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id e3d901fc7223.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 06 Apr 2021 03:05:17 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QKdMJqPCytjp5cABaSzbv40YamuFK6IsFXyVRrJg3mf/B2S9XSyMZlHDgaUWsYsQiCJGw/djBBcl/fcZdYr2CqPOsaCHnhakab5NEfuSF3IT99qWYTzp48mgQdKeK6RIAB3PrYMC2H30auA3cJ+an4mXM2JpX/jCAKsPq2RfyQEDrMFUHHAHJ7nhrtbCSTdRj1WmubvdsexR9JRGklOjm2j7dOirCyFg/Q8ygRK+7NQBY5b/RwjAOZ0tm686HdaQgNNAC+P7SMKnT6XV1TIZmCH87Vt4UaHJUfyri/52i+Tjz2zzjZKxgVsWClqMRy2+QREIlW4lgsmEkpQTgUV2Ng== 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=BZNcWtmJ1hNOvRJUAmZZoefogSJwX0RVsSK6Wx7bf0A=; b=N8ODU0WqqDQ8/DXYKU8WW6P2XQXeurcjwmEgY1Xbn8/8hXRj9wvgMOIC0BUsSUEplN2/+Az+v7FpLem5dEGDckmNHEGkBnNWlcE2paORFV95JtOwOG2ZM+8cB8D4Fn+o9J6cy3ubqYaflWISTYbbItWc2X9xE2Zww2o6vXHRGkYsFVkH5seMkvmOR1HJt1KqB7AWL9Gz6VBEnuC+AG/IGmvBSFfP9tkFUwMO5Ua1cGrwUuJeJGu9h48Hf9Jcy9mkrhjpBngkf9ffDmLmsp1KkGvC+ZDQz8H1k3UNJdjvzZqpb/hSuzZ9jZnWOjoHqxxX1GSzBz1KdJLNK5UpMbErCA== 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=BZNcWtmJ1hNOvRJUAmZZoefogSJwX0RVsSK6Wx7bf0A=; b=MywotnDIRow5UADPdvrJ4Swjs77LnpIiuHaC49Qh8+mWImbAVmbfuUKzx96385jCjsHBEfyk/ctOO8DGBdElKp1XEbQSanUMA34QkOIeetTCLv3pjc79OUOjrwwBqpHtr/wkejEcB2Bf+mESvgteCDmY+tj/wLxQQkrHLJZuOtM= Received: from AM6P195CA0022.EURP195.PROD.OUTLOOK.COM (2603:10a6:209:81::35) by AM4PR08MB2835.eurprd08.prod.outlook.com (2603:10a6:205:a::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3999.28; Tue, 6 Apr 2021 03:05:15 +0000 Received: from VE1EUR03FT043.eop-EUR03.prod.protection.outlook.com (2603:10a6:209:81:cafe::46) by AM6P195CA0022.outlook.office365.com (2603:10a6:209:81::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3999.27 via Frontend Transport; Tue, 6 Apr 2021 03:05:15 +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 VE1EUR03FT043.mail.protection.outlook.com (10.152.19.122) 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:05:14 +0000 Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX03.Arm.com (10.251.24.31) 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:05:12 +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:05:11 +0000 From: Richael Zhuang To: CC: , , David Hunt Date: Tue, 6 Apr 2021 11:04:59 +0800 Message-ID: <20210406030459.10261-1-richael.zhuang@arm.com> X-Mailer: git-send-email 2.20.1 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: bad448bf-2987-41e4-b37f-08d8f8a8d271 X-MS-TrafficTypeDiagnostic: AM4PR08MB2835:|AM6PR08MB4072: 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: IBePa3SsoEfs+qdmb07WwtyuXrnuRPmt7yB7mFPjXAF9vLHoY0GiHJa3WNZxbXiiaKfz5KggdNUmNMjk/dIEAIQACpVPzt77wqXzWXL2C+C147TpC3wYsRRr7J5TPotk1CGx7EWf325SI5IMSqe6ULdt/HnG4HdSFTx09QmPXG7BrgJweiPXRdr9raBxbC6CPE3SffrT172MtBo4RKuWJ4overG6QwmB7cBYZ4yWlbAdGSRoDlZ9tzLQ+mqWT3xuLbOVwbXIZNDGZA0BkB8BeWNqBa4SaMcar9go2CHQ7qge0WSCfrCIzSb9t/mqz3mIZjleshU23BqbPrp8wj08XBzAFtypS4Exjy7M29iPzu6j33vZXZ9hc1W/RQSOGtjNBI+qbI+Q/yjIOZSmGV0202BrKcur3JEwXUfYphpsEGpDfHX3EA15epXBjfZ3sVhOOho9KKk/DZrBLK2OgVy5UysKPfXCWHMGNqIjDagkC2ppgiinc1ZmnRyzwdnlAv8tK6agNXEtpIQuLBfYFs5GlJEtZoHwgt5BAISSF3q0gaTRfMY60A0EASPFFyF+0WgtZ/iWnh7pw5e+MbS3XYiBxM7y69QEdFwn0JyX3CAq4tL32u4YzP00LREIqCDRgvXrijnUIRcT1XkVs7peFXfMHO1EjAFITpF/YbGJzjwascdwotnmRr9Q9oRQh7x/rNxu 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)(346002)(376002)(39850400004)(136003)(396003)(36840700001)(46966006)(26005)(186003)(316002)(2906002)(356005)(82740400003)(6916009)(44832011)(70206006)(86362001)(426003)(2616005)(7696005)(70586007)(8936002)(36756003)(336012)(5660300002)(4326008)(82310400003)(83380400001)(6666004)(47076005)(36860700001)(478600001)(54906003)(81166007)(8676002)(1076003)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR08MB2835 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT022.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 6ca6c37c-ec9b-4ca7-3eb3-08d8f8a8cccb X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: W4EGUsNTVLbgfe6VOx8GSgftfpx3mtDOk/xcVydtP4fiQFXSblk/MOkoedSxuUkcr7MqmFdFVhY2N5pBjLXf/rStKFEEQ0dGMCwsNnCTBVxeKKiolpWoxCc7kDRVWE4+7ATI2E/O1pBPdOb2IOY0LC2AiNeVHvqTTlZuf/uzbJqsS1bKB/zszZhC7yMNSBivATMOLSTyl5bCB7ePK1cY7XSC8noPGwlgWvsWwV9rYy2Nr/Wsk7FPlYqcqSel687mrmJVxt+N7TLp18rdBOmQfMKEYUlWOnw8EMT+iEvE7X/mHIN4kJTGGwTy8r0YMCyyvC+enKi5pxig+4KVC1eBbmxbFKs4TnfyBGj1/w0kNAQ+Utkwaq5DOLn/susr7QX1U2wYN/AwcUE3S6zTgQ3vQnHvAZj6NDVZ5XRy6yn9e7pNbrWg4DYdZ2amEe+QwEXt42kkAnQMzh+7EAi1rbbTmN6mhc9m+0v8UoOiXsLq3y3g21ckJQ9u3HvSJFzbOO7nqS/dnakyeEa/jIEh71nTWwisw1w/wf8YnSR7LLRNScexyzRaZLS9WriIiRwHmbwSoO/5f/3YgRj07+dMRT8m8WcyZ6LMdTNErWuB5R156p+2ZbjXpKg+SXlmPwj9BopLLKBiHSAQXKNqtszOMxdgXg== 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)(39850400004)(346002)(46966006)(36840700001)(70206006)(336012)(82310400003)(426003)(82740400003)(450100002)(4326008)(36756003)(44832011)(2616005)(316002)(47076005)(81166007)(26005)(186003)(5660300002)(1076003)(83380400001)(54906003)(70586007)(8676002)(478600001)(107886003)(7696005)(6916009)(36860700001)(8936002)(6666004)(2906002)(86362001); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Apr 2021 03:05:24.1696 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: bad448bf-2987-41e4-b37f-08d8f8a8d271 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: DB5EUR03FT022.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR08MB4072 Subject: [dpdk-stable] [PATCH v1 2/2] test/power: fix a bug in cpufreq autotest 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" 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 CustomizedGitHooks: yes Change-Id: I5702d5c647e941253c556ae2be8c1edeefacb618 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.